Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

DarkBASIC Professional Discussion / 5.9 Multiplayer resources combined thread.

Author
Message
Yyrd
20
Years of Service
User Offline
Joined: 29th Mar 2004
Location: Under some bridge
Posted: 13th Oct 2005 16:39 Edited at: 13th Oct 2005 16:56
THIS thread is meant for anybody who has info on the 5.9 multiplayer plus command, PLease add info as you know it. Please correct wrong info, please debate anything aurgable.

this is a list of commands i fuond. most i fuond bye hexing the dll.
------------------ connection commands--------------------
Multiplayer Connect To TCP Server ( basic connect to a ip adress)
format : Multiplayer Connect To TCP Server PlayerName$, ip$
PlayerName$ = cliets in game name.
ip$ = IP of the host computer.

Multiplayer Create TCP Server ( creates a server )
format Multiplayer Create TCP Server ServerName$
ServerName$ = name of the newly made server.

Multiplayer Disconnect (disconnect)
format Multiplayer Disconnect

Multiplayer Get Connection ( is there a connection or not)
format RETURN Boolean= Multiplayer Get Connection()
RETURN Boolean = 0 no connection, 1 connected


-------------------- general info commands---------------
Multiplayer Get PlayerCount ( How many players)
format RETURN Integer = Multiplayer Get Player Count()
Integer = Current player count connected.

Multiplayer Get Player ID (get s players id )
format Return Dword= Multiplayer Get Player ID(Integer)
Dword = Players id.
Integer = player you want the id for.

Multiplayer Get Player Name ( get a player loggin name)
format return Sting$ = Multiplayer Get Player Name(Integer)
'' not sure about this
String$ = players name.
Integer = Players ID.


Multiplayer Get IP Address (gives local ip, NICE)
format String$= Multiplayer Get IP Address()
String$ = IP address of local.


--------- receive messages------------
Multiplayer Message Exists ( mesage waiting)
format Return Boolean = Multiplayer Message Exists()
Boolean = 0 no message Received, 1 messages received.

Multiplayer Get Queue Size ( how many mesages in que)
format Return Integer = Multiplayer Get Queue Size()
Integer = how many messages left in que.

Multiplayer Get Message Type ( type message is)
format RETURN Integer = Multiplayer Get Message Type()
Integer = 2 = string$ ,3 = memblock( so im told)

Multiplayer Get Message Player From ( see who sent message )
format RETURN Integer = Multiplayer Get Message PlayerFrom()
Integer = PLayers id who sent message.

Multiplayer Get Message ( get message out of que)
format Multiplayer Get Message
not sure if returns anything yet.

Multiplayer Get Message Float ( gets a float)
format RETURN Float = Multiplayer Get Message Float()
Float = recieved message.

Multiplayer Get Message Integer ( gets a int)
format RETURN Integer = Multiplayer Get Message Integer()
Integer = recieved integer

Multiplayer Get Message Memblock ( gets memblock)
format RETURN Memblock = Multiplayer Get Message Memblock()
or format = Multiplayer Get Message Memblock Memblock
''not sure yet
Memblock = received Memblock

Multiplayer Get Message String ( Gets a string)
format RETURN String$ = Multiplayer Get Message String()
String$ = recieved message.

------------ Send messages-----------------------

Multiplayer Send From Player ( NO IDEA, who esle wuold be sending it? )
format HELP.

Multiplayer Send Message Float ( send float)
format Multiplayer Send Message Float Float, Integer
Float = message to send
Integer = not sure about this, guessing 0 for all and/or the players id to send to

Multiplayer Send Message Integer ( send int)
format Multiplayer Send Message Integer Integer, Integer
Integer = message to send
Integer = not sure about this, guessing 0 for all and/or the players id to send to

Multiplayer Send Message Memblock (send memblock)
format Multiplayer Send Message Memblock Memblock, Integer
Memblock = message to send
Integer = not sure about this, guessing 0 for all and/or the players id to send to

Multiplayer Send Message String (send string)
format Multiplayer Send Message String String, Integer
String = message to send
Integer = not sure about this, guessing 0 for all and/or the players id to send to

Multiplayer Send To Player ( send to a certain player, but what?)
format Multiplayer Send To Player Integer
integer = player id
'' im thinking maybe this is used to pre-tell a send command who to send too, need help.






----------- UNknown commands------------------------
Multiplayer Set Debug State ( no idea)

Multiplayer Start VoiceServer ( wow!)

Receive Core DataPtr ( no idea)

Set Error Handler ( no idea)

Multiplayer Display Debug ( NO IDEA what this is)
--------------------------end-------------------------------


ok this is what i found, i have not started coded these yet. i will add or change info as i learn. i hope those who have used these commands please correct me.

Also TY to TGC for working on these commands, i think multiplyaer is very imporant.
starstrike
20
Years of Service
User Offline
Joined: 25th Nov 2003
Location:
Posted: 13th Oct 2005 19:08 Edited at: 13th Oct 2005 19:19
Get host ip:


join a server


check for connect


get info on how many players, names and id


check for messages


send message to 1 player


send message to all


hope this helps...

Login to post a reply

Server time is: 2024-05-18 11:08:32
Your offset time is: 2024-05-18 11:08:32