Extracting game data (images, textures and models)

Talk about game mods, modding and editing (stuff that is officially supported by the game devs). NO game hacking here (cheat engine..etc)
Post Reply
Maikon
Newbie..
Newbie..
Posts: 23
Joined: Sun Sep 19, 2010 7:57 am

Re: Extracting game data (images, textures and models)

Post by Maikon »

Luigi saved the day again, although I was onto something with xvi32 script... see here if anyone's interested: http://aluigi.freeforums.org/post10944.html#p10944
Maikon
Newbie..
Newbie..
Posts: 23
Joined: Sun Sep 19, 2010 7:57 am

Re: Extracting game data (images, textures and models)

Post by Maikon »

Hi again, I've found out that this game contains hidden development tools for modding it inside. I've tried to activate it but with no luck. Here are the line that I suppose regulate it inside system.cfg file:

##############################################
#this param should be hardcoded later !!!!!
##############################################

minimap_draw_playable_zone 0
set dev_gui 0
set disable_video 0
use_unit_precaching 1
game fps hide
#game stats 0

So I basically change the set dev_gui from 0 to 1 but game won't run. So if these file were indeed hardcoded this change should make no difference, am I correct? So I found later GUI interface command for ths dev_tool and translated it from byelorus to english roughly because I thought the cyrrilic letters may be responsible for problem but with the same result. Any ideas?
User avatar
Sethioz
Admin
Admin
Posts: 4762
Joined: Fri Jul 27, 2007 5:11 pm
Custom: Gaming YT > https://youtube.com/SethiozEntertainment
Game Hacking YT > https://youtube.com/sethioz
Game Hacks Store > https://sethioz.com/shopz
Location: unknown
Contact:

Re: Extracting game data (images, textures and models)

Post by Sethioz »

no ideas about this, just old good google i guess. dont have the game, so cant test
Maikon
Newbie..
Newbie..
Posts: 23
Joined: Sun Sep 19, 2010 7:57 am

Re: Extracting game data (images, textures and models)

Post by Maikon »

Ok, but unfortunately you can't talk with google and it's always good to have a discussion to get new ideas.

I have found a workaround. It seems that these .xml files require to have the same char count as originals. So since my files are smaller I just add a bunch of zeros in hex before encrypting. But this won't solve the thing for ones that are larger than original .

There could be 2 reasons for this I think. But first something about extracted files - they all start from same part of xor encryption what means they are encrypted separately. In same .pkg file I can replace original files with smaller or larger ones when it comes to textures and other graphic files with no problems. So problem is only text-file related. First reason is that there is a line which is encrypted with these files after the file hex-code so larger or smaller files lead to shift of xor code and misreading of that part. Second is that there is some kind of protection which forbids these files from being altered by checking it's size, and I really hope this isn't the case. I going to dig some more with hex-editor and find that hidden line if first case is true.

edit: right after this file there a new encrypted part which start for xor code beginning, so isn't the first case definitely, I'll contact Luigi for more info on how his extractor works and which parts are rejected as trash, answer must lie in there somewhere
Maikon
Newbie..
Newbie..
Posts: 23
Joined: Sun Sep 19, 2010 7:57 am

Enabling eveloper tool

Post by Maikon »

Breaktrough! I managed to enable developer tools to certain extent... And they work! For now nothing worthwile, just switching sides in game for now, but will figure out the rest I am certain... what's important is that it works! I'll keep you updated and hope will be able to release enabled and fully functional developer kit soon... There's still a lot of work ahead but this gives me hope.

ps also if anyone around here is a native russian speaker I would appreciate his help very much with translations, my native language is similar but only in some parts so it's pretty hard and translation I made are very clumsy
User avatar
Sethioz
Admin
Admin
Posts: 4762
Joined: Fri Jul 27, 2007 5:11 pm
Custom: Gaming YT > https://youtube.com/SethiozEntertainment
Game Hacking YT > https://youtube.com/sethioz
Game Hacks Store > https://sethioz.com/shopz
Location: unknown
Contact:

Re: Extracting game data (images, textures and models)

Post by Sethioz »

not my field, but some games do have a file size check, like GTA 4, TDU ...etc, but there's always a file check disabler out there. so if thats the case, im sure there is a file check disabler out there, if not, you should ask Luigi about it.
ofc on smaller files, as you already stated, filling the file with zeros should work or that empty character (cant remember the HEX value for it)
Maikon
Newbie..
Newbie..
Posts: 23
Joined: Sun Sep 19, 2010 7:57 am

Re: Extracting game data (images, textures and models)

Post by Maikon »

hex value for empty char is 20. but anyways I have done all the necessary changes and yet can't find way to activate developer tools, at least the answer isn't in the external files since I have checked them all. so it must be somewhere in the .exe or was removed before game was released. but they left all necessary gui files for editor so I doubt that. i have extrated files from exe but can't find anything useful, please take a look you probably have more experience with this kind of files if u can find something that would lead to editor activation.
Attachments

[The extension 7z has been deactivated and can no longer be displayed.]

