View previous topic :: View next topic |
Author |
Message |
itsTUCK3R How do I cheat?
Reputation: 0
Joined: 10 Feb 2011 Posts: 3 Location: Avon, Ohio
|
Posted: Thu Feb 10, 2011 1:03 pm Post subject: Just need a push in the right direction :D |
|
|
Hey guys, I'm pretty new to the whole scripting, memory address, and pointers thing, but I think I have a good grasp on it. I'm trying to make a script for the game "World of Tanks" for my Logitech G-13. I want it to be pretty cool and have some cool features, it'll display health, ammunition, kills...etc. you get the picture. I've been using cheatengine to find the addresses of the information, and I'm struggling a little to find the pointers, but everything is going pretty smooth for only doing this for 2 days lol. I just wanted to know once I have the static pointers can I use them in an LUA script for the G-13? The scripting language seems fairly straight forward and pretty simple, but I just don't know how I would use the addresses in the script to be displayed on the LCD screen.
_________________
Currently learning how to create Logitech G-13 scripts and display the in-game statistics on the LCD screen. |
|
Back to top |
|
 |
Fantasy I post too much
Reputation: 13
Joined: 29 Jul 2007 Posts: 3113
|
Posted: Thu Feb 10, 2011 5:05 pm Post subject: |
|
|
Since I don't know LUA, I can't tell you for sure.
But if it can read from addresses, then sure. Just set the LUA script to read from the pointer address.
It could go something like
address: 0005000C has a value of 100.
Then create a variable that reads from address 0005000C, and displays 0005000C's value on the LCD display.
But again, I don't know if it's that simple, or if it even can be done, since I know nothing of either your Logitech keyboard or the LUA Scripting language. But good luck with it buddy.
This is the wrong section, it should probably be in the General Programming.
*Moved from General Discussion*
http://www.forum.cheatengine.org/viewforum.php?f=125
That section may also become usefull to you.
Welcome to CEF.
Enjoy your time here, and please read through all the stickies and rules, and you should be fine ^^
|
|
Back to top |
|
 |
itsTUCK3R How do I cheat?
Reputation: 0
Joined: 10 Feb 2011 Posts: 3 Location: Avon, Ohio
|
Posted: Thu Feb 10, 2011 7:25 pm Post subject: |
|
|
Sorry about the wrong placement of the thread and thank you for the warm welcome!
Well there are some limitations with it, obviously the LUA programming language isn't the problem, but the limitations come from the G13. However, I figured even with the limitations of the G13 the script that is being run is run on my computer, not the gamepad, so in essence I think I SHOULD be able to have the script pull the in-game information, declare the pointers variables, and have the gamepad just display something like
OutputLCDMessage("HP:" Pointer_HP);
where "Pointer_HP" is the variable or something along those lines. Another thing I am still having issues with is trying to make sense of the pointers. I have no problems isolating the memory addresses in the game, however once I try to find their pointers I end up with 1,000,000+ results every time. I've read the tutorials and help guides but it seems they aren't working in this case. Guess I'll just have to play around with it more :/
_________________
Currently learning how to create Logitech G-13 scripts and display the in-game statistics on the LCD screen. |
|
Back to top |
|
 |
atom0s Moderator
Reputation: 205
Joined: 25 Jan 2006 Posts: 8587 Location: 127.0.0.1
|
|
Back to top |
|
 |
Fantasy I post too much
Reputation: 13
Joined: 29 Jul 2007 Posts: 3113
|
Posted: Fri Feb 11, 2011 3:35 pm Post subject: |
|
|
Sorry Wiccaan xD But as I stated I know nothing of Lua.
The cheat engine tutorial should give you a great basic understanding of how pointers work
|
|
Back to top |
|
 |
itsTUCK3R How do I cheat?
Reputation: 0
Joined: 10 Feb 2011 Posts: 3 Location: Avon, Ohio
|
Posted: Fri Feb 11, 2011 3:37 pm Post subject: |
|
|
Oh no I wasn't talking about having the G-13 in correlation to CE, I was just going to use CE to find the pointer addresses for HP and such. This was my general plan.
1) Use CE to find the memory addresses, then find the pointers.
2) Write down the pointers and then use a Lua script to read that info
3) That script will in-turn post the information on the G-13's LCD screen
So basically CE is just the tool to get me those pointers. The only two problems I'm having are making sense of the 1,000,000+ pointers and then even after I get the pointers I need to figure out how to get my script to read those pointers so they can be posted on the LCD screen.
Quote: |
Another thing I am still having issues with is trying to make sense of the pointers. I have no problems isolating the memory addresses in the game, however once I try to find their pointers I end up with 1,000,000+ results every time. I've read the tutorials and help guides but it seems they aren't working in this case. Guess I'll just have to play around with it more :/ |
Yeah, I've read the articles and none of them have really helped me. I now have a great understanding of what pointers are, basically a "leash" for the information. The memory addresses can roam around in many different areas but if you follow the leash you'll eventually get to the "owner" lol.
_________________
Currently learning how to create Logitech G-13 scripts and display the in-game statistics on the LCD screen. |
|
Back to top |
|
 |
atom0s Moderator
Reputation: 205
Joined: 25 Jan 2006 Posts: 8587 Location: 127.0.0.1
|
Posted: Fri Feb 11, 2011 4:27 pm Post subject: |
|
|
Looking at the PDF for the G13 Lua API, there is no method to read memory with their copy of Lua. Meaning even having the pointers from CE won't do you any good with just their keyboard API. The most you can do with their copy of Lua for their keyboards is alter the mouse and keyboard as well as write to the screen. Other then that you have no access to system API.
_________________
- Retired. |
|
Back to top |
|
 |
tombana Master Cheater
Reputation: 2
Joined: 14 Jun 2007 Posts: 456 Location: The Netherlands
|
Posted: Fri Feb 11, 2011 5:39 pm Post subject: |
|
|
Wiccaan wrote: | Looking at the PDF for the G13 Lua API, there is no method to read memory with their copy of Lua. Meaning even having the pointers from CE won't do you any good with just their keyboard API. The most you can do with their copy of Lua for their keyboards is alter the mouse and keyboard as well as write to the screen. Other then that you have no access to system API. |
@itsTUCK3R: You might be able to make a simple program in C or so that reads the pointers and writes them to a file repeatedly. Then the Lua script can read them from the file. I don't know if the G13 Lua API supports reading from files though.
|
|
Back to top |
|
 |
|