by InsanityBringer » Thu Oct 10, 2024 12:00 pm
Hmm, my autosave for the level seems to reliably replicate the problem.. not sure why a save made afterwards doesn't.
https://drive.google.com/file/d/1mou1aA ... drive_link sorry for the google drive link, too big to attach here. Can confirm that it still works if you download the whole thing though
I decided to get my hands dirty and build Raze myself, and even with a completely fresh config and the game built in debug mode, I can still replicate it with that save. I guess worse comes to worse I'm going to have to dig in and see if I can figure out what's going on myself.
EDIT: All I can tell so far is that the sections end up different across the two loaded levels. In the broken scenes, viewing from hopefully the same point on the boat, it eventually enters Section 34 it iterates into Section 206 with 22 lines, but in the normal scene, I watch the bunches added and they're the same until Section 34 comes up, at which point it iterates into Section 205 with 140 lines and ends up making a lot more bunches as a result. I'm really confused..
After working on it for a while, I haven't found the underlying cause yet, but I figure out where the change happens. hw_CreateSections gets called twice when loading a game. The first time from loadMap, second time from SerializeMap. In a good savefile, section line 265 has a partner section of 205. after both calls. But in the bugged save file, it ends up with a partner section of 205 the first time, but 206 the second time around. Guess I gotta dig deeper into the section creation code to figure out what's different between the saves.
Hmm, my autosave for the level seems to reliably replicate the problem.. not sure why a save made afterwards doesn't.
[url]https://drive.google.com/file/d/1mou1aAxlbPvRgeRlxssjDkhFWWB1opBQ/view?usp=drive_link[/url] sorry for the google drive link, too big to attach here. Can confirm that it still works if you download the whole thing though
I decided to get my hands dirty and build Raze myself, and even with a completely fresh config and the game built in debug mode, I can still replicate it with that save. I guess worse comes to worse I'm going to have to dig in and see if I can figure out what's going on myself.
EDIT: All I can tell so far is that the sections end up different across the two loaded levels. In the broken scenes, viewing from hopefully the same point on the boat, it eventually enters Section 34 it iterates into Section 206 with 22 lines, but in the normal scene, I watch the bunches added and they're the same until Section 34 comes up, at which point it iterates into Section 205 with 140 lines and ends up making a lot more bunches as a result. I'm really confused..
After working on it for a while, I haven't found the underlying cause yet, but I figure out where the change happens. hw_CreateSections gets called twice when loading a game. The first time from loadMap, second time from SerializeMap. In a good savefile, section line 265 has a partner section of 205. after both calls. But in the bugged save file, it ends up with a partner section of 205 the first time, but 206 the second time around. Guess I gotta dig deeper into the section creation code to figure out what's different between the saves.