gametechmods

Robot Arena => General Support => Topic started by: xaXo on June 21, 2010, 04:00:59 PM

Title: Coding question
Post by: xaXo on June 21, 2010, 04:00:59 PM
Hey, is it possible to change the cheatbot2 command :?
I looked in all py scripts, but couldn't find it.
If anyone got some info, please share :P
Title: Re: Coding question
Post by: G.K. on June 21, 2010, 04:02:40 PM
Wrong section, but I'll still answer your questrion.

What are you trying to achieve?
Title: Re: Coding question
Post by: Badnik96 on June 21, 2010, 04:03:23 PM
Maybe you could ask Serge, he's doing stuff to the EXE, which is where the cheats are located.
Title: Re: Coding question
Post by: G.K. on June 21, 2010, 04:04:12 PM
Serge has left for 2 months. It might just be making other compoonents cheatbot2 parts.
Title: Re: Coding question
Post by: Madiaba on June 21, 2010, 04:09:57 PM
X, how do you want to change it?

Title: Re: Coding question
Post by: xaXo on June 22, 2010, 08:21:57 AM
I want to change it to something like 0123456SECRET xD, so that noone can cheat ^^
Title: Re: Coding question
Post by: JoeBlo on June 22, 2010, 09:59:28 AM
you could just delete the cheat parts ?

or edit the part in the component text files from

Code: [Select]
Hidden = 2
to

Code: [Select]
Hidden = 1
0 means normal (or you could have no line)
1 means hidden (no matter what)
2 means cheatbot2 part
Title: Re: Coding question
Post by: xaXo on June 22, 2010, 12:17:06 PM
Hmmm, you wanna help me remove it from over 600 parts? :D ^^
No, i need info on how to change the command :)
Thx P:
Title: Re: Coding question
Post by: Trovaner on June 22, 2010, 02:14:45 PM
All you have to do is open the EXE with a hex editor (after making a copy) then replace the text cheatbot2 with whatever you want. I changed this one's (https://gametechmods.com/uploads/files/RA2_SECRETS4U.zip) password to SECRETS4U but you could easily change it to something else.

If you use the one I uploaded, be sure to have a copy of the original 'Robot Arena 2.exe' just in case. I named it 'Robot Arena 2b.exe' so it won't replace or interfere with anything if you left it in the same directory as the original.
Title: Re: Coding question
Post by: xaXo on June 22, 2010, 02:20:40 PM
Ahh i didnt think of that...
THANK YOUUUU :D
Title: Re: Coding question
Post by: Sparkey98 on June 22, 2010, 02:29:42 PM
Whats the pourpose? are you making a mod?, it would be cool to see a new UI mod...............
Title: Re: Coding question
Post by: G.K. on June 22, 2010, 02:32:20 PM
a hex editor

Like Notepad++?
Title: Re: Coding question
Post by: xaXo on June 22, 2010, 02:41:37 PM
I use that one :)
http://www.chmaas.handshake.de/delphi/freeware/xvi32/xvi32.htm (http://www.chmaas.handshake.de/delphi/freeware/xvi32/xvi32.htm)

Whats the pourpose? are you making a mod?, it would be cool to see a new UI mod...............
Im making RA2 my edition mod ^^ , i modded some of the DSL UI.
The mod is for my site that i will make soon xD
The site gonna be for Bulgarian robot arena players :P
Like this one, but for bulgarians ^^
Title: Re: Coding question
Post by: Madiaba on June 22, 2010, 02:43:40 PM
I changed a couple names of things.  It's not that hard if you want to try (ALWAYS make a BU). 

IDEA: Maybe we should 'map out' the exe,... as we find object or function locations.
Line # and small description(text/vid). :idea2:



*Would love to utilize that Raw_input in other places.....*
 
 
GK: Just google it.  Some are better than others though....(http://www.ollydbg.de/ (http://www.ollydbg.de/))
 
 
 
 EDIT: Oh, thanks, X.
Title: Re: Coding question
Post by: xaXo on June 22, 2010, 03:04:49 PM
NP
And why are you callin me X :S itz creepying me oud :S
Title: Re: Coding question
Post by: Sparkey98 on June 22, 2010, 03:19:30 PM
It's just something we do here, nobody ever gets called by there real name:
Sparkey: Sparkles or Sparkie
G.K.: Jakey
Madiaba: Mad
ACAMS: 'CAMS
Title: Re: Coding question
Post by: xaXo on June 22, 2010, 03:23:09 PM
Okey, i don't know =o
NVM i would never call somebody with false nickname, Spar.
xD ^^
Title: Re: Coding question
Post by: somestrangeguy on June 22, 2010, 03:36:18 PM
Exactly as he said, mine is shortened as SSG. Also congrats, you are now in posession of the GTMs shortest nickname X!
Title: Re: Coding question
Post by: G.K. on June 22, 2010, 03:40:51 PM
G.K.: Jakey

You are the only person to have called me that, and you only did that once.
Title: Re: Coding question
Post by: Sparkey98 on June 22, 2010, 03:42:02 PM
If you say so Jakey.
Title: Re: Coding question
Post by: Trovaner on June 22, 2010, 04:34:18 PM
Like Notepad++?
Thats what I use but if I remember correctly, you need to download the Hex Editor addon.
Title: Re: Coding question
Post by: Sage on June 22, 2010, 05:57:18 PM
everyone always calls me sage... :P
Title: Re: Coding question
Post by: JoeBlo on June 22, 2010, 10:13:58 PM
so sorry, we shall now call you "Sa" so its only 2 letters
Title: Re: Coding question
Post by: Naryar on June 23, 2010, 03:06:57 AM
https://gametechmods.com/RA2wiki/index.php?title=Rule_of_Six (https://gametechmods.com/RA2wiki/index.php?title=Rule_of_Six)
Title: Re: Coding question
Post by: xaXo on June 23, 2010, 06:33:28 AM
LMAO @ Nar.
Actually there is page for this xXDD
Title: Re: Coding question
Post by: Squirrel_Monkey on June 23, 2010, 11:09:52 AM
My new nickname is .
Title: Re: Coding question
Post by: xaXo on June 23, 2010, 11:40:17 AM
Can i call you SQU? XD
Title: Re: Coding question
Post by: G.K. on June 23, 2010, 11:42:10 AM
Call him SM.
Title: Re: Coding question
Post by: Serge on June 23, 2010, 03:02:28 PM
Yes, you can just find "cheatbot2" in the exe and replace it with something else of the same length (or shorter), and pad the rest with 00's. End the string with 00, too.

You MAY try to make it longer, but you can't be sure that you aren't overwriting some critical data.