Converting Civ3 Mods into Civ4 Mods

ModSercherTex

Chieftain
Joined
Feb 25, 2008
Messages
9
Dose anybody Know how to make a Civ3 Mod work as a Civ4 mod? I am a big Stargate fan and have been looking all over for a Civ4 Stargate Mod, but I have not found anything. I did find a scenario that uses the SG-1 members as leaders, but it only changes one unit. I have found a couple Civ3 Stargate Mods. I think it would be easier to convert thees Mods to Civ4 than it would be to create totally new Mods from scratch.
 
Answer: through the long, hard effort that goes into converting them. ;)

There is no way to do this other than just manually creating a new mod from scratch. Civ 3 and 4 are entirely different games, and their save files are entirely different. It's not possible to play one on the other as-is.
 
I "ported" civIII RFRE to civIV. All the units, maps, tech.. they're all different. The only thing that could be saved in any direct form was the game text. Here is the perl script I used to do the conversion:

Code:
#!perl
#
# convert civIII pediainfo.txt into civIV format
######################################################

open(PEDIA,"Civilopedia.txt") || die "$! tyring to read Civilopedia.txt\n";
open(OUT,">pedia.txt") || die "$! tyring to create pedia.txt\n";
# open(DEBUG,">debug.txt") || die "$! tyring to create debug.txt\n";
select OUT;

$/ = "\n; ";

while(<PEDIA>){
  if ( /^ADVANCES/ ){
	 $_ =~s/\^(.*)\n/$1/g;
	 # print DEBUG "$_";

	 @lines = split(/\n/,$_);
	 foreach $i ( 1 .. $#lines ){
	     $line = @lines[$i];
 	     if ( $line =~/^#DESC_TECH_(\S+)/ ){
	    	      $label = uc($1);
	    	      $tag = "TXT_KEY_TECH_$label";
	     }
	     elsif ( $line =~/^#TECH_/ || $line =~/\{New Ability\}/ ){
	        next;
	     }
	     elsif ( $line =~/^(.*)$/ ){
       	      $text = $1;

       	      $text =~s/^//g;
	      next if ( $text eq "" || $text =~/TECH_TECH/ );
	      print<<"EOP";
	<TEXT>
		<Tag>$tag</Tag>
		<English>. .. .. .. .. .$text</English>
		<German>. .. .. .. .. . boo </German>
		<Italian>. .. .. .. .. . boo </Italian>
		<Spanish>. .. .. .. .. . boo </Spanish>
	</TEXT>
EOP
     	      }
     	}
  }

}

It's possible to do more automation, but I didn't know anything about how civIV worked at the time, and still don't know anything about civIII file formats.
 
There was at least one thread about a Stargate mod, but it might have been from a long time ago. Do a search in this forum over the last year. I don't know how far they got.
 
Ok anybody know how to convert units, buildings, and tech from Civ3 format into Civ4 format. I would also settle for the location of Stargate Graphics, such as units and buildings, for Civ4.

PS;I will be starting a new thread in this section with the goal of creating a Stargate Mod for Civ4. So tell others and hopefully it will get completed quickly.
 
Back
Top Bottom