So I have big trouble in finding this lua file.Any simple modification inside sr3_city.lua under the function sr3_city_main() crashes my game and the error I have is :
I use Minimaul's LUA debug_print hook and as you can see it shows me that there is a problem in calling some function from system_lib.lua.
I am 100% sure that the code I put inside sr3_city_main() function has a correct syntax and I tried all the basic functions such as portals_enable,notoriety_set_min_and_max,turn_invulnerable...nothing works ! I even copied and pasted some code from a mission to be assured that it's 100% correct but it still crashes with that error.
Again,I'm absolute sure that I don't do any syntax errors as I have modded alot in SR2 and SR:TT using lua...
So,I think finding sytem_lib.lua will answer some of my questions.
PANIC: unprotected error in call to Lua API ([string "system_lib.lua"]:54: attem
pted to read undefined global variable 'SR3_CITY_globals')
I use Minimaul's LUA debug_print hook and as you can see it shows me that there is a problem in calling some function from system_lib.lua.
I am 100% sure that the code I put inside sr3_city_main() function has a correct syntax and I tried all the basic functions such as portals_enable,notoriety_set_min_and_max,turn_invulnerable...nothing works ! I even copied and pasted some code from a mission to be assured that it's 100% correct but it still crashes with that error.
Again,I'm absolute sure that I don't do any syntax errors as I have modded alot in SR2 and SR:TT using lua...
So,I think finding sytem_lib.lua will answer some of my questions.