ok, thanks for the v8 (I confirm that for now it shows the right values, now I can use the new table which is easier to "move"
).
However, I think I have explained myself badly.
My main problem is that: the automation to give the correct address to the symbol "XBC2_1", the AoB (Array of Byte) gives me an error (not specifying which error, but I assume it is simply that it did not find anything).
So at the moment my temporary solution is to look for the value of the money and then subtract "0x7D0" from the address associated with the value of the money.
Script I found on google:
Code: Select all
XBC2_1 = 0x27A69E117F0 - 0x7D0
lastValue=0;
function checkKeys(timer)
if (isKeyPressed(VK_R)) then
if lastValue ~= 1 then
writeQword(address, 1)
lastValue=1
end
else
if lastValue ~= 0 then
writeQword(address, 0)
lastValue=0
end
end
end
t=createTimer(nil)
timer_setInterval(t, 100)
timer_onTimer(t, checkKeys)
timer_setEnabled(t, true)
My "=== XBC2 v2.1.0 [0100E95004038000] === TGC v1.1.0 [0100C9F009F7A000] ==="
lua script version workarround implementation:
Code: Select all
[ENABLE]
//code from here to '[DISABLE]' will be used to enable the cheat
{$lua}
if syntaxcheck then return end -- don't run past this point when adding to table/editing
unregisterSymbol("XBC2_1")
--[[
AoB = AOBScan("?? ?? ?? ?? ?? 00 00 00 41 42 43 44 F3 F3 F3 F3 08 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 48 ?? ?? ?? ?? 00 00 00 33 00 00 00 00 00 00 00 A8 ?? ?? ?? ?? 00 00 00 41 42 43 44 F3 F3 F3 F3 08 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 48 ?? ?? ?? ?? 00 00 00 33 00 00 00 00 00 00 00 ?? ?? ?? ?? ?? 00 00 00 41 42 43 44 F3 F3 F3 F3 08 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 48 ?? ?? ?? ?? 00 00 00 33 00 00 00 00 00 00 00 ?? ?? ?? ?? ?? 00 00 00 41 42 43 44 F3 F3 F3 F3 08 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 48 ?? ?? ?? ?? 00 00 00 33 00 00 00 00 00 00 00 ?? ?? ?? ?? ?? 00 00 00 41 42 43 44 F3 F3 F3 F3 08 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 48 ?? ?? ?? ?? 00 00 00 33 00 00 00 00 00 00 00 ?? ?? ?? ?? ?? 00 00 00 41 42 43 44 F3 F3 F3 F3 08 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 48 ?? ?? ?? ?? 00 00 00 33 00 00 00 00 00 00 00 ?? ?? ?? ?? ?? 00 00 00 41 42 43 44 F3 F3 F3 F3 08 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 48 ?? ?? ?? ?? 00 00 00 33 00 00 00 00 00 00 00 ?? ?? ?? ?? ?? 00 00 00 41 42 43 44 F3 F3 F3 F3 08 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 48 ?? ?? ?? ?? 00 00 00 33 00 00 00 00 00 00 00 ?? ?? ?? ?? ?? 00 00 00 41 42 43 44 F3 F3 F3 F3 08 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 48 ?? ?? ?? ?? 00 00 00 33 00 00 00 00 00 00 00 ?? ?? ?? ?? ?? 00 00 00 41 42 43 44 F3 F3 F3 F3 08 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 48 ?? ?? ?? ?? 00 00 00 33 00 00 00 00 00 00 00 ?? ?? ?? ?? ?? 00 00 00 41 42 43 44 F3 F3 F3 F3 08 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 48 ?? ?? ?? ?? 00 00 00 33 00 00 00 00 00 00 00 ?? ?? ?? ?? ?? 00 00 00 41 42 43 44 F3 F3 F3 F3 08 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 48 ?? ?? ?? ?? 00 00 00 33 00 00 00 00 00 00 00 ?? ?? ?? ?? ?? 00 00 00 41 42 43 44 F3 F3 F3 F3 08 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 48 ?? ?? ?? ?? 00 00 00 33 00 00 00 00 00 00 00 ?? ?? ?? ?? ?? 00 00 00 41 42 43 44 F3 F3 F3 F3 08 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 48 ?? ?? ?? ?? 00 00 00 33 00 00 00 00 00 00 00 ?? ?? ?? ?? ?? 00 00 00 41 42 43 44 F3 F3 F3 F3 08 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 48 ?? ?? ?? ?? 00 00 00 33 00 00 00 00 00 00 00 ?? ?? ?? ?? ?? 00 00 00 41 42 43 44 F3 F3 F3 F3 08 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 48 ?? ?? ?? ?? 00 00 00 33 00 00 00 00 00 00 00 ?? ?? ?? ?? ?? 00 00 00 41 42 43 44 F3 F3 F3 F3 08 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 48 ?? ?? ?? ?? 00 00 00 33 00 00 00 00 00 00 00 ?? ?? ?? ?? ?? 00 00 00 41 42 43 44 F3 F3 F3 F3 08 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 48 ?? ?? ?? ?? 00 00 00 33 00 00 00 00 00 00 00 ?? ?? ?? ?? ?? 00 00 00 41 42 43 44 F3 F3 F3 F3 08 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 48 ?? ?? ?? ?? 00 00 00 33 00 00 00 00 00 00 00 ?? ?? ?? ?? ?? 00 00 00 41 42 43 44 F3 F3 F3 F3 08 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 48 ?? ?? ?? ?? 00 00 00 33 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 41 42 43 44 F3 F3 F3 F3 08 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ?? ?? ?? ?? ?? 00 00 00 33 00 00 00 00 00 00 00 ?? ?? ?? ?? ?? 00 00 00 41 42 43 44 F3 F3 F3 F3 08 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 48 ?? ?? ?? ?? 00 00 00 33 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 41 42 43 44 F3 F3 F3 F3 08 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 48 ?? ?? ?? ?? 00 00 00 33 00 00 00 00 00 00 00 ?? ?? ?? ?? ?? 00 00 00 41 42 43 44 F3 F3 F3 F3 08 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 48 ?? ?? ?? ?? 00 00 00 33 00 00 00 00 00 00 00 ?? ?? ?? ?? ?? 00 00 00 41 42 43 44 F3 F3 F3 F3 08 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 48 ?? ?? ?? ?? 00 00 00 63 00 00 00 00 00 00 00 B8 9F B4 08 00 00 00 00 E0 9F B4 08 00 00 00 00 08 A0 B4 08 00 00 00 00 01 00 00 00 00 00 00 00 68 ?? ?? ?? ?? 00 00 00 00 ?? ?? ?? ?? 00 00 00 00 00 00 00 00 00 00 00 41 42 43 44 00 00 00 00 38 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 48 ?? ?? ?? ?? 00 00 00 83 00 00 00 00 00 00 00 30 AD B4 08 00 00 00 00 58 AD B4 08 00 00 00 00 B0 ?? ?? ?? ?? 00 00 00 E0 ?? ?? ?? ?? 00 00 00 10 ?? ?? ?? ?? 00 00 00 40 ?? ?? ?? ?? 00 00 00 70 ?? ?? ?? ?? 00 00 00 A0 ?? ?? ?? ?? 00 00 00 D0 ?? ?? ?? ?? 00 00 00 00 ?? ?? ?? ?? 00 00 00 00 00 00 00 00 00 00 00 41 42 43 44 00 00 00 00 58 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 48 ?? ?? ?? ?? 00 00 00 33 00 00 00 00 00 00 00 38 ?? ?? ?? ?? 00 00 00 41 42 43 44 F3 F3 F3 F3 08 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 48 ?? ?? ?? ?? 00 00 00 33 00 00 00 00 00 00 00 E8 ?? ?? ?? ?? 00 00 00 41 42 43 44 F3 F3 F3 F3 08 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 48 ?? ?? ?? ?? 00 00 00 33 00 00 00 00 00 00 00 18 ?? ?? ?? ?? 00 00 00 41 42 43 44 F3 F3 F3 F3 08 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 48 ?? ?? ?? ?? 00 00 00 33 00 00 00 00 00 00 00 18 ?? ?? ?? ?? 00 00 00 41 42 43 44 F3 F3 F3 F3 08 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 48 ?? ?? ?? ?? 00 00 00 33 00 00 00 00 00 00 00 58 ?? ?? ?? ?? 00 00 00 41 42 43 44 F3 F3 F3 F3 08 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 48 ?? ?? ?? ?? 00 00 00 33 00 00 00 00 00 00 00 C8 ?? ?? ?? ?? 00 00 00 41 42 43 44 F3 F3 F3 F3 08 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 48 ?? ?? ?? ?? 00 00 00 33 00 00 00 00 00 00 00 78 ?? ?? ?? ?? 00 00 00 41 42 43 44 F3 F3 F3 F3 08 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 48 ?? ?? ?? ?? 00 00 00 33 00 00 00 00 00 00 00 48 ?? ?? ?? ?? 00 00 00 41 42 43 44 F3 F3 F3 F3 08 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 48 ?? ?? ?? ?? 00 00 00 63 00 00 00 00 00 00 00 38 AF B4 08 00 00 00 00 60 AF B4 08 00 00 00 00 88 AF B4 08 00 00 00 00 02 00 00 00 00 00 00 00 68 ?? ?? ?? ?? 00 00 00 70 ?? ?? ?? ?? 00 00 00 00 00 00 00 00 00 00 00 41 42 43 44 00 00 00 00 38 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 48 ?? ?? ?? ?? 00 00 00 43 00 00 00 00 00 00 00 68 3F B5 08 00 00 00 00 01 F3 F3 F3 F3 F3 F3 F3 00 00 00 00 00 00 00 00 41 42 43 44 00 00 00 00 18 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 48 ?? ?? ?? ?? 00 00 00 E3 7B 13 00 00 00 00 00 28 3B B5 08 00 00 00 00 5B A1 03 00 F3 F3 F3 F3 ?? ?? ?? ?? ?? ?? ?? ?? 00 00 00 00 00 00 00 00", "", 1, 4)
if (AoB) then -- check if there are results or not
lngt = AoB.getCount() -- get the AoB array length
registerSymbol("XBC2_1", AoB[0])
AoB.Destroy() -- destroy the array
AoB = nil
else
print("(Error)")
print("Check:")
print("The game is loaded")
print("")
print("Cheat Engine is attached to .exe")
print("Cheat Engine Edit Settings - Scan Settings - MEM_MAPPED enabled")
print("")
end
--]]
XBC2_1 = 0x27A69E117F0 - 0x7D0
lastValue=0;
function checkKeys(timer)
if (isKeyPressed(VK_R)) then
if lastValue ~= 1 then
writeQword(address, 1)
lastValue=1
end
else
if lastValue ~= 0 then
writeQword(address, 0)
lastValue=0
end
end
end
t=createTimer(nil)
timer_setInterval(t, 100)
timer_onTimer(t, checkKeys)
timer_setEnabled(t, true)
{$asm}
[DISABLE]
//code from here till the end of the code will be used to disable the cheat
{$lua}
if syntaxcheck then return end -- don't run past this point when adding to table/editing
unregisterSymbol("XBC2_1")
GetLuaEngine().mOutput.Clear()
{$asm}
I don't understand why the AoB doesn't work.
As I said in the first post, I tried them all (at least the ones I knew).
---------------------------------------------------------------------------
The question of "XBC2_1" "XC2_1" I didn't pay attention to... (because just add "B" from the lua script I use
).
Absolutely, if you have differentiated XC2 with XBC2 it's better and then leave it that way.
I had probably explained myself badly and it was clear that I blamed "REX => NIA" for the "XBC2_1"...BUT NO! I simply found that "bug" (REX => NIA) and the AoB problem.
-----------------------------------------------------------------------------
GO TO END (EDIT1 AND 2) TO THE ANSWER AT THIS STUPID ASK.....
I noticed that in v8 (I don't know for v7 and v6) that the list of things is "finished" while in v5 it is disproportionate and "free".
I can easily add an item, even if it is not added in the game (and maybe it breaks the game too, because I tried to add 3 "collectible" type items and they weren't seen in game, but they stayed there in the editor, and now when I try to trade some treasures [which are NOT part of the "collectible" menu], it tells me: that I have full inventory ... only for that type of NPC [for now]. The accessories and the rest work).
Well, aside from the "game breaker" I caused (now I have removed them with v5 and see what damage it does me ), is it normal that the list is clean in v8?
Also I noticed that the ordering is different (the last item does not match either name or ID).
It also doesn't make sense that an item in the "collectibles" buggers the "treasures" inventory which, at least in the game UI, is separate.
----------------------------------------------------------------------------
Extrass:
AoB:
If I look for an AoB (this is the one from: "> Party Health 1"), same thing with that megalomaniac to activate the cheats.
I tried to look for it both with "" and without "" (I don't know if I had to put the "()" as well as in lua, but I assume that the rounds are for lua coding)
I am not studied in the sector but I have noticed that the address to make everything work always ends with "1020" like: 27A69E117F0 - 7D0 = 27A 69E1
1020, maybe it can be useful to know.
Another thing, in the script "=== Pointers [DO NOT EDIT] ==="
in V5, "Hexadecimal" is checked for the XC2_1 Address menu
This:
-----------------------------------------------------------------------------------------------------------------------------------------------
EDIT1:
Code: Select all
--skip if ID is 0
--if item_id == 0 then goto continue end
Okay, it was this code that hid the list.
Now I have to figure out if having ID 0 between two items is the reason why the inventory is only full for that type of NPC (because the rest of the things are added without problems).
At the moment I fixed a bug where the last item in the "collectibles" was an empty box that made the cursor disappear (moving up or down, which brings you back to the top of the list, the cursor returns).
It was caused by a set Item "ID 500" which does not exist.
However it did not fix the full inventory bug ... I assume I will have to split the data shifting up by hand for the remaining 20 30 items after that "blank" space of "ID 0" .
EDIT2:
I noticed that in the "accessories" section there are some empty spaces between the "Item_id"; I don't understand if it's a "dev bug" in the game, that the items you sell are set to 0 in that slot ID and then leave it to die (not populating the newly reset _id slot by shifting the next one in that free slot) or you have to reach the end and then the game goes to repopulate the slots it finds free starting from the top ...
...
...
I DON'T BELIEVE IT!!!!!!!!!
I FEEL STUPID BUT THE DEV OF THE GAME ARE ALSO PLACED IN IT !!
Basically, I'm stupid, that NPC sell the "Booster" values (justice, mercy etc.), i thinked is a Treasure seller...
If you have "5/5" of these values, you are counted as full Inventory.
But I SAY!: Put in the UI that I have 5/5 of these values and then I can understand that I am already full!?
I got there because I only noticed now, that any items he was selling were for boosters only.
Nothing, at the end of the story I only found an item_id bug (ID 500) which was mostly visual only in the UI. The rest was me who didn't understand how that NPC worked in the game...