User avatar
Sethioz
Admin
Admin
Posts: 4762
Joined: Fri Jul 27, 2007 5:11 pm
Custom: Gaming YT > https://youtube.com/SethiozEntertainment
Game Hacking YT > https://youtube.com/sethioz
Game Hacks Store > https://sethioz.com/shopz
Location: unknown
Contact:

Re: Extracting game data (images, textures and models)

Post by Sethioz »

20 is space, not empty char.
3D or 3A is empty, something like that.

i tought you said that you enabled it ? took a quick look, but this isnt my field really (editing and modding). send the file link to Luigi, he should be able to tell you more about it.
Maikon
Newbie..
Newbie..
Posts: 23
Joined: Sun Sep 19, 2010 7:57 am

Re: Extracting game data (images, textures and models)

Post by Maikon »

yes i thought that I did, but it seems that dev_gui is actually a device gui not developer. I will leave this to rest for now, and p.s. it seems that exe files use zlib compression, can this help in decompressing these files. alsothere are refrences to non-existant files in some of lua scripts so these are probably compressed in exe
User avatar
Sethioz
Admin
Admin
Posts: 4762
Joined: Fri Jul 27, 2007 5:11 pm
Custom: Gaming YT > https://youtube.com/SethiozEntertainment
Game Hacking YT > https://youtube.com/sethioz
Game Hacks Store > https://sethioz.com/shopz
Location: unknown
Contact:

Re: Extracting game data (images, textures and models)

Post by Sethioz »

isnt there tools for zlib ? i googled and found loads, no point to put links here.
thats all i can suggest for now, try decompressing using some zlib decompressor.
Maikon
Newbie..
Newbie..
Posts: 23
Joined: Sun Sep 19, 2010 7:57 am

Re: Extracting game data (images, textures and models)

Post by Maikon »

oy, how is it going? well i need your advice again. i'm trying to enable 3rd campaign but only way to do it is by altering exe strings... but problem is that I don't understand them, here's an example so tell me whaddaya think:


4-0031fe19-0031fe38-0031fe49___009d9d9c/00dd9d9c ..... lbCampingName

eh, da i instructions:

"type"-"offsets where is pointed the string"_"offsets/rva of the string"


p.s. I used exestringz from aluigi's page to extract them, below is whole .txt with all the strings if u want to take a closer look
Attachments
stringz.zip
(398.24 KiB) Downloaded 804 times
User avatar
Sethioz
Admin
Admin
Posts: 4762
Joined: Fri Jul 27, 2007 5:11 pm
Custom: Gaming YT > https://youtube.com/SethiozEntertainment
Game Hacking YT > https://youtube.com/sethioz
Game Hacks Store > https://sethioz.com/shopz
Location: unknown
Contact:

Re: Extracting game data (images, textures and models)

Post by Sethioz »

i dont get the point how it should work, cant help you with this. it would need deeper look, but i dont have game.
again go with the copy > paste method to make it load existing campaign, then try to figure out how to load yours.
Maikon
Newbie..
Newbie..
Posts: 23
Joined: Sun Sep 19, 2010 7:57 am

Re: Extracting game data (images, textures and models)

Post by Maikon »

well that's the problem, i can't load even already existing campaigns to newly made slot. if i rename it to existing usa or ger it doesn't show also. so i think this function embedded somewhere inside exe, and i don't know how to rewrite it to make it work.
User avatar
Sethioz
Admin
Admin
Posts: 4762
Joined: Fri Jul 27, 2007 5:11 pm
Custom: Gaming YT > https://youtube.com/SethiozEntertainment
Game Hacking YT > https://youtube.com/sethioz
Game Hacks Store > https://sethioz.com/shopz
Location: unknown
Contact:

Re: Extracting game data (images, textures and models)

Post by Sethioz »

well only thing i can think of is using a hex editor.
ive never done such mods, so cant help there.
a long shot, is to try reshacker, but i doubt it can edit such things. its mostly for images, info and such.
think you need to turn to Luigi with with this matter.
Maikon
Newbie..
Newbie..
Posts: 23
Joined: Sun Sep 19, 2010 7:57 am

Re: Extracting game data (images, textures and models)

Post by Maikon »

Hi,

Here is the stuff I learned about OoW modding. It will explain how to extract and put files back into game. I won't mod this game anymore since I found another game that better fits my theme (more infantry oriented) and is much more moddable and has a great modding community btw what's really important. Anyway for all of you who want to mod this game and since I promised to Sethioz here's is a guide how to mod this game. See you around and thanks again for the help!

p.s. if there is something unclear just ask, guide was rewritten in short time so I may have missed something...
Attachments
MG.rar
Modding guide
(2.91 KiB) Downloaded 766 times
User avatar
Sethioz
Admin
Admin
Posts: 4762
Joined: Fri Jul 27, 2007 5:11 pm
Custom: Gaming YT > https://youtube.com/SethiozEntertainment
Game Hacking YT > https://youtube.com/sethioz
Game Hacks Store > https://sethioz.com/shopz
Location: unknown
Contact:

Re: Extracting game data (images, textures and models)

Post by Sethioz »

alright cool, i might just rewrite it and put on knowledge database.
as about that other game you found, if you want, you can also write article that would fit on knowledge database. or post a full guide into new thread and i can take info from there and link to original thread from wiki.
Post Reply