.com.unity Forums
  The Official e-Store of Shrapnel Games

This Month's Specials

The Star & the Crescent- Save $9.00
winSPWW2- Save $6.00

   







Go Back   .com.unity Forums > Illwinter Game Design > Dominions 3: The Awakening > Scenarios, Maps and Mods

Reply
 
Thread Tools Display Modes
  #1  
Old November 4th, 2006, 01:03 AM
Singularity24601's Avatar

Singularity24601 Singularity24601 is offline
Corporal
 
Join Date: Oct 2006
Posts: 55
Thanks: 1
Thanked 10 Times in 2 Posts
Singularity24601 is on a distinguished road
Default Re: I can\'t extract the sprites from the .exe

Quote:
FrankTrollman said:
Quote:
If so I could probably make a library of tga's for modders.
I second in saying that this would be the coolest thing ever.

-Frank
Indeed! The great majority of my modding time is currently spent on extracting exact sprites - and I've only completed a handful.
Reply With Quote
  #2  
Old November 4th, 2006, 01:06 AM
DrPraetorious's Avatar

DrPraetorious DrPraetorious is offline
Major General
 
Join Date: Feb 2005
Location: Lake of Hali, Aldebaran, OH
Posts: 2,474
Thanks: 51
Thanked 67 Times in 27 Posts
DrPraetorious is on a distinguished road
Default I can\'t extract the sprites from the .exe

Maybe I'm just being dense, but I'm posting this so that no-one else has to duplicate my wasted effort . The long story short - the dom3 executable is only 5 MB, so they obviously aren't using .tga or .rgb to store O(2000) sprites.

Has anyone else had any success *finding* all the unit sprites buried in the executable itself?

I started on the assumption that all the unit sprites would have little .rgb or .tga headers.

So, I find specifications, here they are:
http://www.fileformat.info/format/sgiimage/
http://www.fileformat.info/format/tga/egff.htm

rgb file headers are supposed to start with the "magic number", 474. That'd be 0x01DA - and yes, the .rgb map files generated by the random map generator start with 01DA. Unfortunately 01DA only appears twice in the executable.

So, either the internal sprites aren't in rgb format, or they are, but part of the header is stripped off. Don't these guys know that programmer time is far more valuable than incremental performance improvements!?!?

TGA file headers don't have any magic numbers in them - so I'll try to find some headers in some custom sprites that Frank drew, and hope they're the same.

The header of a .tga file is 18 bytes long. I figure if any of this header info is retained, it'll be the size of the sprite, which is bytes 13-16 of the header.

This is 0x00800018 from Frank's .tga sprites.

Unfortunately, 00800018 doesn't appear at all in the executable .

The actual begining of Frank's .tga sprites is:
00 00 02 00

So, I counted those occurences - 1,478. That sounds (about) right, there are O(1000) units, 2 sprites each but many of them share sprites, so I tried splitting on 00 00 02 00.

I get 1,478 "tga" files but I can't actually open any of them. On examination I notice they're much too small.

This is when I did the math - Frank's .tga sprites are 50K each. 1000 such sprites would be 50MB. The dom3 executable is 5MB. Boy do I feel stupid.

trees.r3f is about the right size, though.

It has only 523 "00 00 02 00" in it (and no 01 DA) and I'm pretty sure this file is full of background wireframes for the tactical maps.

Ah well.
__________________
If you read his speech at Rice, all his arguments for going to the moon work equally well as arguments for blowing up the moon, sending cloned dinosaurs into space, or constructing a towering *****-shaped obelisk on Mars. --Randall Munroe
Reply With Quote
  #3  
Old November 4th, 2006, 01:12 AM
paradoxharbinger's Avatar

paradoxharbinger paradoxharbinger is offline
Sergeant
 
Join Date: May 2004
Posts: 338
Thanks: 0
Thanked 0 Times in 0 Posts
paradoxharbinger is on a distinguished road
Default Re: I can\'t extract the sprites from the .exe

if the sprites are being stored in the exe, they probably know exactly where the are and what format they are in so they would have no need for headers, just the raw data and the dimensions
__________________
ParadoxHarbinger's MapGen New Site!

Get The MapGen Alpha

Get The Dom3 Unit Maker

I'm shoulder high in crap, and my water-wings are flat!
Reply With Quote
  #4  
Old November 4th, 2006, 01:16 AM
Gandalf Parker's Avatar

Gandalf Parker Gandalf Parker is offline
Shrapnel Fanatic
 
Join Date: Oct 2003
Location: Vacaville, CA, USA
Posts: 13,736
Thanks: 341
Thanked 479 Times in 326 Posts
Gandalf Parker is on a distinguished road
Default Re: I can\'t extract the sprites from the .exe

