View Full Version : Editing AGP.u /UTP/CHOCO
micu_h3x
11th August 2004, 09:52
I posted it months ago, but with no success.
I need some GOOD editor that allows you to edit the SOURCE (i wanna change the mpcheat command to work on officials (level.game.CheatsDisabled - delete it from mpcheat))
I have Choco,UTPT but these wont edit the source.
I have tried to open u_dec files with utpt - no success, u_dec with choco - ok but "Error Reading Function".
u files with utpt - ok, choco -failed to open.
DelfinoM
11th August 2004, 09:53
I am not sure, but I think punkbuster or something scans for edited files, I don't know really.
micu_h3x
11th August 2004, 09:55
It's true, but i am 50% sure it will work.... i didn't just say PB CAN'T DETECT IT ,pb might not detect it.
ohh you're talking about MD5....
fredotnet
11th August 2004, 10:49
as far as i know all the important dot u files are md5 scanned.
even if u manae to do it, dont u think it will still show to the rest of the players that u enable a cheat?
JohnBLucky
11th August 2004, 11:06
I know for a fact you'll be detected on any server running an Md5 Scan, however, this would be nice for non-pb servers that don't have cheats enabled either. I just decompiled the U files with AAOCrypt, then I used UTPT to read the UScript code and find the things I want to change (like HumanController.MPCheat) and then used a regular hex editor which you can find for free on google to edit the file. Then just recompile it with AAOCrypt again. I never got the mpcheat hack to work however, got stuck.
micu_h3x
11th August 2004, 12:30
rgr but i got bug in my aaocrypt - while i'm compiling back to .u ,the aaoc changes only name,it didn't compiled it back :(
JohnBLucky
11th August 2004, 19:33
What were you using to edit the U file after you decompiled it? If you're using Choco I can't help you, as I never got that to work. AAOCrypt should work fine.
Here's a copy of AAOCrypt for the many people who PM'd me about it :)
daenerys
14th September 2004, 13:55
I posted it months ago, but with no success.
I need some GOOD editor that allows you to edit the SOURCE (i wanna change the mpcheat command to work on officials (level.game.CheatsDisabled - delete it from mpcheat))
I have Choco,UTPT but these wont edit the source.
I have tried to open u_dec files with utpt - no success, u_dec with choco - ok but "Error Reading Function".
u files with utpt - ok, choco -failed to open.
Hey, could somebody help mi with the following problem:
I am using UTPT 2.0 beta 5 and it seems that it does not decompile correctly (or sometimes not at all). I am receiving a bunch of errors (stream error, invalid *something* length etc.). Also in "View Object Properties" there is nothing shown.
I AM choosing the right Game (e.g. AA) for loading the .u files.
Does anybody have the UTPT 1.5.1? On the acordero.org site u can download only the beta version, and it sucks (at least for me...). Maybe the 1.5.1 works better?
Or maybe there is a better tool for vieweing the .u files?
thx,
danny
j_kipper
14th September 2004, 14:15
Hey, could somebody help mi with the following problem:
I am using UTPT 2.0 beta 5 and it seems that it does not decompile correctly (or sometimes not at all). I am receiving a bunch of errors (stream error, invalid *something* length etc.). Also in "View Object Properties" there is nothing shown.
I AM choosing the right Game (e.g. AA) for loading the .u files.
Does anybody have the UTPT 1.5.1? On the acordero.org site u can download only the beta version, and it sucks (at least for me...). Maybe the 1.5.1 works better?
Or maybe there is a better tool for vieweing the .u files?
thx,
danny
As you should know that all the .u .tex .aao files and so on are all encrypted, you will see a lock on the top of UTPT, aaocrypt will only part decrypt the .u files thats why when you want to decompile the files with UTPT it will give a stream error, howerver you can read the raw data of the script that you want to read but its all in HEX
HINT: when you want to look at the hex values look for the bytes like 07 & 04 use the Property or Property List & Code statement to highlight the code this will give you the script in hex...................
hope this helps a bit..
If you need a bit more help on editing the agp files then pm me or send me msn name up to you?
daenerys
14th September 2004, 14:46
As you should now that all the .u .tex .aao files and so on are all encrypted, you will see a lock on the top of UTPT, aaocrypt will only part decrypt the .u files thats why when you want to decompile the files with UTPT it will give a stream error, howerver you can read the raw data of the script that you want to read but its all in HEX
HINT: when you want to look at the hex values look for the bytes like 07 & 04 use the Property or Property List & Code statement to highlight the code this will give you the script in hex...................
hope this helps a bit
Thanks kipper,
I know that the AA .u files are encrypted. UTPT 2.0 beta 5 has the decrypter implemented (or at least is that what A. Cordero says).
But I think it is not a decryption problem. I have tried to decompile the Unreal Engine2 Runtime .u files (from the epic site) and still there are problems with UTPT described above, although they are not encrypted... The same happens also with Choco Package Editor....
So I assume that there is no easy way to decompile the .u files but really to manually interprete the bytes....
j_kipper
14th September 2004, 15:06
You can decrypt the agp files with aaocrypt, it will give you the file :- AGP.u to AGP.U_DEC file you can then edit them with a hex editor, note when you are looking in the u_dec file with a hex editor some of the scripts look like rubbish ascii but it is still there, if you now some of the UTscripts or the offset where you need to edit this shouldnt be a problem for you........
are you trying to do UT2k4 files or AAO files just need to know?
For those of you that use choco its not that good i find, i use ultraedit32 much more of a hex editor thats just me lol :)
daenerys
14th September 2004, 15:13
You can decrypt the agp files with aaocrypt, it will give you the file :- AGP.u to AGP.U_DEC file you can then edit them with a hex editor, note when you are looking in the u_dec file with a hex editor some of the scripts look like rubbish ascii but it is still there, if you now some of the UTscripts or the offset where you need to edit this shouldnt be a problem for you........
are you trying to do UT2k4 files or AAO files just need to know?
hey kipper,
basically i need it for AAO. i used UE2R only to check if it is only a problem with AA .u files or not... And it is not, in my opinion....
Also i am not trying to bytehack the .u files, I only want to see whats happening there for another project (-> engine hack, there is another thread here in MPC about it)...
j_kipper
14th September 2004, 15:18
hey kipper,
basically i need it for AAO. i used UE2R only to check if it is only a problem with AA .u files or not... And it is not, in my opinion....
Also i am not trying to bytehack the .u files, I only want to see whats happening there for another project (-> engine hack, there is another thread here in MPC about it)...
So you want to look at the whole scripts for the agp files....hmmm ok i havnt found anything yet as to decompile the files fully but i was looking at UCC to open them cos Ued will open parts of the files all we need is the missing dll files and we can edit all the AAO stuff with UT
daenerys
14th September 2004, 15:27
So you want to look at the whole scripts for the agp files....hmmm ok i havnt found anything yet as to decompile the files fully but i was looking at UCC to open them cos Ued will open parts of the files all we need is the missing dll files and we can edit all the AAO stuff with UT
right. some people are doing well with the native SDK support (not yet public, but i hope it will be soon).... so when we have it, the real work can begin finding out what and how can it be tweaked in order to achieve some nice things (at least for us...). but, as already said, in another thread there are much more stuff about it...
cheers,
danny
j_kipper
14th September 2004, 15:31
No probs ;) me to i hope it will become public it would make my life a bit easier, better than sniffing around the scripts and hex to find what i want lol take care dude............
importdrinker
17th September 2004, 22:08
Okay, so heres how i got to where i am now:
I've never really played sF Hospital much so i thought i'd get to know it by mapping it and analyzing possible ambush/escort locations over time. (yes i know im obsessive) Anyway, i ran into problems cuz portions of the the hospital are not accessible unless there are a minimum # of players in a given server. So my single player tests were limited cuz those areas are closed in single player since there's only one player.
Okay, so i thought hmmmm... heres a great way to get my feet wet with hex editing/map modding.... why don't i try to edit a sfhospital.aao file to open up the areas in question.. BTW im not concerned about PB or MD5 detection since this is mainly academic and for single player tests....
Here's what i did:
1. got copies of UTPT 2.0 beta5, AAOCrypt, and HHD Hex Editor...
2. used UTPT to search sfhospital.aao for variable/class/function names which might refer to the closed area issue or playercount
3. used HHD Hex Editor to search for the strings
4. tried to analyze the hex code to find ways to alter the map to open the closed areas
Heres the questions i have now:
1. am i looking in the right place? seeing has how the map file is static, is it even possible to affect the "switches" which open/close the areas? im thinking it doesnt even contain any conditional statements which could be applicable or editable.
2. if so, should i be looking in the system/game files (.u etc) which loads the map files in and make the changes based on the # of players on the server? if i should be looking elsewhere, can anyone point me in the right direction?
3. am i using the best tools? I've read about decompiling tools in older versions of UTPT but i cant find any in 2.0beta. AAOCrypt didn't seem to work on the sfhospital.aao file (i did edit the .bat file so it would attempt to decrypt it). hex editor seems fine.
I've spent some time on this, and i plan to spend more. Like i said its a good way to get my feet wet. That being said, i wouldn't mind a shove in the right direction if anyone has one to give. Thanks for reading this.... hope im not asking too much...
daenerys
17th September 2004, 22:38
hey,
i dont thing i can help you here, because i am trying to decompile the core.u and engine.u files into unreal scripts. that is what the utpt is supposed to be for, but it doesnt decompile nothing. and this frustrates me very much. i think the utpt beta 5 is not working.
if anyone else can help (me and importdrinker), i would appreciate it....
thanks,
danny
p.s. other editors that i have heard of are
-UnrealEd (in the unreal engine 2 demo runtime: http://udn.epicgames.com/Files/UE2/Runtime/UE2Runtime-22262001_Demo.exe)
-Wotgreal http://www.wotgreal.com/
but i dont have much (positive) experience that i can share :(
3y3w4nn4ch34t
17th September 2004, 22:38
ImportDrinker:> AAOCrypt only works on .U files. I never messed with any map files so I cant really help with your other questions. :ninja:
daenerys:> As far as I know nothing will fully decompile AA"s .U files into uscript.
Rapid
18th September 2004, 00:50
uhmm aaocrypt only encrypt and decrypt aao .u files.... + i do liek this , decrypt it and than use a hex editor , good one www.gamehacking.com > axe 3 is the onei use
xusb
18th September 2004, 05:12
I have been working on this also mpcheat (david hack) can not be done with the tools we have available source code has to be changed hex editor will not do a thing unless you what to spend years trying .This is for the seasoned hacker.
j_kipper
18th September 2004, 17:08
I have been working on this also mpcheat (david hack) can not be done with the tools we have available source code has to be changed hex editor will not do a thing unless you what to spend years trying .This is for the seasoned hacker.
That is not True, this is what you do! use aaocrypt to decript the agp.u file then you will have AGP_U.DEC file you can now edit the agp.u_dec file in a hex editor, in the search look for MPCHEAT or MPCHEAT_GHOST or what ever cheat you want to change, change it then save it then encrypt the file back to agp.u file then put the edited file back in your AA/system folder. Make Backups first.........
hey,
i dont thing i can help you here, because i am trying to decompile the core.u and engine.u files into unreal scripts. that is what the utpt is supposed to be for, but it doesnt decompile nothing. and this frustrates me very much. i think the utpt beta 5 is not working.
if anyone else can help (me and importdrinker), i would appreciate it....
thanks,
danny :(
Ok what you need to do is open the file in UTPT then go to the class you want to look at then use the right mouse button goto Analize Raw Data, you will now see the hex ascii and the offset window, scroll down to the bottom then look for 02 or 04 or 07 or IE these are byte statements if you find one on the bottom click the right mouse on it then goto Property List, you should see some of the hex shaded in green when you hover your mouse over it, it will show you the script.
As i said before some of the scritps are locked so you can not decompile it, but you can read the Raw Data....................
Hope this helps
xusb
18th September 2004, 17:29
It is not as simple as changing one offset look at davids source and original source the whole code has to be chaged can not be done with hex editor to figure out what these hex codes do in the source is near impossible because changing one or two changes the whole code
j_kipper
18th September 2004, 17:44
The source codes or scripts are like any when you change the value like:-
if ( Level.Game.GetScreenplay() != None )
All it is is changing the != or the if statement so the script does something else
if ( Level.Game.GetScreenplay() == None )
Im not flaming you but do you see what i mean ;) peace
vBulletin® v3.8.4, Copyright ©2000-2009, Jelsoft Enterprises Ltd.