Gamestudio Links
Zorro Links
Newest Posts
Why Zorro supports up to 72 cores?
by 11honza11. 04/26/24 08:55
M1 Oversampling
by 11honza11. 04/26/24 08:32
MT5 bridge not working on MT5 v. 5 build 4160
by EternallyCurious. 04/25/24 20:49
Data from CSV not parsed correctly
by EternallyCurious. 04/25/24 10:20
Trading Journey
by howardR. 04/24/24 20:04
Zorro FIX plugin - Experimental
by flink. 04/21/24 07:12
Scripts not found
by juergen_wue. 04/20/24 18:51
zorro 64bit command line support
by 7th_zorro. 04/20/24 10:06
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
4 registered members (VoroneTZ, Quad, EternallyCurious, 1 invisible), 828 guests, and 4 spiders.
Key: Admin, Global Mod, Mod
Newest Members
Mega_Rod, EternallyCurious, howardR, 11honza11, ccorrea
19048 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Page 1 of 2 1 2
[GSTNet] Send_Function Working Correctly? #205084
05/03/08 18:17
05/03/08 18:17
Joined: Jul 2006
Posts: 503
Australia
A
adoado Offline OP

User
adoado  Offline OP

User
A

Joined: Jul 2006
Posts: 503
Australia
Hello ^^

I am using GSTNet. I call Send_Function on the client, and the server receives it but no client does?

I call:

Send_Function("OnClientJoinGlobal","0",1,1);

And in the 'Send_Function' function is

GSTNet_ClientSend(0, GSTNet_EventFunction, sGSTNetTemp1);

so, why is this message not getting to any of the clients?

Thanks,
Adoado ^^


Visit our development blog: http://yellloh.com
Re: [GSTNet] Send_Function Working Correctly? [Re: adoado] #205110
05/04/08 03:02
05/04/08 03:02
Joined: Jun 2001
Posts: 1,004
Dossenbach
N
nfs42 Offline
Serious User
nfs42  Offline
Serious User
N

Joined: Jun 2001
Posts: 1,004
Dossenbach
you have to register an event with GSTNet_Events(GSTNet_EventFunction,funcname) and send the message in this event function from server to the defined client.

that's wrong in the manual. see demo
 Code:
//------------------------------------------------------------------
// function for event: GSTNet_EventFunction
// input: vTyp : event-id
//        sMsg: data
//        vSender: sender client id
//        vReceiver: receiver id       
//------------------------------------------------------------------
function evFunction(vTyp, sMsg, vSender, vReceiver)
{
  diag("\nType:"); str_for_num(sGSTNetTemp, vTyp); diag(sGSTNetTemp);
  diag("\nSender:"); str_for_num(sGSTNetTemp, vSender); diag(sGSTNetTemp);
  diag("\nReceiver:"); str_for_num(sGSTNetTemp, vReceiver); diag(sGSTNetTemp);
  GSTNet_ServerSend(vReceiver, vTyp, sMsg);
  if(GSTNet_Connection() == 2 || GSTNet_Connection() == 3 ) {
    Parse_Function(sMsg);             // parse and execute ...
  }
}


i have to overwork some function because automatic sending infos from clients to other clients by the server without checking by the server is really insecure, because GSTNet.dll can be used to connect to any GSTNet-server


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_Function Working Correctly? [Re: nfs42] #205855
05/09/08 06:40
05/09/08 06:40
Joined: Jul 2006
Posts: 503
Australia
A
adoado Offline OP

User
adoado  Offline OP

User
A

Joined: Jul 2006
Posts: 503
Australia
Hello

Ok, thank you, I am using events now and I nearly have them working ^^

Just one idea to improve GSTNet - could you make it that if I call "serversend" with a clientID which does not exist it does not freeze? Using Sendarray, etc is fine when you send to an invalid clientID.

Thanks,
Adoado


Visit our development blog: http://yellloh.com
Re: [GSTNet] Send_Function Working Correctly? [Re: adoado] #205857
05/09/08 07:15
05/09/08 07:15
Joined: Jun 2001
Posts: 1,004
Dossenbach
N
nfs42 Offline
Serious User
nfs42  Offline
Serious User
N

Joined: Jun 2001
Posts: 1,004
Dossenbach
good find, i will fix this


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_Function Working Correctly? [Re: nfs42] #205859
05/09/08 07:35
05/09/08 07:35
Joined: Jul 2006
Posts: 503
Australia
A
adoado Offline OP

User
adoado  Offline OP

User
A

Joined: Jul 2006
Posts: 503
Australia
Thankyou so much! ;\) You would not believe how much that would help my project atm :P

Just wondering, when will the fix be released? \:D

Thanks again,
Adoado


Visit our development blog: http://yellloh.com
Re: [GSTNet] Send_Function Working Correctly? [Re: adoado] #205870
05/09/08 09:29
05/09/08 09:29
Joined: Jun 2001
Posts: 1,004
Dossenbach
N
nfs42 Offline
Serious User
nfs42  Offline
Serious User
N

Joined: Jun 2001
Posts: 1,004
Dossenbach
this weekend


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_Function Working Correctly? [Re: nfs42] #206015
05/10/08 15:04
05/10/08 15:04
Joined: Jul 2006
Posts: 503
Australia
A
adoado Offline OP

User
adoado  Offline OP

User
A

Joined: Jul 2006
Posts: 503
Australia
Awesome, thanks again ;\)


Visit our development blog: http://yellloh.com
Re: [GSTNet] Send_Function Working Correctly? [Re: adoado] #206067
05/11/08 00:22
05/11/08 00:22
Joined: Jun 2001
Posts: 1,004
Dossenbach
N
nfs42 Offline
Serious User
nfs42  Offline
Serious User
N

Joined: Jun 2001
Posts: 1,004
Dossenbach
Download GSTNet 0.5.24
----------------------------------------------------------------------------------
^: Bugfix
x: changed feature
+: added feature
-: deleted feature
*************************************************
2008-05-09 Release 0.5.24 public beta
-------------------------------------------------
^ crash with sending to an none existing receiver
x _Synchronize input mode
+ _SynchronizeEntity
+ _SynchronizeSkills


need sendfile function ?


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_Function Working Correctly? [Re: nfs42] #206194
05/11/08 22:38
05/11/08 22:38
Joined: Jul 2006
Posts: 503
Australia
A
adoado Offline OP

User
adoado  Offline OP

User
A

Joined: Jul 2006
Posts: 503
Australia
Thanks ;\)

I tried it, but it does not work correctly. I replaced the old DLL with the new one and I get messages such as 'ServerInit not found in DLL', 'clientsend not found in DLL', etc. ??

Thanks,
Adoado


Visit our development blog: http://yellloh.com
Re: [GSTNet] Send_Function Working Correctly? [Re: adoado] #206199
05/11/08 23:43
05/11/08 23:43
Joined: Jun 2001
Posts: 1,004
Dossenbach
N
nfs42 Offline
Serious User
nfs42  Offline
Serious User
N

Joined: Jun 2001
Posts: 1,004
Dossenbach
is dll loaded ?? acklog.txt


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
Page 1 of 2 1 2

Moderated by  HeelX, Spirit 

Gamestudio download | chip programmers | Zorro platform | shop | Data Protection Policy

oP group Germany GmbH | Birkenstr. 25-27 | 63549 Ronneburg / Germany | info (at) opgroup.de

Powered by UBB.threads™ PHP Forum Software 7.7.1