.com.unity Forums
  The Official e-Store of Shrapnel Games

This Month's Specials

Raging Tiger- Save $9.00
winSPMBT: Main Battle Tank- Save $6.00

   







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

Reply
 
Thread Tools Display Modes
  #1  
Old May 20th, 2007, 08:11 PM

llamabeast llamabeast is offline
National Security Advisor
 
Join Date: Nov 2006
Location: Oxford, UK
Posts: 5,921
Thanks: 194
Thanked 855 Times in 291 Posts
llamabeast will become famous soon enoughllamabeast will become famous soon enough
Default Starting mod-nation MP games in text-only mode

Bit of a technical question here.

I've been working for a while on my automated PBEM system, which is called the LlamaServer. It's running fine, and has a few games going at the moment. It has the capacity to host far more though (at least 10s I should think, maybe more), and so I want to automate as much of the process of creating and running games as possible.

With a considerable amount of help from Gandalf, I was able to get it to automatically start games once all the pretender files have been received. It goes like this:
- Put all the pretender files in the game directory
- In text mode, tell it to start hosting a new game with that name. It'll then sit there waiting for people to connect and upload pretenders. Given a timeout of zero seconds, it'll immediately give up, then notice a load of pretenders are already in the correct directory, and use them.
- It'll then sit waiting for people to play their turns. Being as this is a PBEM game that isn't what we want, so just kill the process. But the game has now been successfully started.

This all works brilliantly. Thanks Gandalf!

The problem I've now run into is with mod nations. I'm a huge fan of some of the mod nations, particularly Sombre's Ulm Reborn and Vaettiheim SE. So I'd very much like players to be able to choose those nations in my games. The problem is that the above procedure doesn't work for mod nations - the pretender files just don't get noticed.

Doing tests in graphical mode, I've found the following:
- If you go straight to "Setup a dominions server", the mod nations aren't in the list.
- If you first click "Create a new game", then immediately hit Cancel, then do "Setup a dominions server", the mod nations will now be in the list.

So it seems that "Create a new game" makes dominions look at the mods and realise that there are extra nations to include.

So my question is, how can I mimic this in text-only mode? Is there any way of making dominions accept pretenders for mod nations without using the graphical interface?

If anyone has any thoughts they'll be greatly appreciated. Sorry for the long and technical post! It'll be really good if I can get this working.
__________________
www.llamaserver.net
LlamaServer FAQ
My mod nations: Tomb Kings and Vampire Counts
A compilation of high quality mod nations: Expanded Nations Packs
Reply With Quote
  #2  
Old May 21st, 2007, 06:10 PM

llamabeast llamabeast is offline
National Security Advisor
 
Join Date: Nov 2006
Location: Oxford, UK
Posts: 5,921
Thanks: 194
Thanked 855 Times in 291 Posts
llamabeast will become famous soon enoughllamabeast will become famous soon enough
Default Re: Starting mod-nation MP games in text-only mode

Anyone? Gandalf?
__________________
www.llamaserver.net
LlamaServer FAQ
My mod nations: Tomb Kings and Vampire Counts
A compilation of high quality mod nations: Expanded Nations Packs
Reply With Quote
  #3  
Old May 21st, 2007, 08:00 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: Starting mod-nation MP games in text-only mode

I have good news and I have bad news.

The good news is that it is possible to run multiplayer games using mods such as added nation mods. The bad news is that it is not possible (as far as Ive been able to do) to do it by automated script or text mode. There is an --enablemod switch which will turn a mod on but the mod doesnt get checked in that mode until the game-creation stage.

From the tests that I have done I think you can probably use enablemod with the banners mod, the heroes mod, the balance mod, and various mods that turn off spells or equipment that people dont like. It seems to only be nations that are a problem.

The work around is an extensive setup by the game host. A combination of PbEM (the players send you their gods), hotseat game creation (you make the game and "join" as each player), and then shifting it to TCP/IP. Its the best we have come up with so far and seems to be working in the mega-game Perpetuality altho I wouldnt want to do that very often.

Check out this thread...
Single Age mod

edit: I should mention that it has been reported to Johan over in the beta-test group.
__________________
-- 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
  #4  
Old May 22nd, 2007, 05:45 AM

