Battlezone 98 Redux

Battlezone 98 Redux

View Stats:
Instant Action Custom Maps - Save Game Crashes on Load
Just wondering if anyone else is having problems loading save games from custom instant action maps? I've tried a few and it just crashes straight out of the loading screen as soon as the load bar is done. Maps play fine on launch from the IA menu, but loading save games just crashes.
Originally posted by Ded10c:
Yeah, one of the more recent patches broke a few of the older lua-powered missions. Not much that can be done about it unless their developers come back and fix them.
< >
Showing 1-11 of 11 comments
Haven't really had much issue with this. Any specific map? Could be the mapmaker not implementing save and load correctly.
Could be a LUA issue. Just tell us the mission boss.
These are the few I've tried that crash:
Chinese Mission Pack Episode 1: https://steamcommunity.com/sharedfiles/filedetails/?id=1312075575
Wreckers: https://steamcommunity.com/sharedfiles/filedetails/?id=670202215
Tharsis Mons Map from the Omega Squadron Instant Action Map Pack: https://steamcommunity.com/sharedfiles/filedetails/?id=677699019
Yeah, some maps are bugged when saved & loaded. Sometimes, depending on where the save is made in the game, it won’t crash consistently. I could broke that Wreckers mission with some saves & loads, even tho it crashed my bz a few times in the loading process.
I guess the saves are bugging the LUA file, which loads the fresh code after a save is made, which could cause troubles because the saved map ain’t loading with its default starting objects on it.

That’s my thought but I’m not a LUA specialist yet to confirm those facts.

Also, I can remember I had different ways to load my saved games from the UI (before dying/after dying, quitting back start menu, then load the game again, and other stuffs like that) and some ways to load seemed to crash less consistently. I can’t remember precisely now which way was the best to load... I may be also wrong on that, so if any player could confirm that it happens, it would be greatly appreciated.
The author of this thread has indicated that this post answers the original topic.
Yeah, one of the more recent patches broke a few of the older lua-powered missions. Not much that can be done about it unless their developers come back and fix them.
At least with Wreckers, you might have better luck if you basically end the game and then load the save from the main menu instead of loading it while the mission was running.
Huh. I could try to check my Chinese mission loading code, but I'm not a LUA expert and just copied the format from other missions.
Did you copy from something that was a definite IA mission? (not MPI lol)
I just looked at your LUA - it contains no attempt at save/load functionality.
People seem to steal from ScrapPool's work so take a close look at Burns Rebellion or something:
C:\Program Files (x86)\Steam\steamapps\workshop\content\301650\731314309
I'll double check when I'm home but your looking in the mission pack 1 right? There should be a load save bit right after all my variables. Almost positive they have at least some form of load/save code. Even if it may not be correct.
Originally posted by Herp_McDerperson:
I just looked at your LUA - it contains no attempt at save/load functionality.
People seem to steal from ScrapPool's work so take a close look at Burns Rebellion or something:
C:\Program Files (x86)\Steam\steamapps\workshop\content\301650\731314309

Where in my LUA does it not attempt to save/load? I just copied this out of my missions LUA files XD

function Save()
return
-- bools
goal1,goal2,
-- floats

-- handles
convoy,playertank,base,last,turret1,turret2,turret3
-- ints

end


function Load(...)
if select('#', ...) > 0 then
-- bools
goal1,goal2,
-- floats

-- handles
convoy,playertank,base,last,turret1,turret2,turret3
-- ints

= ...
loading_done = false
end
end

I did notice in ScrapPool's code, he referenced some variables and set them to nil in the save function. Not sure what this accomplishes, and how I should implement that in mine... I may need to pick his brain or someone else more proficient in LUA.
< >
Showing 1-11 of 11 comments
Per page: 1530 50