Gamestudio Links
Zorro Links
Newest Posts
Newbie Questions
by fairtrader. 12/06/23 11:29
Zorro Trader GPT
by TipmyPip. 12/04/23 11:34
Square root rule
by Smallz. 12/02/23 09:15
RTest not found error
by TipmyPip. 12/01/23 21:43
neural function for Python to [Train]
by TipmyPip. 12/01/23 14:47
Xor Memory Problem.
by TipmyPip. 11/28/23 14:23
Training with command line parameters
by TipmyPip. 11/26/23 08:42
Combine USD & BTC Pairs In Asset Loop
by TipmyPip. 11/26/23 08:30
AUM Magazine
Latest Screens
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Tactics of World War I
Who's Online Now
7 registered members (fairtrader, Quad, miwok, Martin_HH, AndrewAMD, alibaba, dpn), 581 guests, and 0 spiders.
Key: Admin, Global Mod, Mod
Newest Members
fairtrader, hus, Vurtis, Harry5, KelvinC
19019 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Page 1 of 2 1 2
server without -sv #90889
09/21/06 07:21
09/21/06 07:21
Joined: Jun 2005
Posts: 4,875
broozar Offline OP
Expert
broozar  Offline 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] #90890
09/21/06 07:59
09/21/06 07:59
Joined: Jan 2004
Posts: 2,013
The Netherlands
E
Excessus Offline
Expert
Excessus  Offline
Expert
E

Joined: Jan 2004
Posts: 2,013
The Netherlands
use -sv -cl.

Re: server without -sv [Re: Excessus] #90891
09/21/06 09:04
09/21/06 09:04
Joined: Jun 2005
Posts: 4,875
broozar Offline OP
Expert
broozar  Offline OP
Expert

Joined: Jun 2005
Posts: 4,875
thx works like a charm

Re: server without -sv [Re: broozar] #90892
09/21/06 14:23
09/21/06 14:23
Joined: Jun 2005
Posts: 4,875
broozar Offline OP
Expert
broozar  Offline OP
Expert

Joined: Jun 2005
Posts: 4,875
by talking about servers, may i ask some other questions please?

1) do the server and the client application have to be the same? or can i program a server app, name it xyz, and a client named abc, connect via IP?
2) what is session_name and how does it generate? when i start a server, all i get is an IP and the server name.

Re: server without -sv [Re: broozar] #90893
09/21/06 14:32
09/21/06 14:32
Joined: Jan 2004
Posts: 2,013
The Netherlands
E
Excessus Offline
Expert
Excessus  Offline
Expert
E

Joined: Jan 2004
Posts: 2,013
The Netherlands
1. Short answer: yes, the apps have to be the same.
Long answer:
Every variable or function is given an internal ID which depends on it's place in the script (first gets 1, second gets 2, etc.). When you send a variable or function it actually sends "put this value in the variable with this ID". If you synchronize these IDs between your apps, that is define your variables in the same order (and define them all, even if they are not needed in both apps), you are free to have totaly different apps. Fastlane69 does this for his MMO framework.

2. The session name is generated at startup. You can also set it with the sn command line like this: -cl -sv -sn MySession. Is that what you wanted to know?

Re: server without -sv [Re: Excessus] #90894
09/21/06 14:52
09/21/06 14:52
Joined: Jun 2005
Posts: 4,875
broozar Offline OP
Expert
broozar  Offline OP
Expert

Joined: Jun 2005
Posts: 4,875
to 1) so it is not enough set up all the receive/send functions?
this is indeed bad news, because i wanted to create a rather small server app for faster installation and uploading to the server. if i had to upload the whole game, it would take me ages.

how do i arrange my vars in the correct order, what do you suggest? make a header wdl wit all variables and use it in both applications, would that be ok?

to 2) yeah, thx.

Re: server without -sv [Re: broozar] #90895
09/21/06 15:02
09/21/06 15:02
Joined: Jan 2004
Posts: 2,013
The Netherlands
E
Excessus Offline
Expert
Excessus  Offline
Expert
E

Joined: Jan 2004
Posts: 2,013
The Netherlands
Yes, such a header would work. But keep in mind that if you want to send functions (proc_client), you will also have to define them in the header (maybe just a function prototype would do, you'd have to do an experiment to verify that).

I don't really see what the problem is with instalation and uploading because usually the code is only a minor factor in the total filesize. The header is all you need, the rest of the code and artwork can be totaly different.

Re: server without -sv [Re: Excessus] #90896
09/21/06 15:21
09/21/06 15:21
Joined: Jun 2005
Posts: 4,875
broozar Offline OP
Expert
broozar  Offline OP
Expert

Joined: Jun 2005
Posts: 4,875
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?

ps: thanks for your time, i really enjoy it, you help me a lot.

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 Offline
Senior Expert
fastlane69  Offline
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.

Re: server without -sv [Re: fastlane69] #90898
09/21/06 16:59
09/21/06 16:59
Joined: Jan 2004
Posts: 2,013
The Netherlands
E
Excessus Offline
Expert
Excessus  Offline
Expert
E

Joined: Jan 2004
Posts: 2,013
The Netherlands
To adress this more thoroughly:
Quote:

what about if i have to redefine vars and /or use local vars?



Using "DEFINE A, B;" does not change the compiled code so it doesn't matter. Local variables can never be put on the network because a function -and with it all it's local variables- only exist on one client or server.

Page 1 of 2 1 2

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