Bay 12 Games Forum

Please login or register.

Login with username, password and session length
Advanced search  

Author Topic: Plant problems?  (Read 551 times)

deepspaceprobe9

  • Bay Watcher
  • "Personal" Text
    • View Profile
Plant problems?
« on: November 14, 2014, 08:36:33 pm »

I'm trying to mod in a plant variant that does things. Unforunately, one of the things it's supposed to do, produce 'Tears', which are like little gems, it is not doing. Nor do they show up in any stockpile menu. Help?

The raw:
Spoiler (click to show/hide)
Logged
   (*) Stopped zombies from interrupting your sleep to ask if they can help you with something

Reelya

  • Bay Watcher
    • View Profile
Re: Plant problems?
« Reply #1 on: November 15, 2014, 10:09:16 pm »

You can narrow down what the problem is by simplifying things. Doing too many changes in one go is a common programming mistake because it makes it really hard to narrow down exactly why something isn't working.

Basically, start with a version that's exactly the same as some text-book example, e.g. copy tomato fruit from the tomato raws exactly and add it to your plant. Test that first without any changes. So the first step is to add tomatoes or some other known working fruit to your plant.

Then change A LITTLE at a time (ideally just one token at a time), and test each change until you have the desired outcome, or identify the problem. Make sure you keep copies of your "best so far" raw version so that if some single change screws the whole thing you can go back and try something else without losing the bits you did fix.

Don't assume all combinations of tokens will just "work". e.g. you've got the output item type as ROUGH:NONE, try setting that to GROWTH_ITEM:PLANT_GROWTH:NONE and see if that's the issue. Stockpile rules can be fickle in how the categorize different materials, and you have to workaround the limitations. If it is, then you have to find another workaround to get it into gem form and get it properly stockpiled.

« Last Edit: November 15, 2014, 10:12:33 pm by Reelya »
Logged

StagnantSoul

  • Bay Watcher
  • "Player has withdrawn from society!"
    • View Profile
Re: Plant problems?
« Reply #2 on: November 15, 2014, 10:11:57 pm »

NEVER try to do an entire project at once, at least not without a ton of help.
Logged
Quote from: Cptn Kaladin Anrizlokum
I threw night creature blood into a night creature's heart and she pulled it out and bled to death.
Quote from: Eric Blank
Places to jibber madly at each other, got it
Quote from: NJW2000
If any of them are made of fire, throw stuff, run, and think non-flammable thoughts.