"Your game files do not match" when changing LUA files
Hello fellow modders!
I just started messing around with the LUA code, following the getting started guides (thanks for those BTW)
But every time I save a LUA file (in my mod dir), the game return to the menu with the message "Your game files do not match..."
I am probably missing something really obvious but can't figure out what it is.
Details:
I am editing the file Player.lua, that I copied into my mod (its the only file)
Changing Player.kGravity = -21.5 to Player.kGravity = -2.5 just to have a simple test.
Starting the game with options "-game NewMod -hotload" and running "map ns2_tram"
It loads find, the gravity, is low, everything is fine. Until I change the file, I get the error described above.
I just started messing around with the LUA code, following the getting started guides (thanks for those BTW)
But every time I save a LUA file (in my mod dir), the game return to the menu with the message "Your game files do not match..."
I am probably missing something really obvious but can't figure out what it is.
Details:
I am editing the file Player.lua, that I copied into my mod (its the only file)
Changing Player.kGravity = -21.5 to Player.kGravity = -2.5 just to have a simple test.
Starting the game with options "-game NewMod -hotload" and running "map ns2_tram"
It loads find, the gravity, is low, everything is fine. Until I change the file, I get the error described above.
Comments
So it won't kick you since you have nothing to fail.
Also hotloading does work for lua (or did) I've done it.
EDIT: I just checked, and hotloading lua doesn't work as well for me now as it did a few months back... as soon as I changed the file I got spammed with errors lol.
That said, it DID effect the game on the fly (looking at log print outs for sv_help I can see that the command names changed like I changed them in the file), so if you could just avoid the errors some how...