Warning: Illegal string offset 'type' in [path]/includes/class_postbit.php(294) : eval()'d code on line 65
How can you disable Factions in SP with CBM 1.82/3? - .com.unity Forums
.com.unity Forums
  The Official e-Store of Shrapnel Games

This Month's Specials

ATF: Armored Task Force- Save $8.00
War Plan Pacific- Save $8.00

   







Go Back   .com.unity Forums > Illwinter Game Design > Dominions 3: The Awakening

Reply
 
Thread Tools Display Modes
  #1  
Old June 2nd, 2011, 06:02 PM

marcelteaching marcelteaching is offline
Private
 
Join Date: May 2011
Posts: 49
Thanks: 6
Thanked 0 Times in 0 Posts
marcelteaching is on a distinguished road
Default 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?

Thanks a lot!

Last edited by marcelteaching; June 5th, 2011 at 08:40 PM..
Reply With Quote
  #2  
Old June 2nd, 2011, 06:05 PM
Squirrelloid Squirrelloid is offline
Major General
 
Join Date: Jun 2009
Posts: 2,157
Thanks: 69
Thanked 116 Times in 73 Posts
Squirrelloid is on a distinguished road
Default Re: How can you disable Factions in SP with CBM 1.92/3?

CBM 1.92? woh.

(I want your time machine)
__________________
The ignorant shall fall to the squirrels.
--Chip 4:2

Ulm: Order of the Black Rose - Reimagining MA Ulm

A more Sombre forum: http://z7.invisionfree.com/Dom3mods/index.php?.act=idx. Now with more Maerlande.
Reply With Quote
  #3  
Old June 2nd, 2011, 06:22 PM

Doo Doo is offline
Sergeant
 
Join Date: Mar 2010
Location: Tasmania
Posts: 356
Thanks: 36
Thanked 26 Times in 20 Posts
Doo is on a distinguished road
Default 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.
Reply With Quote
The Following 2 Users Say Thank You to Doo For This Useful Post:
  #4  
Old June 2nd, 2011, 09:34 PM

marcelteaching marcelteaching is offline
Private
 
Join Date: May 2011
Posts: 49
Thanks: 6
Thanked 0 Times in 0 Posts
marcelteaching is on a distinguished road
Default Re: How can you disable Factions in SP with CBM 1.92/3?

Thanks, thats very helpful. I'll give it a try.
Reply With Quote
  #5  
Old June 3rd, 2011, 12:03 PM
Foodstamp's Avatar
Foodstamp Foodstamp is offline
Major General
 
Join Date: Oct 2006
Location: Tennessee USA
Posts: 2,059
Thanks: 229
Thanked 106 Times in 71 Posts
Foodstamp is on a distinguished road
Default 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!
__________________
BLAH BLAH BLAH BLAH NEXT TURN.
Reply With Quote
The Following User Says Thank You to Foodstamp For This Useful Post:
Reply

Bookmarks


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 02:19 AM.


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