- Joined
- Mar 17, 2008
- Messages
- 179
- Reaction score
- 116
- Points
- 43
- Location
- Southwest Pennsylginia
- Website
- sites.google.com
I'm running 2024-rc1, working on a multistage vessel, and I'm having trouble resuming from the "Current state" scenario.
I'm saving and reading like this:
I have 4 configurations but it always resumes on configuration 0. It writes the correct configuration just fine.
I hope I explained this well enough.
Attached is a copy of the Lua file in case anyone wants to have a look.
I'm saving and reading like this:
Code:
function clbk_loadstateex(scn, vs2)
local match = {}
for line in scenario_lines(scn) do
if scenario_line_match(line, "CONFIGURATION %d", match) then
configuration = match.res[1]
else
vi:parse_scenario_line_ex(line, vs2)
end
end
end
function clbk_savestate(scn)
oapi.writescenario_string(scn, "CONFIGURATION", tostring(configuration))
end
I hope I explained this well enough.
Attached is a copy of the Lua file in case anyone wants to have a look.
