.com.unity Forums

.com.unity Forums (http://forum.shrapnelgames.com/index.php)
-   Scenarios, Maps & Mods (http://forum.shrapnelgames.com/forumdisplay.php?f=96)
-   -   how do I create and scan random starting locations (http://forum.shrapnelgames.com/showthread.php?t=24777)

Zooko July 10th, 2005 12:53 PM

how do I create and scan random starting locations
 
I'm trying to set up a 10-player game, and I'm having some trouble configuring the game the way I want. For starters, is there any way to invoke dom2 and tell it to create a new game with certain nations? I can run this command line:

./dom2 -x --mapfile inland.map --research 2 --indepstr 9 --noscoregraphs --enablemod conceptp201.dm --enablemod concepts18.dm --enablemod conceptscale12.dm newtestgamenamewhee

... but it will create a game with no nations. How do I add nations from the command line? I need to do it from the command-line, because I have a computer program that needs to do it over and over several million times in order to generate a fair layout. :-)

Secondly, once I've generated a new game, how do I find out which provinces the nations are starting in? This information appears to be encoded in a binary ftherland file. What's the format of this file? Again, I have to do this from a computer program so that I can do it millions on times in a row. I can't manually load up the app, view the map, click on each starting spot, and type in the number of its province!

Thanks!

Zooko July 10th, 2005 03:43 PM

Re: how do I create and scan random starting locat
 
Well nevermind, I can hack around this issue by choosing random starting locations myself....


All times are GMT -4. The time now is 05:20 AM.

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