[TUTORIAL] How to Create an Installer For Caveman2Comos modmod

Azurian

The Azurian
Joined
Apr 10, 2012
Messages
2,092
Location
Florida, USA
Welcome, if you want to create an Installer for Caveman2Cosmos you have come in the right place! There are two versions, The Basic Installer and the Installer with custom backgrounds, icons, and other stuff. For now we will focus on Basic Installer.

View of the Basic Installer:
Spoiler :



Tools Needed

1. Notepad++
http://notepad-plus-plus.org/download/

2. NSIS Installer with C2C BTS Script [See Attachment -Credit: phungus420, John Elcard, NikNaks]




Steps


1. Install Notepad++.
2. Unzip NSIS Installer.zip to Desktop.

So far so good! :lol:

3. Open the NSIS Installer Folder in your Desktop. It should have the following Contents:




4. Right click on BtSModInstallScript.




5. Click on Edit with Notepad++




6. The BTS Installer Script should Open and it Will look like this:




7. There are only a few Sections that will need to be Edited on the Very top. Do not Edit Anything Else.


.

!define NAME "Caveman2Cosmos" ;Full Name of Mod
Rename Caveman2Cosmos between the "" to your Mod Name.


[COLOR="RoyalBlue)"] !define VERSION "33" ;Mod Version Number[/COLOR]
Rename the 33 between the "" with Version of your mod. I didn't put any parenthesis aka ( ).


!define MOD_LOC "Caveman2Cosmos" ;Name of Mod Folder
Rename Caveman2Cosmos between the "" to the name of your Mod Folder. The Folder has to be in \Firaxis Games\Sid Meier's Civilization 4\Beyond the Sword\Mods\. Important that it is spelled right and is Case Sensative.

!define SHORT_NAME "C2C" ;Shorthand/nick of your mod
Rename C2C between the "" to the Initials/Nickname of your Mod.


!define MYBTSDIR "C:\Program Files (x86)\Firaxis Games\Sid Meier's Civilization 4\Beyond the Swords" ;Path where your Beyond the Sword .exe is

Rename this to path where your Beyond the Sword.exe is at. It is most likely you will not have to Rename anything .

If you have a 64-bit Processor and installed in Default Location use Program Files (x86).

If you have a 34-bit Processor and installed in Default Location use Program Files.

Example of 64 bit:
"C:\Program Files (x86)\Firaxis Games\Sid Meier's Civilization 4\Beyond the Swords"

Example of 32 bit:
"C:\Program Files\Firaxis Games\Sid Meier's Civilization 4\Beyond the Swords"


!define MYCLSDIR "C:\Program Files (x86)\Firaxis Games\Sid Meier's Civilization 4\Beyond the Sword\Mods\${MOD_LOC}" ;Path where your mod is (Leave ${MOD_LOC} on the end of the path)

This is the path to your Beyond the Sword\Mods\ Folder is at.



8. Save The File. I would click on File -->Save, or press CTRL and S.

9. Go to your NSIS Installer Folder in your Desktop. Open makensisw.


10. This screen will come up. It will come up full screen. Restore Down it.




11. Find BtSModInstallScript .



12.Drag BtSModInstallScript and dump it in makensisw. It will start to load the code.





Good Job if You see .FPKs and Files with the word [compress] everywhere.

Bad Job if You see an error message on the end about a line. This means the path or Folder name you edited was wrong. Make sure what you edited has "" like the picture above.

13. At this point your Mod will start to compile.


14. You will know your Mod has been converted to an Installer when you see the following at the very end:

Total size: 1670699908 / 2913219361 bytes (57.3%)

It may take a few minutes for the Installer to create after you see Total size. Wait a few minutes, in Caveman2Cosmos it took 10 minutes after the Total size message was displayed.

In your Mod the numbers will look different since the size is different than Caveman2Cosmos v33. The .exe Installer will be located inside the NSIS Installer Folder.




15. It might sometimes also be located in a Folder called BtSModInstallScript.

16. When your Installer is all done you can open it to see the Installer For You Mod.

I hope this was informative, and that it helped you out! :lol::lol::goodjob:

 
Top Bottom