sr3_city.lua packed in misc.vpp_pcsr3_city.lua, which would be packed into sr3_city_0.vpp_pc if i remember the filename right. Things may have changed for 4, though.
sr3_city.lua packed in misc.vpp_pcsr3_city.lua, which would be packed into sr3_city_0.vpp_pc if i remember the filename right. Things may have changed for 4, though.
I'm not very familiar with this kind of stuff so I probably did it completely wrong, but should it look something like this? It didn't change anything.I expect that it would work to do something like adding "set_character_giant( PLAYER )" to the sr3_city.lua file's city_init function, if it's anything like the way SR3 works. I would speculate that the function disables height restoration regardless of whether you're large or small, so there's no separate function for a "shrunk" character. Haven't tried any of this myself.
set_character_giant(LOCAL_PLAYER, true)
yes i am wondering if i have to put it in the same folder as misc tables, but i dont want to break anythingI tried to edit sr3_city.lua file but the game always crash upon loading even if an unmodified version of the sr3_city.lua located in the main game folder.
Do you have the same problem?
function sr3_city_main()
rl_set_override_viewport(120, 60)
end
If I put an unmodified/extracted sr3_city.lua file in the game folder my game crashes when loading the map . I haven't tried to edit at all.No problems with editing sr3_city.lua here. Make sure you're using a decent editor like Notepadd++ or better, the game actually handles error in lua pretty well. If you call a non existant function or variable it will just kill the Lua function without any noticeable in game effect. For this reason it can be a good idea to use Minimaul's debug lua print hook to set debugging way points if you're not getting any effective output.
For an easy edit with a very noticeable effect,
Code:function sr3_city_main() rl_set_override_viewport(120, 60) end
how do you flag with that functionOk, I checked in the code and it looks like giants and shrink ray stuff was added to SR4. Also, code was added to slowly bring you back to "normal" size. This seems to be hard coded to 1.0. I'll see about somehow exposing this to lua or something. In the mean time, you can prevent the processing by flagging the character as a giant, which can be done with the lua function character_set_giant.