HELP ME: CHANGE ADRESS FROM THE DROPDOWNLIST

Post your topics and discussions here that you can't find a good section for.
Post Reply
anl93
Table Makers
Table Makers
Posts: 276
Joined: Mon May 29, 2017 10:12 am
Reputation: 89

HELP ME: CHANGE ADRESS FROM THE DROPDOWNLIST

Post by anl93 »

Hello veterans,

I have adresses of many things (building adresses of the game and all are static)

Lets Say:
Eador.Exe+1A5D13: Empty
Eador.Exe+1A5D14: Workshop
Eador.Exe+1A5D15: Forge
Eador.Exe+1A5D16: Library
.
.
.
.
.
.
Eador.Exe+1A5E34: Forest Palace

What i want is a dropdaownlist that i choose a building from the list, and hence changing the address of children. So i can edit value from there

Its like:

Parent : Dropdownlist : Choose building
-------------Child: Adress (changed to the value of the dropdown) : Final Value

I hope i made myself clear :D
Otherwise i would be adding 290 lines to the Cheat Table;

Thank you kindly.

User avatar
Send
Table Makers
Table Makers
Posts: 638
Joined: Fri Feb 02, 2018 5:58 pm
Reputation: 413

Re: HELP ME: CHANGE ADRESS FROM THE DROPDOWNLIST

Post by Send »

Header with Address Support?

User avatar
Metanoia
Cheater
Cheater
Posts: 33
Joined: Thu Mar 07, 2024 7:16 pm
Reputation: 29

Re: HELP ME: CHANGE ADRESS FROM THE DROPDOWNLIST

Post by Metanoia »

anl93 wrote:
Thu Jun 06, 2024 8:36 pm
Hello veterans,

I have adresses of many things (building adresses of the game and all are static)

Lets Say:
Eador.Exe+1A5D13: Empty
Eador.Exe+1A5D14: Workshop
Eador.Exe+1A5D15: Forge
Eador.Exe+1A5D16: Library
.
.
.
.
.
.
Eador.Exe+1A5E34: Forest Palace

What i want is a dropdaownlist that i choose a building from the list, and hence changing the address of children. So i can edit value from there

Its like:

Parent : Dropdownlist : Choose building
-------------Child: Adress (changed to the value of the dropdown) : Final Value

I hope i made myself clear :D
Otherwise i would be adding 290 lines to the Cheat Table;

Thank you kindly.

Code: Select all

<?xml version="1.0" encoding="utf-8"?>
<CheatTable>
  <CheatEntries>
    <CheatEntry>
      <ID>9</ID>
      <Description>"I dont have that game so i had to do this. Click this to test but when you modify it for your table just ignore this scirpt."</Description>
      <Options moHideChildren="1"/>
      <LastState/>
      <VariableType>Auto Assembler Script</VariableType>
      <AssemblerScript>{$Lua}
if syntaxcheck then return end
[ENABLE]


-- You dont need any of this i just dont have that game so i cant test i had to allocate my own memroy and shit to test so just ingnore all this.


local testMem = AllocateMemory(0x1000)
registerSymbol("pBuilding",testMem)
writeQword("pBuilding",getAddressSafe('pBuilding+80')) writeString('pBuilding+88',"This is the WorkShop")
writeQword("pBuilding+8",getAddressSafe('pBuilding+160')) writeString('pBuilding+168',"This is the Forge")
local CurBuildingMemrec = AddressList.getMemoryRecordByDescription('Current Building')
local ad = getAddressSafe('pBuilding')
local building1,building2 = string.format("%X",ad+0x80), string.format("%X",ad+0x160)
local strRep1, strRep2 = 16-#tostring(building1), 16-#tostring(building2)

CurBuildingMemrec.DropDownList.Text =
[[
]]..string.rep('0',strRep1)..building1..[[:Workshop
]]..string.rep('0',strRep2)..building2..[[:Forge
]]

[DISABLE]
deAlloc(getAddressSafe('pBuilding'))
</AssemblerScript>
      <CheatEntries>
        <CheatEntry>
          <ID>6</ID>
          <Description>"Building"</Description>
          <Options moHideChildren="1"/>
          <LastState Value="" RealAddress="FF414141FF414141"/>
          <ShowAsSigned>0</ShowAsSigned>
          <GroupHeader>1</GroupHeader>
          <Address>[pBuilding]</Address>
          <CheatEntries>
            <CheatEntry>
              <ID>7</ID>
              <Description>"Current Building"</Description>
              <DropDownList ReadOnly="1" DescriptionOnly="1" DisplayValueAsItem="1">0000000002C70080:Workshop
