Save / Load values (presets)

N

nattydread011

Noobzor
Joined
Dec 18, 2018
Messages
9
(complete newbie here)

I was wondering if there is a somewhat simple way of saving a few values after modifying them so I can quickly load them up again when I reboot the game or load a different area? (addresses never change btw)
Ideally making a sort of 'preset' of values.
 
T

Twistedself

Noobzor
Joined
Jun 30, 2018
Messages
12
~~lua section, gave ASM answer~~ Deleted
 
T

Twistedself

Noobzor
Joined
Jun 30, 2018
Messages
12
I should have said... you can store into regular registers like the accumulator eax in 32 bit, ecx, edx, etc. as well as userdefined ones like [wantedValue] and xmm registers. Rules change a bit with mov and other commands since some are implied such as eax has to be used with some commands and some only work with xmm registers. Make sure to use google. I have only been at this for at ASM for a couple days and it is confusing at first. Just make sure that you declare any user variables or it won't work. If you alloc mem, make sure to ret it.
 
TheyCallMeTim13

TheyCallMeTim13

Enchanter
Staff member
Administrator
Fearless Donors
Talents
Joined
Mar 3, 2017
Messages
1,800
This is a Lua module I use to save and load table states, but it only enables scripts. But I like to make the scripts set my default values.

I2CETState: http://www.mediafire.com/file/3d9dnpicsz5f3ct/I2CETState.lua/file
I2CEHelpers: http://www.mediafire.com/file/jvqx5uupkb2ksy8/I2CEHelpers.lua
I2CETLogger: http://www.mediafire.com/file/8wty0c1ylwzz4hu/I2CETLogger.lua/file
And they all use the MIT licence so you're free to do whatever you want with them.
 
Top