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 > Civilization II > Scenario League / Civ2-Creation > Skinnydipping
Show a Printable Version | Email This Page to Someone! | Receive updates to this thread | Report this to Apolyton news!
29.Jul: MOVING UP ON REVISED `TOP 100` INDEX
29.May: GAME MECHANICS REFERENCE BOOKLET
06.Mar: DROPPING FROM SECOND TO THIRD
CivGroups
Scenario League / Civ2-Creation (66): Not a Member - Join

bottom of page
  - CIVILIZATION 2 from $6.95 - CIVILIZATION 2 from $4.25 - CIV2: TEST OF TIME from $2.50 - CIV2: MULTIPLAYER GOLD EDITION from $4.99
Author
Thread   
Pages (2): [ 1   2   ]
< Last Thread     Next Thread > Post New Thread     Post A Reply
Boco is offline Boco
Prince
who was once King for a week.
Jan 2001
time: 00:16
  Old Post 05-11-2004 07:45 Visit Boco's homepage!
Edit/Delete Message Reply w/Quote
#1 Report this post to a moderator
Skinnydipping Support Apolyton or Terrorists Win

A title involving nudity always gets attention.

A month or so ago, Techumseh asked me to come up with a means to change the 'skin' of ToT. By that he meant copy a set of City.bmp, CivWin_Back.bmp, and Dialog.bmp files into either the Original, SciFi, or Fantasy folder. Then he had the nerve to suggest keeping it open ended without hardcoding filenames.

That put it into seriously advanced batch programming or VB territory. Opting for the latter, I cobbled together something using VBA in Excel (yes, it requires Excel at the moment). If there is demand, I'll port it into regular VB.

