Numbered items in crafting – mini-mod

Home Forums Wayward Numbered items in crafting – mini-mod

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #5365
    yairm210
    Member

    First off, I’m a huge fan of the game, it”s everything I dreamed of making but didn’t have the time or guts to follow through with. Amazing stuff.
    One thing that did annoy me, though, was the micro-management of all the different items, and I found a way that helped me simplify things, by adding in how many items you have and how many are needed when you don’t have them all (especially for things which need 8 rocks or sticks, that’s a lot of management).

    Numbered parts

    As you can see, non-consumed items remain unaffected (since there can be only 1), and items not fully available have the numbers indicated.

    In interface.js right before line 1069 I added in
    if (findItem.length < amountUsed) { outputReq += ‘(‘+findItem.length+’/’+amountUsed+’)’ }

    I don’t think this is a big enough change to require its own mod, but it’s very player-helpful.
    If you don’t feel that it should go into the game, then I’ll just take interface.js, add the line in, and that’ll be my mod.

    I’m thinking of a clever way to have a ‘crafting table’ item, which would function as a chest only that you could craft items from both your own inventory and the cest itself, for now it’s only speculative.

    Thanks for all the hard work, guys! You rock 😉

    • This topic was modified 5 years, 5 months ago by yairm210.
    #5367

    Cool! Easy enough, will add to Wayward 2.0 for sure. Thanks!

    #5368
    yairm210
    Member

    Hmmm. So far, I’ve managed to create another container (basically a copy-paste of the wooden chest) and managed to build one and set it up.
    Now I’m pretty sure that I need to alter the craftTable() function in wayward.js and add in something like:

    
        if(game.containerOpened.containerType === "craftingtable"){
            craftingTableContainerId=game.containerOpened.id
            container = envItems[craftingTableContainerId].container
            for (var craftingTableItem = 0; craftingTableItem < container.items.length; playerInvItem++) {
                if (container.items[craftingTableItem]) {
                    playerInvContent.push({type: container.items[craftingTableItem].type});
                }
            }
        }
    

    to ‘fool’ the crafting that the items that are in the craftingTable container should also be used for crafting.

    The problem is that I don’t really know what ‘container’ looks like on the inside, and chrome won’t let be debug it because of reasons.
    That is to say, I’ve been modding the files on your site up till now, and chrome won’t recognize the files after the change and so I can’t debug. But this is a stupid way to go about it anyway.
    Is there an html version for download anywhere? I looked for one, but couldn’t find it…

    • This reply was modified 5 years, 5 months ago by yairm210.
    • This reply was modified 5 years, 5 months ago by yairm210.
    #5380

    Looks like you want to do some hardcode modding. I would recommend downloading the download version, then opening the .exe with an archive program to get access to all the files. I believe 7zip extractor will work, somebody else was using it.

    #5381
    yairm210
    Member

    Well, I tried downloading all the different versions, but nope. They appear to be actual compiled executables, or at the very least not openable by archivers (I personally tried with 7zip, no such luck).
    I tried ‘downloading’ the site itself, no luck there either, error with the jquery of all things.
    I need a sort of working html.
    Thanks in advance! =)

Viewing 5 posts - 1 through 5 (of 5 total)
  • You must be logged in to reply to this topic.