[GSTNet] 0.7 released

Posted By: nfs42

[GSTNet] 0.7 released - 12/02/08 22:39

hi folks,
some news from gstools and gstnet

now full lite-c support
new features
- player functions
- swap between reliable/unreliable mode
- serversendfile

more than 60 functions cool , well tested with c-script

download
manual

ChangeLog
----------------------------------------------------------------------------------
----------------------------------------------------------------------------------
GSTNet Plugin for 3DGamestudio
----------------------------------------------------------------------------------
----------------------------------------------------------------------------------
Multiplayer plugin for 3DGS >=6.50
from www.gstools.de made by nfs42
----------------------------------------------------------------------------------
^: Bugfix
x: changed feature
+: added feature
-: deleted feature
*************************************************
2008-12-01 Release 0.7 public beta
-------------------------------------------------
x _ClientPoll no parameters anymore
x _ServerPoll no parameters any more
+ _WritePlayer write player values to file
+ _GetPlayerId get clientid from playername
+ _WritePlayer write player values to file
+ _ReadPlayer read player values from file
+ _LoginPlayer log on a server
+ _VerifyPlayer verify a logon
+ _SynchronizePlayerValues
+ _SetSendMode() swap between reliable/unreliable mode
+ _GetSendMode() returns act sendmode
+ _Compability(vMode) needed for c-script events
+ _SetPlayerValue(vClientid, sField, sValue); // set a player value
+ _GetPlayerValue(vClientid, sField, sValue); // set a player value
x _SendPlayerValue(vReceiver, vClientid, sFields ); // send one or more player value(s)
+ _SetGlobal(sField, sValue); // set a server variable
- _ServerSendGlobal(vReceiver, sField); // send one or more server variable(s)
+ _SendGlobals(vReceiver, sField); // send one or more server variable(s)
*************************************************
2008-11-18 Release 0.6.00 public beta
-------------------------------------------------
+ support for lite-c

Posted By: Samb

Re: [GSTNet] 0.7 released - 12/05/08 19:29

nice, wish I had the time to test the new functions smile
well maybe around christmas.

good thing, that this plugin is free wink
Posted By: Quad

Re: [GSTNet] 0.7 released - 12/05/08 20:01

thanks NFS42
Posted By: XD1v0

Re: [GSTNet] 0.7 released - 12/06/08 12:16

Thanks nfs42ff, it is very useful plugin. I will use in my project cool
Posted By: croman

Re: [GSTNet] 0.7 released - 12/06/08 20:32

thanks nfs42.

btw i've sent you a PM and i've added you on ICQ (is that icq number in your profile workin?)
Posted By: adoado

Re: [GSTNet] 0.7 released - 12/06/08 20:41

Nice! Thanks nfs42, can't wait to try it out wink

Cheers,
Adoado
Posted By: broozar

Re: [GSTNet] 0.7 released - 12/06/08 21:40

very much appreciated. thanks for your effort! we will try our best to make nice game around it.
Posted By: Germanunkol

Re: [GSTNet] 0.7 released - 12/07/08 08:55

yes, we will!... hallelulia smile... this is great!
already downloaded it. Will try to implement it in our project next week. Well done!!
Posted By: Nowherebrain

Re: [GSTNet] 0.7 released - 12/15/08 15:57

looks like I am going multi-player after all.
Posted By: nfs42

Re: [GSTNet] 0.7 released - 12/15/08 16:36

you are welcome
perhaps there will be a super special chrismas release with 256 clients, who knows ?!
Posted By: Roel

Re: [GSTNet] 0.7 released - 12/16/08 15:48

It is really great! even the best is that it is fully free, and gets updated

a little question: does it support lobbying?
I hope I use the right word!

it would be a nice feature, so we don't have to know the server adress.
this is useful when a game is played over lan. the game glider uses it as far as
I know...
Posted By: croman

Re: [GSTNet] 0.7 released - 12/16/08 15:54

i'm quite sure that it doesn't support lobbying, yet.
Posted By: nfs42

Re: [GSTNet] 0.7 released - 12/16/08 20:56

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
Posted By: Dark_samurai

Re: [GSTNet] 0.7 released - 12/16/08 21:13

Quote:
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 wink

Edit: Ok I tested it, it should also work in a Subnetted LAN!
Posted By: croman

Re: [GSTNet] 0.7 released - 12/17/08 13:17

nfs42 sorry i replied (wrong) instead of you smile
Posted By: Samb

Re: [GSTNet] 0.7 released - 12/26/08 17:11

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 smile
Posted By: nfs42

Re: [GSTNet] 0.7 released - 12/27/08 13:08

hi samb,
here you find the converted lite-c demo with
GSTNet.dll chrismas release with 512 concurrent clients ;-)

http://www.gstools.de/index.php?option=com_docman&task=doc_details&gid=30&&Itemid=2
Posted By: Samb

Re: [GSTNet] 0.7 released - 12/27/08 16:46

thanks!
but I just can't get it to work.
It's a very simple script. just something like:

Code:
	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 smile

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 wink
Posted By: Samb

Re: [GSTNet] 0.7 released - 01/04/09 15:07

just can't get it to work smirk
nfs42, could you look into this?

http://www.bysamb.de/priv/schneeballschlacht.rar

the only important script-part is the main function. you can ignore everything else (I think).
Posted By: Quad

Re: [GSTNet] 0.7 released - 01/04/09 16:48

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.
Posted By: nfs42

Re: [GSTNet] 0.7 released - 01/06/09 00:55

thanks for testing.

@samb:
there is multiplayer8 demo converted from AUM77 to GSTNet on my website as a start.