To use, download CivSkin02.zip and extract all files into the same directory (i.e. must keep the xls and bmp's in the same folder). The xls code should find where ToT is on your PC without your intervention.

From the opening screen:
quote:
CivSkin v1.0
This program changes the 'skin' of "Civ2: Test of Time" by copying three files from a storage folder to the appropriate game folder: City.bmp, Dialog.bmp, & Civwin_back.bmp. Skins can be previewed before copying.


quote:
Directions
1. Edit path to ToT, if not correct.
2. Click "View and Choose Skins"


That pops up a dialog.

quote:
1. Select a skin set
2. Select game
3. Click "Load"
4. Click "Close"
5. Start ToT


You're done.

This is a beta. Works on two of my PC's. The gfx lack credits at the moment, but they come from Techumseh, Catfish, and myself.

Screenies coming up as soon as I remember how.

Would some brave soul test this for me?

Boco is offline Boco
Prince
who was once King for a week.
Jan 2001
time: 00:16
  Old Post 05-11-2004 07:54 Visit Boco's homepage!
Edit/Delete Message Reply w/Quote
#2 Report this post to a moderator
Screenies Enter the AD-FREE zone

Opening screen in Excel.


The dialog that does the work.

Harry Tuttle is offline Harry Tuttle

Prince
of the Hoople Heads
Mar 2003
time: 00:16
  Old Post 05-11-2004 08:52
Edit/Delete Message Reply w/Quote
#3 Report this post to a moderator
Enter the AD-FREE zone

Hey, pretty cool man, thanks!

techumseh is offline techumseh
King
of the frozen North.
Apr 1999
time: 22:16
  Old Post 05-11-2004 09:24 Visit techumseh's homepage!
Edit/Delete Message Reply w/Quote
#4 Report this post to a moderator
Standing O Enter the AD-FREE zone

Attachment: clap.gif
This has been downloaded 146 time(s).

fairline is offline fairline
Prince
of the wing
Sep 2002
time: 05:16
  Old Post 05-11-2004 13:05 Visit fairline's homepage!
Edit/Delete Message Reply w/Quote
#5 Report this post to a moderator
Browse Apolyton AD-FREE

Excellent work D.

Er.... can you believe that I don't have Excel on my PC at home? Or any other spreadsheet prog. for that matter. 'What a numpty' I hear you cry.

How difficult is it to implement this in regular VB?

curtsibling is offline curtsibling
King
of the Kill!
May 2002
time: 05:16
  Old Post 05-11-2004 13:11 Visit curtsibling's homepage!
Edit/Delete Message Reply w/Quote
#6 Report this post to a moderator
Support Apolyton buy from Amazon

I will try this one out today when I come back from Uni....

Boco is offline Boco
Prince
who was once King for a week.
Jan 2001
time: 00:16
  Old Post 05-11-2004 15:49 Visit Boco's homepage!
Edit/Delete Message Reply w/Quote
#7 Report this post to a moderator
Full PM-box? Change here!

quote:
How difficult is it to implement this in regular VB?


Well, numpty , I did finally install VB6 on my PC. Normally, it shouldn't be too hard to shift over to VB, but I haven't programmed in it for almost a decade . Let's first see whether the program is useful enough to put in the effort.

@curt

Arthedain is offline Arthedain
Prince
Dúnedain of the north
Apr 2002
time: 06:16
  Old Post 05-11-2004 16:24
Edit/Delete Message Reply w/Quote
#8 Report this post to a moderator
Support Apolyton, buy Galactic Civilizations

Uhm, isn't *.xls an excell file? I don't have that program. Any other way I can change the skins? I really like the MGE city skin better..

Mercator is offline Mercator
King
Sorekara no Nanimo
Jan 1970
time: 06:16
  Old Post 05-11-2004 17:50 Visit Mercator's homepage!
Edit/Delete Message Reply w/Quote
#9 Report this post to a moderator
Inflate your Upload Space

I don't have Excel either, so...
But if you need any help with VB6...

quote:
Originally posted by Arthedain
I really like the MGE city skin better..


You don't need Boco's program for that. There's an option in one of the menus for that. I think it's "City View" or something in the View menu that toggles between ToT and "pre-ToT", just like the "Map View" thing toggles between ToT screen layout (unit details on top) and pre-ToT screen layout (unit details on the right).

curtsibling is offline curtsibling
King
of the Kill!
May 2002
time: 05:16
  Old Post 05-11-2004 18:40 Visit curtsibling's homepage!
Edit/Delete Message Reply w/Quote
#10 Report this post to a moderator
Lose 30 kilos (of popups)

'Numpty' -

It's good to see the vile chittering speech of the Scots Ned being used here in poly!

Not!

curtsibling is offline curtsibling
King
of the Kill!
May 2002
time: 05:16
  Old Post 05-11-2004 18:44 Visit curtsibling's homepage!
Edit/Delete Message Reply w/Quote
#11 Report this post to a moderator
Put an end to popups!

quote:
Originally posted by Boco
@curt


You flatter me, I am but a mere tweak freak!

But, wow!
Some rather lovely city screens here!
Especially 'Blood and Iron!'

Top stuff!

curtsibling is offline curtsibling
King
of the Kill!
May 2002
time: 05:16
  Old Post 05-11-2004 18:49 Visit curtsibling's homepage!
Edit/Delete Message Reply w/Quote
#12 Report this post to a moderator
Help yourself to an AD-FREE life

I have scanned this file, but can Boco assure me there are no viruses in the macros before I proceed further...

PS
The program is a nice bit of work.

Arthedain is offline Arthedain
Prince
Dúnedain of the north
Apr 2002
time: 06:16
  Old Post 05-11-2004 21:22
Edit/Delete Message Reply w/Quote
#13 Report this post to a moderator
Support Apolyton, buy Galactic Civilizations

quote:
Originally posted by Mercator
You don't need Boco's program for that. There's an option in one of the menus for that. I think it's "City View" or something in the View menu that toggles between ToT and "pre-ToT", just like the "Map View" thing toggles between ToT screen layout (unit details on top) and pre-ToT screen layout (unit details on the right).

Thanks Mercator!

curtsibling is offline curtsibling
King
of the Kill!
May 2002
time: 05:16
  Old Post 05-11-2004 21:31 Visit curtsibling's homepage!
Edit/Delete Message Reply w/Quote
#14 Report this post to a moderator
Support Apolyton buy from Amazon

This cool utility has inspired me to create civ-specific city screens for my current project!

curtsibling is offline curtsibling
King
of the Kill!
May 2002
time: 05:16
  Old Post 05-11-2004 21:44 Visit curtsibling's homepage!
Edit/Delete Message Reply w/Quote
#15 Report this post to a moderator
Suffering from ads?

I am happy to report fully working skin changes!

I want to package this utility with my upcoming ToT scenario, to take advantage of the city skins I have prepared!

The choice to personalise your civ to whatever faction or era you are playing is pretty cool!

Grand work, Boco!

curtsibling is offline curtsibling
King
of the Kill!
May 2002
time: 05:16
  Old Post 05-11-2004 21:47 Visit curtsibling's homepage!
Edit/Delete Message Reply w/Quote
#16 Report this post to a moderator
Full PM-box? Change here!

One thing though, it needs to be shown where ToT is - Anyway for a user to encode the default path to his own ToT folder?

Also, users should be sure to make Dialog, Civwin_back, and City files - Otherwise the skin won't be recognised.

fairline is offline fairline
Prince
of the wing
Sep 2002
time: 05:16
  Old Post 05-11-2004 22:14 Visit fairline's homepage!
Edit/Delete Message Reply w/Quote
#17 Report this post to a moderator
Support Apolyton, buy Civilization: The Boardgame

quote:
Originally posted by curtsibling
'Numpty' -

It's good to see the vile chittering speech of the Scots Ned being used here in poly!

Not!



'numpty' reached us south of the border long ago, but what on earth is a 'Ned'?

curtsibling is offline curtsibling
King
of the Kill!
May 2002
time: 05:16
  Old Post 06-11-2004 00:27 Visit curtsibling's homepage!
Edit/Delete Message Reply w/Quote
#18 Report this post to a moderator
Support Apolyton buy from Amazon

Neds are what our English cousins call 'Townies' - Those track-suited scum of the streets...

Boco is offline Boco
Prince
who was once King for a week.
Jan 2001
time: 00:16
  Old Post 06-11-2004 00:33 Visit Boco's homepage!
Edit/Delete Message Reply w/Quote
#19 Report this post to a moderator
Tired of ads?

quote:
One thing though, it needs to be shown where ToT is - Anyway for a user to encode the default path to his own ToT folder?


There's code that should read your registry for the path to Civ2ToT.exe. Specifically, I'm searching for the string "SOFTWARE\Microsoft\Windows\CurrentVersion\App Paths\Civ2TOT.Exe" in your registry. So the cell with a path should update itself with the correct path when the program loads. Although you can enter a value manually in that cell, it shouldn't be necessary.

Is it displaying a wrong path on your machine, Curt?

Merc, I'll flail at it some in VB6. Don't be surprised to see some pm's though.

Btw, IIRC I changed the "MGE" entry to something that credits its creator.

curtsibling is offline curtsibling
King
of the Kill!
May 2002
time: 05:16
  Old Post 06-11-2004 01:21 Visit curtsibling's homepage!
Edit/Delete Message Reply w/Quote
#20 Report this post to a moderator
Support Apolyton, buy Civilization: The Boardgame

quote:
Is it displaying a wrong path on your machine, Curt?


Yep - It is looking for an MPS folder, when I have a custom named one.

quote:
Btw, IIRC I changed the "MGE" entry to something that credits its creator.


I saw that one!

Boco is offline Boco
Prince
who was once King for a week.
Jan 2001
time: 00:16
  Old Post 06-11-2004 02:55 Visit Boco's homepage!
Edit/Delete Message Reply w/Quote
#21 Report this post to a moderator
Support Apolyton, buy Civilization 2

Curt, what happens if you select the cell containing the Test of Time path, press [Delete] to clear it, and then click the button below it labeled "Read Registry..."?

What actually is the path to ToT on your PC?

Hmmm. Maybe I'm searching for the wrong string in the registry.

Mercator is offline Mercator
King
Sorekara no Nanimo
Jan 1970
time: 06:16
  Old Post 06-11-2004 02:59 Visit Mercator's homepage!
Edit/Delete Message Reply w/Quote
#22 Report this post to a moderator
Lose 30 kilos (of popups)

quote:
Originally posted by Boco
There's code that should read your registry for the path to Civ2ToT.exe. Specifically, I'm searching for the string "SOFTWARE\Microsoft\Windows\CurrentVersion\App Paths\Civ2TOT.Exe" in your registry.


My ToT is simply called civ2.exe (and the entry in the registry is too), so maybe that's the problem.

It doesn't by any chance default to the C:\MPS\Civ2 folder if it can't find the registry key? That would explain what Curt is getting... Maybe with ToT it should default to C:\Program Files\ ... um, whatever that default installation path is again, though that wouldn't solve Curt's problem either.

quote:
Merc, I'll flail at it some in VB6. Don't be surprised to see some pm's though.


Sure...

Boco is offline Boco
Prince
who was once King for a week.
Jan 2001
time: 00:16
  Old Post 06-11-2004 03:15 Visit Boco's homepage!
Edit/Delete Message Reply w/Quote
#23 Report this post to a moderator
Increase Your PM Length

I just dl'd the cskin02.zip. Deleted the entry for Test of Time Path and saved it. When I opened it again, it started with a blank path, and then automatically entered the correct path.

In the Registry Editor my PC has an entry under HKEY_LOCAL_MACHINE -> SOFTWARE -> Microsoft -> Windows -> CurrentVersion -> App Paths -> Civ2TOT.Exe. It has a path entry there that points to my Civ2.exe (ToT version). That's the entry CSkin searches for.

Merc, do you have the same registry entry?

I also have MGE and FW loaded on my WinXP PC.

techumseh is offline techumseh
King
of the frozen North.
Apr 1999
time: 22:16
  Old Post 06-11-2004 05:23 Visit techumseh's homepage!
Edit/Delete Message Reply w/Quote
#24 Report this post to a moderator
Support Apolyton

Hey, all you Neds and numpteys! Could we please use the ENGLISH language around here?

Oh, wait....

Mercator is offline Mercator
King
Sorekara no Nanimo
Jan 1970
time: 06:16
  Old Post 06-11-2004 05:43 Visit Mercator's homepage!
Edit/Delete Message Reply w/Quote
#25 Report this post to a moderator
Increase the size of your Attachments

Nope, I don't have the Civ2TOT.Exe key. But there's a slight possibility that I actually edited that a long time ago, I don't remember.

curtsibling is offline curtsibling
King
of the Kill!
May 2002
time: 05:16
  Old Post 06-11-2004 05:52 Visit curtsibling's homepage!
Edit/Delete Message Reply w/Quote
#26 Report this post to a moderator
Suffering from ads?

quote:
Originally posted by Boco
Curt, what happens if you select the cell containing the Test of Time path, press [Delete] to clear it, and then click the button below it labeled "Read Registry..."?

What actually is the path to ToT on your PC?

Hmmm. Maybe I'm searching for the wrong string in the registry.


It still gives me the 'not found message'...



It works if I manually paste the folder location in the field though...

Boco is offline Boco
Prince
who was once King for a week.
Jan 2001
time: 00:16
  Old Post 06-11-2004 06:24 Visit Boco's homepage!
Edit/Delete Message Reply w/Quote
#27 Report this post to a moderator
Full PM-box? Change here!

Looks like I need to search for a different registry entry. Stay tuned.

Catfish is offline Catfish
Warlord
Wollongong, Australia
Aug 2000
time: 14:16
  Old Post 06-11-2004 06:30 Visit Catfish's homepage!
Edit/Delete Message Reply w/Quote
#28 Report this post to a moderator
Got spare money?

@Boco:

I also deleted that entry a long time ago when Norton Utilities kept picking it up. It's probably a vestige of a beta version that they forgot to remove. My current entry is HKEY_LOCAL_MACHINE -> SOFTWARE -> Microsoft -> Windows -> CurrentVersion -> App Paths -> civ2.exe -> Path -> C:\Program Files\Microprose\Test of Time. The problem is it might get overwritten by other Civ2 installations. Need to verify.

If you make it in VB6 it could become the standard for installing skins. It definitely beats clumsy batch files. Nice work.

You certainly get your jollies out of my various Internet handles, don't you?

N35t0r is offline N35t0r
King
( o Y o )
Jan 2000
time: 02:16
  Old Post 06-11-2004 06:40
Edit/Delete Message Reply w/Quote
#29 Report this post to a moderator
Suffering from ads?

Curt, did you actually perform an install of that ToT version? (rather than just copying the game from the cd) and that you didn't reinstall windows after that?

Boco is offline Boco
Prince
who was once King for a week.
Jan 2001
time: 00:16
  Old Post 06-11-2004 07:42 Visit Boco's homepage!
Edit/Delete Message Reply w/Quote
#30 Report this post to a moderator
Support Apolyton buy from Amazon

Merc, do you have a VB method to find the path to a Civ2.exe?

I've found two other registry keys:

  • HKEY_CURRENT_USER -> Software -> Microsoft -> DirectPlay -> Applications -> The Test of Time -- CurrentDirectory or Path entries
  • HKEY_CURRENT_USER -> Software -> Microsoft -> Windows -> CurrentVersion -> Uninstall -> Test of Time -- UninstallString
Do you have either of these?

[Edit: just saw Catfish's reply]
On my PC, that handle is taken up with my MGE exe. Looks like I may need to nest some if/then's. Porting to VB6 is on the list (so is revamping EA ). One fantasy is to expand and include modified DLL's, though I'm clueless as to how to preview.

And yeah, Catbegong, I'm easily entertained.

Last edited by Boco on 06-11-2004 at 08:08

 
Pages (2): [ 1   2   ]
< Last Thread     Next Thread > Post New Thread     Post A Reply
All times are GMT. The time now is 05:16.
Apolyton Time is 00:16.
    top of page
Rate This Thread:
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.0633 seconds (90.98% PHP - 9.02% MySQL) with 36 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