.com.unity Forums

.com.unity Forums (http://forum.shrapnelgames.com/index.php)
-   Dominions 3: The Awakening (http://forum.shrapnelgames.com/forumdisplay.php?f=138)
-   -   How can you disable Factions in SP with CBM 1.82/3? (http://forum.shrapnelgames.com/showthread.php?t=47476)

marcelteaching June 2nd, 2011 06:02 PM

How can you disable Factions in SP with CBM 1.82/3?
 
Can anyone suggest how to simply disable certain factions when creating a SP random generated game? This is helpful if you do not wish to see certain factions in your game, but do want randomly generated ones, without picking them, which kills the suprise.

Can one simply edit a certain file and set them to disabled, or make a backup and just delete the faction or similar? :confused:

Thanks a lot!

Squirrelloid June 2nd, 2011 06:05 PM

Re: How can you disable Factions in SP with CBM 1.92/3?
 
CBM 1.92? woh.

(I want your time machine)

Doo June 2nd, 2011 06:22 PM

Re: How can you disable Factions in SP with CBM 1.92/3?
 
Without testing...

Generate the random map and start a game with any settings, its not important at this point. Quit the game.

Go into your Saved Games folder. Find the .map file for the map you just created, for example if you called your game Fishgame then it will be called __Fishgame__God.map

Move this .map file and the corresponding .rgd file (eg __randommap__Fishgame.rgb) into the general map folder (eg C:\Dominions3\maps).

Open the .map file with a text editor (Notepad will do) and add in lines "#allowedplayer 15" for each nation you want playable. You will need to check the editing manual for each nations number. Save the file after editing.

Start Dominions 3, new game, select the map name and pick the number of random nations, it should only allow you to pick up to the number of nations you specified in the .map file. Play the game.

I should add you can do it this way but you can't do it globally (to the best of my knowledge). If you have a set list of favorite enemies save the list in a .txt file, then simply copy and paste it into .map files. This will save you time for each new map.

marcelteaching June 2nd, 2011 09:34 PM

Re: How can you disable Factions in SP with CBM 1.92/3?
 
Thanks, thats very helpful. I'll give it a try.

Foodstamp June 3rd, 2011 12:03 PM

Re: How can you disable Factions in SP with CBM 1.92/3?
 
A more elegant way to do this would be to be to create a mod that disabled the nations.

To do that create a new text document called whatever.dm

The specific code you need is:

#selectnation "Nation Number"
#era 0
#end

Do this for all the nations you want removed. The nation number corresponds with the nation numbers listed in the mod document found in the dominions folder.

You will need some header information in your mod, you can create that by using any mod as a template.

The end result is that the nations are disabled for any map without having to modify individual map files.

Goodluck!


All times are GMT -4. The time now is 05:04 PM.

Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©1999 - 2025, Shrapnel Games, Inc. - All Rights Reserved.