Cheat Engine Forum Index Cheat Engine
The Official Site of Cheat Engine
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 


Unexpected results writing to memory
Goto page 1, 2  Next
 
Post new topic   Reply to topic    Cheat Engine Forum Index -> Cheat Engine Lua Scripting
View previous topic :: View next topic  
Author Message
bknight2602
Grandmaster Cheater
Reputation: 0

Joined: 08 Oct 2012
Posts: 577

PostPosted: Sat Jan 26, 2013 11:27 pm    Post subject: Unexpected results writing to memory Reply with quote

Code:

function CEButton2Click(sender)
local memrec0
local memrec1--Hero
CEButton1Click()
errorOnLookupFailure(false)
addresslist = getAddressList();
memrec1 = addresslist_getMemoryRecordByDescription(addresslist, "Hero Raw Strength (+h1)");
memrec11 = addresslist_getMemoryRecordByDescription(addresslist, "Hero Attack Modifier (+h7)");
herorawstrength = memoryrecord_getAddress(memrec1);--Item in num format
for x = 0, addresslist_getCount(addresslist)-1 do
memrec0 = addresslist_getMemoryRecord(addresslist, x);
  if memrec0 == memrec1 then
    for y = x, x + 4 do--5 gives 100 to raw stats
      memrec10 = addresslist_getMemoryRecord(addresslist, y);
      writeInteger(string.format('%x', memoryrecord_getAddress(memrec10)), 100)
    end;
    for y = x + 6, x + 10 do--11 gives 255 to modifiers
    memrec10 = addresslist_getMemoryRecord(addresslist, y);
      writeInteger(string.format('%x', memoryrecord_getAddress(memrec10)), 255)
    end;
  end;
end;
...

What I'm trying to do is max out stats. The first 6 max at 100 and the next 6 max at 255. The code continues writing the same values to each respective hero. Now the problem is when the code is executed I get unexpected results. I changed the code to just alter the first 5 of each group and still get unexpected results. Look at before and after images.
0x1dac75a
to
0x1dac75e all changed to 100
0x1dac75f remains at 0 (this will ultimately be changed also)
0x1dac760
to
0x1dac764 all changed to 255
0x1dac765 remains at 0 (this will ultimately be changed also)

0x1dac766
0x1dac767 Both changed to 0????

1. Can anyone identify what in the code would change those last two values?
2. When handling table entries are they processed in the way they are presented visually (sometimes not sorted that is)?
3. If the table was completely sorted would code execute sequentually through a sorted list, or does it depend on the sequence of table entry?
Back to top
View user's profile Send private message Yahoo Messenger
DaSpamer
Grandmaster Cheater Supreme
Reputation: 52

Joined: 13 Sep 2011
Posts: 1578

PostPosted: Sun Jan 27, 2013 12:02 am    Post subject: Reply with quote

Tried ur code with random values of Calculator..
This works..
alos you did
for y =x,x+4 this changes only 5 adress, so the 01dac75f didn't change, because it was suppose to be for y=x,x+5 (theres 6 addresses)

And about the second part it changed only 5 addresses (+6 to +10)
but you wanted till the 67s address to be changed if I'm right..
and thats in total 8 addresses
hope I understood you right
Code:
CEButton1Click()
errorOnLookupFailure(faXlse)
addresslist = getAddressList();
memrec1 = addresslist_getMemoryRecordByDescription(addresslist, "Hero Raw Strength (+h1)");
memrec11 = addresslist_getMemoryRecordByDescription(addresslist, "Hero Attack Modifier (+h7)");
herorawstrength = memoryrecord_getAddress(memrec1);--Item in num format
for x = 0, addresslist_getCount(addresslist)-1 do
memrec0 = addresslist_getMemoryRecord(addresslist, x);
  if memrec0 == memrec1 then
    for y = x, x +5 do--5 gives 100 to raw stats
      memrec10 = addresslist_getMemoryRecord(addresslist, y);
      writeInteger(string.format('%x', memoryrecord_getAddress(memrec10)), 100)
    end;
    for y = x + 6, x + 13 do--11 gives 255 to modifiers
    memrec10 = addresslist_getMemoryRecord(addresslist, y);
      writeInteger(string.format('%x', memoryrecord_getAddress(memrec10)), 255)
    end;
  end;
end;


And you picked up the address using its descriptions,
so if you sort out the table everything will be messed up (will change unwanted addresses), its counting X addresses after the memrec0
if you was getting it by ID, then sorting it out won't effect it by any way..

_________________
HEY Hitler
Do you get lazy when making trainers?
Well no more!
My CETrainer will generate it for you in seconds, so you won't get lazy! Very Happy

http://forum.cheatengine.org/viewtopic.php?t=564919
Back to top
View user's profile Send private message
bknight2602
Grandmaster Cheater
Reputation: 0

Joined: 08 Oct 2012
Posts: 577

PostPosted: Sun Jan 27, 2013 7:18 am    Post subject: Reply with quote

Yes, the code was changed to alter only 4 values per loop when the code chaged addresses I wasn't intending to change. So the original was x, x + 5 and x +6, x + 11. The new code changed those addresses not within the loop.
Thanks
Back to top
View user's profile Send private message Yahoo Messenger
bknight2602
Grandmaster Cheater
Reputation: 0

Joined: 08 Oct 2012
Posts: 577

PostPosted: Thu Feb 07, 2013 10:39 pm    Post subject: Re: Unexpected results writing to memory Reply with quote

bknight2602 wrote:
Code:

function CEButton2Click(sender)
local memrec0
local memrec1--Hero
CEButton1Click()
errorOnLookupFailure(false)
addresslist = getAddressList();
memrec1 = addresslist_getMemoryRecordByDescription(addresslist, "Hero Raw Strength (+h1)");
memrec11 = addresslist_getMemoryRecordByDescription(addresslist, "Hero Attack Modifier (+h7)");
herorawstrength = memoryrecord_getAddress(memrec1);--Item in num format
for x = 0, addresslist_getCount(addresslist)-1 do
memrec0 = addresslist_getMemoryRecord(addresslist, x);
  print("Table address for record", x, "is", memrec0);
   if memrec0 == memrec1 then
    for y = x, x + 5 do--5 gives 100 to raw stats
      memrec10 = addresslist_getMemoryRecord(addresslist, y);
  print("Table record", y, "address is" memrec10);
      writeInteger(string.format('%x', memoryrecord_getAddress(memrec10)), 100)
    end;
    for y = x + 6, x + 11 do--11 gives 255 to modifiers
    memrec10 = addresslist_getMemoryRecord(addresslist, y);
      writeInteger(string.format('%x', memoryrecord_getAddress(memrec10)), 255)
    end;
  end;
end;
...

What I'm trying to do is max out stats. The first 6 max at 100 and the next 6 max at 255. The code continues writing the same values to each respective hero. Now the problem is when the code is executed I get unexpected results. I changed the code to just alter the first 5 of each group and still get unexpected results. Look at before and after images.
0x1dac75a
to
0x1dac75f all changed to 100

0x1dac760
to
0x1dac765 all changed to 255

0x1dac766
0x1dac767 Both changed to 0????

1. Can anyone identify what in the code would change those last two values?
2. When handling table entries are they processed in the way they are presented visually (sometimes not sorted that is)?
3. If the table was completely sorted would code execute sequentually through a sorted list, or does it depend on the sequence of table entry?

I added a couple of print statements to get a handle of the problem.
Below is a partial list of the two loops:
x loop
Table address for record 0 is 020D6DD8
...
Table address for record 16 is 020D77D8
y loop
Table record 16 address is 020D77D8
Table record 16 address is 020D77D8
Table record 17 address is 020D7878
Table record 18 address is 020D7918
Table record 19 address is 020D79B8
Table record 20 address is 020D7A58
Table record 21 address is 020D7AF8
Table record 22 address is 020D7B98
Table record 23 address is 020D7C38
Table record 24 address is 020D7CD8
Table record 25 address is 020D7D78
Table record 26 address is 020D7E18
Table record 27 address is 020D7EB8
Table address for record 17 is 020D7878
Table address for record 18 is 020D7918
...
Table address for record 1141 is 02103298
Other than repeating record 16 twice the code executed the 12 steps in the two loops, changing the first 6 to a value of 100 and the second set to a value of 255. However, as in the picture above, two address beyond the 12 steps were changed to 0.
Note the picture represented the two loops only changing 5 of the 6 values. The two additional values were changed to 0 again.
Anyone have a thought as to why the two values changed to 0?
Back to top
View user's profile Send private message Yahoo Messenger
DaSpamer
Grandmaster Cheater Supreme
Reputation: 52

Joined: 13 Sep 2011
Posts: 1578

PostPosted: Fri Feb 08, 2013 3:23 am    Post subject: Reply with quote

Man why to do it so hard? Razz
Just do this
Code:

AddressList = getAddressList()

--Defining your entries in the Cheat Table...
Hero_Raw_Magic_Power   = addresslist_getMemoryRecordByDescription(AddressList, "Hero Raw Magic Power (+h3)")
Hero_Raw_Spirit        = addresslist_getMemoryRecordByDescription(AddressList, "Hero Raw Spirit (+h4)")
--

function Enable()
local Old_Value_Hero_Raw_Magic_Power = memoryrecord_getValue(Hero_Raw_Magic_Power)
local Old_Value_Hero_Raw_Spirit      = memoryrecord_getValue(Hero_Raw_Spirit)
  print("================================================")
  print("Original Value of Hero Raw Magic Power: " ..Old_Value_Hero_Raw_Magic_Power)
  print("Original Value of Hero Raw Spirit: " ..Old_Value_Hero_Raw_Spirit)
  print("================================================")

   print("Editing the values...")
   memoryrecord_setValue(Hero_Raw_Magic_Power, 100)
   memoryrecord_setValue(Hero_Raw_Spirit, 100)
   print("================================================")

 --now gonna print the new values
 local New_Value_Hero_Raw_Magic_Power = memoryrecord_getValue(Hero_Raw_Magic_Power)
 local New_Value_Hero_Raw_Spirit      = memoryrecord_getValue(Hero_Raw_Spirit)

 print("New Value of Hero Raw Magic Power: " ..New_Value_Hero_Raw_Magic_Power)
 print("New Value of Hero Raw Spirit: " ..New_Value_Hero_Raw_Spirit)
 print("================================================")
end


If you want me to write you for all the entries, just PM me with the attachment.. (.CT)

Edit:
Heres the full script for all of the hero stats.. test it and reply if thats what you've been lookin for Razz
Code:

AddressList = getAddressList()

---Defining your entries in the Cheat Table...
--Hero Stats
Hero_Raw_Strength    = addresslist_getMemoryRecordByDescription(AddressList, "Hero Raw Strength (+h1)")
Hero_Raw_Vitality    = addresslist_getMemoryRecordByDescription(AddressList, "Hero Raw Vitality (+h2)")
Hero_Raw_Magic_Power = addresslist_getMemoryRecordByDescription(AddressList, "Hero Raw Magic Power (+h3)")
Hero_Raw_Spirit      = addresslist_getMemoryRecordByDescription(AddressList, "Hero Raw Spirit (+h4)")
Hero_Raw_Dexterity   = addresslist_getMemoryRecordByDescription(AddressList, "Hero Raw Dexterity (+h5)")
Hero_Raw_Luck        = addresslist_getMemoryRecordByDescription(AddressList, "Hero Raw Luck (+h6)")
--

