Apolyton Archive  |  Preserved copy of the Apolyton Civilization Site and its forums as they stood in September 2005. Read-only; nothing here can be posted to or replied to.  |  Forum index |  About this archive |  The 1998–2001 UBB forums
Today on Apolyton WARDELL INTERVIEW PROMO A.C.S. HISTORY CHAPTER 4 GET CIV4 /w FREE PLUS! A.C.S. PHOTO GALLERY GET A.O.M. V1.1
Apolyton Civilization Forums
main| civ2| civ3| civ4| smac| ctp2| ron| moo3| galciv| galciv2| alt| about|
ApolytonPLUS | register | search | faq | new posts | pm (-/-) | upload | members
hall of fame new! | civgroups | civgroups news | interviews | the column | radio | chat | directory | news | store | PLUS
Apolyton Civilization Forums : Powered by vBulletin version 2.0.3 Apolyton Civilization Forums > Miscellaneous > Archive > Scenario League / Civ2-Creation -Archive > Editing DLL Files?
Show a Printable Version | Email This Page to Someone! | Receive updates to this thread | Report this to Apolyton news!

bottom of page
  
Author
Thread    < Last Thread     Next Thread > Post New Thread     Post A Reply
WarVoid is offline WarVoid
King
Scenario League
Apr 2000
time: 05:25
Question  Old Post 02-02-2003 11:18 Visit WarVoid's homepage!
Edit/Delete Message Reply w/Quote
#1 Report this post to a moderator
Editing DLL Files? Support Apolyton, buy Civilization III: Complete

Does anyone know how to open up and edit the GIF's located within the Civ2 DLL (dialog) files?

I remember this being mentioned a long time ago as something that could be done. But as to how, i've no clue.

DarthVeda is offline DarthVeda
Emperor
My avatar! My precious!
Jan 1970
time: 00:25
  Old Post 02-02-2003 11:23 Visit DarthVeda's homepage!
Edit/Delete Message Reply w/Quote
#2 Report this post to a moderator
Increase the size of your Attachments

use civ2gfx or a hex editor

Boco is offline Boco
Prince
who was once King for a week.
Jan 2001
time: 00:25
Exclamation  Old Post 02-02-2003 11:35 Visit Boco's homepage!
Edit/Delete Message Reply w/Quote
#3 Report this post to a moderator
Support Apolyton, buy Call to Power 2

Rune Berge wrote the utility to extract/insert GIF files. Can be found here: http://coc.apolyton.net/utilities/gifxtractor3.zip. From his readme:
quote:
The program should be fairly easy to use. Use the File menu to open the dll you want to edit. Then use the Image menu to insert and extract GIFs. The GIFs you insert into the dlls must not exceed the maximum size (in bytes) specified in the listview on the left. Also, for the GIFs to work properly with Civ2 they must be saved with GIF version 87a, noninterlaced. They should also have the same dimensions and color palette as those they are replacing (though this is not always required).


To keep the correct palette, it's best to paste the new image into an extracted GIF.

Despite how straightforward it appears, I can't get the d**n thing to work on ToT DLL's. It's not the utility or the GIF file, though. When I sent the gif to Techumseh, he was able insert it without a glitch.

Oops! Saw DV's comment just as I was previewing. Is Civ2Gfx better than GIF Xtractor?

Mercator is offline Mercator
King
Sorekara no Nanimo
Jan 1970
time: 06:25
  Old Post 02-02-2003 17:48 Visit Mercator's homepage!
Edit/Delete Message Reply w/Quote
#4 Report this post to a moderator
Increase Your PM Length

I think DarthVeda meant the same thing.
But if it's for ToT (or MGE), you can use this:
http://www.users.on.net/johnson/resourcehacker/

