Author Topic: Network play for Scenarios? I think so!  (Read 3454 times)

softcoder

  • MegaGlest Team
  • Battle Machine
  • ********
  • Posts: 2,238
    • View Profile
Network play for Scenarios? I think so!
« on: 26 December 2011, 06:26:03 »
We're playing around with allowing network play for scenarios over the next while. I currently have rigged together something that works simply by setting the control type in the scenario XML to "network". Additionally I display a list of scenarios in the custom game lobby that have at least 1 network player, and when selected it sets all settings to those of the scenario + sets the scenario name which then loads for all players at game start.

While testing we will need to somehow ensure that network scenarios are free of any dangerous LUA that could cause out of synch. Eventually we may need to have a way of having server controlled instructions for some LUA script logic to ensure consistency (not sure yet). But if we get this working it could open a whole new opportunity for fun for network play (mixing campaign + multi-player).

*Update: did a quick test with Elimnator using a sample scenario he whipped together and so far so good! This will make network play VERY fun and so much more interesting, but will definitely require a whole new way of thinking when it comes to scenarios since these types of scenarios are not single player focussed (message boxes need to target the active player etc). Mix this with multi-scenario loading and it gets amazingly fun :)
« Last Edit: 26 December 2011, 07:21:01 by softcoder »

victorj

  • Guest
Re: Network play for Scenarios? I think so!
« Reply #1 on: 26 December 2011, 15:13:08 »
We're playing around with allowing network play for scenarios over the next while. I currently have rigged together something that works simply by setting the control type in the scenario XML to "network". Additionally I display a list of scenarios in the custom game lobby that have at least 1 network player, and when selected it sets all settings to those of the scenario + sets the scenario name which then loads for all players at game start.

While testing we will need to somehow ensure that network scenarios are free of any dangerous LUA that could cause out of synch. Eventually we may need to have a way of having server controlled instructions for some LUA script logic to ensure consistency (not sure yet). But if we get this working it could open a whole new opportunity for fun for network play (mixing campaign + multi-player).

*Update: did a quick test with Elimnator using a sample scenario he whipped together and so far so good! This will make network play VERY fun and so much more interesting, but will definitely require a whole new way of thinking when it comes to scenarios since these types of scenarios are not single player focussed (message boxes need to target the active player etc). Mix this with multi-scenario loading and it gets amazingly fun :)

lol, very cool! very nice to have online scenarios, I know one day that this game can be compared to titles like Age of Empires, Warcraft and Megawar, especially with a campaign that I so desire, more buildings and units, explorers,aquatic(naval) attack, one way to advance level of the building ... let's go MegaGlest!!!
« Last Edit: 26 December 2011, 22:36:37 by victorj »

Ishmaru

  • Behemoth
  • *******
  • Posts: 1,071
  • um wat??
    • View Profile
    • DelphaDesign
Re: Network play for Scenarios? I think so!
« Reply #2 on: 27 December 2011, 00:22:12 »
Great news softcoder! This will allow for co op campains, new game modes, and other great things. Lookin forward to see what's next!
Annex: Conquer the World Release 4 For Pc Mac + Linux
https://forum.megaglest.org/index.php?topic=9570.0
Annex is now on Facebook!
https://www.facebook.com/AnnexConquer

treba

  • Guest
Re: Network play for Scenarios? I think so!
« Reply #3 on: 27 December 2011, 13:33:03 »
great news!

so we can finally create funmaps and real gameplay mods, which were exactly the things that made the warcraft 3 community so big!! (think of dota, footmen frenzy, tower defence or many rpg-maps). this is what i waited for for a long time :)
thanks a lot, softcoder!!

and, believe it or not, my scenario editor is also coming closer and closer to completion.

MuwuM

  • Ornithopter
  • *****
  • Posts: 426
  • No Game without Move(ment)
    • View Profile
    • MuwuM - Lexicons
Re: Network play for Scenarios? I think so!
« Reply #4 on: 27 December 2011, 23:19:07 »
I think I don't have to say it, but anyways:

I totally like the idea of network-scenarios

While testing we will need to somehow ensure that network scenarios are free of any dangerous LUA that could cause out of synch. Eventually we may need to have a way of having server controlled instructions for some LUA script logic to ensure consistency (not sure yet). But if we get this working it could open a whole new opportunity for fun for network play (mixing campaign + multi-player).

Yes I think it would be usefull to have LUA server-controlled I have done much LUA stuff last days. I noticed, that LUA is not done the same in Windows and Linux. For example need Linux-LUA 2 parameters for math.random() and windows accept 1 and 2 parameters.

Omega

  • MegaGlest Team
  • Dragon
  • ********
  • Posts: 6,167
  • Professional bug writer
    • View Profile
    • Personal site
Re: Network play for Scenarios? I think so!
« Reply #5 on: 28 December 2011, 21:08:58 »
Sounds awesome. On a side note:

"Lua" (pronounced LOO-ah) means "Moon" in Portuguese. As such, it is neither an acronym nor an abbreviation, but a noun. More specifically, "Lua" is a name, the name of the Earth's moon and the name of the language. Like most names, it should be written in lower case with an initial capital, that is, "Lua". Please do not write it as "LUA", which is both ugly and confusing, because then it becomes an acronym with different meanings for different people. So, please, write "Lua" right!
Edit the MegaGlest wiki: http://docs.megaglest.org/

My personal projects: http://github.com/KatrinaHoffert

uncle

  • Guest
Re: Network play for Scenarios? I think so!
« Reply #6 on: 29 January 2012, 15:22:41 »
Great idea! :)

 

anything