Author Topic: So I'm thinking about Muilt-Player-Mode, as Aino is developing EVE...  (Read 16002 times)

Breakord

  • Sapling
  • **
  • Thank You
  • -Given: 14
  • -Receive: 7
  • Posts: 57
  • Eufloria: Yes
I have not do any practice, but I do have some simple ideas.
I am just a programming enthusiast, so you may ignore my words if they are ridiculous :)

My conception is that:
Let the player 2 control one of the AI empires.
So the muilt-player engine may go like that:
1.Listen to what player 1 is doing now, save this information to a variable like Inf
2.Send Inf to player 2's device.
To take this step, player 1's device have to be connected with player 2s' first.
So the library 'lua socket' is required.
(LuaSocket is the most comprehensive networking support library for the Lua language.)
3.On player 2 's device, the engine reads Inf and controls one of the AI empires, simulating that player 1 is controlling this empire.(So the same on player 1's device...)

It sounds very easy, isn't it?

However,now I have met a problem already... :-[
When loading the luasocket.dll in function LevelSetup, an error occured...
I guess maybe I have to install lua 5.2 on my pc first?
And actually I don't know how to know what the player is doing through some simple way, I mean, how do the Eufloria engine know what the player is doing?

Breakord

  • Sapling
  • **
  • Thank You
  • -Given: 14
  • -Receive: 7
  • Posts: 57
  • Eufloria: Yes
Re: So I'm thinking about Muilt-Player-Mode, as Aino is developing EVE...
« Reply #1 on: December 28, 2012, 05:36:54 AM »
 :P
Throw a sprat to catch a whale!
Expecting more practical ideals!

Pilchard123

  • Tester
  • Old Oak
  • ****
  • Thank You
  • -Given: 4
  • -Receive: 24
  • Posts: 932
  • Eufloria: Yes
Re: So I'm thinking about Muilt-Player-Mode, as Aino is developing EVE...
« Reply #2 on: December 28, 2012, 06:50:41 AM »
It is possible to disable the AI for each seedling empire. If one empire was controlled only by incoming commands from the network like the custom AIs do with local commands, it could work.

Breakord

  • Sapling
  • **
  • Thank You
  • -Given: 14
  • -Receive: 7
  • Posts: 57
  • Eufloria: Yes
Re: So I'm thinking about Muilt-Player-Mode, as Aino is developing EVE...
« Reply #3 on: December 28, 2012, 07:08:29 AM »
It is possible to disable the AI for each seedling empire. If one empire was controlled only by incoming commands from the network like the custom AIs do with local commands, it could work.
:D Yeah, I know, just set the Gracetime to 99999!
The problem is that how do we know what the player is doing now?I don't want to do extra coding as the Eufloria engine knows how to do that...So how do the Eufloria engine knows what the player is doing?

Pilchard123

  • Tester
  • Old Oak
  • ****
  • Thank You
  • -Given: 4
  • -Receive: 24
  • Posts: 932
  • Eufloria: Yes
Re: So I'm thinking about Muilt-Player-Mode, as Aino is developing EVE...
« Reply #4 on: December 28, 2012, 07:18:31 AM »
I don't think we can, it's not bound in Lua. We could annoy tuna until he does it though...

Breakord

  • Sapling
  • **
  • Thank You
  • -Given: 14
  • -Receive: 7
  • Posts: 57
  • Eufloria: Yes
Re: So I'm thinking about Muilt-Player-Mode, as Aino is developing EVE...
« Reply #5 on: December 28, 2012, 07:43:08 AM »
I don't think we can, it's not bound in Lua. We could annoy tuna until he does it though...
:P That's exactly what I am worried about...

Bonobo

  • Achiever
  • Old Oak
  • ****
  • Thank You
  • -Given: 139
  • -Receive: 12
  • Posts: 670
  • Eufloria: Yes
Re: So I'm thinking about Muilt-Player-Mode, as Aino is developing EVE...
« Reply #6 on: December 28, 2012, 10:14:15 AM »
[..] We could annoy tuna until he does it though...
:P That's exactly what I am worried about...
Haha, Pilchard’s comment is ambiguous: it could just as well be a suggestion as an expression of worry ;D