View Single Post
  #3  
Old January 19th, 2004, 06:43 PM
Gandalf Parker's Avatar

Gandalf Parker Gandalf Parker is offline
Shrapnel Fanatic
 
Join Date: Oct 2003
Location: Vacaville, CA, USA
Posts: 13,736
Thanks: 341
Thanked 479 Times in 326 Posts
Gandalf Parker is on a distinguished road
Default Re: calling all (batch file, script, VB, VC) programmers

Quote:
Originally posted by DimmurWyrd:
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...
Cant be done by command line. The human player can be set by using the trick for setting up a PBEM game. (at least I tihnk so, havent tested it). Apparently if you create a game directory, and copy "all the players" god files to the directory, then start the game it will do it with all those players as human players.

The AI part I had in Version 3 because as far as I know that can only be done by adding them into the .map file as computer-run opponents in the map design. I tried to figure out some slick way to start them as humans then switch them to computer but it didnt work.

Quote:
shelling dom is easy in VB although I am not sure but might be limited to a 255 byte command line...
If it gets too involved Id rather see the variables as a seperate text file. The idea was to have something that the players could easily edit. Maybe we could get Johan to add a "read from config file" option.

Otherwise you could maybe write a bat file then call it. Hmmm that might be better anyway. Take their settings and create a bat file to do it. Then they can just keep hitting the bat file until they need to change settings...

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. [/QB][/quote]
__________________
-- DISCLAIMER:
This game is NOT suitable for students, interns, apprentices, or anyone else who is expected to pass tests on a regular basis. Do not think about strategies while operating heavy machinery. Before beginning this game make arrangements for someone to check on you daily. If you find that your game has continued for more than 36 hours straight then you should consult a physician immediately (Do NOT show him the game!)
Reply With Quote