|
7 registered members (fairtrader, Quad, miwok, Martin_HH, AndrewAMD, alibaba, dpn),
581
guests, and 0
spiders. |
|
Key:
Admin,
Global Mod,
Mod
|
|
|
server without -sv
#90889
09/21/06 07:21
09/21/06 07:21
|
Joined: Jun 2005
Posts: 4,875
broozar
OP
Expert
|
OP
Expert
Joined: Jun 2005
Posts: 4,875
|
hi all, maybe a numb question, but i cannot answer it myself.
by using the -sv on the command line, all i get is the acknex starter window with the ip and the comp name. so it mostly looks like the old dedicated server windows from games like FS2 or Q2. nothing i scripted seems to be usable. so when i want to make the man at the server computer able to play as well, how can i? do i have to open a second instance of the programme with -cl in the CommLine? on the other hand, if i know the ip to the server, must it be an application running with the -sv command?
sorry for all these questions, but it is really hard to test it here, so i need yor advice.
|
|
|
Re: server without -sv
[Re: broozar]
#90897
09/21/06 15:42
09/21/06 15:42
|
Joined: Mar 2003
Posts: 5,377 USofA
fastlane69
Senior Expert
|
Senior Expert
Joined: Mar 2003
Posts: 5,377
USofA
|
Quote:
so all function prototypes must be in the header as well. what about strings? and, what about if i have to redefine vars and /or use local vars?
Only the ones that you intend to use over the network via the proc_ commands.
As excessus succinctly stated, all that matters if creating separate client/server apps across the network is that the "Indexing" be the same. This means that if you are going to use a function (or var or string) over the network, it has to be in the same place (the same slot if you will) on both client and server. The rest of the code, that which will not be sent over the network, can completely different on client and server.
So what I do is I create a network_header.wdl. In it I put the vars, strings, and functions (of which actions are included) that will be put across the network. If I update anything on this file, I update on all client and server apps. However the rest of the code (ie: that which is included BELOW the network_header) can change independently on client and server.
|
|
|
|