Re: [sumo-user] Save and load Simulation without starting a new one

2020-06-09 Thread Jakob Erdmann
No and this is a known issue: https://github.com/eclipse/sumo/issues/7020 At the moment it only works correctly for the default traffic lights with fixed plans and no offset. Am Di., 9. Juni 2020 um 19:48 Uhr schrieb . Abdullah : > Hi, > > does traci.simulation.saveState() save traffic states as

Re: [sumo-user] Save and load Simulation without starting a new one

2020-06-09 Thread . Abdullah
Hi, does traci.simulation.saveState() save traffic states as well, like the current phases and all other phases and their remain durations? On Sun, Jun 7, 2020 at 1:18 AM Jakob Erdmann wrote: > Yes. You can use traci.load(['sumo', '-n' , 'your.net.xml', > '--load-state', 'savedstate.xml',

Re: [sumo-user] Save and load Simulation without starting a new one

2020-06-07 Thread Jakob Erdmann
Yes. You can use traci.load(['sumo', '-n' , 'your.net.xml', '--load-state', 'savedstate.xml', ...]) However, this is not much faster then calling traci.start (the net still needs to be reloaded). In the latest development version you can also use traci.simulation.loadState('savedstate.xml') but