Small addition requested on next update
Small addition requested on next update
It is currently not possible to complete disable RSO before the fist tick. Is there any chance you can add the removal of the on_tick_event to the disableChunkHandler remote call?
Re: Small addition requested on next update
I'm not sure I understand what are you trying to achieve. You want to prevent starting area spawning?Nexela wrote:It is currently not possible to complete disable RSO before the fist tick. Is there any chance you can add the removal of the on_tick_event to the disableChunkHandler remote call?
I could reverse the logic and register the generation event in init only if it's not disabled. It's hard to tell if it would help without knowing what are you trying to do.
- Arch666Angel
- Smart Inserter
- Posts: 1636
- Joined: Sun Oct 18, 2015 11:52 am
- Contact:
Re: Small addition requested on next update
Could you add something like
to your data.lua?
Code: Select all
if not RSOmod then RSOmod = {} end
Angels Mods
I. Angel's Mods Subforum
II. Development and Discussion
III. Bugs & FAQ
"should be fixed"
I. Angel's Mods Subforum
II. Development and Discussion
III. Bugs & FAQ
"should be fixed"
Re: Small addition requested on next update
Arch666Angel wrote:Could you add something liketo your data.lua?Code: Select all
if not RSOmod then RSOmod = {} end
It's mostly for mod testing I still want RSO to be present and working in most causes but there I times I quickly want to test something or abuse RSO in ways never thought possible. and being able to flip a switch in control file and reload the world is a lot faster then closing and reopening Factorio
It doesn't even have to be tied to disableChunkHandler I just want to be able to do a quick on_player_created /c remote.call("RSO", "turnoffthestartingores")
Re: Small addition requested on next update
You can set stating area size to 0 and it won't generate. It's in the config file.Nexela wrote:Arch666Angel wrote:Could you add something liketo your data.lua?Code: Select all
if not RSOmod then RSOmod = {} end
It's mostly for mod testing I still want RSO to be present and working in most causes but there I times I quickly want to test something or abuse RSO in ways never thought possible. and being able to flip a switch in control file and reload the world is a lot faster then closing and reopening Factorio
It doesn't even have to be tied to disableChunkHandler I just want to be able to do a quick on_player_created /c remote.call("RSO", "turnoffthestartingores")
PS.
No idea why you quoted Arch666Angel's sneaky thread hijack;)
Re: Small addition requested on next update
Sure.Arch666Angel wrote:Could you add something liketo your data.lua?Code: Select all
if not RSOmod then RSOmod = {} end
Name is the problem a bit since I'm camel case guy but I'll think of something. It might take some time to get there - naming is one of most difficult things in software
Re: Small addition requested on next update
Yes, but that is in the config file and would require a full restart to turn it off and back on as well as re-editing the config file.orzelek wrote: You can set stating area size to 0 and it won't generate. It's in the config file.
PS.
No idea why you quoted Arch666Angel's sneaky thread hijack;)
I quoted the hijacker due to reference on why I didn't want to do a data.lua check
Re: Small addition requested on next update
Hmm why would you need to get a restart of game to apply config file setting?Nexela wrote:Yes, but that is in the config file and would require a full restart to turn it off and back on as well as re-editing the config file.orzelek wrote: You can set stating area size to 0 and it won't generate. It's in the config file.
PS.
No idea why you quoted Arch666Angel's sneaky thread hijack;)
I quoted the hijacker due to reference on why I didn't want to do a data.lua check
It works with just new game no need for restarts. RSO uses config file in control.lua so it gets reloaded along with it. Only settings that affect actual base game generation won't trigger - like switch from RSO enemy generation to vanilla one.
As for re-editing you'll need to edit something. Can make an external interface for this - You would still need to call it still and it would need to be on_init of mod or something that happens before first tick for it to trigger correctly. So net effect seems the same - edit config or other mod/file
Re: Small addition requested on next update
[quote]As for re-editing you'll need to edit something. Can make an external interface for this - You would still need to call it still and it would need to be on_init of mod or something that happens before first tick for it to trigger correctly. So net effect seems the same - edit config or other mod/file [/quot
My mod already disables the chunk handler in player created when my debug config is on.
Doing it through config is still lots of extra steps including making sure that rso is extracted and the config file is open for it. and that It doesn't get update and have to be re-extracted and re changed just for times when I want to quickly check stuff
My mod already disables the chunk handler in player created when my debug config is on.
Doing it through config is still lots of extra steps including making sure that rso is extracted and the config file is open for it. and that It doesn't get update and have to be re-extracted and re changed just for times when I want to quickly check stuff
Re: Small addition requested on next update
Ok - I'll add new remote that will disable starting area generation. And silently hope noone leaves that call in somewhere in the mod on the portalNexela wrote:My mod already disables the chunk handler in player created when my debug config is on.As for re-editing you'll need to edit something. Can make an external interface for this - You would still need to call it still and it would need to be on_init of mod or something that happens before first tick for it to trigger correctly. So net effect seems the same - edit config or other mod/file
Doing it through config is still lots of extra steps including making sure that rso is extracted and the config file is open for it. and that It doesn't get update and have to be re-extracted and re changed just for times when I want to quickly check stuff
Re: Small addition requested on next update
orzelek wrote:Ok - I'll add new remote that will disable starting area generation. And silently hope noone leaves that call in somewhere in the mod on the portalNexela wrote:My mod already disables the chunk handler in player created when my debug config is on.As for re-editing you'll need to edit something. Can make an external interface for this - You would still need to call it still and it would need to be on_init of mod or something that happens before first tick for it to trigger correctly. So net effect seems the same - edit config or other mod/file
Doing it through config is still lots of extra steps including making sure that rso is extracted and the config file is open for it. and that It doesn't get update and have to be re-extracted and re changed just for times when I want to quickly check stuff
Thank you, And if someone leaves that call in on the mod portal their will be lots of Please help! I can't start a new game, This happens every time! posts.
Re: Small addition requested on next update
Added both of those in 2.3.3.
Please check if remote interface works as intended.. I did not do any testing on it. It's based on global so should not desync.
Please check if remote interface works as intended.. I did not do any testing on it. It's based on global so should not desync.
Re: Small addition requested on next update
Working perfectly in single and multiplayer, Thank you!