Modifying Global Defines In-game

slserpent

Chieftain
Joined
Oct 3, 2010
Messages
13
Location
USA
Does anyone know of a way to change the values of globals in GlobalDefines.xml while in-game, i.e. through Lua?

I've already tried just assigning a new value but that doesn't work--Lua throws read-only table error. I've also tried using DB.Query with an update statement, but that had no effect either.
 
Without a modded DLL you can't. The contents of the Defines table is cached into C++ variables as the game starts from the database and then the game code never looks in the database again. So while you can use DB.Query() to update the value(s) and even read the value back via Lua, the game core will just ignore those changes as it's using the cached values
 
Back
Top Bottom