0 registered members (),
1,238
guests, and 3
spiders. |
Key:
Admin,
Global Mod,
Mod
|
|
|
Re: [GSTNet] SendArray implemented
[Re: Samb]
#133846
07/22/07 08:18
07/22/07 08:18
|
Joined: Jun 2001
Posts: 1,004 Dossenbach
nfs42
OP
Serious User
|
OP
Serious User
Joined: Jun 2001
Posts: 1,004
Dossenbach
|
ich habe (hoffentlich) nur ein kleines problem mit meiner website. hier der fix zum download 0.5.3GSTNet_Events() hat jetzt zwei zusätzliche Parameter: var vSender: sender of this event as unique client id retrieved with GSTNet_ClientId() on any client var vReceiver: receiver for this event as unique client id retrieved with GSTNet_ClientId() on any client Code:
//------------------------------------------------------------------
// function for event: receivechatmessage
//------------------------------------------------------------------
function evFunction(vTyp, sMsg, vSender, vReceiver)
{
if(GSTNet_Connection() == 2 || GSTNet_Connection() == 3 ) { //I am a client
Parse_Function(sMsg); // parse and execute ...
}
if(vSender>0){GSTNet_ServerSend(vSender-1, vTyp, sMsg);} // send the message to the preceeding clientid
}
Andreas GSTools - Home of GSTScript 0.9.8: lua scripting for A6/7/8 GSTNet 0.7.9.20: network plugin for A6/7/8 GSTsqlite 1.3.7: sql database plugin for A6/7/8 3DGS Codebase: 57 snippets || 3DGS Downloads: 248 files
|
|
|
Re: [GSTNet] SendArray implemented
[Re: nfs42]
#133847
07/22/07 12:32
07/22/07 12:32
|
Joined: Nov 2000
Posts: 1,534 hamburg
Samb
Serious User
|
Serious User
Joined: Nov 2000
Posts: 1,534
hamburg
|
funktioniert super! vorallem vSender ist eine sache, die ich mir vorher selber zurechtwurschteln musste. nimmt mir sehr viel arbeit ab ![](/ubbthreads/images/graemlins/laugh.gif) vielen dank werd mal schauen, ob ich nun mein account system damit hinbekomme ![](/ubbthreads/images/graemlins/smile.gif)
|
|
|
Re: [GSTNet] SendArray implemented
[Re: Samb]
#133848
07/22/07 13:24
07/22/07 13:24
|
Joined: Jan 2003
Posts: 4,305
Damocles
Expert
|
Expert
Joined: Jan 2003
Posts: 4,305
|
Nice, got my first client server connection running, Sending arrays works fine, (I dont need any of the entity functions anyhow, only the String and var related funtions) Now I will do some further tests. ---- All basic requirements that I need work nice. This is the first dll, that actually works the way I need it for multiplayer. Nice Job. No need for the native 3dGS multiplayer functions anymore ![](/ubbthreads/images/graemlins/wink.gif)
|
|
|
Re: [GSTNet] SendArray implemented
[Re: Damocles]
#133850
07/22/07 17:16
07/22/07 17:16
|
Joined: Jun 2001
Posts: 1,004 Dossenbach
nfs42
OP
Serious User
|
OP
Serious User
Joined: Jun 2001
Posts: 1,004
Dossenbach
|
GSTools is online again: update 0.5.5************************************************* 2007-07-22 Release 0.5.5 public beta ------------------------------------------------- x GSTNet_Disconnect(vId) kick a client from server with his unique clientid Code:
//---------------------------------------------------------------------------------------- // function: disconnect // purpose: disconnect client from server //------------------------------------------------------------------ function disconnect() { GSTNet_Disconnect(2); } on_d=disconnect;
//---------------------------------------------------------------------------------------- // function: kick // purpose: kick a client from server (only server) //------------------------------------------------------------------ function kick() { GSTNet_Disconnect(2); } on_k=kick;
Andreas GSTools - Home of GSTScript 0.9.8: lua scripting for A6/7/8 GSTNet 0.7.9.20: network plugin for A6/7/8 GSTsqlite 1.3.7: sql database plugin for A6/7/8 3DGS Codebase: 57 snippets || 3DGS Downloads: 248 files
|
|
|
[GSTNet] Send to clientid implemented
[Re: Damocles]
#133853
07/27/07 21:47
07/27/07 21:47
|
Joined: Jun 2001
Posts: 1,004 Dossenbach
nfs42
OP
Serious User
|
OP
Serious User
Joined: Jun 2001
Posts: 1,004
Dossenbach
|
a hard week is over and now I've got some time to program: Download GSTNet 0.5.6************************************************* 2007-07-27 Release 0.5.6 public beta ------------------------------------------------- x GSTNet_SendString, GSTNet_Sendvar, GSTNet_SendArray got a new first parameter = vReceiver to send only to the client with his unique clientid only tested with GSTNet_SendString but should work with the other functions
Andreas GSTools - Home of GSTScript 0.9.8: lua scripting for A6/7/8 GSTNet 0.7.9.20: network plugin for A6/7/8 GSTsqlite 1.3.7: sql database plugin for A6/7/8 3DGS Codebase: 57 snippets || 3DGS Downloads: 248 files
|
|
|
Re: [GSTNet] Send to clientid implemented
[Re: nfs42]
#133854
07/27/07 22:10
07/27/07 22:10
|
Joined: Jan 2003
Posts: 4,305
Damocles
Expert
|
Expert
Joined: Jan 2003
Posts: 4,305
|
|
|
|
|