function Enable()
local Old_Value_Hero_Raw_Strength    = memoryrecord_getValue(Hero_Raw_Strength)
local Old_Value_Hero_Raw_Vitality    = memoryrecord_getValue(Hero_Raw_Vitality)
local Old_Value_Hero_Raw_Magic_Power = memoryrecord_getValue(Hero_Raw_Magic_Power)
local Old_Value_Hero_Raw_Spirit      = memoryrecord_getValue(Hero_Raw_Spirit)
local Old_Value_Hero_Raw_Dexterity   = memoryrecord_getValue(Hero_Raw_Dexterity)
local Old_Value_Hero_Raw_Luck        = memoryrecord_getValue(Hero_Raw_Luck)
  print("================================================")
  print("Original Value of Hero Raw Strength: " ..Old_Value_Hero_Raw_Strength)
  print("Original Value of Hero Raw Vitality: " ..Old_Value_Hero_Raw_Vitality)
  print("Original Value of Hero Raw Magic Power: " ..Old_Value_Hero_Raw_Magic_Power)
  print("Original Value of Hero Raw Spirit: " ..Old_Value_Hero_Raw_Spirit)
  print("Original Value of Hero Raw Dexterity: " ..Old_Value_Hero_Raw_Dexterity)
  print("Original Value of Hero Raw Luck: " ..Old_Value_Hero_Raw_Luck)
  print("================================================")

   print("Editing the values...")
   memoryrecord_setValue(Hero_Raw_Strength, 100)
   memoryrecord_setValue(Hero_Raw_Vitality, 100)
   memoryrecord_setValue(Hero_Raw_Magic_Power, 100)
   memoryrecord_setValue(Hero_Raw_Spirit, 100)
   memoryrecord_setValue(Hero_Raw_Dexterity, 100)
   memoryrecord_setValue(Hero_Raw_Luck, 100)
   print("================================================")

 --now gonna print the new values
 local New_Value_Hero_Raw_Strength    = memoryrecord_getValue(Hero_Raw_Strength)
 local New_Value_Hero_Raw_Vitality    = memoryrecord_getValue(Hero_Raw_Vitality)
 local New_Value_Hero_Raw_Magic_Power = memoryrecord_getValue(Hero_Raw_Magic_Power)
 local New_Value_Hero_Raw_Spirit      = memoryrecord_getValue(Hero_Raw_Spirit)
 local New_Value_Hero_Raw_Dexterity   = memoryrecord_getValue(Hero_Raw_Dexterity)
 local New_Value_Hero_Raw_Luck        = memoryrecord_getValue(Hero_Raw_Luck)

  print("New Value of Hero Raw Strength: " ..New_Value_Hero_Raw_Strength)
  print("New Value of Hero Raw Vitality: " ..New_Value_Hero_Raw_Vitality)
  print("New Value of Hero Raw Magic Power: " ..New_Value_Hero_Raw_Magic_Power)
  print("New Value of Hero Raw Spirit: " ..New_Value_Hero_Raw_Spirit)
  print("New Value of Hero Raw Dexterity: " ..New_Value_Hero_Raw_Dexterity)
  print("New Value of Hero Raw Luck: " ..New_Value_Hero_Raw_Luck)
  print("================================================")
end


without print you should get this:
Code:
AddressList = getAddressList()

---Defining your entries in the Cheat Table...
--Hero Stats
Hero_Raw_Strength    = addresslist_getMemoryRecordByDescription(AddressList, "Hero Raw Strength (+h1)")
Hero_Raw_Vitality    = addresslist_getMemoryRecordByDescription(AddressList, "Hero Raw Vitality (+h2)")
Hero_Raw_Magic_Power = addresslist_getMemoryRecordByDescription(AddressList, "Hero Raw Magic Power (+h3)")
Hero_Raw_Spirit      = addresslist_getMemoryRecordByDescription(AddressList, "Hero Raw Spirit (+h4)")
Hero_Raw_Dexterity   = addresslist_getMemoryRecordByDescription(AddressList, "Hero Raw Dexterity (+h5)")
Hero_Raw_Luck        = addresslist_getMemoryRecordByDescription(AddressList, "Hero Raw Luck (+h6)")
--

function Enable()
   memoryrecord_setValue(Hero_Raw_Strength, 100)
   memoryrecord_setValue(Hero_Raw_Vitality, 100)
   memoryrecord_setValue(Hero_Raw_Magic_Power, 100)
   memoryrecord_setValue(Hero_Raw_Spirit, 100)
   memoryrecord_setValue(Hero_Raw_Dexterity, 100)
   memoryrecord_setValue(Hero_Raw_Luck, 100)
end

_________________
HEY Hitler
Do you get lazy when making trainers?
Well no more!
My CETrainer will generate it for you in seconds, so you won't get lazy! Very Happy

http://forum.cheatengine.org/viewtopic.php?t=564919
Back to top
View user's profile Send private message
Dark Byte
Site Admin
Reputation: 457

Joined: 09 May 2003
Posts: 25262
Location: The netherlands

PostPosted: Fri Feb 08, 2013 4:07 am    Post subject: Reply with quote

I'll add some comments to the code and see if I can find it

Code:

