![]() |
calling all (batch file, script, VB, VC) programmers
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. (3) this Version starts getting more into my territory. The things that can be done with a .map file on the fly. If I say I want to play the orania.map then the script could copy orania.map to a file named temp.map then start the game with temp.map. This would still end up using the orania.tga but would allow some "adjustments" to the .map file involved. Such as adding in AI's. In my case presently it would add all nations except man as an AI set at standard setting. Im getting tired of clicking all that. But if you like a smaller map and prefer to play against just certain nations at certain settings a text file would be easy to edit that. Alot easier than understanding the Control_Switches and MapEdit file. If you are a real glutton for punishment you could also set the AI's as allies to each other. (4) this is way into my territory. Some may wish to stop reading here. This is where I throw in all my random stuff. Random opponents selected from the nations not equal to th human-player selection. Random AI settings. Random alliances between them. Possibly random scattering of castles/labs/temples all over the map. Randomly giving some of those to the ownership of AI's. Maybe even random commanders with random equip and units in every province. Maybe even random selection of the map to be played on. Clicking on that bat/script/program could give me a new MyGame where the only thing I know is who Im playing and with what god. (hmmmm come to think of it.. no, too much. Not even I want to play that random) Anyway, why did I post this? Because it seemed like a good idea and waiting for me to create it is like waiting for a RandomEvent so if anyone out there wants to offer this to the Dominions community then feel free to do so. -- WANTED: A trustworthy "wish I had ideas" project finisher to partner in a profit sharing relationship with an excellent "got too many ideas" project starter. |
Re: calling all (batch file, script, VB, VC) programmers
Quote:
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. |
Re: calling all (batch file, script, VB, VC) programmers
Quote:
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:
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] |
Re: calling all (batch file, script, VB, VC) programmers
ah... just tested it and there is no problem at all with commandline length... unless maybe you have "thegreatlandofthebiggiantthingsinthefarreachesoft hewesternprovincesofthesoutherncontinentofthehybor ianplanetwiththebigredmoonandallthosetwinklystars. map"
otherwise works perfectly. |
Re: calling all (batch file, script, VB, VC) programmers
Should be done prettying it up and debugging in a few minutes (half hour tops I should think) so if you have somewhere you want me to send the windows Version feel free to tell me hehe.
If you want to work on adding your scripting of the map file to my shell then let me know since editing text files should be within ANYONES ability I would hope hehe. Anyway I can assemble a text file on the fly of course without difficulty so let me know (edit/re-assemble etc.) |
Re: calling all (batch file, script, VB, VC) programmers
BTW, making the AI's through the map would be fine with me. Integrating a map randomizer type setup to the launcher wouldn't be much trouble really. If you want to setup (or if you already have setup) algorithms for how to setup the randoms and all that I can incorporate it.
These are the steps basically... (correct me if I'm wrong) make the .map file, copy the .2h file from newlords to the <gamename> dir then call dom2 with the commandlines for making a new game and -g <gamename> correct? |
Re: calling all (batch file, script, VB, VC) programmers
hmmm, interesting... adding VP conditions through commandline causes the game to start at choose race but with an empty list lol.
|
Re: calling all (batch file, script, VB, VC) programmers
Quote:
http://www.techno-mage.com/~dominion/opponents.yab And here is one of the crazier game generators. http://www.techno-mage.com/~dominion/Poke_Eye.yab I think both of them use the original .map file renamed to something like a .txt file so I can always copy it again and again. The originals have all the #neighbor and #terrain commands. I just add my stuff to the end. |
Re: calling all (batch file, script, VB, VC) programmers
ok, preliminary windows GUI Version appears to be free of buggies and all that so if you want to look at it let me know where to send it. I'll send source+executable but not the VB6 runtimes so you might need those.
|
Re: calling all (batch file, script, VB, VC) programmers
Quote:
Old SysAdmin thing. Im not sure if this forum sheds spiders so I dont like posting my address too planly $name = "gandalf"; $sym = "@"; $domain = "community.net"; $full_address = name + sym + domain; http://forum.shrapnelgames.com/images/icons/icon12.gif |
Re: calling all (batch file, script, VB, VC) programmers
ok, sent it all... it's ummmm, rough http://forum.shrapnelgames.com/images/icons/icon12.gif could clean it up if it ends up a seriously large project but as it stands I doubt there's much need.
oh yah! hehe there's NO error checking on the path or map name so if you give invalid arguments it will crash. (however just the launcher will crash won't hurt anything else.) [ January 19, 2004, 20:04: Message edited by: DimmurWyrd ] |
Re: calling all (batch file, script, VB, VC) programmers
oh yah... it doesn't exit when you hit launch yet http://forum.shrapnelgames.com/images/icons/icon12.gif so you could really click the heck out of that button and launch dom 20 times or more lol dunno at what point your system would die from it lol
|
Re: calling all (batch file, script, VB, VC) programmers
one other thing I forgot to mention... doesn't do VP yet... for some reason if I send VP info it tries to run the game at the choose race screen with no races available (exit exits the game completely)
|
Re: calling all (batch file, script, VB, VC) programmers
Quote:
|
Re: calling all (batch file, script, VB, VC) programmers
oops! hehe keep forgetting that rar isn't that widely used still. I'll re-send as a zip in case you haven't gotten something to handle the rar yet.
|
Re: calling all (batch file, script, VB, VC) programmers
Quote:
I like the screen that came up. But when I finished putting everything in the game blew up. Will keep working on it. |
Re: calling all (batch file, script, VB, VC) programmers
Quote:
I like the screen that came up. But when I finished putting everything in the game blew up. Will keep working on it. </font><hr /></blockquote><font size="2" face="sans-serif, arial, verdana">hmmmm, game blew up? only thing I can think of would be an invalid .map filename... **EDIT** did you make a shortcut then add (Drive):\(PATH) as a command line parameter? http://forum.shrapnelgames.com/images/icons/icon7.gif [ January 19, 2004, 21:46: Message edited by: DimmurWyrd ] |
Re: calling all (batch file, script, VB, VC) programmers
Quote:
|
Re: calling all (batch file, script, VB, VC) programmers
OK new Brain-Fart
I dont know if you were following the thread where the guy wanted the game to let him know (stop reading a book, stop watching TV) when his turn was ready on his multiplayer Dom2 games. So I had a simple thought..... Watch c:\program files\dominions2\myGame files change = BEEP continue watching Huh? Huh? A batch or exe or something that you start and then you start dominions to play your game. Improvements could be.... 1) ask the name of the game to watch, the path 2) play a wav 3) possibly something visual also. Hmm wonder if a call can pop the Dom window back to full from the bar. 4) play a wav or mp3 of the players choosing. I especially like this because there are great places on the net that you can get a wav created saying anything you want in any voice you want. There are some sexy voices and some really rude robot ones that I can use to make a wav to tell me that my turn is ready. And it would be very.. ummm... "different" than any that could come packaged in a general distribution. *evil grin* -- WANTED: A trustworthy "wish I had ideas" project finisher to partner in a profit sharing relationship with an excellent "got too many ideas" project starter. |
All times are GMT -4. The time now is 06:35 PM. |
Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©1999 - 2025, Shrapnel Games, Inc. - All Rights Reserved.