Gamestudio Links
Zorro Links
Newest Posts
Change chart colours
by 7th_zorro. 05/11/24 09:25
Data from CSV not parsed correctly
by dr_panther. 05/06/24 18:50
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
2 registered members (dr_panther, 1 invisible), 643 guests, and 2 spiders.
Key: Admin, Global Mod, Mod
Newest Members
Hanky27, firatv, wandaluciaia, Mega_Rod, EternallyCurious
19051 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Page 1 of 3 1 2 3
start a server #148751
08/17/07 20:50
08/17/07 20:50
Joined: Jul 2007
Posts: 959
nl
F
flits Offline OP
User
flits  Offline OP
User
F

Joined: Jul 2007
Posts: 959
nl
hello

i dont think it is a good place for this an d this trade has to stand in multiplayer but oke

how do you start a server

i dont want start the sever on starting from the game white -cl -sv -cl

but start it when i want

function start_sever_func
{
start_server(level_name);
}

sombody knows how to do that


"empty"
Re: start a server [Re: flits] #148752
08/19/07 17:43
08/19/07 17:43
Joined: Jul 2007
Posts: 959
nl
F
flits Offline OP
User
flits  Offline OP
User
F

Joined: Jul 2007
Posts: 959
nl
is there a way to do that white -sv -cl ore whiteout -sv -cl but not from the begin of the start of the game


"empty"
Re: start a server [Re: flits] #148753
08/19/07 18:03
08/19/07 18:03
Joined: Apr 2006
Posts: 1,551
Netherlands
D3D Offline
Serious User
D3D  Offline
Serious User

Joined: Apr 2006
Posts: 1,551
Netherlands
Do you mean a lobby or game menu where the player beforehand selects the type of game he/she wants to play? Such as SP/MP, client and or server? Yes sure and maybe Prototype from Michael Schwarz shows a sample code.

Re: start a server [Re: D3D] #148754
08/19/07 18:10
08/19/07 18:10
Joined: Nov 2006
Posts: 141
South Africa
quasarchangel Offline
Member
quasarchangel  Offline
Member

Joined: Nov 2006
Posts: 141
South Africa
If I'm correct, he wants to do it without having to execute the game again with new arguments, as in Quake3 Arena and many others.
Using the arguments one can do something like Call of Duty, which has a SP exe and an MP exe.


God DID give us a manual on how to change this world...
Re: start a server [Re: quasarchangel] #148755
08/19/07 18:13
08/19/07 18:13
Joined: Apr 2006
Posts: 1,551
Netherlands
D3D Offline
Serious User
D3D  Offline
Serious User

Joined: Apr 2006
Posts: 1,551
Netherlands
Maybe with Lite-C, i'm not sure if you can create a standalone without Pro?


smile
Re: start a server [Re: D3D] #148756
08/19/07 18:28
08/19/07 18:28
Joined: Jan 2006
Posts: 968
EpsiloN Offline
User
EpsiloN  Offline
User

Joined: Jan 2006
Posts: 968
About server , I have no idea.
For clients :
Quote:


session_connect(STRING* session,STRING* hostname)
Switches to a different session on another server. The first string parameter contains the name of the new session, the second parameter gives the name, domain or IP address of the new server. This way, level or zone changing in a multiplayer environment can easily be performed.

Edition:
Pro

Speed:
Slow

Remarks:
This instruction can be used to switch the engine to client mode even if it wasn't started with the -cl command line option. Note that after switching from normal to client mode, the level has to be loaded anew. Switching the engine to client mode at run time has certain consequences for the script. IFDEF CLIENT can not be used - it's undefined because the engine was not started with the -cl option. Client dependent functions or initializations must run _after_ connecting to a session. For instance, creating a client player in the main function won't work when the engine was not in client mode when running main(). A good place for creating the client player is after reloading the level after connection.





Extensive Multiplayer tutorial:
http://mesetts.com/index.php?page=201
Re: start a server [Re: D3D] #148757
08/19/07 18:33
08/19/07 18:33
Joined: Jul 2007
Posts: 959
nl
F
flits Offline OP
User
flits  Offline OP
User
F

Joined: Jul 2007
Posts: 959
nl
thnx for looking

yeah i want to build somthing lik a stand alone server

something like this

function start_server1
{
if(imaketheserver == 1);
{
start_server(session_name,my_ip);
}
}

on_s = start_server1

it doesnt matter how manny people connect because i am going to kick them

and maby but this doesnt have to be

function start_server1
{
if(imaketheserver == 1);
{
start_server(session_name,my_ip);
session_name += 1;
start_server(session_name,my_ip);
session_name += 1;
start_server(session_name,my_ip);
session_name += 1;
start_server(session_name,my_ip);
session_name += 1;
start_server(session_name,my_ip);
}
}

on_s = start_server1


"empty"
Re: start a server [Re: flits] #148758
08/19/07 18:36
08/19/07 18:36
Joined: Jan 2006
Posts: 968
EpsiloN Offline
User
EpsiloN  Offline
User

Joined: Jan 2006
Posts: 968
You could make 2 applications , one like a menu before you start the server,where you can save your options to an ini file for example , and then use the first to start the multiplayer server/client(the second)


Extensive Multiplayer tutorial:
http://mesetts.com/index.php?page=201
Re: start a server [Re: EpsiloN] #148759
08/19/07 18:48
08/19/07 18:48
Joined: Jul 2007
Posts: 959
nl
F
flits Offline OP
User
flits  Offline OP
User
F

Joined: Jul 2007
Posts: 959
nl
something like making 2 games
one as client and one as server whose session name is change by a .txt ore somthing

because i need rooms for 2 players
they can go in like room 1 ore room 20

is there somthing to change the session_name
because it is read only

ore do i need to make 22 differt games
1 client
1 main server
20 rooms


"empty"
Re: start a server [Re: flits] #148760
08/19/07 19:03
08/19/07 19:03
Joined: Nov 2006
Posts: 141
South Africa
quasarchangel Offline
Member
quasarchangel  Offline
Member

Joined: Nov 2006
Posts: 141
South Africa
Have you been able to get a multiplayer game up and running, just basic, from tutorial or something?


God DID give us a manual on how to change this world...
Page 1 of 3 1 2 3

Moderated by  HeelX, Lukas, rayp, Rei_Ayanami, Superku, Tobias, TWO, VeT 

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