Gamestudio Links
Zorro Links
Newest Posts
Executing Trades on Next Bar Open
by vicknick. 06/13/24 08:51
Zorro Beta 2.61: PyTorch
by jcl. 06/10/24 14:42
New FXCM FIX Plugin
by flink. 06/04/24 07:30
AlpacaZorroPlugin v1.3.0 Released
by kzhao. 05/22/24 13:41
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
3 registered members (AndrewAMD, RealSerious3D, BrainSailor), 1,265 guests, and 8 spiders.
Key: Admin, Global Mod, Mod
Newest Members
AemStones, LucasJoshua, Baklazhan, Hanky27, firatv
19059 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Testing with Host and Clients #207242
05/18/08 17:28
05/18/08 17:28
Joined: Feb 2002
Posts: 357
Florida
Zelek Offline OP
Senior Member
Zelek  Offline OP
Senior Member

Joined: Feb 2002
Posts: 357
Florida
I have been working on some multiplayer code for a while now, and I find myself constantly going through this process:
1) Hit the run button and enter in all the host command-line parameters
2) Wait a couple seconds for host to start
3) Hit the run button and enter in all the client command-line parameters

This doesn't seem like a big deal at first, but I like to test my changes every few minutes sometimes, and this really hurts my productivity. Is there some sneaky way to start up a host and client(s) with a single button press? This would really speed up my testing.

Re: Testing with Host and Clients [Re: Zelek] #207246
05/18/08 17:42
05/18/08 17:42
Joined: Jul 2005
Posts: 1,930
Austria
Dark_samurai Offline
Serious User
Dark_samurai  Offline
Serious User

Joined: Jul 2005
Posts: 1,930
Austria
Don't use the GS multiplayersystem wink
With a plugin (GSTNet, Populace,...) you can start the server/client in the script and not with a command line.
This is one of the big reasons why a multiplayergame with the gs mp-system isn't realy possible wink (without PRO)

Dark_Samurai


ANet - A stable and secure network plugin with multi-zone, unlimited players, voip, server-list features,... (for A7/A8)!
get free version
Re: Testing with Host and Clients [Re: Dark_samurai] #207250
05/18/08 18:23
05/18/08 18:23
Joined: Feb 2002
Posts: 357
Florida
Zelek Offline OP
Senior Member
Zelek  Offline OP
Senior Member

Joined: Feb 2002
Posts: 357
Florida
Unfortunately, I am using A7 and lite-c so I don't believe GSTNet is an option at this time. Populace is pretty expensive since I'm not interested in MMO development. I have been able to build functional (but boring) multiplayer apps with A7 commercial, so I don't think it's impossible - just requires a lot of time. Thanks for the suggestions, though.

Re: Testing with Host and Clients [Re: Zelek] #207261
05/18/08 20:05
05/18/08 20:05
Joined: Jul 2005
Posts: 1,930
Austria
Dark_samurai Offline
Serious User
Dark_samurai  Offline
Serious User

Joined: Jul 2005
Posts: 1,930
Austria
You could write your own plugin wink
It's not that difficult if you have some c knowlege. Look at: http://enet.bespin.org/

Dark_Samurai


ANet - A stable and secure network plugin with multi-zone, unlimited players, voip, server-list features,... (for A7/A8)!
get free version
Re: Testing with Host and Clients [Re: Zelek] #207286
05/18/08 22:40
05/18/08 22:40
Joined: Jun 2001
Posts: 1,004
Dossenbach
N
nfs42 Offline
Serious User
nfs42  Offline
Serious User
N

Joined: Jun 2001
Posts: 1,004
Dossenbach
I'm working on a lite-c demo for GSTNet, headers are done. connections are done. but still some work on string handling.

I'm using something like this:
start server with cmd line: -d srv,1
Code:
if(srv==1){
    exec("C:\\Programme\\GStudio7\\acknex.exe","GSTNet_Demo.c -diag");  
    exec("C:\\Programme\\GStudio7\\acknex.exe","GSTNet_Demo.c");  
    exec("C:\\Programme\\GStudio7\\acknex.exe","GSTNet_Demo.c");  
}




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: Testing with Host and Clients [Re: nfs42] #207301
05/19/08 01:52
05/19/08 01:52
Joined: Feb 2002
Posts: 357
Florida
Zelek Offline OP
Senior Member
Zelek  Offline OP
Senior Member

Joined: Feb 2002
Posts: 357
Florida
This works perfectly and is just what I needed. Thank you! cool

Re: Testing with Host and Clients [Re: Zelek] #207367
05/19/08 10:46
05/19/08 10:46
Joined: Oct 2007
Posts: 5,210
İstanbul, Turkey
Quad Offline
Senior Expert
Quad  Offline
Senior Expert

Joined: Oct 2007
Posts: 5,210
İstanbul, Turkey
so GSTNET comes to lite-c? YAAAY


3333333333

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