0000000002C70160:Forge
</DropDownList>
              <ShowAsHex>1</ShowAsHex>
              <ShowAsSigned>0</ShowAsSigned>
              <VariableType>8 Bytes</VariableType>
              <Address>pBuilding</Address>
            </CheatEntry>
            <CheatEntry>
              <ID>8</ID>
              <Description>"No description"</Description>
              <ShowAsSigned>0</ShowAsSigned>
              <VariableType>String</VariableType>
              <Length>36</Length>
              <Unicode>0</Unicode>
              <CodePage>0</CodePage>
              <ZeroTerminate>1</ZeroTerminate>
              <Address>+8</Address>
            </CheatEntry>
          </CheatEntries>
        </CheatEntry>
      </CheatEntries>
    </CheatEntry>
  </CheatEntries>
</CheatTable>

User avatar
Metanoia
Cheater
Cheater
Posts: 33
Joined: Thu Mar 07, 2024 7:16 pm
Reputation: 29

Re: HELP ME: CHANGE ADRESS FROM THE DROPDOWNLIST

Post by Metanoia »

Metanoia wrote:
Fri Jun 07, 2024 4:40 am
anl93 wrote:
Thu Jun 06, 2024 8:36 pm
Hello veterans,

I have adresses of many things (building adresses of the game and all are static)

Lets Say:
Eador.Exe+1A5D13: Empty
Eador.Exe+1A5D14: Workshop
Eador.Exe+1A5D15: Forge
Eador.Exe+1A5D16: Library
.
.
.
.
.
.
Eador.Exe+1A5E34: Forest Palace

What i want is a dropdaownlist that i choose a building from the list, and hence changing the address of children. So i can edit value from there

Its like:

Parent : Dropdownlist : Choose building
-------------Child: Adress (changed to the value of the dropdown) : Final Value

I hope i made myself clear :D
Otherwise i would be adding 290 lines to the Cheat Table;

Thank you kindly.

Code: Select all

<?xml version="1.0" encoding="utf-8"?>
<CheatTable>
  <CheatEntries>
    <CheatEntry>
      <ID>9</ID>
      <Description>"I dont have that game so i had to do this. Click this to test but when you modify it for your table just ignore this scirpt."</Description>
      <Options moHideChildren="1"/>
      <LastState/>
      <VariableType>Auto Assembler Script</VariableType>
      <AssemblerScript>{$Lua}
if syntaxcheck then return end
[ENABLE]


-- You dont need any of this i just dont have that game so i cant test i had to allocate my own memroy and shit to test so just ingnore all this.


local testMem = AllocateMemory(0x1000)
registerSymbol("pBuilding",testMem)
writeQword("pBuilding",getAddressSafe('pBuilding+80')) writeString('pBuilding+88',"This is the WorkShop")
writeQword("pBuilding+8",getAddressSafe('pBuilding+160')) writeString('pBuilding+168',"This is the Forge")
local CurBuildingMemrec = AddressList.getMemoryRecordByDescription('Current Building')
local ad = getAddressSafe('pBuilding')
local building1,building2 = string.format("%X",ad+0x80), string.format("%X",ad+0x160)
local strRep1, strRep2 = 16-#tostring(building1), 16-#tostring(building2)

CurBuildingMemrec.DropDownList.Text =
[[
]]..string.rep('0',strRep1)..building1..[[:Workshop
]]..string.rep('0',strRep2)..building2..[[:Forge
]]

[DISABLE]
deAlloc(getAddressSafe('pBuilding'))
</AssemblerScript>
      <CheatEntries>
        <CheatEntry>
          <ID>6</ID>
          <Description>"Building"</Description>
          <Options moHideChildren="1"/>
          <LastState Value="" RealAddress="FF414141FF414141"/>
          <ShowAsSigned>0</ShowAsSigned>
          <GroupHeader>1</GroupHeader>
          <Address>[pBuilding]</Address>
          <CheatEntries>
            <CheatEntry>
              <ID>7</ID>
              <Description>"Current Building"</Description>
              <DropDownList ReadOnly="1" DescriptionOnly="1" DisplayValueAsItem="1">0000000002C70080:Workshop
0000000002C70160:Forge
</DropDownList>
              <ShowAsHex>1</ShowAsHex>
              <ShowAsSigned>0</ShowAsSigned>
              <VariableType>8 Bytes</VariableType>
              <Address>pBuilding</Address>
            </CheatEntry>
            <CheatEntry>
              <ID>8</ID>
              <Description>"No description"</Description>
              <ShowAsSigned>0</ShowAsSigned>
              <VariableType>String</VariableType>
              <Length>36</Length>
              <Unicode>0</Unicode>
              <CodePage>0</CodePage>
              <ZeroTerminate>1</ZeroTerminate>
              <Address>+8</Address>
            </CheatEntry>
          </CheatEntries>
        </CheatEntry>
      </CheatEntries>
    </CheatEntry>
  </CheatEntries>
</CheatTable>
Fuck sake I can't delete or edit my post. This is stupid.

I was going to edit it to say I'm tired right now so this is all I could think of. I'll come up with something better if you don't like this way later.

User avatar
Metanoia
Cheater
Cheater
Posts: 33
Joined: Thu Mar 07, 2024 7:16 pm
Reputation: 29

