/cheat doesn't research technologies in order with respect to pre-requisites.
I know this because my mod is throwing an error when /cheat is used, but not when researching normally.
/c game.player.force.research_progress= 1
[0.17.66] /cheat doesn't research technologies in order with respect to pre-requisites.
Re: [0.17.66] /cheat doesn't research technologies in order with respect to pre-requisites.
Can you attach the modPyroFire wrote: Tue Aug 20, 2019 10:16 am I know this because my mod is throwing an error when /cheat is used
What error is it throwing?
Can you attach a log file?
Re: [0.17.66] /cheat doesn't research technologies in order with respect to pre-requisites.
https://mods.factorio.com/mod/warptorio2
Base mod only 0.7.7
The offending research:
warptorio-teleporter-portal being script.raise_event'd before warptorio-teleporter-1.
The -1 etc research accesses a variable in the global table that is created by -portal.
It is throwing an error because this hasn't happened yet, despite pre-requisites.
Proof:


Base mod only 0.7.7
The offending research:
warptorio-teleporter-portal being script.raise_event'd before warptorio-teleporter-1.
The -1 etc research accesses a variable in the global table that is created by -portal.
It is throwing an error because this hasn't happened yet, despite pre-requisites.
Proof:


Re: [0.17.66] /cheat doesn't research technologies in order with respect to pre-requisites.
Thanks for the report however that's not a bug. Technologies can be researched in what ever order anyone wants them to be by just setting ".researched = true" on any of them at any time using the Lua API. You'll need to fix your mod to account for that.
If you want to get ahold of me I'm almost always on Discord.