Jump to content

Nils

Member
  • Posts

    16
  • Joined

  • Last visited

Profile Information

  • Gender
    Not Telling
  1. Any particular reason water bottles aren't drunk from right-click anymore? I'm not against it but it seems like an odd design choice. I was basing it off of this: http://pzwiki.net/wiki/Soup_Ingredients I guess the wiki is out of date then? Also, it seemed to work before.
  2. Just making sure I'm not missing something but I think I have two bugs to submit to the tracker, both in MP since build 27. It seems like I can't drink from a water bottle anymore and I can't seem to make soup anymore. Neither water bottles I've found or ones I've filled seem to work. As far as the soup, I've tried both starting with tuna to make one from scratch and using canned soup, neither seem to give me the option. I didn't see these listed in the tracker and they seem obvious so I just wanted to make sure I'm not missing something before I submit them.
  3. Nils

    Sowing new seed type

    Well, vitaminlost, it looks like you were basically right this whole time. I think my problem was using outdated lua files. I started over, copying the latest lua files from build 25c, and then going in and adding new plant entries whenever I saw them. You already pointed them out but for the sake of putting it in one place, those files are: client/Farming/ISUI/ISFarmingMenu.lua server/Farming/basicFarming.lua server/Farming/farming_vegetableconf.lua shared/Translate/EN/Farming_EN.txt Loaded the mod up and everything works great. I can plant, water, see info. No errors! Now, as soon as we can add plant textures, my mod will be complete. Thank you again for answering all of my questions!
  4. Nils

    Sowing new seed type

    For guessing the process, you've done a great job. I actually do have the basicFarming and farming_vegetableconf file included in the mod, but they're in the server folder, not the client, because they got moved over in build 25. Just to try it, I put all three files in the client folder, but I'm still getting errors. When I get a chance I'll switch to an older build and see if that's my problem. Thanks again for all your help.
  5. Nils

    Sowing new seed type

    I'm running build 25 so that's at least a little bit of the problem. vitaminlost, I would love it if you could fix my scripts for me, but I would love it more if you could tell me what I'm missing so I can fix it myself in the future. You know, teach a man to fish and all that. Here's a zip of what I have so far: Edit: files old, link removed.
  6. Nils

    Sowing new seed type

    Looks like my problem has evolved again. There was a small update today (~200k) that changed my problem. Before, I was getting an info panel with an icon but no text. Now, when I click on info, no window appears at all.
  7. Nils

    Sowing new seed type

    Thanks again for all of your help, vitaminlost. I'm not sure how I missed the growPlant function, but I found it thanks to you. (Although mine sits at line 307 and the getText seems to be replaced with a string. Maybe we're on different builds?) In any case, the plant is now visible! But! Now the info panel, which was working before, is broken. The tomato icon still appears, but all of the text is missing and I get a stack trace: function: render -- file: ISFarmingInfo.lua line #58Object tried to call nil in renderI've checked the ISFarmingInfo but I don't see any new definitions that need to be made in there. After double checking the other files to make sure I didn't have a simple typo or missing something else obvious but without actually changing anything I reloaded and got a new stack trace when checking the info panel: function: createChildren -- file: ISFarmingWindow.lua line #27Obviously I've still missed something. Help me vitaminlost, you're my only hope!
  8. Nils

    Sowing new seed type

    vitaminlost, you've been such a great help! Unfortunately I'm not 100% there. The menu is fixed and I can plant! Unfortunately the plant has no image. I used the tomato images for defaults. The tomato icon shows up when I get Info on the plant, but the plant itself is invisible.
  9. This was the problem I was having with my first mod attempt. I had read this topic but didn't even realize it applied to me. If I can clarify for the other newbies: You can't just dump a modified .lua file in the lua folder. It has to match the directory structure of where the original lua file you're trying to modify sits in the main Zomboid folder. If you're creating a new file from scratch (such as cheatMod) you can put it in /client.
  10. Sudden-Multiplayer is what got me here so I can't really complain. Also, still infinitely easier to mod than most games.
  11. Nils

    Sowing new seed type

    Sorry, looks like I spoke too soon. You definitely have me in the right direction, vitaminlost, so thanks, but now after creating a new entry all of the entries on the Sow Seed are gone, presumably because I crashed the entire farming menu. Stack Trace reads: function: doFarmingMenu -- file: ISFarmingMenu.lua line #117 (where my new entry is) attempted index: seedsRequired of non-table: null I assume the problem is I didn't specify how many seeds my new plant takes but I didn't see the option to specify it elsewhere in the script. (Although I did see and add to the haveSeed function). Edit: Found the farming_vegetableconf file. Looks like I need to add entries here too? Dabbling now.
  12. Looks like my problem was that you can't just dump the lua file in the lua folder. It still has to reflect the directory structure from the main folder. So putting the script in: Users/Me/Zomboid/mods/mymod/media/lua/ does not work But putting it in: Users/Me/Zomboid/mods/mymod/media/lua/client/ does work
  13. Nils

    Sowing new seed type

    Thanks vitaminlost! That's exactly what I needed.
  14. Nils

    Sowing new seed type

    Sorry for the two threads at once but they aren't strictly related. I'm adding some new plant/seed types in my mod. I've created the plant and the seeds. I'm able to insert both onto my character. I can eat the plant, make recipes with it. All that works. The only problem I'm having is that I don't know how to get the Sow Seed menu to recognize my new plant types. I'm also not sure how to tell it what art to use when planted and during the growth cycles. Any help is appreciated.
  15. I'm running build 25. Messing around some more, I looked at the console log and saw it's only loading scripts from the Steam/blahblah/Project Zomboid directory instead of the Users/Me/Zomboid directory. I put the script in the Steam folder and now it runs and my items get added. I guess my question is how to include a lua script with my mod without having to add it to the main folder? I saw lemmy's post about directory changes with lua scripts but I don't think that applies. Edit: modified title to reflect real issue
×
×
  • Create New...