Thread Tools
Old December 6, 2002, 22:59   #1
Talwyn
Settler
 
Talwyn's Avatar
 
Local Time: 12:13
Local Date: November 1, 2010
Join Date: Dec 2002
Posts: 6
MOdswapper....
Is there any documentation on how this program works?

I'd like to create mods but keep the changes isolated from my system files.
Talwyn is offline  
Old December 7, 2002, 06:54   #2
Locutus
Apolytoners Hall of FameCiv4 SP Democracy GameCiv4 InterSite DG: Apolyton TeamBtS Tri-LeagueC4BtSDG TemplarsC4WDG Team ApolytonCivilization IV CreatorsCTP2 Source Code ProjectPolyCast Team
Deity
 
Locutus's Avatar
 
Local Time: 14:13
Local Date: November 1, 2010
Join Date: Nov 1999
Location: De Hel van Enschede
Posts: 11,702
Not sure if there's any documentation (tried the readme?) but it's easy.

Just create a PREFIX_gamefile.txt file in which you keep track of which files should be used by the mod (and use duplicates of the files you change with the same prefix - the same prefix isn't necessary but it's less confusing than giving every file it's own unique prefix ). ModSwapper looks for any *_gamefile.txt files so your prefix can be anything as long as no other mod already used it (which would force users of your mod to manually rename file(s)).

The PREFIX_gamefile.txt file should be of the same format as the regular gamefile.txt files except that you should add 3 things at the bottom of the file: (1) the name of your mod (as it should be displayed in ModSwapper), (2) what file to use for newsprite.txt and (3) what file to use for Great_Library.txt (due to bugs these last two aren't read properly otherwise).

Keep in mind that the language-specific files are all stored in strings.txt, so you effectively have to do the same thing with strings.txt in the english folder as you do for the gamefile.txt in the default folder (and make the new gamefile.txt refer to the proper strings.txt file of course).

Look at the CRA/APOL/MM2_gamefile.txt (and *_strings.txt) files for examples.
__________________
Administrator of WePlayCiv -- Civ5 Info Centre | Forum | Gallery
Locutus is offline  
Old December 7, 2002, 14:03   #3
Martin Gühmann
staff
Call to Power II Democracy GameCall to Power Democracy GameCTP2 Source Code Project
Super Moderator
 
Martin Gühmann's Avatar
 
Local Time: 14:13
Local Date: November 1, 2010
Join Date: Mar 2001
Location: Tübingen, Germany
Posts: 6,206
Quote:
Originally posted by Locutus
The PREFIX_gamefile.txt file should be of the same format as the regular gamefile.txt files except that you should add 3 things at the bottom of the file: (1) the name of your mod (as it should be displayed in ModSwapper), (2) what file to use for newsprite.txt and (3) what file to use for Great_Library.txt (due to bugs these last two aren't read properly otherwise).
That is not correct you don't have to add these files at the end of the *_gamefile.txt because of bugs. The fact that the game reads these files is just hard encoded and not written into the gamefile.txt. There is a difference between bugs and the way how to implement stuff.

-Martin
__________________
Civ2 military advisor: "No complaints, Sir!"
Martin Gühmann is offline  
Old December 7, 2002, 15:23   #4
Maquiladora
Call to Power II MultiplayerCTP2 Source Code ProjectCall to Power PBEMCall to Power Multiplayer
Emperor
 
Local Time: 13:13
Local Date: November 1, 2010
Join Date: Jun 2001
Posts: 7,665
Also, I usually create a scenario directory for a mod, or if i want to test one specific part of someone else's mod, ie Diplomod. Its easy to make quick changes this way.
__________________
Call to Power 2: Apolyton Edition - download the latest version (7th June 2010)
CtP2 AE Wiki & Modding Reference
One way to compile the CtP2 Source Code.
Maquiladora is offline  
 

Bookmarks

Thread Tools

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 08:13.


Design by Vjacheslav Trushkin, color scheme by ColorizeIt!.
Powered by vBulletin® Version 3.8.2
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
Apolyton Civilization Site | Copyright © The Apolyton Team