Technology show up only after prerequisite researched?

Place to get help with not working mods / modding interface.
User avatar
metzyn
Long Handed Inserter
Long Handed Inserter
Posts: 96
Joined: Tue Mar 19, 2013 10:49 pm
Contact:

Technology show up only after prerequisite researched?

Post by metzyn »

How do I have a technology not show up until another is researched? I have searched throughout all data files and cannot seem to find this. Please help!
Factorio Modder
Solar Expansion

User avatar
FreeER
Smart Inserter
Smart Inserter
Posts: 1266
Joined: Mon Feb 18, 2013 4:26 am
Contact:

Re: Technology show up only after prerequisite researched?

Post by FreeER »

The only way that I know of is using the upgrade flag (wiki page). Unless you wanted to have it disabled and use lua code :D to enable it after the prerequisites are researched (which would be game.player.force.technologies["iron-working"].setenabled(true|false))...
<I'm really not active any more so these may not be up to date>
~FreeER=Factorio Modding
- Factorio Wiki
- My Factorio Modding Guide
- Wiki Modding Guide
Feel free to pm me :)
Or drop into #factorio on irc.esper.net

User avatar
metzyn
Long Handed Inserter
Long Handed Inserter
Posts: 96
Joined: Tue Mar 19, 2013 10:49 pm
Contact:

Re: Technology show up only after prerequisite researched?

Post by metzyn »

Thank you for the info! I decided what would be best for my project would be to have "tech abc", "tech abc-2", and "tech abc-3". I discovered that by simply adding "-x" after the technology name you'd get a sequential technology like Logistics. This particular method will be best for my needs but I will keep your info in mind for later. Thanks again.
Factorio Modder
Solar Expansion

Post Reply

Return to “Modding help”