They arent in the exe.
Mostly its the files that start with 'army' which if you are lucky might be the same format
__________________
-- DISCLAIMER:
This game is NOT suitable for students, interns, apprentices, or anyone else who is expected to pass tests on a regular basis. Do not think about strategies while operating heavy machinery. Before beginning this game make arrangements for someone to check on you daily. If you find that your game has continued for more than 36 hours straight then you should consult a physician immediately (Do NOT show him the game!)
Reply With Quote
  #5  
Old November 4th, 2006, 01:24 AM
Kristoffer O's Avatar

Kristoffer O Kristoffer O is offline
General
 
Join Date: Aug 2003
Location: Sweden
Posts: 4,463
Thanks: 25
Thanked 92 Times in 43 Posts
Kristoffer O is on a distinguished road
Default Re: I can\'t extract the sprites from the .exe

They are army.trs etc. It is no conventional format and is only used in JK's own program spooky sprites. I don't know anything about formats, but I suspect it might be difficult to extract them. It is possible to make tga's from the sprites in spooky, but I'm not sure if you can extract a whole bunch at a time. If so I could probably make a library of tga's for modders.
__________________
www.illwinter.com
Reply With Quote
  #6  
Old November 4th, 2006, 02:23 AM
Agrajag's Avatar

Agrajag Agrajag is offline
Lieutenant Colonel
 
Join Date: Jul 2004
Location: Israel
Posts: 1,449
Thanks: 4
Thanked 8 Times in 2 Posts
Agrajag is on a distinguished road
Default Re: I can\'t extract the sprites from the .exe

Quote:
Kristoffer O said:
If so I could probably make a library of tga's for modders.
If you would do so you will be worshipped as a god even more than you were before
__________________
I'm in the IDF. (So any new reply by me is a very rare event.)
Reply With Quote
  #7  
Old November 4th, 2006, 02:38 AM

FrankTrollman FrankTrollman is offline
Second Lieutenant
 
Join Date: Sep 2004
Posts: 559
Thanks: 0
Thanked 4 Times in 2 Posts
FrankTrollman is on a distinguished road
Default Re: I can\'t extract the sprites from the .exe

Quote:
If so I could probably make a library of tga's for modders.
I second in saying that this would be the coolest thing ever.

-Frank
Reply With Quote
  #8  
Old November 4th, 2006, 02:49 AM
DrPraetorious's Avatar

DrPraetorious DrPraetorious is offline
Major General
 
Join Date: Feb 2005
Location: Lake of Hali, Aldebaran, OH
Posts: 2,474
Thanks: 51
Thanked 67 Times in 27 Posts
DrPraetorious is on a distinguished road
Default Re: I can\'t extract the sprites from the .exe

http://groups.google.com/group/comp....2?dmode=source

Whoah, an Atari Falcon. That takes me back. My parents wouldn't buy me one, but a couple of my friends had those.

If I can find an Atari Falcon emulator (check) and one that supports scripted input (not bloody likely) and then get a copy of JK's old freeware version of Spooky Sprites then, assuming the binary format he uses is the same, and assuming the old version supports extracting files into any sort of bitmap.... hmm....
__________________
If you read his speech at Rice, all his arguments for going to the moon work equally well as arguments for blowing up the moon, sending cloned dinosaurs into space, or constructing a towering *****-shaped obelisk on Mars. --Randall Munroe
Reply With Quote
  #9  
Old November 4th, 2006, 03:12 AM
Nerfix's Avatar

Nerfix Nerfix is offline
Lieutenant General
 
Join Date: Sep 2003
Location: Hyvink��, Finland
Posts: 2,703
Thanks: 0
Thanked 1 Time in 1 Post
Nerfix is on a distinguished road
Default Re: I can\'t extract the sprites from the .exe

It's a holy relic from a bygone age! :O
__________________

"Boobs are OK. Just not for Nerfix [img]/threads/images/Graemlins/Smile.gif[/img] ."
- Kristoffer O.
Reply With Quote
  #10  
Old November 4th, 2006, 03:33 AM
Endoperez's Avatar

Endoperez Endoperez is offline
National Security Advisor
 
Join Date: Sep 2003
Location: Eastern Finland
Posts: 7,110
Thanks: 145
Thanked 153 Times in 101 Posts
Endoperez is on a distinguished road
Default Re: I can\'t extract the sprites from the .exe

Quote:
Nerfix said:
It's a holy relic from a bygone age! :O
Indeed! Praetarius, that was a great find!
Reply With Quote
Reply

Bookmarks


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is On

Forum Jump


All times are GMT -4. The time now is 05:22 PM.


Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©1999 - 2024, Shrapnel Games, Inc. - All Rights Reserved.