
January 19th, 2004, 06:26 PM
|
Private
|
|
Join Date: Nov 2003
Posts: 40
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
Re: calling all (batch file, script, VB, VC) programmers
Quote:
Originally posted by Gandalf Parker:
OK I had a brain-fart. I was thinking about the run_dommap.sh that came with the DomMap program (creates random maps). It made setting all the variables easier by listing them all and letting you edit them, then calling the program with the new settings. Part of it looks like this...
# Number of sea provinces
NUM_SEA=10
# Number of land provinces
NUM_LAND=90
All the settings start out the same as the defaults. After you scroll thru and change them then it does a call to the program with all the new settings. Kindof like this...
dommap -ns $NUM_SEA -nl $NUM_LAND
Anyway I was thinking that this could be done with all the confusing settings of the Dom2 executable. Mostly Im thinking for the Soloists who like to play with the same settings over and over.
(1) the first and simplest Version would be just to list the variable settings as defaults in a nice simple text file to be edited. Such as
--indepstr 3 --magicsites 40 --eventrarity 1
which I get tired of changing to my preferences of --indepstr 7 and --magicsites 60. And things like game name could be set to delete everything in that game directory and re-use it. Such as something like always using a game name of MyGame with your default favorite map.
(2) the next Version could add some new things that are not part of the Dom2 commandline switches. Such as the human player. If Im presently on a kick of playing only Man then it could copy the man.2h file from the newlords directory into the MyGame directory which will lock Man into human player. Or maybe someone would rather make this interactive with buttons and everything so you can select your god and map.
|
ok, #1 is easy enough (took all of 10 minutes) but on #2 that's where I don't see any command line options. If you could tell me how to set the human and AI players in the game via the command line...
shelling dom is easy in VB although I am not sure but might be limited to a 255 byte command line... I can do all the file moving/copying easily enough if I knew the basic methodology. basically tell me roughly how it's done (how I set the AI strength outside of the game i.e through file or command line) then I'll add part 2. right now all I can do is start the game with new game defaults changed to whatever you want lol... not greatly useful really. I believe I can make it a two icon deal one will launch dom direct with your default options the other will let you change your options. launcher will start dom with your defaults then exit while dom is loading.
|