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 


Need help Making A Trainer

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> Cheat Engine
View previous topic :: View next topic  
Author Message
drgsldr69
How do I cheat?
Reputation: 0

Joined: 10 Jul 2020
Posts: 9

PostPosted: Mon Jul 20, 2020 7:27 am    Post subject: Need help Making A Trainer Reply with quote

Hello there I'm making a trainer for a old sega game using retroarch emulator. The game is Dark Wizard. Found all the values i want, all the pointers etc. which I already have in my trainer. However, how would i go about adding a list of items that can be added to the characters inventory, I have a list of over 500 items and have all the addresses to put them on. but not sure how to go about adding that into the trainer.

I got them all into the CE. got the addresses for each item for each character. 40 characters plus leader and 2 sub leaders. Plus got all the spells for everyone also. I have them all working in my ct file. However no clue how to implement this into the trainer. Cause that would be ALOT of hotkeys to setup.

For example here is the Character 2 slot item list.
Code:
<?xml version="1.0" encoding="utf-8"?>
<CheatTable>
  <CheatEntries>
    <CheatEntry>
      <ID>284</ID>
      <Description>"Char 2 Items"</Description>
      <Options moManualExpandCollapse="1"/>
      <LastState Value="" RealAddress="00000000"/>
      <GroupHeader>1</GroupHeader>
      <CheatEntries>
        <CheatEntry>
          <ID>285</ID>
          <Description>"Char 2 Item1"</Description>
          <DropDownList ReadOnly="1" DescriptionOnly="1">
 00:Short Sword
02:Shinobi Knife
03:Assassin Sword
04:Long Sword
05:Scimitar
06:Broad Sword
07:Great Sword
08:Dragon Sword
09:Sultis Sword
10:traeger
11:Black Sword
12:Silver Sword
13:Slayer
14:Fire Saber
15:Spear
16:Pilum
17:Javalin
18:Glaive
19:Lance
20:Pike
21:Power Spear
22:Partisan
23:Trident
24:Short Bow
25:LG Bow
26:Rap Bow
27:LT XBow
28:Xbow
29:GT Bow
30:Arbalest
31:Elven Bow
32:Wind Shot
33:Stone Axe
34:Hatchet
35:Battle Axe
36:Swift Axe
37:War Axe
38:Halberd
39:Mad Axe
40:Gold Axe
41:Silver Axe
42:Gold Plated Axe
43:Silver Plated Axe
44:Scepter
45:Mace
46:War Mace
47:Maul
48:Flail
49:Morning Star
50:Holy Mace
51:Hobbit Rod
52:Crystal Mace
56:Priests Staff
01:Staff
53:Susan's Staff
54:Wizards Staff
55:Power Staff
57:Sorcerors Staff
58:Living Power Staff
59:Judgement Stick
60:Cloth Armor
61:Leather Armor
62:Heavy Leather Armor
63:Chain Mail
64:Ring Mail
65:Plate Mail
66:Splint Mail
67:Mage Armor
68:Plate Armor
69:Dragon Armor
70:Armor Of Retrinution
71:Gaia Armor
72:Hero Armor
73:Robe
74:Leather Robe
75:Barbarian Robe
76:Holy Cloth
77:Mysterious Robe
78:Angels Robe
79:Holy Robe
80:Priests Robe
81:Ninja Costume
82:Wood Shield
83:Leather Shield
84:Small Shield
85:Large Shield
86:Soldiers Shield
87:Kite Shield
88:Mages Shield
89:Mirror Shield
90:Shadow Shield
91:Ninja Gauntlet
100:Herb
101:Balm
102:Salve
103:Silver Leaf
104:Power Potion
105:Super Power Potion
106:Ston-Skin Potion
107:Steel-Skin Potion
108:Speed Potion
109:Haste Potion
110:Holy Dust
111:Amulet
112:Magic Stone
113:Evil Claw
114:Holy Water
115:Goddess' Teardrops
116:Mirror Of Darkness
117:Eye Of Darkness
118:Goat ?
119:Medusas Head
120:Gorgons Tail
121:Holy Drink
122:Crows Cloak
123:Cursed Ring
124:Athenas Orb
125:Blood Candle
126:Mermans Ship
127:Funeral Bell
128:Marathons Shoes
129:Demon Chime
130:Healing Ring
131:SandCloak Of Dreams
132:Talisman
133:Sharktan Talisman
134:Dragons Ring
135:Flying Robe
136:Flying Saddle
137:Goblet Of Solma
138:Blue Crystal
139:Elf-In-A-Bottle
140:Elf Tears
141:Jewel Of Light
142:Mermaids Harp
143:Fog Chime
144:Fire Staff
145:Water Necklace
146:Water Mirror
147:Grannys Letter
148:Wind Drops
149:Tea
150:Bowl
151:Leather Water Skin
152:Sun Stone
153:Moon Stone
154:Package
155:Old Scroll
156:Statue Of Vulcan
157:Staff Of Light
158:Letter Of Introduction
159:Exorcism Crystal
160:Bracelet
161:Medicine
162:Sinorgs Medicine
163:Kids Shoes
164:Isams Medicine
165:Rosebud Fruit
166:Poison Frog
167:Diar Pot
168:Rest Pot
169:spg Moss
170:Mem Pot
171:Wooden Bowl
172:Magic Water
173:Magic Bracelet
174:Cham Staff
175:Jewelery
176:Kats Ring
177:Mage Ring
178:Bell Don
179:Lav Don
180:Doz Med
181:True Mirror
182:Pine Oil
183:Elf Shoes
184:Elf Mirror
185:Elf Ring
186:Sharktan Whip
187:Repulsion Talisman
188:Attraction Talisman
189:Water Spider
190:Fan Letter
191:Gun Powder
192:Ghost Sythe
193:Hero Sheild
194:Rusty Weapon
195:Deamon Seal


