Mission/Cutscene Replay

Don't thank me. It's gibbed who was the one who got it working. I'm just going through and trying to fix some of the broken zones during replay. :)
 
That Belgian problem issue is still there where you teleport to the roof when you take the elevator btw. It is defintely a zone/chunk issue and I'm looking at the scripts now to figure out what's going on.
 
The end of that mission makes city zone swap calls to load the purple tower or destroyed tower. But as for what the name of the original one is, if there even is one you can call by name, i don't know. The purple tower is referred to by the string "tower_saints", and that doesn't appear in any of the other .lua or .xtbl files.

But it does appear in the sr3_city_1.vpp_pc file. If i'm understanding this right, chunk 1216 has two variations: 1216^tower_dmg and 1216^tower_saints. But how does the game know what is referred to when all you call is city_zone_swap("tower_dmg")? And what do you call the original 1216?

Looks like we don't have access to the source for city_zone_swap. And the bastard takes a second argument, boolean, and it is not clear to me what that controls. When the second argument is "DISABLE", they seem to be using it to undo a swap or remove a zone. As in, "city_zone_swap("thermint1", DISABLE) -- Disable the NW Thermopolye". And it sometimes shows up in pairs like this:

Code:
 -- during initialize
    city_zone_swap( "hq", false )
    city_zone_swap( "m08", true )
Code:
 -- during cleanup
  city_zone_swap( "m08", false )
    city_zone_swap( "hq", true )

edit: Well, that's all there is to it. true/nil means load it, false means unload it. city_zone_swap( "tower_saints", false ); turns my tower back into the Morningstar tower. Now to run that mission and see if the elevator works.

edit: Nnnnnope, that's not the only thing that's needed, i guess. The important part must be when it's doing this:
Code:
    -- kill the building interior either way
    city_zone_swap("m6")
 
My guess is that the reference to it is going to be in mission 2 or 3 when steelport first loads... maybe...
 
That did it. The interior loaded when i added city_zone_swap("m6", false). The hell? Loading a zone can unload an interior, i guess. And unloading the zone can load the interior back in. Go figure. I guess more accurately, you'd say "swapping" in a zone can unload an interior, and swapping the original back in reloads it.

I chose to destroy the building this time. I do not seem to have gotten an additional respect bonus, but i don't know whether that's because i already have the cash bonus or because i have a respect bonus on my list for some other reason. I don't have the "for destroying the Morningstar tower" respect bonus, though.

Okay, back to forum crawling.
 
Nice job. So basically we have to revert the changes from sr3_city.lua during the mission init for any missions it does special stuff with after completion during cleanup. Assuming, of course, that those changes don't work in the mission when we test it.
 
Hey guys. Thanks for all the hard work on making these mods. I was just curious if it would be possible to add a separate cutscene viewer to the cellphone or elsewhere? If we can only access them through mission replay that's fine, but just was wondering if there could be a more direct way to watch them.

Anyways, that's all. Thanks again to everyone for all their work on mods so far!
 
Back
Top