Extracting game data (images, textures and models)

Talk about game mods and editors, no game hacking here (cheat engine..etc)

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

Postby Maikon » Sun Sep 26, 2010 9:14 pm

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)

Postby Maikon » Mon Oct 11, 2010 1:58 pm

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?
Maikon
Newbie..
Newbie..
 
Posts: 23
Joined: Sun Sep 19, 2010 7:57 am

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

Postby Sethioz » Mon Oct 11, 2010 5:38 pm

no ideas about this, just old good google i guess. dont have the game, so cant test
User avatar
Sethioz
Admin
Admin
 
Posts: 4753
Joined: Fri Jul 27, 2007 5:11 pm
Location: unknown

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

Postby Maikon » Mon Oct 11, 2010 6:50 pm

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

Postby Maikon » Mon Oct 11, 2010 10:40 pm

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
Maikon
Newbie..
Newbie..
 
Posts: 23
Joined: Sun Sep 19, 2010 7:57 am

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

Postby Sethioz » Mon Oct 11, 2010 10:48 pm

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)
User avatar
Sethioz
Admin
Admin
 
Posts: 4753
Joined: Fri Jul 27, 2007 5:11 pm
Location: unknown

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

Postby Maikon » Wed Oct 13, 2010 8:27 pm

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.]

Maikon
Newbie..
Newbie..
 
Posts: 23
Joined: Sun Sep 19, 2010 7:57 am

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

Postby Sethioz » Thu Oct 14, 2010 6:21 am

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.
User avatar
Sethioz
Admin
Admin
 
Posts: 4753
Joined: Fri Jul 27, 2007 5:11 pm
Location: unknown

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

Postby Maikon » Sun Oct 17, 2010 8:09 pm

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
Maikon
Newbie..
Newbie..
 
Posts: 23
Joined: Sun Sep 19, 2010 7:57 am

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

Postby Sethioz » Sun Oct 17, 2010 11:18 pm

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.
User avatar
Sethioz
Admin
Admin
 
Posts: 4753
Joined: Fri Jul 27, 2007 5:11 pm
Location: unknown

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

Postby Maikon » Tue Oct 26, 2010 5:11 am

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 123 times
Maikon
Newbie..
Newbie..
 
Posts: 23
Joined: Sun Sep 19, 2010 7:57 am

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

Postby Sethioz » Tue Oct 26, 2010 6:37 am

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.
User avatar
Sethioz
Admin
Admin
 
Posts: 4753
Joined: Fri Jul 27, 2007 5:11 pm
Location: unknown

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

Postby Maikon » Tue Oct 26, 2010 9:48 am

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.
Maikon
Newbie..
Newbie..
 
Posts: 23
Joined: Sun Sep 19, 2010 7:57 am

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

Postby Sethioz » Tue Oct 26, 2010 5:53 pm

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.
User avatar
Sethioz
Admin
Admin
 
Posts: 4753
Joined: Fri Jul 27, 2007 5:11 pm
Location: unknown

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

Postby Maikon » Sun Nov 07, 2010 12:48 am

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 110 times
Maikon
Newbie..
Newbie..
 
Posts: 23
Joined: Sun Sep 19, 2010 7:57 am

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

Postby Sethioz » Sun Nov 07, 2010 10:47 am

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.
User avatar
Sethioz
Admin
Admin
 
Posts: 4753
Joined: Fri Jul 27, 2007 5:11 pm
Location: unknown

Previous

Return to Game - Modding / Editing

Who is online

Users browsing this forum: No registered users and 5 guests

cron