function CEButton2Click(sender)
  local memrec0
  local memrec1--Hero
  CEButton1Click()
  errorOnLookupFailure(false)
  addresslist = getAddressList();
  memrec1 = addresslist_getMemoryRecordByDescription(addresslist, "Hero Raw Strength (+h1)");  --set memrec1 to the record containing "Hero Raw Strength (+h1)"
  memrec11 = addresslist_getMemoryRecordByDescription(addresslist, "Hero Attack Modifier (+h7)"); --Not used at all
  herorawstrength = memoryrecord_getAddress(memrec1);--Item in num format

  for x = 0, addresslist_getCount(addresslist)-1 do --for every address in the list
    memrec0 = addresslist_getMemoryRecord(addresslist, x);  --get the memory record at element x
    print("Table address for record", x, "is", memrec0);
    if memrec0 == memrec1 then    --If record[x] is "Hero Raw Strength (+h1)" then
      for y = x, x + 5 do
        --Change the value of record[x], record[x+1], record[x+2], record[x+3], record[x+4] and record[x+5] to 100
        --In other words, change Hero Raw Strength (+h1) and the 5 records under it to 100

        memrec10 = addresslist_getMemoryRecord(addresslist, y);  --get the memory record
        print("Table record", y, "address is" memrec10); --print the lightuserdata pointer to the memoryrecord (pointer to ce's internal memory)
        writeInteger(string.format('%x', memoryrecord_getAddress(memrec10)), 100) --write the value
       
        --tip memoryrecord_setValue(memrec10, "100") might be easier

        --so, it should have worked unless lua has changed and the last one isn't included
       
      end;

      for y = x + 6, x + 11 do--11 gives 255 to modifiers
        --change the value of record[x+6], record[x+7], record[x+8], record[x+9], record[x+10], record [x+11] to 255       
       
        memrec10 = addresslist_getMemoryRecord(addresslist, y);
        writeInteger(string.format('%x', memoryrecord_getAddress(memrec10)), 255)
      end;
    end;
  end;


so no idea why it won't work
But for debugging purposes, instead of
Code:

print("Table record", y, "address is" memrec10);



Which gives pretty useless information and I have no clue how that is even working since the , seems to be missing
try
Code:

print("Table record ".. y..": Description=("..memoryrecord_getDescription(memrec10)..")  Address="..memoryrecord_getAddress(memrec10))

_________________
Do not ask me about online cheats. I don't know any and wont help finding them.

Like my help? Join me on Patreon so i can keep helping
Back to top
View user's profile Send private message MSN Messenger
bknight2602
Grandmaster Cheater
Reputation: 0

Joined: 08 Oct 2012
Posts: 577

PostPosted: Fri Feb 08, 2013 6:38 am    Post subject: Reply with quote

memrec10 is set with memrec10 = addresslist_getMemoryRecord(addresslist, y);
The print statement was intended to see what records were accessed since two additional records values were changed to a value not even use with the procedure with the procedure, but I could have added the description. If you don't know how/why this may occur, I guess I'll have to code single entries as Flashacking suggested.
Back to top
View user's profile Send private message Yahoo Messenger
Dark Byte
Site Admin
Reputation: 457

Joined: 09 May 2003
Posts: 25262
Location: The netherlands

PostPosted: Fri Feb 08, 2013 7:23 am    Post subject: Reply with quote

I know, I was just wondering why there is no comma between "address is" and memrec10 in the print

It's probably something stupid in the for loop. Perhaps an end at the wrong place or something you stripped from the code

Unless memrec1 occurs multiple times in the list (should be impossible) then you should never have received more than 6 print outputs of "Table record ... address is ... "

_________________
Do not ask me about online cheats. I don't know any and wont help finding them.

Like my help? Join me on Patreon so i can keep helping
Back to top
View user's profile Send private message MSN Messenger
DaSpamer
Grandmaster Cheater Supreme
Reputation: 52

Joined: 13 Sep 2011
Posts: 1578

PostPosted: Fri Feb 08, 2013 8:02 am    Post subject: Reply with quote

bknight2602 wrote:
memrec10 is set with memrec10 = addresslist_getMemoryRecord(addresslist, y);
The print statement was intended to see what records were accessed since two additional records values were changed to a value not even use with the procedure with the procedure, but I could have added the description. If you don't know how/why this may occur, I guess I'll have to code single entries as Flashacking suggested.

I use it because it never fails.. and its much easier for me.. copy paste and then just editing 2-3 words..

_________________
HEY Hitler
Do you get lazy when making trainers?
Well no more!
My CETrainer will generate it for you in seconds, so you won't get lazy! Very Happy

http://forum.cheatengine.org/viewtopic.php?t=564919
Back to top
View user's profile Send private message
bknight2602
Grandmaster Cheater
Reputation: 0

Joined: 08 Oct 2012
Posts: 577

PostPosted: Fri Feb 08, 2013 1:54 pm    Post subject: Reply with quote

Dark Byte wrote:
I know, I was just wondering why there is no comma between "address is" and memrec10 in the print

It's probably something stupid in the for loop. Perhaps an end at the wrong place or something you stripped from the code

Unless memrec1 occurs multiple times in the list (should be impossible) then you should never have received more than 6 print outputs of "Table record ... address is ... "

Here it is with your print statement suggestion change, with no snips
Code:
function CEButton2Click(sender)
local memrec0
local memrec1--Hero
local memrec2--Barret
local memrec3--Tifa
local memrec4--Aeris
local memrec5--Nanaki
local memrec6--Yuffie
local memrec7--Cait Sith
local memrec8--Vincent
local memrec9--Cid
local memrec11--Hero
local memrec12--Barret
local memrec13--Tifa
local memrec14--Aeris
local memrec15--Nanaki
local memrec16--Yuffie
local memrec17--Cait Sith
local memrec18--Vincent
local memrec19--Cid
local memrec10
CEButton1Click()
errorOnLookupFailure(false)
addresslist = getAddressList();
memrec1 = addresslist_getMemoryRecordByDescription(addresslist, "Hero Raw Strength (+h1)");
memrec2 = addresslist_getMemoryRecordByDescription(addresslist, "Barret Raw Strength (+h1)");
memrec3 = addresslist_getMemoryRecordByDescription(addresslist, "Tifa Raw Strength (+h1)");
memrec4 = addresslist_getMemoryRecordByDescription(addresslist, "Aeris Raw Strength (+h1)");
memrec5 = addresslist_getMemoryRecordByDescription(addresslist, "Nanaki Raw Strength (+h1)");
memrec6 = addresslist_getMemoryRecordByDescription(addresslist, "Yuffie Raw Strength (+h1)");
memrec7 = addresslist_getMemoryRecordByDescription(addresslist, "Cait Sith Raw Strength (+h1)");
memrec8 = addresslist_getMemoryRecordByDescription(addresslist, "Vincent Raw Strength (+h1)");
memrec9 = addresslist_getMemoryRecordByDescription(addresslist, "Cid Raw Strength (+h1)");
memrec11 = addresslist_getMemoryRecordByDescription(addresslist, "Hero Attack Modifier (+h7)");
memrec12 = addresslist_getMemoryRecordByDescription(addresslist, "Barret Attack Modifier (+h7)");
memrec13 = addresslist_getMemoryRecordByDescription(addresslist, "Tifa Attack Modifier (+h7)");
memrec14 = addresslist_getMemoryRecordByDescription(addresslist, "Aeris Attack Modifier (+h7)");
memrec15 = addresslist_getMemoryRecordByDescription(addresslist, "Nanaki Attack Modifier (+h7)");
memrec16 = addresslist_getMemoryRecordByDescription(addresslist, "Yuffie Attack Modifier (+h7)");
memrec17 = addresslist_getMemoryRecordByDescription(addresslist, "Cait Sith Attack Modifier (+h7)");
memrec18 = addresslist_getMemoryRecordByDescription(addresslist, "Vincent Attack Modifier (+h7)");
memrec19 = addresslist_getMemoryRecordByDescription(addresslist, "Cid Attack Modifier (+h7)");
--print("Hero Raw Strength (+h1)", memrec1);
herorawstrength = memoryrecord_getAddress(memrec1);--Item in num format
--barretrawstrength = memoryrecord_getAddress(memrec1);--Item in num formatv
--tifarawstrength = memoryrecord_getAddress(memrec1);--Item in num format
--aerisrawstrength = memoryrecord_getAddress(memrec1);--Item in num format
--nanakirawstrength = memoryrecord_getAddress(memrec1);--Item in num format
--yuffierawstrength = memoryrecord_getAddress(memrec1);--Item in num format
--caitsithrawstrength = memoryrecord_getAddress(memrec1);--Item in num format
--vincentrawstrength = memoryrecord_getAddress(memrec1);--Item in num format
--cidrawstrength = memoryrecord_getAddress(memrec1);--Item in num format
for x = 0, addresslist_getCount(addresslist)-1 do
memrec0 = addresslist_getMemoryRecord(addresslist, x);
--memrec3 = memoryrecord_getDescription(memrec2);
print("Table record ".. x..": Description=("..memoryrecord_getDescription(memrec0)..")  Address="..memoryrecord_getAddress(memrec0));
  if memrec0 == memrec1 then
    for y = x, x + 5 do--5 gives 100 to raw stats
      memrec10 = addresslist_getMemoryRecord(addresslist, y);
      print("Table record ".. y..": Description=("..memoryrecord_getDescription(memrec10)..")  Address="..memoryrecord_getAddress(memrec10));
--print(memrec4, memoryrecord_getDescription(memrec4), string.format('%x', memoryrecord_getAddress(memrec4)));
      writeInteger(string.format('%x', memoryrecord_getAddress(memrec10)), 100)
    end;
    for y = x + 6, x + 11 do--11 gives 255 to modifiers
      memrec10 = addresslist_getMemoryRecord(addresslist, y);
      print("Table record ".. y..": Description=("..memoryrecord_getDescription(memrec10)..")  Address="..memoryrecord_getAddress(memrec10));
      writeInteger(string.format('%x', memoryrecord_getAddress(memrec10)), 255)
    end;
  end;
end;

All the memrecxx are in there, because I didn't know how the code might work. I was just trying to get by the first one without errors.
CEButton1Click() re-calculates table before the values are edited, so the correct ones get the edit. Not trying to snip anything, just make the post shorter and easier to read.
Back to top
View user's profile Send private message Yahoo Messenger
DaSpamer
Grandmaster Cheater Supreme
Reputation: 52

Joined: 13 Sep 2011
Posts: 1578

PostPosted: Sun Feb 10, 2013 11:52 am    Post subject: Reply with quote

Alright, add this and test it..
I didn't test it yet... its quite simple.. just many lines Razz
Code:
--\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/--
--\/\/\/From below here I edited, (DaSpamer)\/\/\/\/--
--\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/--
--\/\/I didn't test it, so if theres any typos\/\/\/--
--\/\/\/\/\/\/Fix them and test again :D\/\/\/\/\/\/--
--\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/--
AddressList = getAddressList()

---Defining your entries in the Cheat Table...
--Hero Raw Stats
Hero_Raw_Strength        = addresslist_getMemoryRecordByDescription(AddressList, "Hero Raw Strength (+h1)")
Hero_Raw_Vitality        = addresslist_getMemoryRecordByDescription(AddressList, "Hero Raw Vitality (+h2)")
Hero_Raw_Magic_Power     = addresslist_getMemoryRecordByDescription(AddressList, "Hero Raw Magic Power (+h3)")
Hero_Raw_Spirit          = addresslist_getMemoryRecordByDescription(AddressList, "Hero Raw Spirit (+h4)")
Hero_Raw_Dexterity       = addresslist_getMemoryRecordByDescription(AddressList, "Hero Raw Dexterity (+h5)")
Hero_Raw_Luck            = addresslist_getMemoryRecordByDescription(AddressList, "Hero Raw Luck (+h6)")
--Hero Stats Modifier
Hero_Attack_Modifier     = addresslist_getMemoryRecordByDescription(AddressList, "Hero Attack Modifier (+h7)")
Hero_Defense_Modifier    = addresslist_getMemoryRecordByDescription(AddressList, "Hero Defense Modifier (+h8)")
Hero_Magic_Atk__Modifier = addresslist_getMemoryRecordByDescription(AddressList, "Hero Magic Atk Modifier (+h9)")
Hero_Magic_Def_Modifier  = addresslist_getMemoryRecordByDescription(AddressList, "Hero Magic Def Modifier (+hA)")
Hero_Dexterity_Modifier  = addresslist_getMemoryRecordByDescription(AddressList, "Hero Dexterity Modifier (+hB)")
Hero_Luck_Modifier       = addresslist_getMemoryRecordByDescription(AddressList, "Hero Luck Modifier (+hC)")

--Barret Raw Stats
Barret_Raw_Strength        = addresslist_getMemoryRecordByDescription(AddressList, "Barret Raw Strength (+h1)")
Barret_Raw_Vitality        = addresslist_getMemoryRecordByDescription(AddressList, "Barret Raw Vitality (+h2)")
Barret_Raw_Magic_Power     = addresslist_getMemoryRecordByDescription(AddressList, "Barret Raw Magic Power (+h3)")
Barret_Raw_Spirit          = addresslist_getMemoryRecordByDescription(AddressList, "Barret Raw Spirit (+h4)")
Barret_Raw_Dexterity       = addresslist_getMemoryRecordByDescription(AddressList, "Barret Raw Dexterity (+h5)")
Barret_Raw_Luck            = addresslist_getMemoryRecordByDescription(AddressList, "Barret Raw Luck (+h6)")
--Berret Stat Modifier
Barret_Attack_Modifier     = addresslist_getMemoryRecordByDescription(AddressList, "Barret Attack Modifier (+h7)")

--Tifa Raw Stats
Tifa_Raw_Strength        = addresslist_getMemoryRecordByDescription(AddressList, "Tifa Raw Strength (+h1)")
Tifa_Raw_Vitality        = addresslist_getMemoryRecordByDescription(AddressList, "Tifa Raw Vitality (+h2)")
Tifa_Raw_Magic_Power     = addresslist_getMemoryRecordByDescription(AddressList, "Tifa Raw Magic Power (+h3)")
Tifa_Raw_Spirit          = addresslist_getMemoryRecordByDescription(AddressList, "Tifa Raw Spirit (+h4)")
Tifa_Raw_Dexterity       = addresslist_getMemoryRecordByDescription(AddressList, "Tifa Raw Dexterity (+h5)")
Tifa_Raw_Luck            = addresslist_getMemoryRecordByDescription(AddressList, "Tifa Raw Luck (+h6)")
--Tifa Stat Modifier
Tifa_Attack_Modifier     = addresslist_getMemoryRecordByDescription(AddressList, "Tifa Attack Modifier (+h7)")

--Aeris Raw Stats
Aeris_Raw_Strength        = addresslist_getMemoryRecordByDescription(AddressList, "Aeris Raw Strength (+h1)")
Aeris_Raw_Vitality        = addresslist_getMemoryRecordByDescription(AddressList, "Aeris Raw Vitality (+h2)")
Aeris_Raw_Magic_Power     = addresslist_getMemoryRecordByDescription(AddressList, "Aeris Raw Magic Power (+h3)")
Aeris_Raw_Spirit          = addresslist_getMemoryRecordByDescription(AddressList, "Aeris Raw Spirit (+h4)")
Aeris_Raw_Dexterity       = addresslist_getMemoryRecordByDescription(AddressList, "Aeris Raw Dexterity (+h5)")
Aeris_Raw_Luck            = addresslist_getMemoryRecordByDescription(AddressList, "Aeris Raw Luck (+h6)")
--Aeris Stat Modifier
Aeris_Attack_Modifier     = addresslist_getMemoryRecordByDescription(AddressList, "Aeris Attack Modifier (+h7)")

--Nanaki Raw Stats
Nanaki_Raw_Strength        = addresslist_getMemoryRecordByDescription(AddressList, "Nanaki Raw Strength (+h1)")
Nanaki_Raw_Vitality        = addresslist_getMemoryRecordByDescription(AddressList, "Nanaki Raw Vitality (+h2)")
Nanaki_Raw_Magic_Power     = addresslist_getMemoryRecordByDescription(AddressList, "Nanaki Raw Magic Power (+h3)")
Nanaki_Raw_Spirit          = addresslist_getMemoryRecordByDescription(AddressList, "Nanaki Raw Spirit (+h4)")
Nanaki_Raw_Dexterity       = addresslist_getMemoryRecordByDescription(AddressList, "Nanaki Raw Dexterity (+h5)")
Nanaki_Raw_Luck            = addresslist_getMemoryRecordByDescription(AddressList, "Nanaki Raw Luck (+h6)")
--Nanaki Stat Modifier
Nanaki_Attack_Modifier     = addresslist_getMemoryRecordByDescription(AddressList, "Nanaki Attack Modifier (+h7)")

--Yuffie Raw Stats
Yuffie_Raw_Strength        = addresslist_getMemoryRecordByDescription(AddressList, "Yuffie Raw Strength (+h1)")
Yuffie_Raw_Vitality        = addresslist_getMemoryRecordByDescription(AddressList, "Yuffie Raw Vitality (+h2)")
Yuffie_Raw_Magic_Power     = addresslist_getMemoryRecordByDescription(AddressList, "Yuffie Raw Magic Power (+h3)")
Yuffie_Raw_Spirit          = addresslist_getMemoryRecordByDescription(AddressList, "Yuffie Raw Spirit (+h4)")
Yuffie_Raw_Dexterity       = addresslist_getMemoryRecordByDescription(AddressList, "Yuffie Raw Dexterity (+h5)")
Yuffie_Raw_Luck            = addresslist_getMemoryRecordByDescription(AddressList, "Yuffie Raw Luck (+h6)")
--Yuffie Stats Modifier
Yuffie_Attack_Modifier     = addresslist_getMemoryRecordByDescription(AddressList, "Yuffie Attack Modifier (+h7)")
Yuffie_Defense_Modifier    = addresslist_getMemoryRecordByDescription(AddressList, "Yuffie Defense Modifier (+h8)")
Yuffie_Magic_Atk__Modifier = addresslist_getMemoryRecordByDescription(AddressList, "Yuffie Magic Atk Modifier (+h9)")
Yuffie_Magic_Def_Modifier  = addresslist_getMemoryRecordByDescription(AddressList, "Yuffie Magic Def Modifier (+hA)")
Yuffie_Dexterity_Modifier  = addresslist_getMemoryRecordByDescription(AddressList, "Yuffie Dexterity Modifier (+hB)")
Yuffie_Luck_Modifier       = addresslist_getMemoryRecordByDescription(AddressList, "Yuffie Luck Modifier (+hC)") --you had typo inside the .CT you wrote (+hB) so I changed it to (+hC)

--Cait Raw Stats
Cait_Raw_Strength        = addresslist_getMemoryRecordByDescription(AddressList, "Cait Raw Strength (+h1)")
Cait_Raw_Vitality        = addresslist_getMemoryRecordByDescription(AddressList, "Cait Raw Vitality (+h2)")
Cait_Raw_Magic_Power     = addresslist_getMemoryRecordByDescription(AddressList, "Cait Raw Magic Power (+h3)")
Cait_Raw_Spirit          = addresslist_getMemoryRecordByDescription(AddressList, "Cait Raw Spirit (+h4)")
Cait_Raw_Dexterity       = addresslist_getMemoryRecordByDescription(AddressList, "Cait Raw Dexterity (+h5)")
Cait_Raw_Luck            = addresslist_getMemoryRecordByDescription(AddressList, "Cait Raw Luck (+h6)")
--Cait Stat Modifier
Cait_Attack_Modifier     = addresslist_getMemoryRecordByDescription(AddressList, "Cait Attack Modifier (+h7)")

--Vincent Raw Stats
Vincent_Raw_Strength        = addresslist_getMemoryRecordByDescription(AddressList, "Vincent Raw Strength (+h1)")
Vincent_Raw_Vitality        = addresslist_getMemoryRecordByDescription(AddressList, "Vincent Raw Vitality (+h2)")
Vincent_Raw_Magic_Power     = addresslist_getMemoryRecordByDescription(AddressList, "Vincent Raw Magic Power (+h3)")
Vincent_Raw_Spirit          = addresslist_getMemoryRecordByDescription(AddressList, "Vincent Raw Spirit (+h4)")
Vincent_Raw_Dexterity       = addresslist_getMemoryRecordByDescription(AddressList, "Vincent Raw Dexterity (+h5)")
Vincent_Raw_Luck            = addresslist_getMemoryRecordByDescription(AddressList, "Vincent Raw Luck (+h6)")
--Vincent Stat Modifier
Vincent_Attack_Modifier     = addresslist_getMemoryRecordByDescription(AddressList, "Vincent Attack Modifier (+h7)")

--Cid Raw Stats
Cid_Raw_Strength        = addresslist_getMemoryRecordByDescription(AddressList, "Cid Raw Strength (+h1)")
Cid_Raw_Vitality        = addresslist_getMemoryRecordByDescription(AddressList, "Cid Raw Vitality (+h2)")
Cid_Raw_Magic_Power     = addresslist_getMemoryRecordByDescription(AddressList, "Cid Raw Magic Power (+h3)")
Cid_Raw_Spirit          = addresslist_getMemoryRecordByDescription(AddressList, "Cid Raw Spirit (+h4)")
Cid_Raw_Dexterity       = addresslist_getMemoryRecordByDescription(AddressList, "Cid Raw Dexterity (+h5)")
Cid_Raw_Luck            = addresslist_getMemoryRecordByDescription(AddressList, "Cid Raw Luck (+h6)")
--Cid Stat Modifier
Cid_Attack_Modifier     = addresslist_getMemoryRecordByDescription(AddressList, "Cid Attack Modifier (+h7)")

-- Ok Now below are the scripts that sets the value...
--The script below is without printing
--Go to Line 436 to see the function with the printing.. (In your Lua script.. or just go to the second function at the bottom..)

function EditStatsValuesNoPrint()

   --Editing the Raw Stats
   --Hero
   memoryrecord_setValue(Hero_Raw_Strength, 100)
   memoryrecord_setValue(Hero_Raw_Vitality, 100)
   memoryrecord_setValue(Hero_Raw_Magic_Power, 100)
   memoryrecord_setValue(Hero_Raw_Spirit, 100)
   memoryrecord_setValue(Hero_Raw_Dexterity, 100)
   memoryrecord_setValue(Hero_Raw_Luck, 100)
   --Berret
   memoryrecord_setValue(Barret_Raw_Strength, 100)
   memoryrecord_setValue(Barret_Raw_Vitality, 100)
   memoryrecord_setValue(Barret_Raw_Magic_Power, 100)
   memoryrecord_setValue(Barret_Raw_Spirit, 100)
   memoryrecord_setValue(Barret_Raw_Dexterity, 100)
   memoryrecord_setValue(Barret_Raw_Luck, 100)
   --Tifa
   memoryrecord_setValue(Tifa_Raw_Strength, 100)
   memoryrecord_setValue(Tifa_Raw_Vitality, 100)
   memoryrecord_setValue(Tifa_Raw_Magic_Power, 100)
   memoryrecord_setValue(Tifa_Raw_Spirit, 100)
   memoryrecord_setValue(Tifa_Raw_Dexterity, 100)
   memoryrecord_setValue(Tifa_Raw_Luck, 100)
   --Aeris
   memoryrecord_setValue(Aeris_Raw_Strength, 100)
   memoryrecord_setValue(Aeris_Raw_Vitality, 100)
   memoryrecord_setValue(Aeris_Raw_Magic_Power, 100)
   memoryrecord_setValue(Aeris_Raw_Spirit, 100)
   memoryrecord_setValue(Aeris_Raw_Dexterity, 100)
   memoryrecord_setValue(Aeris_Raw_Luck, 100)
   --Nanaki
   memoryrecord_setValue(Nanaki_Raw_Strength, 100)
   memoryrecord_setValue(Nanaki_Raw_Vitality, 100)
   memoryrecord_setValue(Nanaki_Raw_Magic_Power, 100)
   memoryrecord_setValue(Nanaki_Raw_Spirit, 100)
   memoryrecord_setValue(Nanaki_Raw_Dexterity, 100)
   memoryrecord_setValue(Nanaki_Raw_Luck, 100)
   --Yuffie
   memoryrecord_setValue(Yuffie_Raw_Strength, 100)
   memoryrecord_setValue(Yuffie_Raw_Vitality, 100)
   memoryrecord_setValue(Yuffie_Raw_Magic_Power, 100)
   memoryrecord_setValue(Yuffie_Raw_Spirit, 100)
   memoryrecord_setValue(Yuffie_Raw_Dexterity, 100)
   memoryrecord_setValue(Yuffie_Raw_Luck, 100)
   --Cait
   memoryrecord_setValue(Cait_Raw_Strength, 100)
   memoryrecord_setValue(Cait_Raw_Vitality, 100)
   memoryrecord_setValue(Cait_Raw_Magic_Power, 100)
   memoryrecord_setValue(Cait_Raw_Spirit, 100)
   memoryrecord_setValue(Cait_Raw_Dexterity, 100)
   memoryrecord_setValue(Cait_Raw_Luck, 100)
   --Vincent
   memoryrecord_setValue(Vincent_Raw_Strength, 100)
   memoryrecord_setValue(Vincent_Raw_Vitality, 100)
   memoryrecord_setValue(Vincent_Raw_Magic_Power, 100)
   memoryrecord_setValue(Vincent_Raw_Spirit, 100)
   memoryrecord_setValue(Vincent_Raw_Dexterity, 100)
   memoryrecord_setValue(Vincent_Raw_Luck, 100)
   --Cid
   memoryrecord_setValue(Cid_Raw_Strength, 100)
   memoryrecord_setValue(Cid_Raw_Vitality, 100)
   memoryrecord_setValue(Cid_Raw_Magic_Power, 100)
   memoryrecord_setValue(Cid_Raw_Spirit, 100)
   memoryrecord_setValue(Cid_Raw_Dexterity, 100)
   memoryrecord_setValue(Cid_Raw_Luck, 100)
   --Editing the Modifier
   --Hero
   memoryrecord_setValue(Hero_Attack_Modifier, 255)
   memoryrecord_setValue(Hero_Defense_Modifier, 255)
   memoryrecord_setValue(Hero_Magic_Atk__Modifier, 255)
   memoryrecord_setValue(Hero_Magic_Def_Modifier, 255)
   memoryrecord_setValue(Hero_Raw_Dexterity, 255)
   memoryrecord_setValue(Hero_Luck_Modifier, 255)
   --Berret
   memoryrecord_setValue(Berret_Attack_Modifier, 255)
   --Tifa
   memoryrecord_setValue(Tifa_Attack_Modifier, 255)
   --Aeris
   memoryrecord_setValue(Aeris_Attack_Modifier, 255)
   --Nanaki
   memoryrecord_setValue(Nanaki_Attack_Modifier, 255)
   --Yuffie
   memoryrecord_setValue(Yuffie_Attack_Modifier, 255)
   memoryrecord_setValue(Yuffie_Defense_Modifier, 255)
   memoryrecord_setValue(Yuffie_Magic_Atk__Modifier, 255)
   memoryrecord_setValue(Yuffie_Magic_Def_Modifier, 255)
   memoryrecord_setValue(Yuffie_Raw_Dexterity, 255)
   memoryrecord_setValue(Yuffie_Luck_Modifier, 255)
   --Cait
   memoryrecord_setValue(Cait_Attack_Modifier, 255)
   --Vincent
   memoryrecord_setValue(Vincent_Attack_Modifier, 255)
   --Cid
   memoryrecord_setValue(Cid_Attack_Modifier, 255)
end

function EditStatsValuesWithPrint()
--Raw Stats
--Old value of Hero raw stats
local Old_Value_Hero_Raw_Strength    = memoryrecord_getValue(Hero_Raw_Strength)
local Old_Value_Hero_Raw_Vitality    = memoryrecord_getValue(Hero_Raw_Vitality)
local Old_Value_Hero_Raw_Magic_Power = memoryrecord_getValue(Hero_Raw_Magic_Power)
local Old_Value_Hero_Raw_Spirit      = memoryrecord_getValue(Hero_Raw_Spirit)
local Old_Value_Hero_Raw_Dexterity   = memoryrecord_getValue(Hero_Raw_Dexterity)
local Old_Value_Hero_Raw_Luck        = memoryrecord_getValue(Hero_Raw_Luck)
--Old value of Berret raw stats
local Old_Value_Berret_Raw_Strength    = memoryrecord_getValue(Berret_Raw_Strength)
local Old_Value_Berret_Raw_Vitality    = memoryrecord_getValue(Berret_Raw_Vitality)
local Old_Value_Berret_Raw_Magic_Power = memoryrecord_getValue(Berret_Raw_Magic_Power)
local Old_Value_Berret_Raw_Spirit      = memoryrecord_getValue(Berret_Raw_Spirit)
local Old_Value_Berret_Raw_Dexterity   = memoryrecord_getValue(Berret_Raw_Dexterity)
local Old_Value_Berret_Raw_Luck        = memoryrecord_getValue(Berret_Raw_Luck)
--Old value of Tifa raw stats
local Old_Value_Tifa_Raw_Strength    = memoryrecord_getValue(Tifa_Raw_Strength)
local Old_Value_Tifa_Raw_Vitality    = memoryrecord_getValue(Tifa_Raw_Vitality)
local Old_Value_Tifa_Raw_Magic_Power = memoryrecord_getValue(Tifa_Raw_Magic_Power)
local Old_Value_Tifa_Raw_Spirit      = memoryrecord_getValue(Tifa_Raw_Spirit)
local Old_Value_Tifa_Raw_Dexterity   = memoryrecord_getValue(Tifa_Raw_Dexterity)
local Old_Value_Tifa_Raw_Luck        = memoryrecord_getValue(Tifa_Raw_Luck)
--Old value of Aeris raw stats
local Old_Value_Aeris_Raw_Strength    = memoryrecord_getValue(Aeris_Raw_Strength)
local Old_Value_Aeris_Raw_Vitality    = memoryrecord_getValue(Aeris_Raw_Vitality)
local Old_Value_Aeris_Raw_Magic_Power = memoryrecord_getValue(Aeris_Raw_Magic_Power)
local Old_Value_Aeris_Raw_Spirit      = memoryrecord_getValue(Aeris_Raw_Spirit)
local Old_Value_Aeris_Raw_Dexterity   = memoryrecord_getValue(Aeris_Raw_Dexterity)
local Old_Value_Aeris_Raw_Luck        = memoryrecord_getValue(Aeris_Raw_Luck)
--Old value of Nanaki raw stats
local Old_Value_Nanaki_Raw_Strength    = memoryrecord_getValue(Nanaki_Raw_Strength)
local Old_Value_Nanaki_Raw_Vitality    = memoryrecord_getValue(Nanaki_Raw_Vitality)
local Old_Value_Nanaki_Raw_Magic_Power = memoryrecord_getValue(Nanaki_Raw_Magic_Power)
local Old_Value_Nanaki_Raw_Spirit      = memoryrecord_getValue(Nanaki_Raw_Spirit)
local Old_Value_Nanaki_Raw_Dexterity   = memoryrecord_getValue(Nanaki_Raw_Dexterity)
local Old_Value_Nanaki_Raw_Luck        = memoryrecord_getValue(Nanaki_Raw_Luck)
--Old value of Yuffie raw stats
local Old_Value_Yuffie_Raw_Strength    = memoryrecord_getValue(Yuffie_Raw_Strength)
local Old_Value_Yuffie_Raw_Vitality    = memoryrecord_getValue(Yuffie_Raw_Vitality)
local Old_Value_Yuffie_Raw_Magic_Power = memoryrecord_getValue(Yuffie_Raw_Magic_Power)
local Old_Value_Yuffie_Raw_Spirit      = memoryrecord_getValue(Yuffie_Raw_Spirit)
local Old_Value_Yuffie_Raw_Dexterity   = memoryrecord_getValue(Yuffie_Raw_Dexterity)
local Old_Value_Yuffie_Raw_Luck        = memoryrecord_getValue(Yuffie_Raw_Luck)
--Old value of Cait raw stats
local Old_Value_Cait_Raw_Strength    = memoryrecord_getValue(Cait_Raw_Strength)
local Old_Value_Cait_Raw_Vitality    = memoryrecord_getValue(Cait_Raw_Vitality)
local Old_Value_Cait_Raw_Magic_Power = memoryrecord_getValue(Cait_Raw_Magic_Power)
local Old_Value_Cait_Raw_Spirit      = memoryrecord_getValue(Cait_Raw_Spirit)
local Old_Value_Cait_Raw_Dexterity   = memoryrecord_getValue(Cait_Raw_Dexterity)
local Old_Value_Cait_Raw_Luck        = memoryrecord_getValue(Cait_Raw_Luck)
--Old value of Vincent raw stats
local Old_Value_Vincent_Raw_Strength    = memoryrecord_getValue(Vincent_Raw_Strength)
local Old_Value_Vincent_Raw_Vitality    = memoryrecord_getValue(Vincent_Raw_Vitality)
local Old_Value_Vincent_Raw_Magic_Power = memoryrecord_getValue(Vincent_Raw_Magic_Power)
local Old_Value_Vincent_Raw_Spirit      = memoryrecord_getValue(Vincent_Raw_Spirit)
local Old_Value_Vincent_Raw_Dexterity   = memoryrecord_getValue(Vincent_Raw_Dexterity)
local Old_Value_Vincent_Raw_Luck        = memoryrecord_getValue(Vincent_Raw_Luck)
--Old value of Cid raw stats
local Old_Value_Cid_Raw_Strength    = memoryrecord_getValue(Cid_Raw_Strength)
local Old_Value_Cid_Raw_Vitality    = memoryrecord_getValue(Cid_Raw_Vitality)
local Old_Value_Cid_Raw_Magic_Power = memoryrecord_getValue(Cid_Raw_Magic_Power)
local Old_Value_Cid_Raw_Spirit      = memoryrecord_getValue(Cid_Raw_Spirit)
local Old_Value_Cid_Raw_Dexterity   = memoryrecord_getValue(Cid_Raw_Dexterity)
local Old_Value_Cid_Raw_Luck        = memoryrecord_getValue(Cid_Raw_Luck)
--Modifier Stats
--Old value of Hero Modifier stats
local Old_Value_Hero_Attack_Modifier     = memoryrecord_getValue(Hero_Attack_Modifier)
local Old_Value_Hero_Defense_Modifier    = memoryrecord_getValue(Hero_Defense_Modifier)
local Old_Value_Hero_Magic_Atk__Modifier = memoryrecord_getValue(Hero_Magic_Atk__Modifier)
local Old_Value_Hero_Magic_Def_Modifier  = memoryrecord_getValue(Hero_Magic_Def_Modifier)
local Old_Value_Hero_Dexterity_Modifier  = memoryrecord_getValue(Hero_Raw_Dexterity)
local Old_Value_Hero_Luck_Modifier       = memoryrecord_getValue(Hero_Luck_Modifier)
--Old value of Berret Modifier stats
local Old_Value_Berret_Attack_Modifier     = memoryrecord_getValue(Berret_Attack_Modifier)
--Old value of Tifa Modifier stats
local Old_Value_Tifa_Attack_Modifier     = memoryrecord_getValue(Tifa_Attack_Modifier)
--Old value of Aeris Modifier stats
local Old_Value_Aeris_Attack_Modifier     = memoryrecord_getValue(Aeris_Attack_Modifier)
--Old value of Nanaki Modifier stats
local Old_Value_Nanaki_Attack_Modifier     = memoryrecord_getValue(Nanaki_Attack_Modifier)
--Old value of Yuffie Modifier stats
local Old_Value_Yuffie_Attack_Modifier     = memoryrecord_getValue(Yuffie_Attack_Modifier)
local Old_Value_Yuffie_Defense_Modifier    = memoryrecord_getValue(Yuffie_Defense_Modifier)
local Old_Value_Yuffie_Magic_Atk__Modifier = memoryrecord_getValue(Yuffie_Magic_Atk__Modifier)
local Old_Value_Yuffie_Magic_Def_Modifier  = memoryrecord_getValue(Yuffie_Magic_Def_Modifier)
local Old_Value_Yuffie_Dexterity_Modifier  = memoryrecord_getValue(Yuffie_Raw_Dexterity)
local Old_Value_Yuffie_Luck_Modifier       = memoryrecord_getValue(Yuffie_Luck_Modifier)
--Old value of Cait Modifier stats
local Old_Value_Cait_Attack_Modifier     = memoryrecord_getValue(Cait_Attack_Modifier)
--Old value of Vincent Modifier stats
local Old_Value_Vincent_Attack_Modifier     = memoryrecord_getValue(Vincent_Attack_Modifier)
--Old value of Cid Modifier stats
local Old_Value_Cid_Attack_Modifier     = memoryrecord_getValue(Cid_Attack_Modifier)

 print("================================================")
 print("*Hero Stats*")
 print("Original Value of Hero Raw Strength: " ..Old_Value_Hero_Raw_Strength)
 print("Original Value of Hero Raw Vitality: " ..Old_Value_Hero_Raw_Vitality)
 print("Original Value of Hero Raw Magic Power: " ..Old_Value_Hero_Raw_Magic_Power)
 print("Original Value of Hero Raw Spirit: " ..Old_Value_Hero_Raw_Spirit)
 print("Original Value of Hero Raw Dexterity: " ..Old_Value_Hero_Raw_Dexterity)
 print("Original Value of Hero Raw Luck: " ..Old_Value_Hero_Raw_Luck)
 print("Original Value of Hero Strength Modifier: " ..Old_Value_Hero_Attack_Modifier)
 print("Original Value of Hero Vitality Modifier: " ..Old_Value_Hero_Defense_Modifier)
 print("Original Value of Hero Magic Power Modifier: " ..Old_Value_Hero_Magic_Atk__Modifier)
 print("Original Value of Hero Spirit Modifier: " ..Old_Value_Hero_Magic_Def_Modifier)
 print("Original Value of Hero Dexterity Modifier: " ..Old_Value_Hero_Dexterity_Modifier)
 print("Original Value of Hero Luck Modifier: " ..Old_Value_Hero_Luck_Modifier)
 print("")
 print("*Berret Stats*")
 print("Original Value of Berret Raw Strength: " ..Old_Value_Berret_Raw_Strength)
 print("Original Value of Berret Raw Vitality: " ..Old_Value_Berret_Raw_Vitality)
 print("Original Value of Berret Raw Magic Power: " ..Old_Value_Berret_Raw_Magic_Power)
 print("Original Value of Berret Raw Spirit: " ..Old_Value_Berret_Raw_Spirit)
 print("Original Value of Berret Raw Dexterity: " ..Old_Value_Berret_Raw_Dexterity)
 print("Original Value of Berret Raw Luck: " ..Old_Value_Berret_Raw_Luck)
 print("Original Value of Berret Strength Modifier: " ..Old_Value_Berret_Attack_Modifier)
 print("")
 print("*Tifa Stats*")
 print("Original Value of Tifa Raw Strength: " ..Old_Value_Tifa_Raw_Strength)
 print("Original Value of Tifa Raw Vitality: " ..Old_Value_Tifa_Raw_Vitality)
 print("Original Value of Tifa Raw Magic Power: " ..Old_Value_Tifa_Raw_Magic_Power)
 print("Original Value of Tifa Raw Spirit: " ..Old_Value_Tifa_Raw_Spirit)
 print("Original Value of Tifa Raw Dexterity: " ..Old_Value_Tifa_Raw_Dexterity)
 print("Original Value of Tifa Raw Luck: " ..Old_Value_Tifa_Raw_Luck)
 print("Original Value of Tifa Strength Modifier: " ..Old_Value_Tifa_Attack_Modifier)
 print("")
 print("*Aeris Stats*")
 print("Original Value of Aeris Raw Strength: " ..Old_Value_Aeris_Raw_Strength)
 print("Original Value of Aeris Raw Vitality: " ..Old_Value_Aeris_Raw_Vitality)
 print("Original Value of Aeris Raw Magic Power: " ..Old_Value_Aeris_Raw_Magic_Power)
 print("Original Value of Aeris Raw Spirit: " ..Old_Value_Aeris_Raw_Spirit)
 print("Original Value of Aeris Raw Dexterity: " ..Old_Value_Aeris_Raw_Dexterity)
 print("Original Value of Aeris Raw Luck: " ..Old_Value_Aeris_Raw_Luck)
 print("Original Value of Aeris Strength Modifier: " ..Old_Value_Aeris_Attack_Modifier)
 print("")
 print("*Nanaki Stats*")
 print("Original Value of Nanaki Raw Strength: " ..Old_Value_Nanaki_Raw_Strength)
 print("Original Value of Nanaki Raw Vitality: " ..Old_Value_Nanaki_Raw_Vitality)
 print("Original Value of Nanaki Raw Magic Power: " ..Old_Value_Nanaki_Raw_Magic_Power)
 print("Original Value of Nanaki Raw Spirit: " ..Old_Value_Nanaki_Raw_Spirit)
 print("Original Value of Nanaki Raw Dexterity: " ..Old_Value_Nanaki_Raw_Dexterity)
 print("Original Value of Nanaki Raw Luck: " ..Old_Value_Nanaki_Raw_Luck)
 print("Original Value of Nanaki Strength Modifier: " ..Old_Value_Nanaki_Attack_Modifier)
 print("")
 print("*Yuffie Stats*")
 print("Original Value of Yuffie Raw Strength: " ..Old_Value_Yuffie_Raw_Strength)
 print("Original Value of Yuffie Raw Vitality: " ..Old_Value_Yuffie_Raw_Vitality)
 print("Original Value of Yuffie Raw Magic Power: " ..Old_Value_Yuffie_Raw_Magic_Power)
 print("Original Value of Yuffie Raw Spirit: " ..Old_Value_Yuffie_Raw_Spirit)
 print("Original Value of Yuffie Raw Dexterity: " ..Old_Value_Yuffie_Raw_Dexterity)
 print("Original Value of Yuffie Raw Luck: " ..Old_Value_Yuffie_Raw_Luck)
 print("Original Value of Yuffie Strength Modifier: " ..Old_Value_Yuffie_Attack_Modifier)
 print("Original Value of Yuffie Vitality Modifier: " ..Old_Value_Yuffie_Defense_Modifier)
 print("Original Value of Yuffie Magic Power Modifier: " ..Old_Value_Yuffie_Magic_Atk__Modifier)
 print("Original Value of Yuffie Spirit Modifier: " ..Old_Value_Yuffie_Magic_Def_Modifier)
 print("Original Value of Yuffie Dexterity Modifier: " ..Old_Value_Yuffie_Dexterity_Modifier)
 print("Original Value of Yuffie Luck Modifier: " ..Old_Value_Yuffie_Luck_Modifier)
 print("")
 print("*Cait Stats*")
 print("Original Value of Cait Raw Strength: " ..Old_Value_Cait_Raw_Strength)
 print("Original Value of Cait Raw Vitality: " ..Old_Value_Cait_Raw_Vitality)
 print("Original Value of Cait Raw Magic Power: " ..Old_Value_Cait_Raw_Magic_Power)
 print("Original Value of Cait Raw Spirit: " ..Old_Value_Cait_Raw_Spirit)
 print("Original Value of Cait Raw Dexterity: " ..Old_Value_Cait_Raw_Dexterity)
 print("Original Value of Cait Raw Luck: " ..Old_Value_Cait_Raw_Luck)
 print("Original Value of Cait Strength Modifier: " ..Old_Value_Cait_Attack_Modifier)
 print("")
 print("*Vincent Stats*")
 print("Original Value of Vincent Raw Strength: " ..Old_Value_Vincent_Raw_Strength)
 print("Original Value of Vincent Raw Vitality: " ..Old_Value_Vincent_Raw_Vitality)
 print("Original Value of Vincent Raw Magic Power: " ..Old_Value_Vincent_Raw_Magic_Power)
 print("Original Value of Vincent Raw Spirit: " ..Old_Value_Vincent_Raw_Spirit)
 print("Original Value of Vincent Raw Dexterity: " ..Old_Value_Vincent_Raw_Dexterity)
 print("Original Value of Vincent Raw Luck: " ..Old_Value_Vincent_Raw_Luck)
 print("Original Value of Vincent Strength Modifier: " ..Old_Value_Vincent_Attack_Modifier)
 print("")
 print("*Cid Stats*")
 print("Original Value of Cid Raw Strength: " ..Old_Value_Cid_Raw_Strength)
 print("Original Value of Cid Raw Vitality: " ..Old_Value_Cid_Raw_Vitality)
 print("Original Value of Cid Raw Magic Power: " ..Old_Value_Cid_Raw_Magic_Power)
 print("Original Value of Cid Raw Spirit: " ..Old_Value_Cid_Raw_Spirit)
 print("Original Value of Cid Raw Dexterity: " ..Old_Value_Cid_Raw_Dexterity)
 print("Original Value of Cid Raw Luck: " ..Old_Value_Cid_Raw_Luck)
 print("Original Value of Cid Strength Modifier: " ..Old_Value_Cid_Attack_Modifier)
 print("================================================")
 print("Editing the values...")
 print("================================================")


   --Editing the Raw Stats
   --Hero
   memoryrecord_setValue(Hero_Raw_Strength, 100)
   memoryrecord_setValue(Hero_Raw_Vitality, 100)
   memoryrecord_setValue(Hero_Raw_Magic_Power, 100)
   memoryrecord_setValue(Hero_Raw_Spirit, 100)
   memoryrecord_setValue(Hero_Raw_Dexterity, 100)
   memoryrecord_setValue(Hero_Raw_Luck, 100)
   --Berret
   memoryrecord_setValue(Barret_Raw_Strength, 100)
   memoryrecord_setValue(Barret_Raw_Vitality, 100)
   memoryrecord_setValue(Barret_Raw_Magic_Power, 100)
   memoryrecord_setValue(Barret_Raw_Spirit, 100)
   memoryrecord_setValue(Barret_Raw_Dexterity, 100)
   memoryrecord_setValue(Barret_Raw_Luck, 100)
   --Tifa
   memoryrecord_setValue(Tifa_Raw_Strength, 100)
   memoryrecord_setValue(Tifa_Raw_Vitality, 100)
   memoryrecord_setValue(Tifa_Raw_Magic_Power, 100)
   memoryrecord_setValue(Tifa_Raw_Spirit, 100)
   memoryrecord_setValue(Tifa_Raw_Dexterity, 100)
   memoryrecord_setValue(Tifa_Raw_Luck, 100)
   --Aeris
   memoryrecord_setValue(Aeris_Raw_Strength, 100)
   memoryrecord_setValue(Aeris_Raw_Vitality, 100)
   memoryrecord_setValue(Aeris_Raw_Magic_Power, 100)
   memoryrecord_setValue(Aeris_Raw_Spirit, 100)
   memoryrecord_setValue(Aeris_Raw_Dexterity, 100)
   memoryrecord_setValue(Aeris_Raw_Luck, 100)
   --Nanaki
   memoryrecord_setValue(Nanaki_Raw_Strength, 100)
   memoryrecord_setValue(Nanaki_Raw_Vitality, 100)
   memoryrecord_setValue(Nanaki_Raw_Magic_Power, 100)
   memoryrecord_setValue(Nanaki_Raw_Spirit, 100)
   memoryrecord_setValue(Nanaki_Raw_Dexterity, 100)
   memoryrecord_setValue(Nanaki_Raw_Luck, 100)
   --Yuffie
   memoryrecord_setValue(Yuffie_Raw_Strength, 100)
   memoryrecord_setValue(Yuffie_Raw_Vitality, 100)
   memoryrecord_setValue(Yuffie_Raw_Magic_Power, 100)
   memoryrecord_setValue(Yuffie_Raw_Spirit, 100)
   memoryrecord_setValue(Yuffie_Raw_Dexterity, 100)
   memoryrecord_setValue(Yuffie_Raw_Luck, 100)
   --Cait
   memoryrecord_setValue(Cait_Raw_Strength, 100)
   memoryrecord_setValue(Cait_Raw_Vitality, 100)
   memoryrecord_setValue(Cait_Raw_Magic_Power, 100)
   memoryrecord_setValue(Cait_Raw_Spirit, 100)
   memoryrecord_setValue(Cait_Raw_Dexterity, 100)
   memoryrecord_setValue(Cait_Raw_Luck, 100)
   --Vincent
   memoryrecord_setValue(Vincent_Raw_Strength, 100)
   memoryrecord_setValue(Vincent_Raw_Vitality, 100)
   memoryrecord_setValue(Vincent_Raw_Magic_Power, 100)
   memoryrecord_setValue(Vincent_Raw_Spirit, 100)
   memoryrecord_setValue(Vincent_Raw_Dexterity, 100)
   memoryrecord_setValue(Vincent_Raw_Luck, 100)
   --Cid
   memoryrecord_setValue(Cid_Raw_Strength, 100)
   memoryrecord_setValue(Cid_Raw_Vitality, 100)
   memoryrecord_setValue(Cid_Raw_Magic_Power, 100)
   memoryrecord_setValue(Cid_Raw_Spirit, 100)
   memoryrecord_setValue(Cid_Raw_Dexterity, 100)
   memoryrecord_setValue(Cid_Raw_Luck, 100)
   --Editing the Modifier
   --Hero
   memoryrecord_setValue(Hero_Attack_Modifier, 255)
   memoryrecord_setValue(Hero_Defense_Modifier, 255)
   memoryrecord_setValue(Hero_Magic_Atk__Modifier, 255)
   memoryrecord_setValue(Hero_Magic_Def_Modifier, 255)
   memoryrecord_setValue(Hero_Raw_Dexterity, 255)
   memoryrecord_setValue(Hero_Luck_Modifier, 255)
   --Berret
   memoryrecord_setValue(Berret_Attack_Modifier, 255)
   --Tifa
   memoryrecord_setValue(Tifa_Attack_Modifier, 255)
   --Aeris
   memoryrecord_setValue(Aeris_Attack_Modifier, 255)
   --Nanaki
   memoryrecord_setValue(Nanaki_Attack_Modifier, 255)
   --Yuffie
   memoryrecord_setValue(Yuffie_Attack_Modifier, 255)
   memoryrecord_setValue(Yuffie_Defense_Modifier, 255)
   memoryrecord_setValue(Yuffie_Magic_Atk__Modifier, 255)
   memoryrecord_setValue(Yuffie_Magic_Def_Modifier, 255)
   memoryrecord_setValue(Yuffie_Raw_Dexterity, 255)
   memoryrecord_setValue(Yuffie_Luck_Modifier, 255)
   --Cait
   memoryrecord_setValue(Cait_Attack_Modifier, 255)
   --Vincent
   memoryrecord_setValue(Vincent_Attack_Modifier, 255)
   --Cid
   memoryrecord_setValue(Cid_Attack_Modifier, 255)


--Raw Stats
--Old value of Hero raw stats
local Old_Value_Hero_Raw_Strength    = memoryrecord_getValue(Hero_Raw_Strength)
local Old_Value_Hero_Raw_Vitality    = memoryrecord_getValue(Hero_Raw_Vitality)
local Old_Value_Hero_Raw_Magic_Power = memoryrecord_getValue(Hero_Raw_Magic_Power)
local Old_Value_Hero_Raw_Spirit      = memoryrecord_getValue(Hero_Raw_Spirit)
local Old_Value_Hero_Raw_Dexterity   = memoryrecord_getValue(Hero_Raw_Dexterity)
local Old_Value_Hero_Raw_Luck        = memoryrecord_getValue(Hero_Raw_Luck)
--Old value of Berret raw stats
local Old_Value_Berret_Raw_Strength    = memoryrecord_getValue(Berret_Raw_Strength)
local Old_Value_Berret_Raw_Vitality    = memoryrecord_getValue(Berret_Raw_Vitality)
local Old_Value_Berret_Raw_Magic_Power = memoryrecord_getValue(Berret_Raw_Magic_Power)
local Old_Value_Berret_Raw_Spirit      = memoryrecord_getValue(Berret_Raw_Spirit)
local Old_Value_Berret_Raw_Dexterity   = memoryrecord_getValue(Berret_Raw_Dexterity)
local Old_Value_Berret_Raw_Luck        = memoryrecord_getValue(Berret_Raw_Luck)
--Old value of Tifa raw stats
local Old_Value_Tifa_Raw_Strength    = memoryrecord_getValue(Tifa_Raw_Strength)
local Old_Value_Tifa_Raw_Vitality    = memoryrecord_getValue(Tifa_Raw_Vitality)
local Old_Value_Tifa_Raw_Magic_Power = memoryrecord_getValue(Tifa_Raw_Magic_Power)
local Old_Value_Tifa_Raw_Spirit      = memoryrecord_getValue(Tifa_Raw_Spirit)
local Old_Value_Tifa_Raw_Dexterity   = memoryrecord_getValue(Tifa_Raw_Dexterity)
local Old_Value_Tifa_Raw_Luck        = memoryrecord_getValue(Tifa_Raw_Luck)
--Old value of Aeris raw stats
local Old_Value_Aeris_Raw_Strength    = memoryrecord_getValue(Aeris_Raw_Strength)
local Old_Value_Aeris_Raw_Vitality    = memoryrecord_getValue(Aeris_Raw_Vitality)
local Old_Value_Aeris_Raw_Magic_Power = memoryrecord_getValue(Aeris_Raw_Magic_Power)
local Old_Value_Aeris_Raw_Spirit      = memoryrecord_getValue(Aeris_Raw_Spirit)
local Old_Value_Aeris_Raw_Dexterity   = memoryrecord_getValue(Aeris_Raw_Dexterity)
local Old_Value_Aeris_Raw_Luck        = memoryrecord_getValue(Aeris_Raw_Luck)
--Old value of Nanaki raw stats
local Old_Value_Nanaki_Raw_Strength    = memoryrecord_getValue(Nanaki_Raw_Strength)
local Old_Value_Nanaki_Raw_Vitality    = memoryrecord_getValue(Nanaki_Raw_Vitality)
local Old_Value_Nanaki_Raw_Magic_Power = memoryrecord_getValue(Nanaki_Raw_Magic_Power)
local Old_Value_Nanaki_Raw_Spirit      = memoryrecord_getValue(Nanaki_Raw_Spirit)
local Old_Value_Nanaki_Raw_Dexterity   = memoryrecord_getValue(Nanaki_Raw_Dexterity)
local Old_Value_Nanaki_Raw_Luck        = memoryrecord_getValue(Nanaki_Raw_Luck)
--Old value of Yuffie raw stats
local Old_Value_Yuffie_Raw_Strength    = memoryrecord_getValue(Yuffie_Raw_Strength)
local Old_Value_Yuffie_Raw_Vitality    = memoryrecord_getValue(Yuffie_Raw_Vitality)
local Old_Value_Yuffie_Raw_Magic_Power = memoryrecord_getValue(Yuffie_Raw_Magic_Power)
local Old_Value_Yuffie_Raw_Spirit      = memoryrecord_getValue(Yuffie_Raw_Spirit)
local Old_Value_Yuffie_Raw_Dexterity   = memoryrecord_getValue(Yuffie_Raw_Dexterity)
local Old_Value_Yuffie_Raw_Luck        = memoryrecord_getValue(Yuffie_Raw_Luck)
--Old value of Cait raw stats
local Old_Value_Cait_Raw_Strength    = memoryrecord_getValue(Cait_Raw_Strength)
local Old_Value_Cait_Raw_Vitality    = memoryrecord_getValue(Cait_Raw_Vitality)
local Old_Value_Cait_Raw_Magic_Power = memoryrecord_getValue(Cait_Raw_Magic_Power)
local Old_Value_Cait_Raw_Spirit      = memoryrecord_getValue(Cait_Raw_Spirit)
local Old_Value_Cait_Raw_Dexterity   = memoryrecord_getValue(Cait_Raw_Dexterity)
local Old_Value_Cait_Raw_Luck        = memoryrecord_getValue(Cait_Raw_Luck)
--Old value of Vincent raw stats
local Old_Value_Vincent_Raw_Strength    = memoryrecord_getValue(Vincent_Raw_Strength)
local Old_Value_Vincent_Raw_Vitality    = memoryrecord_getValue(Vincent_Raw_Vitality)
local Old_Value_Vincent_Raw_Magic_Power = memoryrecord_getValue(Vincent_Raw_Magic_Power)
local Old_Value_Vincent_Raw_Spirit      = memoryrecord_getValue(Vincent_Raw_Spirit)
local Old_Value_Vincent_Raw_Dexterity   = memoryrecord_getValue(Vincent_Raw_Dexterity)
local Old_Value_Vincent_Raw_Luck        = memoryrecord_getValue(Vincent_Raw_Luck)
--Old value of Cid raw stats
local New_Value_Cid_Raw_Strength    = memoryrecord_getValue(Cid_Raw_Strength)
local New_Value_Cid_Raw_Vitality    = memoryrecord_getValue(Cid_Raw_Vitality)
local New_Value_Cid_Raw_Magic_Power = memoryrecord_getValue(Cid_Raw_Magic_Power)
local New_Value_Cid_Raw_Spirit      = memoryrecord_getValue(Cid_Raw_Spirit)
local New_Value_Cid_Raw_Dexterity   = memoryrecord_getValue(Cid_Raw_Dexterity)
local New_Value_Cid_Raw_Luck        = memoryrecord_getValue(Cid_Raw_Luck)
--Modifier Stats
--New value of Hero Modifier stats
local New_Value_Hero_Attack_Modifier     = memoryrecord_getValue(Hero_Attack_Modifier)
local New_Value_Hero_Defense_Modifier    = memoryrecord_getValue(Hero_Defense_Modifier)
local New_Value_Hero_Magic_Atk__Modifier = memoryrecord_getValue(Hero_Magic_Atk__Modifier)
local New_Value_Hero_Magic_Def_Modifier  = memoryrecord_getValue(Hero_Magic_Def_Modifier)
local New_Value_Hero_Dexterity_Modifier  = memoryrecord_getValue(Hero_Raw_Dexterity)
local New_Value_Hero_Luck_Modifier       = memoryrecord_getValue(Hero_Luck_Modifier)
--New value of Berret Modifier stats
local New_Value_Berret_Attack_Modifier     = memoryrecord_getValue(Berret_Attack_Modifier)
--New value of Tifa Modifier stats
local New_Value_Tifa_Attack_Modifier     = memoryrecord_getValue(Tifa_Attack_Modifier)
--New value of Aeris Modifier stats
local New_Value_Aeris_Attack_Modifier     = memoryrecord_getValue(Aeris_Attack_Modifier)
--New value of Nanaki Modifier stats
local New_Value_Nanaki_Attack_Modifier     = memoryrecord_getValue(Nanaki_Attack_Modifier)
--New value of Yuffie Modifier stats
local New_Value_Yuffie_Attack_Modifier     = memoryrecord_getValue(Yuffie_Attack_Modifier)
local New_Value_Yuffie_Defense_Modifier    = memoryrecord_getValue(Yuffie_Defense_Modifier)
local New_Value_Yuffie_Magic_Atk__Modifier = memoryrecord_getValue(Yuffie_Magic_Atk__Modifier)
local New_Value_Yuffie_Magic_Def_Modifier  = memoryrecord_getValue(Yuffie_Magic_Def_Modifier)
local New_Value_Yuffie_Dexterity_Modifier  = memoryrecord_getValue(Yuffie_Raw_Dexterity)
local New_Value_Yuffie_Luck_Modifier       = memoryrecord_getValue(Yuffie_Luck_Modifier)
--New value of Cait Modifier stats
local New_Value_Cait_Attack_Modifier     = memoryrecord_getValue(Cait_Attack_Modifier)
--New value of Vincent Modifier stats
local New_Value_Vincent_Attack_Modifier     = memoryrecord_getValue(Vincent_Attack_Modifier)
--New value of Cid Modifier stats
local New_Value_Cid_Attack_Modifier     = memoryrecord_getValue(Cid_Attack_Modifier)

 print("*Hero Stats*")
 print("New Value of Hero Raw Strength: " ..New_Value_Hero_Raw_Strength)
 print("New Value of Hero Raw Vitality: " ..New_Value_Hero_Raw_Vitality)
 print("New Value of Hero Raw Magic Power: " ..New_Value_Hero_Raw_Magic_Power)
 print("New Value of Hero Raw Spirit: " ..New_Value_Hero_Raw_Spirit)
 print("New Value of Hero Raw Dexterity: " ..New_Value_Hero_Raw_Dexterity)
 print("New Value of Hero Raw Luck: " ..New_Value_Hero_Raw_Luck)
 print("New Value of Hero Strength Modifier: " ..New_Value_Hero_Attack_Modifier)
 print("New Value of Hero Vitality Modifier: " ..New_Value_Hero_Defense_Modifier)
 print("New Value of Hero Magic Power Modifier: " ..New_Value_Hero_Magic_Atk__Modifier)
 print("New Value of Hero Spirit Modifier: " ..New_Value_Hero_Magic_Def_Modifier)
 print("New Value of Hero Dexterity Modifier: " ..New_Value_Hero_Dexterity_Modifier)
 print("New Value of Hero Luck Modifier: " ..New_Value_Hero_Luck_Modifier)
 print("")
 print("*Berret Stats*")
 print("New Value of Berret Raw Strength: " ..New_Value_Berret_Raw_Strength)
 print("New Value of Berret Raw Vitality: " ..New_Value_Berret_Raw_Vitality)
 print("New Value of Berret Raw Magic Power: " ..New_Value_Berret_Raw_Magic_Power)
 print("New Value of Berret Raw Spirit: " ..New_Value_Berret_Raw_Spirit)
 print("New Value of Berret Raw Dexterity: " ..New_Value_Berret_Raw_Dexterity)
 print("New Value of Berret Raw Luck: " ..New_Value_Berret_Raw_Luck)
 print("New Value of Berret Strength Modifier: " ..New_Value_Berret_Attack_Modifier)
 print("")
 print("*Tifa Stats*")
 print("New Value of Tifa Raw Strength: " ..New_Value_Tifa_Raw_Strength)
 print("New Value of Tifa Raw Vitality: " ..New_Value_Tifa_Raw_Vitality)
 print("New Value of Tifa Raw Magic Power: " ..New_Value_Tifa_Raw_Magic_Power)
 print("New Value of Tifa Raw Spirit: " ..New_Value_Tifa_Raw_Spirit)
 print("New Value of Tifa Raw Dexterity: " ..New_Value_Tifa_Raw_Dexterity)
 print("New Value of Tifa Raw Luck: " ..New_Value_Tifa_Raw_Luck)
 print("New Value of Tifa Strength Modifier: " ..New_Value_Tifa_Attack_Modifier)
 print("")
 print("*Aeris Stats*")
 print("New Value of Aeris Raw Strength: " ..New_Value_Aeris_Raw_Strength)
 print("New Value of Aeris Raw Vitality: " ..New_Value_Aeris_Raw_Vitality)
 print("New Value of Aeris Raw Magic Power: " ..New_Value_Aeris_Raw_Magic_Power)
 print("New Value of Aeris Raw Spirit: " ..New_Value_Aeris_Raw_Spirit)
 print("New Value of Aeris Raw Dexterity: " ..New_Value_Aeris_Raw_Dexterity)
 print("New Value of Aeris Raw Luck: " ..New_Value_Aeris_Raw_Luck)
 print("New Value of Aeris Strength Modifier: " ..New_Value_Aeris_Attack_Modifier)
 print("")
 print("*Nanaki Stats*")
 print("New Value of Nanaki Raw Strength: " ..New_Value_Nanaki_Raw_Strength)
 print("New Value of Nanaki Raw Vitality: " ..New_Value_Nanaki_Raw_Vitality)
 print("New Value of Nanaki Raw Magic Power: " ..New_Value_Nanaki_Raw_Magic_Power)
 print("New Value of Nanaki Raw Spirit: " ..New_Value_Nanaki_Raw_Spirit)
 print("New Value of Nanaki Raw Dexterity: " ..New_Value_Nanaki_Raw_Dexterity)
 print("New Value of Nanaki Raw Luck: " ..New_Value_Nanaki_Raw_Luck)
 print("New Value of Nanaki Strength Modifier: " ..New_Value_Nanaki_Attack_Modifier)
 print("")
 print("*Yuffie Stats*")
 print("New Value of Yuffie Raw Strength: " ..New_Value_Yuffie_Raw_Strength)
 print("New Value of Yuffie Raw Vitality: " ..New_Value_Yuffie_Raw_Vitality)
 print("New Value of Yuffie Raw Magic Power: " ..New_Value_Yuffie_Raw_Magic_Power)
 print("New Value of Yuffie Raw Spirit: " ..New_Value_Yuffie_Raw_Spirit)
 print("New Value of Yuffie Raw Dexterity: " ..New_Value_Yuffie_Raw_Dexterity)
 print("New Value of Yuffie Raw Luck: " ..New_Value_Yuffie_Raw_Luck)
 print("New Value of Yuffie Strength Modifier: " ..New_Value_Yuffie_Attack_Modifier)
 print("New Value of Yuffie Vitality Modifier: " ..New_Value_Yuffie_Defense_Modifier)
 print("New Value of Yuffie Magic Power Modifier: " ..New_Value_Yuffie_Magic_Atk__Modifier)
 print("New Value of Yuffie Spirit Modifier: " ..New_Value_Yuffie_Magic_Def_Modifier)
 print("New Value of Yuffie Dexterity Modifier: " ..New_Value_Yuffie_Dexterity_Modifier)
 print("New Value of Yuffie Luck Modifier: " ..New_Value_Yuffie_Luck_Modifier)
 print("")
 print("*Cait Stats*")
 print("New Value of Cait Raw Strength: " ..New_Value_Cait_Raw_Strength)
 print("New Value of Cait Raw Vitality: " ..New_Value_Cait_Raw_Vitality)
 print("New Value of Cait Raw Magic Power: " ..New_Value_Cait_Raw_Magic_Power)
 print("New Value of Cait Raw Spirit: " ..New_Value_Cait_Raw_Spirit)
 print("New Value of Cait Raw Dexterity: " ..New_Value_Cait_Raw_Dexterity)
 print("New Value of Cait Raw Luck: " ..New_Value_Cait_Raw_Luck)
 print("New Value of Cait Strength Modifier: " ..New_Value_Cait_Attack_Modifier)
 print("")
 print("*Vincent Stats*")
 print("New Value of Vincent Raw Strength: " ..New_Value_Vincent_Raw_Strength)
 print("New Value of Vincent Raw Vitality: " ..New_Value_Vincent_Raw_Vitality)
 print("New Value of Vincent Raw Magic Power: " ..New_Value_Vincent_Raw_Magic_Power)
 print("New Value of Vincent Raw Spirit: " ..New_Value_Vincent_Raw_Spirit)
 print("New Value of Vincent Raw Dexterity: " ..New_Value_Vincent_Raw_Dexterity)
 print("New Value of Vincent Raw Luck: " ..New_Value_Vincent_Raw_Luck)
 print("New Value of Vincent Strength Modifier: " ..New_Value_Vincent_Attack_Modifier)
 print("")
 print("*Cid Stats*")
 print("New Value of Cid Raw Strength: " ..New_Value_Cid_Raw_Strength)
 print("New Value of Cid Raw Vitality: " ..New_Value_Cid_Raw_Vitality)
 print("New Value of Cid Raw Magic Power: " ..New_Value_Cid_Raw_Magic_Power)
 print("New Value of Cid Raw Spirit: " ..New_Value_Cid_Raw_Spirit)
 print("New Value of Cid Raw Dexterity: " ..New_Value_Cid_Raw_Dexterity)
 print("New Value of Cid Raw Luck: " ..New_Value_Cid_Raw_Luck)
 print("New Value of Cid Strength Modifier: " ..New_Value_Cid_Attack_Modifier)
 print("================================================")
end




Edit:
Holycrap just pasted it to notepad++,
the counter says its length is 43,865.
and its 684 lines xD...

If theres Access violation,, then we're screwd Very Happy
if not everything gonna be ok..

_________________
HEY Hitler
Do you get lazy when making trainers?
Well no more!
My CETrainer will generate it for you in seconds, so you won't get lazy! Very Happy

http://forum.cheatengine.org/viewtopic.php?t=564919
Back to top
View user's profile Send private message
bknight2602
Grandmaster Cheater
Reputation: 0

Joined: 08 Oct 2012
Posts: 577

PostPosted: Mon Feb 11, 2013 6:30 am    Post subject: Reply with quote

Perhaps DarkByte can answer this question. I took the code that Flashacking graciously wrote and after doing some minor edits and additions, then more addtions to the table had a finished product that worked. After deleting a lot of lines, mostly commented out lines from my original code, I shut down the lap.
When I started the game later, I recieved an error message "access violation". It took about 30 minutes to find and correct the problem.
The code from Flashacking had these lines (that worked before remember):
Hero_Raw_Strength = addresslist_getMemoryRecordByDescription(Addresslist, "Hero Raw Strength (+h1)")
It was necessary to change them to :
Hero_Raw_Strength = addresslist_getMemoryRecordByDescription(addresslist, "Hero Raw Strength (+h1)")
I know DarkByte will say the code is case sensitive, but why did it work in one instance and not in another?
Back to top
View user's profile Send private message Yahoo Messenger
Dark Byte
Site Admin
Reputation: 457

Joined: 09 May 2003
Posts: 25262
Location: The netherlands

PostPosted: Mon Feb 11, 2013 6:44 am    Post subject: Reply with quote

flashhacking has as first line
Code:

AddressList = getAddressList()

If you don't have that (or changed the case of that) then his code won't work

If you previously ran that code and then changed it, it would still work as "AddressList" would still be defined until you restart ce

_________________
Do not ask me about online cheats. I don't know any and wont help finding them.

Like my help? Join me on Patreon so i can keep helping
Back to top
View user's profile Send private message MSN Messenger
DaSpamer
Grandmaster Cheater Supreme
Reputation: 52

Joined: 13 Sep 2011
Posts: 1578

PostPosted: Mon Feb 11, 2013 7:42 am    Post subject: Reply with quote

Yup, pay attention Smile
_________________
HEY Hitler
Do you get lazy when making trainers?
Well no more!
My CETrainer will generate it for you in seconds, so you won't get lazy! Very Happy

http://forum.cheatengine.org/viewtopic.php?t=564919
Back to top
View user's profile Send private message
bknight2602
Grandmaster Cheater
Reputation: 0

Joined: 08 Oct 2012
Posts: 577

PostPosted: Mon Feb 11, 2013 2:26 pm    Post subject: Reply with quote

Dark Byte wrote:
flashhacking has as first line
Code:

AddressList = getAddressList()

If you don't have that (or changed the case of that) then his code won't work

If you previously ran that code and then changed it, it would still work as "AddressList" would still be defined until you restart ce

In the earlier case there were two statments:
addressList = getAddressList()
and
AddressList = getAddressList()
In that order.
Flashacking code was Hero_Raw_Strength = addresslist_getMemoryRecordByDescription(AddressList, "Hero Raw Strength (+h1)") and this worked(after editing typos, adding code lines and table entries.
The first addressList = getAddressList() was deleted with the deletions mentioned earlier(since I didn't feel it was necessary to have both).
On re-start then:
AddressList = getAddressList()
addresslist_getMemoryRecordByDescription(AddressList, "Hero Raw Strength (+h1)")--gave an access violation.
After tracking down where the code gave an error, found it was the code line addresslist_getMemoryRecordByDescription(AddressList, "Hero Raw Strength (+h1)") and subsequent similar lines.
I changed all of them to addresslist_getMemoryRecordByDescription(addressList, "Hero Raw Strength (+h1)") and have no access violation.

So it seems like
AddressList = getAddressList()
addresslist_getMemoryRecordByDescription(addressList, "Hero Raw Strength (+h1)")--works
Would
addressList = getAddressList()
addresslist_getMemoryRecordByDescription(AddressList, "Hero Raw Strength (+h1)")
work as well? I didn't try it, just wondering, and the question arose.
Back to top
View user's profile Send private message Yahoo Messenger
Display posts from previous:   
Post new topic   Reply to topic    Cheat Engine Forum Index -> Cheat Engine Lua Scripting All times are GMT - 6 Hours
Goto page 1, 2  Next
Page 1 of 2

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group

CE Wiki   IRC (#CEF)   Twitter
Third party websites