Eufloria > Eufloria Classic Mods

So I'm thinking about Muilt-Player-Mode, as Aino is developing EVE...

(1/2) > >>

Breakord:
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:
 :P
Throw a sprat to catch a whale!
Expecting more practical ideals!

Pilchard123:
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:

--- Quote from: Pilchard123 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.

--- End quote ---
: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:
I don't think we can, it's not bound in Lua. We could annoy tuna until he does it though...

Navigation

[0] Message Index

[#] Next page

Go to full version