Resource Hacker is quite a bit more advanced (since it's a general resource editor, not just for civ2), but only works with 32-bit files (= MGE and ToT only). With Resource Hacker you also don't need to worry about keeping the filesize smaller, only the image dimensions and palette are your limitations.

(edited for clarity)

Last edited by Mercator on 02-02-2003 at 21:41

WarVoid is offline WarVoid
King
Scenario League
Apr 2000
time: 05:25
  Old Post 02-02-2003 21:11 Visit WarVoid's homepage!
Edit/Delete Message Reply w/Quote
#5 Report this post to a moderator
Get a bigger avatar today!

I'm going to be using this for MGE, so does that mean I should use GifXtractor or Resource Hacker?

Mercator is offline Mercator
King
Sorekara no Nanimo
Jan 1970
time: 06:25
  Old Post 02-02-2003 21:38 Visit Mercator's homepage!
Edit/Delete Message Reply w/Quote
#6 Report this post to a moderator
Support Apolyton, buy Galactic Civilizations: Deluxe Edition

Resource Hacker

WarVoid is offline WarVoid
King
Scenario League
Apr 2000
time: 05:25
  Old Post 05-02-2003 04:06 Visit WarVoid's homepage!
Edit/Delete Message Reply w/Quote
#7 Report this post to a moderator
Avatar Enlargement: We've got the solution

Thanks, Merc! You rule.

One more question - When supporting edited DLL files in a scenario; will they work if placed in the scenarios sub-directory, or do they have to directly replace the existing files like a mod pack?

Boco is offline Boco
Prince
who was once King for a week.
Jan 2001
time: 00:25
  Old Post 05-02-2003 07:06 Visit Boco's homepage!
Edit/Delete Message Reply w/Quote
#8 Report this post to a moderator
Support Apolyton, buy Call to Power 2

I'm pretty sure that it needs to be in the program directory.

Merc, now I'm inept with two resource editors. From the help file, it looks like I should treat the GIF's as 'other resource'. So when I select "Action|Replace Other Resource", I get the attached dialog. Can't figure out what to do next.

Open file with new resource -> select new gif file?

Resource Type -> GIF?

Resource Name -> ? No clue, but nonzero alphanumeric string needed

Resource Language -> ? More clueless, but it seems to be optional

Attachment: reshack.png
This has been downloaded 78 time(s).

Mercator is offline Mercator
King
Sorekara no Nanimo
Jan 1970
time: 06:25
  Old Post 05-02-2003 17:29 Visit Mercator's homepage!
Edit/Delete Message Reply w/Quote
#9 Report this post to a moderator
Put an end to popups!

WarVoid: Thanks ... They must replace the existing ones (as Boco said). The DLLs were never meant to be editable, so they didn't bother adding the "flexibility" the regular text and image files have.

Boco: These values should "simply" match the 3 levels in the branch of the selected resource.

E.g. the spaceship "spine" (in SS.DLL) is located at GIFS > 400 > 1033, so for this resource, its type is GIFS, its name is 400, its language 1033.

Boco is offline Boco
Prince
who was once King for a week.
Jan 2001
time: 00:25
  Old Post 06-02-2003 07:04 Visit Boco's homepage!
Edit/Delete Message Reply w/Quote
#10 Report this post to a moderator
Got spare money?

Oops, I was careless! Didn't read the tree closely, and entered "GIF" by mistake. Thanks for the help, Merc!

Boco is offline Boco
Prince
who was once King for a week.
Jan 2001
time: 00:25
Wink  Old Post 06-02-2003 07:43 Visit Boco's homepage!
Edit/Delete Message Reply w/Quote
#11 Report this post to a moderator
Remove this text

I was hoping to do this via PM, but can't figure out how to PM with a pic.

Why does the attached GIF show up as black rectangle if I substitute it into ToT's Intro.DLL (GIFS, 901, 1033). It's 89a noninterlaced (ToT crashes with 87a noninterlaced)? I think it has the right palette, but perhaps not. I made it by copying the image into an extracted gif (901, 1033) and saving it.

Attachment: 901n1033.gif
This has been downloaded 72 time(s).

Mercator is offline Mercator
King
Sorekara no Nanimo
Jan 1970
time: 06:25
  Old Post 08-02-2003 23:26 Visit Mercator's homepage!
Edit/Delete Message Reply w/Quote
#12 Report this post to a moderator
Avatar Enlargement: We've got the solution

The 87a noninterlaced version of that works fine for me (i.e. I converted the image you attached).

Maybe you accidentally chose interlaced? Does my attachment work?

Attachment: 901new.gif
This has been downloaded 61 time(s).

ottok is offline ottok
Prince
tampere,FINLAND
Oct 1999
time: 05:25
  Old Post 09-02-2003 17:48 Visit ottok's homepage!
Edit/Delete Message Reply w/Quote
#13 Report this post to a moderator
Support Apolyton, buy Call to Power 2

Some what?

Boco is offline Boco
Prince
who was once King for a week.
Jan 2001
time: 00:25
  Old Post 10-02-2003 01:17 Visit Boco's homepage!
Edit/Delete Message Reply w/Quote
#14 Report this post to a moderator
Support Apolyton buy from Amazon

Somewhat (The guy's clairvoyant ). Your GIF works perfectly. When I opened it in PSP v311 and saved it as GIF87a noninterlaced, crash. At least I've identified the culprit. That could also explain my troubles with a title.gif. So much for that version of PSP. What are you using, Merc, Tech?

Boco is offline Boco
Prince
who was once King for a week.
Jan 2001
time: 00:25
  Old Post 10-02-2003 06:02 Visit Boco's homepage!
Edit/Delete Message Reply w/Quote
#15 Report this post to a moderator
Avatar Enlargement: We've got the solution

PSP7 works well.

techumseh is offline techumseh
King
of the frozen North.
Apr 1999
time: 22:25
  Old Post 10-02-2003 10:48 Visit techumseh's homepage!
Edit/Delete Message Reply w/Quote
#16 Report this post to a moderator
Support Apolyton, buy Alpha Centauri

PSP 5.01

Mercator is offline Mercator
King
Sorekara no Nanimo
Jan 1970
time: 06:25
  Old Post 10-02-2003 22:03 Visit Mercator's homepage!
Edit/Delete Message Reply w/Quote
#17 Report this post to a moderator
Get a bigger avatar today!

PSP7... I just tried it with PSP3 too, and compared the files. Somehow PSP3 puts an extra 8 bytes after the palette, that's the only difference (but it really does crash).

  < Last Thread     Next Thread > Post New Thread     Post A Reply
All times are GMT. The time now is 05:25.
Apolyton Time is 00:25.
    top of page
Rate This Thread:
archivepost
Forum Jump:
Forum Rules:
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is ON
vB code is ON
Smilies are ON
[IMG] code is ON
 




Contact Us - Apolyton Civilization Site - Support Us!

Building a better Apolyton through better information. Click here and take our poll!
Non-US visitors, click here!

Powered by: vBulletin Version 2.0.3
Copyright ©2000, 2001, Jelsoft Enterprises Limited.

Page generated in 0.0448 seconds (91.25% PHP - 8.75% MySQL) with 31 queries
Page Loading Time:

Support Apolyton: Amazon USA | Amazon UK | Amazon DE | Amazon FR |
Support Apolyton and get FREE PLUS, Buy from Chips&Bits: Galactic Civilizations | Galactic Civilizations: Deluxe Edition | Call to Power 2 | Civilization: The Boardgame | GURPS/ Alpha Centauri | Alpha Centauri | Civilization IV | Civilization III: Complete |


Front Page | Civilization IV | Civilization III | Civilization II | Call to Power II | Alpha Centauri | Master of Orion III
Rise of Nations | Galactic Civilizations | Galactic Civilizations II | Misc
Alt.Civs | Civ I | C:CtP I | About | News | Directory | Apolyton Store | Forums | Chat | Columns | Interviews | Newsletter
Scenario League | CSC | Clash of Civs | Spanish Site | CtP Maps | Cradle of Civ | WesW's Ctp1/2 Site | Civ3 Haven

apolyton.net | apolyton.com | civilization2.net | civilization3.net | civilization4.net | civilizationiv.info | calltopower.net | galciv.net | galciv2.net | moo3.net