Ok wasn't expecting it to give the list of items with it, but that should give you an ideal of what I'm talking about.
Because it gave the entire item list, thank god i didn't add all 6 item slots, i only posted 1 item slot.

Would LOVE some help here.
Back to top
View user's profile Send private message
drgsldr69
How do I cheat?
Reputation: 0

Joined: 10 Jul 2020
Posts: 9

PostPosted: Tue Jul 21, 2020 7:15 pm    Post subject: Reply with quote

If i can figure out how to do this part correctly and get it into my trainer then i can do the spells also which btw is 88 spells plus the 196 items for each of basically 43 characters
Back to top
View user's profile Send private message
drgsldr69
How do I cheat?
Reputation: 0

Joined: 10 Jul 2020
Posts: 9

PostPosted: Wed Jul 22, 2020 6:15 am    Post subject: Reply with quote

Really going on 3 or 4 days and not one person can give me a hand here?
Ive searched all over google on how to do it to no avail. Ive searched through this forum and others like it to no avail. I ask for help got over 100 views on it, but not one comment, or helpful idea.
Back to top
View user's profile Send private message
ParkourPenguin
I post too much
Reputation: 140

Joined: 06 Jul 2014
Posts: 4300

PostPosted: Wed Jul 22, 2020 10:18 am    Post subject: Reply with quote

I don't know what you want anyone else to tell you. Make a trainer yourself? Maybe a treeview, a listview, some comboboxes or editboxes. Position them with anchors; program everything in Lua.
Read celua.txt for documentation and search these forums for examples.

If you want someone else to design a trainer for you, that's not likely to happen here. Try a third party site.

Alternatively, and in my opinion the best solution: leave it as a table.

_________________
I don't know where I'm going, but I'll figure it out when I get there.
Back to top
View user's profile Send private message
drgsldr69
How do I cheat?
Reputation: 0

Joined: 10 Jul 2020
Posts: 9

PostPosted: Wed Jul 22, 2020 11:56 am    Post subject: Reply with quote

