|
Re: [GSTNet] 0.7 released
[Re: Roel]
#241473
12/16/08 15:54
12/16/08 15:54
|
Joined: Nov 2007
Posts: 1,032 Croatia
croman
Serious User
|
Serious User
Joined: Nov 2007
Posts: 1,032
Croatia
|
i'm quite sure that it doesn't support lobbying, yet.
Ubi bene, ibi Patria.
|
|
|
Re: [GSTNet] 0.7 released
[Re: croman]
#241526
12/16/08 20:56
12/16/08 20:56
|
Joined: Jun 2001
Posts: 1,004 Dossenbach
nfs42
OP
Serious User
|
OP
Serious User
Joined: Jun 2001
Posts: 1,004
Dossenbach
|
over lan clients can connect with any GSTNet server via broadcast (ip=255.255.255.255, same port). no need for a known server ip. over internet you can use dynamic ip services or GSTNet_Channel, a service script that uses GSTNet_httpxx functions and a php/sql server on gstools to provide existing servers and some other info. http://www.gstools.de/channels/channels.php?gst=ServerList&gui=1
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] 0.7 released
[Re: nfs42]
#241529
12/16/08 21:13
12/16/08 21:13
|
Joined: Jul 2005
Posts: 1,930 Austria
Dark_samurai
Serious User
|
Serious User
Joined: Jul 2005
Posts: 1,930
Austria
|
via broadcast (ip=255.255.255.255, same port) As far as I know 255.255.255.255 is not always the correct broadcast address. This for example won't work if you're in a subnetted LAN  Edit: Ok I tested it, it should also work in a Subnetted LAN!
Last edited by Dark_samurai; 12/19/08 13:31.
ANet - A stable and secure network plugin with multi-zone, unlimited players, voip, server-list features,... (for A7/A8)! get free version
|
|
|
Re: [GSTNet] 0.7 released
[Re: nfs42]
#242939
12/26/08 17:11
12/26/08 17:11
|
Joined: Nov 2000
Posts: 1,534 hamburg
Samb
Serious User
|
Serious User
Joined: Nov 2000
Posts: 1,534
hamburg
|
hey nfs42, could you post a small working lite-c demo? I can't get the server and client running... crashes everywhere. so, just a small demo where that works would be fine 
|
|
|
Re: [GSTNet] 0.7 released
[Re: nfs42]
#243068
12/27/08 16:46
12/27/08 16:46
|
Joined: Nov 2000
Posts: 1,534 hamburg
Samb
Serious User
|
Serious User
Joined: Nov 2000
Posts: 1,534
hamburg
|
thanks! but I just can't get it to work. It's a very simple script. just something like:
while(1)
{
draw_text("1 'n 2",10,10,nullvector);
if(key_1)
{
beep();
GSTNet_ServerInit(2300);
while(GSTNet_Connection()==0) {wait(1);}
GSTNet_Events(GSTNet_EventServer, _str("evServer"));
GSTNet_StartClient(server_name,2300,1);
create_client();
break;
}
if(key_2)
{
GSTNet_StartClient(_str("192.168.2.101"),2300,1);
while(GSTNet_Connection()==0) {draw_text("verbinde",10,10,nullvector);wait(1);}
create_client();
break;
}
wait(1);
}
So, the Server press 1. Create_Client is just the GSTNet_ent_create funktion. The player gets created. Now, the CLient starts the game, presses 2 and it will stay in the "GSTNet_Connection()==0" while. some more things: I get this Crash: GSTNet: server initialized GSTNet: ServerPort: 2300 2300 GSTNet: client initialized Error E1515: Invalid arguments in ý: STRING Program aborted GSTNet-Version:(null) because of this: GSTNet_Version(sGSTNetTemp); diag("\nGSTNet-Version:"); diag(sGSTNetTemp); and the last thing: the chat demo got an "empty prototype called in event" error. don't know what that means, but maybe you  also: the chat demo is nice, but, I think, the most new guys need just a simple script. just something like "server start, client start, 2 entities can be moved etc. I would do such a demo, but I can't get it to work 
Last edited by Samb; 12/27/08 16:47.
|
|
|
Re: [GSTNet] 0.7 released
[Re: Samb]
#244417
01/04/09 16:48
01/04/09 16:48
|
Joined: Oct 2007
Posts: 5,211 İstanbul, Turkey
Quad
Senior Expert
|
Senior Expert
Joined: Oct 2007
Posts: 5,211
İstanbul, Turkey
|
hi nfs42,
i downloaded the 512clients lite-c demo, but after starting as server and 3-4 frames passes(i see the chatbox, and "server started" on right panel) then it crashes.(Vista 32)
i remember aum demos was working tho.
3333333333
|
|
|
|