bug confirmed: you have to call _SetVerifyKey(_str("MUST_NOT_BE_EMPTY")); fixed in 0.7.2
@Quadraxas: i have no vista machine atm, could you try GSTNet-LiteC with

GSTNet_ChannelStart(player_name,_str("TEST"),0);

instead of:

GSTNet_ChannelStart(player_name,_str("TEST"),1);

this means no usage of channel service = http requests.

Posted By: Quad

Re: [GSTNet] 0.7 released - 01/06/09 12:14

the gstnet_litec.c didnt compile, i tried to fix the errors,


GSTNet_GetGlobal, seems to be changed. in gstnet_litec.c it always used as
void GSTNet_GetGlobal(str,str)

but in header it's
str GSTNet_GetGlobal(str);

fixed that, not a big problem.

Another one, txtChatInfo doesnt exists used in several parts of code.

And GSTNet_init used in main but no such function in header,so i deleted this line.

Didnt made the change you suggested.

It worked but,

Server starts fine, client starts with a crash but after clicking ok it sees the spraycan and can send/recieve chat messages.

While i was writing this post, they were both running after a 2 min or so (some random time i guess) server crashed with "crash in timestamp_something".
Posted By: nfs42

Re: [GSTNet] 0.7 released - 01/07/09 11:18

thanks i look into this. this was on vista , right?
started from sed, not a published version?
Posted By: Quad

Re: [GSTNet] 0.7 released - 01/07/09 12:30

(the first crashing one was the compiled exe that is included in the zip archieve.)
yeah, started from sed. vista 32.
Posted By: Legionaryu

Re: [GSTNet] 0.7 released - 01/07/09 19:17

Hi,

I'm starting with GSTNet and my project uses A6.6 c-script.
I've searched in this forum and conitec forum for examples and tutorials using c-script, but I can't find anything. Can anyone post some examples, or a simple code using c-script and GSTNet?


Can I syncronize a entity created in the WED with GSTNet, or I'll need to recreate every entity in the script?


Thanks,
Legionaryu
Posted By: nfs42

Re: [GSTNet] 0.7 released - 01/08/09 00:24

c-script demo is updated to GSTNet 0.7.2 and available here

WED entities can be registered as global entities via GSTNet_RegisterEntity(),they can be handled as normal entities with e.g. GSTNet_TrackEntity(), GSTNet_SendEntity, GSTNet_ent_remove()...
Posted By: Cowabanga

Re: [GSTNet] 0.7 released - 01/08/09 11:58

Thanks!

There aren't any A7 version?
Posted By: Legionaryu

Re: [GSTNet] 0.7 released - 01/08/09 12:45

Thanks

This will be very helpful in my game, because all entities are created with WED.
Posted By: nfs42

Re: [GSTNet] 0.7 released - 01/08/09 17:06

lite-c is supported. there are several demos (pong, multiplayer code from AUM) on my website under downloads|demos

i prefer lite-c since i've got my A7com. new plugins like GSTScript will support lite-c only.
Posted By: Quad

Re: [GSTNet] 0.7 released - 01/08/09 17:29

can you make a simple example (chat and boxes moving or one of the George's mp examples from au) as simple as possbile without usin that channel_esay stuff. since i couldnt run lite-c demo properly A clean and straight-forward example would be nice.
Posted By: nfs42

Re: [GSTNet] 0.7 released - 01/08/09 17:43

i will do this for you ;-)
Posted By: Quad

Re: [GSTNet] 0.7 released - 01/08/09 18:23

thanks!
Posted By: nfs42

[GSTNet] 0.7.3 released - 02/04/09 22:43

little update because of an annoying crash in httpget thread

download
manual


*************************************************
2009-02-04 Release 0.7.3 public beta
-------------------------------------------------
^ crash in HttpGet thread
x some packet optimization
*************************************************
2009-01-05 Release 0.7.2 public beta
-------------------------------------------------
^ _SetVerifyKey("") crashes client
*************************************************
2008-12-09 Release 0.7.1 public beta
-------------------------------------------------
+ _SetVerifyKey secure client connection




Posted By: frazzle

Re: [GSTNet] 0.7.3 released - 02/05/09 11:17

Every update is very salutary for our project nfs42, keep'em comming wink wink

Cheers

Frazzle
Posted By: Quad

Re: [GSTNet] 0.7.3 released - 02/05/09 11:24

thanks nfs42. (any news on pretty simple example? 4-5 posts above.)
Posted By: nfs42

Re: [GSTNet] 0.7.3 released - 02/05/09 13:19

a simple example is the next on my todo list after finding this stupid thread based bug.
Posted By: Quad

Re: [GSTNet] 0.7.3 released - 02/06/09 01:08

nice, thanks. waiting for it.
Posted By: Samb

Re: [GSTNet] 0.7 released - 02/15/09 01:52

FINALLY I got GSTNet to work smile
I will post a small example for everyone tomorrow.
it will feature the absolut basics to start a server and move around for games like bomberman, mario,zelda etc. (so arrow keys movement)
Posted By: DestroyTheRunner

Re: [GSTNet] 0.7 released - 03/05/09 16:35

Nice work NFS42,your plugin is pretty simple to work.
The only complain is that some parts of your manual has some wrong codes, or lack of some kind of infomation or another. but the overall works very very well!
smile
Posted By: flits

Re: [GSTNet] 0.7 released - 03/05/09 17:16

thanx you nfs42 for gstnet

but i got some problems

the compiled versions dosnt run on vista/xp it runs fine on windows 98
i dont know why this is but it is quit anoying

antohter thx for your reading
© 2024 lite-C Forums