Re: HELP ME: CHANGE ADRESS FROM THE DROPDOWNLIST

Post by Metanoia »

Metanoia wrote:
Fri Jun 07, 2024 4:44 am
Metanoia wrote:
Fri Jun 07, 2024 4:40 am
anl93 wrote:
Thu Jun 06, 2024 8:36 pm
Hello veterans,

I have adresses of many things (building adresses of the game and all are static)

Lets Say:
Eador.Exe+1A5D13: Empty
Eador.Exe+1A5D14: Workshop
Eador.Exe+1A5D15: Forge
Eador.Exe+1A5D16: Library
.
.
.
.
.
.
Eador.Exe+1A5E34: Forest Palace

What i want is a dropdaownlist that i choose a building from the list, and hence changing the address of children. So i can edit value from there

Its like:

Parent : Dropdownlist : Choose building
-------------Child: Adress (changed to the value of the dropdown) : Final Value

I hope i made myself clear :D
Otherwise i would be adding 290 lines to the Cheat Table;

Thank you kindly.

Code: Select all

<?xml version="1.0" encoding="utf-8"?>
<CheatTable>
  <CheatEntries>
    <CheatEntry>
      <ID>9</ID>
      <Description>"I dont have that game so i had to do this. Click this to test but when you modify it for your table just ignore this scirpt."</Description>
      <Options moHideChildren="1"/>
      <LastState/>
      <VariableType>Auto Assembler Script</VariableType>
      <AssemblerScript>{$Lua}
if syntaxcheck then return end
[ENABLE]


-- You dont need any of this i just dont have that game so i cant test i had to allocate my own memroy and shit to test so just ingnore all this.


local testMem = AllocateMemory(0x1000)
registerSymbol("pBuilding",testMem)
writeQword("pBuilding",getAddressSafe('pBuilding+80')) writeString('pBuilding+88',"This is the WorkShop")
writeQword("pBuilding+8",getAddressSafe('pBuilding+160')) writeString('pBuilding+168',"This is the Forge")
local CurBuildingMemrec = AddressList.getMemoryRecordByDescription('Current Building')
local ad = getAddressSafe('pBuilding')
local building1,building2 = string.format("%X",ad+0x80), string.format("%X",ad+0x160)
local strRep1, strRep2 = 16-#tostring(building1), 16-#tostring(building2)

CurBuildingMemrec.DropDownList.Text =
[[
]]..string.rep('0',strRep1)..building1..[[:Workshop
]]..string.rep('0',strRep2)..building2..[[:Forge
]]

[DISABLE]
deAlloc(getAddressSafe('pBuilding'))
</AssemblerScript>
      <CheatEntries>
        <CheatEntry>
          <ID>6</ID>
          <Description>"Building"</Description>
          <Options moHideChildren="1"/>
          <LastState Value="" RealAddress="FF414141FF414141"/>
          <ShowAsSigned>0</ShowAsSigned>
          <GroupHeader>1</GroupHeader>
          <Address>[pBuilding]</Address>
          <CheatEntries>
            <CheatEntry>
              <ID>7</ID>
              <Description>"Current Building"</Description>
              <DropDownList ReadOnly="1" DescriptionOnly="1" DisplayValueAsItem="1">0000000002C70080:Workshop
0000000002C70160:Forge
</DropDownList>
              <ShowAsHex>1</ShowAsHex>
              <ShowAsSigned>0</ShowAsSigned>
              <VariableType>8 Bytes</VariableType>
              <Address>pBuilding</Address>
            </CheatEntry>
            <CheatEntry>
              <ID>8</ID>
              <Description>"No description"</Description>
              <ShowAsSigned>0</ShowAsSigned>
              <VariableType>String</VariableType>
              <Length>36</Length>
              <Unicode>0</Unicode>
              <CodePage>0</CodePage>
              <ZeroTerminate>1</ZeroTerminate>
              <Address>+8</Address>
            </CheatEntry>
          </CheatEntries>
        </CheatEntry>
      </CheatEntries>
    </CheatEntry>
  </CheatEntries>
</CheatTable>
Fuck sake I can't delete or edit my post. This is stupid.

I was going to edit it to say I'm tired right now so this is all I could think of. I'll come up with something better if you don't like this way later.


And after all that I just realized you can just add a drop down list on the header as Send said. Good days, good days.

o_0

anl93
Table Makers
Table Makers
Posts: 276
Joined: Mon May 29, 2017 10:12 am
Reputation: 89

Re: HELP ME: CHANGE ADRESS FROM THE DROPDOWNLIST

Post by anl93 »

@Metanoia here is the table its for:
[Link]
its a free game
My table is on the attachment (iit contains all the dropdaowns - table name is: (Inner Builds)

Thank you.
Attachments
İàäîğ. Ñîòâîğåíèå.CT
(594.14 KiB) Downloaded 9 times

Post Reply

Who is online

Users browsing this forum: No registered users