Re: Trade Wars 2117
Posted: Wed May 24, 2017 23:01 UTC
Ok, so 20 turns every hour, hmmm.JokerAce wrote: Cool, thanks. No rush. Enjoy your program.
That might be an issue.
I would of set $sched_ticks to like 1 (every 60 seconds) which makes things easier.
I would then set $turns_per_tick to 20 (I.e. your 20 turns) still fine so far.
Now here is the gotcha, $sched_turns would need to be set to 60 (i.e. the 60th tick, so every hour), sadly $sched_turns also controls towing, xenobe.
So it would take an hour for a ship to be towed etc, there might also be other issues.
A way around that would be for you to do the above and also add another config setting called $sched_tow and set it to 2, you might be able to set it to 1 (every 60 seconds check and tow all required ships)
You will also have to update create_universe.php to use $sched_tow just for the towing side of the code.
That "should" work, but don't quote me on it.