Flatline: Difference between revisions

From OniGalore
Jump to navigation Jump to search
No edit summary
No edit summary
Line 1: Line 1:
=[http://ihyveqo.co.cc This Page Is Currently Under Construction And Will Be Available Shortly, Please Visit Reserve Copy Page]=
{|align=right border=1 cellspacing=0
{|align=right border=1 cellspacing=0
|http://gumby.oni2.net/Flatline/flatline.png
|http://gumby.oni2.net/Flatline/flatline.png
{|cellspacing=3
{|cellspacing=3
!colspan="2"|The Development Team
!colspan="2"|The Development Team
|-
|-
|'''Head Developer:''' ||align="right" |[[User:Gumby|Gumby]]
|'''Head Developer:''' ||align="right" |[[User:Gumby|Gumby]]
|-
|-
|'''Resident Coder:''' ||align="right" |  [[User:RossyMiles|RossyMiles]]
|'''Resident Coder:''' ||align="right" |  [[User:RossyMiles|RossyMiles]]
|-
|-
|'''Advisors:'''||align="right" |[[User:Geyser|geyser]]
|'''Advisors:'''||align="right" |[[User:Geyser|geyser]]
|-
|-
| ||align="right" |[[User:Neo|Neo]]
| ||align="right" |[[User:Neo|Neo]]
|-
|-
|}
|}
Line 47: Line 48:


==Lag Compensation==
==Lag Compensation==
Quick and dirty lag compensation might come from "fast-forwarding" a frame for every 17 ms of lag or so. ( 17ms = 1 frame...damn that's short :( ) Compensating for rotation\movement differences will be a bit harder, and require a bit more calculation.
Quick and dirty lag compensation might come from "fast-forwarding" a frame for every 17 ms of lag or so. ( 17ms = 1 frame...damn that's short :( ) Compensating for rotation\movement differences will be a bit harder, and require a bit more calculation.
[[Category:All AE mods]][[Category:Unfinished AE mods]]
[[Category:All AE mods]][[Category:Unfinished AE mods]]

Revision as of 05:58, 24 November 2010

This Page Is Currently Under Construction And Will Be Available Shortly, Please Visit Reserve Copy Page

flatline.png
The Development Team
Head Developer: Gumby
Resident Coder: RossyMiles
Advisors: geyser
Neo

The Flatline Project is the most recent attempt at Multiplayer for Oni. It will combine the knowledge gleaned from projects such as OniPlayer and Neo's engine hacking with new techniques of controlling AI characters to create the first working Multiplayer since the early days of Oni's development.

Status: Integrating network code into Oni. Progress is great. :)

Packets

For now, all packets are UDP, though some of the less time essential packets (messages, commands, etc...) will probably be moved to TCP.

Structure

typedef struct {

char id; int packet_index; char data[1080];

} flatline_packet;
  • id is an identifier the specific type of packet being sent (message, character sync, initial connection, etc...)
  • packet_index is used to protect against duplicate packets. Each packet gets a unique indentifier, if a duplicate is found, the packet is ignored.
  • data contains the actual data for the packet, and is typically cast to another struct. The largest struct needed so far is 1080 bytes. In theory, we can go up to 1400 bytes.

Connecting

  1. Client sends a packet asking to connect to a server
  2. Server sends a packet back, saying if the client can connect or not, including a string to display if the connection was rejected
  3. Client either recieves said packet or times out after 15 seconds if no packet is recieved back (sending a new connection request packet every so often before that).
  4. Server sends basic game info to client, including a packet containing a mock BINACHAR for each player currently connected to the server.
  1. Client sends packets containing keystrokes and other commands
  2. Server sends back xyz\animation\whatever data

Maps

Probably done through level plugins that use levels 64-127. This has the advantage of being hidden on the level list. These maps would have specialized CHAR\PART\whatever tailored to MP gameplay. Of course a console map change command would need to be implemented. (win\lose level, and change current level number, through hex overwriting)


Lag Compensation

Quick and dirty lag compensation might come from "fast-forwarding" a frame for every 17 ms of lag or so. ( 17ms = 1 frame...damn that's short :( ) Compensating for rotation\movement differences will be a bit harder, and require a bit more calculation.