llamabeast llamabeast is offline
National Security Advisor
 
Join Date: Nov 2006
Location: Oxford, UK
Posts: 5,921
Thanks: 194
Thanked 855 Times in 291 Posts
llamabeast will become famous soon enoughllamabeast will become famous soon enough
Default Re: Starting mod-nation MP games in text-only mode

Oh, well it's good it's been reported to Johan at least. Did he make any response at all? I guess everyone has their pet issue which seems like *the* most important to fix - I think this will be mine!
__________________
www.llamaserver.net
LlamaServer FAQ
My mod nations: Tomb Kings and Vampire Counts
A compilation of high quality mod nations: Expanded Nations Packs
Reply With Quote
  #5  
Old May 22nd, 2007, 11:59 AM
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: Starting mod-nation MP games in text-only mode

I got the impression that it was very much NOT an easy thing to fix. Basically, I wouldnt wait for it.

Id like to see the PbEM setup made abit easier. For a PbEM game it certainly has a difficult PbEM game setup.
__________________
-- 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
  #6  
Old May 22nd, 2007, 01:51 PM

llamabeast llamabeast is offline
National Security Advisor
 
Join Date: Nov 2006
Location: Oxford, UK
Posts: 5,921
Thanks: 194
Thanked 855 Times in 291 Posts
llamabeast will become famous soon enoughllamabeast will become famous soon enough
Default Re: Starting mod-nation MP games in text-only mode

Aha, now Gandalf, I think I have an improved method for you (having just read the above linked post)!

You don't need to manually join the game with each pretender (that must have been a nightmare!). Instead:

- Put all the pretenders in the game directory.
- Having enabled the appropriate mods, click "Create a New Game", then immediately cancel. This seems to make Dominions read the mods. This was a lucky discovery!
- Start a network game as usual, obviously using the correct game name. The mod nations will be listed and the appropriate pretenders will already be joined!

So, I would imagine that it would not be that hard for Johan to fix (although of course I know nothing about how the code works) - all that needs to be added is that when hosting a new game the game first automatically does whatever it does when you click "Create a new game" and then immediately cancel. It's very frustrating that this just can't _quite_ be done in text-only mode.
__________________
www.llamaserver.net
LlamaServer FAQ
My mod nations: Tomb Kings and Vampire Counts
A compilation of high quality mod nations: Expanded Nations Packs
Reply With Quote
  #7  
Old May 22nd, 2007, 01:55 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: Starting mod-nation MP games in text-only mode

Wow I really thought we had hacked every possible action.
Thats a fantastic discovery.

__________________
-- 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
  #8  
Old May 22nd, 2007, 01:57 PM

llamabeast llamabeast is offline
National Security Advisor
 
Join Date: Nov 2006
Location: Oxford, UK
Posts: 5,921
Thanks: 194
Thanked 855 Times in 291 Posts
llamabeast will become famous soon enoughllamabeast will become famous soon enough
Default Re: Starting mod-nation MP games in text-only mode

Thanks! Just a lucky stumble.
__________________
www.llamaserver.net
LlamaServer FAQ
My mod nations: Tomb Kings and Vampire Counts
A compilation of high quality mod nations: Expanded Nations Packs
Reply With Quote
  #9  
Old May 22nd, 2007, 01:58 PM

llamabeast llamabeast is offline
National Security Advisor
 
Join Date: Nov 2006
Location: Oxford, UK
Posts: 5,921
Thanks: 194
Thanked 855 Times in 291 Posts
llamabeast will become famous soon enoughllamabeast will become famous soon enough
Default Re: Starting mod-nation MP games in text-only mode

Do you reckon you could pass the info on to Johan, Gandalf, in case it makes the issue easier to resolve? It would be so great if we could fully automate creating games with mod nations.
__________________
www.llamaserver.net
LlamaServer FAQ
My mod nations: Tomb Kings and Vampire Counts
A compilation of high quality mod nations: Expanded Nations Packs
Reply With Quote
  #10  
Old May 22nd, 2007, 01:58 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: Starting mod-nation MP games in text-only mode

I wonder if something like that could be duplicated in a script by starting the game in a form which will bomb (Ive sure found my share of those), and then starting the game again. Worth testing.
__________________
-- 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
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 01:37 AM.


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