ParkourPenguin wrote:
I don't know what you want anyone else to tell you. Make a trainer yourself? Maybe a treeview, a listview, some comboboxes or editboxes. Position them with anchors; program everything in Lua.
Read celua.txt for documentation and search these forums for examples.


I did search the forums for an example and COULDN'T find one for what i need. Never programmed Lua so not even sure where to start with that. Cheat tables i can make all day long. Ive been hex editing since i was about 10 maybe 11. now im 44. I know some C#, C++, and C+ but have never even tried lua.

ParkourPenguin wrote:

If you want someone else to design a trainer for you, that's not likely to happen here. Try a third party site.


Never asked for that. All im asking for is a hand of figuring out how to get the drop down boxes for each of the items into the trainer.Which i already have made but it wont even compile right keeps giving me an error and not sure why then it vanishes after i use it.


Code:
Error:C:\Program Files\Cheat Engine 7.0\autorun\java.lua:2300: attempt to index a nil value (local 'mfm')



ParkourPenguin wrote:

Alternatively, and in my opinion the best solution: leave it as a table.

I have thought of doing that. And if i cant figure out how to get the dropdown boxes inside the trainer for each slot I just might have to do that.

Now, if you can help GUIDE me in the right direction on getting my trainer to work right and get my item boxes figured out great! but if your just going to be a jerk then dont bother.



Error 01.jpg
 Description:
This is the first error it gives me making my trainer. the second is in the post. plus once loaded the fonts are all cut in half and when you close the trainer it does make it auto deletes itself?
 Filesize:  1020.66 KB
 Viewed:  2128 Time(s)

Error 01.jpg


Back to top
View user's profile Send private message
ParkourPenguin
I post too much
Reputation: 140

Joined: 06 Jul 2014
Posts: 4300

PostPosted: Wed Jul 22, 2020 2:28 pm    Post subject: Reply with quote

If I sound a bit short, it's because I find it annoying when people either don't bother or don't know how to access information that's readily available to them. Read this webpage - specifically the linked section.

CE exposes an API through Lua that allows users to programmatically interact with CE. Part of this API is creating GUIs that act as a front end to trainers. There exists an automatic trainer generator that produces very simple trainers, but if you want anything more advanced, you'll need to create it yourself using Lua and the form designer.
Learn the Lua language first- there's plenty of videos/tutorials/guides online. CE uses Lua 5.3.
Then start learning the stuff CE adds to Lua. Most stuff is documented in celua.txt in the main CE directory.

Learning how to use a search engine (i.e. "site:cheatengine.org") can help you find information faster.

Guides such as this can be old but still have relevant information.
Videos such as this will hold your hand as they walk you through it.
CE wiki on Lua classes (celua.txt is more complete, but the wiki has examples)
CE wiki tutorial on ListView
CEF post w/ CT example
etc.

_________________
I don't know where I'm going, but I'll figure it out when I get there.
Back to top
View user's profile Send private message
drgsldr69
How do I cheat?
Reputation: 0

Joined: 10 Jul 2020
Posts: 9

PostPosted: Wed Jul 22, 2020 6:05 pm    Post subject: Reply with quote

Thank you that was way more helpful. well not the first link but the rest im sure will be. Ya i wasn't asking for anyone to hold my hand, just to guide me in the right direction. just like with my error im getting when i generate the simple trainer. yes i found answers no they didn't help, still get same error. but that's OK. Ill figure it out.

yes i find it annoying also when people don't bother to search for the answers. or just expect everyone else to code the stuff for them.

Maybe i didn't word what i needed correctly, or do the searches correctly. that's on me. I even reworded my OP from how it was when i first made it. yet still didnt get any help or direction.

Heck only reason im even making this trainer is for my mother who has NO clue how to work CE. It is her favorite game, and when she found out i had it on my computer had me install it on hers.

Anyways, thanks for the tips i'll look into them and see what i can come up with.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Cheat Engine Forum Index -> Cheat Engine All times are GMT - 6 Hours
Page 1 of 1

 
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