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
Free Live Data for Zorro with Paper Trading?
by AbrahamR. 05/18/24 13:28
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
0 registered members (), 1,280 guests, and 4 spiders.
Key: Admin, Global Mod, Mod
Newest Members
AemStones, LucasJoshua, Baklazhan, Hanky27, firatv
19059 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
I cannot connect to another computer with multiplayer #343235
10/04/10 16:56
10/04/10 16:56
Joined: May 2010
Posts: 63
J
JohnnyIsDutch Offline OP
Junior Member
JohnnyIsDutch  Offline OP
Junior Member
J

Joined: May 2010
Posts: 63
dear developer,

I have a problem with multiplayer.
i cannot connect to another computer with multiplayer, i did test it with workshop 25, of litec samples, and i did portforward the port 2300 and 6073, in the comment line dit i set:
Quote:
-cl -sv -ip 94.212.202.64

but it didnt work.

here are the acklogs:

Server:
Quote:
Log of A8 Engine 8.02.0 run at Mon Oct 04 17:56:34 2010
Johnny on Windows NT/2000/XP version 5.1 Build 2600
Options script25_2.c -cl -ip 94.212.202.64 -diag -sv -tc
App: C:\Program Files\GStudio8\acknex.exe in C:\Documents and Settings\Johnny\Mijn documenten\Downloads\litec_samples\litec_samples\workshop25\

MM mixer opened
DSOUND device opened
DI interface opened
Start Window opened(c) Conitec - www.3dgamestudio.com
A8 Engine - Trial Edition V8.02.0 - Jul 27 2010
Development version
13 days left

Mouse found
Realtek HD Audio output opened
ATI Mobility Radeon X1400 pure T&L device 1ff9 detected
D3D device ATI Mobility Radeon X1400 1ff9 selected.
ackphysx.dll opened
ackwii.dll opened
Compiling SCRIPT25_2.C - [Esc] to abort....
Error in line 12:
syntax error
< function player_remove() // remove player when client disconnects
>
.. 0.095 sec
Error compiling SCRIPT25_2.C
Error E355: Startup failure - any key to abort
Program aborted
Close level,DLL,objects
Free input,funcs,panels,defs,syns,views,strings,vars..ok
Free sounds,bmaps,fonts,hash,defs1,script..ok
Close dx,multimedia,D3D
Disconnect,connection,engine,nexus..ok
A8 Engine - Trial Edition V8.02.0 - Jul 27 2010
(c) Conitec - www.3dgamestudio.com
13 days left
Unfreed: 938, FIL, 3236 bytes
Close window at 16.170


Client:
Quote:
Log of A8 Engine 8.02.0 run at Mon Oct 04 17:48:29 2010
Johnny on Windows NT/2000/XP version 5.1 Build 2600
Options script25_2.c -cl -ip 94.212.202.64 -diag -tc
App: C:\Program Files\GStudio8\acknex.exe in C:\Documents and Settings\Johnny\Mijn documenten\Downloads\litec_samples\litec_samples\workshop25\

MM mixer opened
DSOUND device opened
DI interface opened
Start Window opened(c) Conitec - www.3dgamestudio.com
A8 Engine - Trial Edition V8.02.0 - Jul 27 2010
Development version
13 days left

Mouse found
Realtek HD Audio output opened
ATI Mobility Radeon X1400 pure T&L device 1ff9 detected
D3D device ATI Mobility Radeon X1400 1ff9 selected.
ackphysx.dll opened
ackwii.dll opened
Compiling SCRIPT25_2.C - [Esc] to abort........... 0.281 sec
Running SCRIPT25_2.C.
Searching for servers... no server found
Disconnect
2 objects
Main started at 11.592
Searching for servers... no server found
Disconnect
Client43196 joined
Starting server... failed
Disconnect
def_startup started
D3D_Init Window: 800x600 -> Window: 1x800x600x32
Video memory found: 354 MB
Main loop at 21.631....
1st frame with 354 MB at 21.632
Normal exit at 27.289
Close level,DLL,objects
Free input,funcs,panels,defs,syns,views,strings,vars..ok
Free sounds,bmaps,fonts,hash,defs1,script..ok
Close dx,multimedia,D3D,engine,nexus..ok
A8 Engine - Trial Edition V8.02.0 - Jul 27 2010
(c) Conitec - www.3dgamestudio.com
13 days left
Close window at 27.540


Re: I cannot connect to another computer with multiplayer [Re: JohnnyIsDutch] #343237
10/04/10 17:05
10/04/10 17:05
Joined: Oct 2007
Posts: 5,210
İstanbul, Turkey
Quad Offline
Senior Expert
Quad  Offline
Senior Expert

Joined: Oct 2007
Posts: 5,210
İstanbul, Turkey
you are trying these on the same computer right?
in that case you have to enter 127.0.0.1 as ip

To try over internet you should publish your project and enter the ip.


3333333333
Re: I cannot connect to another computer with multiplayer [Re: Quad] #343240
10/04/10 17:35
10/04/10 17:35
Joined: May 2010
Posts: 63
J
JohnnyIsDutch Offline OP
Junior Member
JohnnyIsDutch  Offline OP
Junior Member
J

Joined: May 2010
Posts: 63
no, i did with another computer of another network but it didnt work.

Re: I cannot connect to another computer with multiplayer [Re: JohnnyIsDutch] #343297
10/05/10 08:38
10/05/10 08:38
Joined: Jul 2000
Posts: 27,987
Frankfurt
jcl Offline

Chief Engineer
jcl  Offline

Chief Engineer

Joined: Jul 2000
Posts: 27,987
Frankfurt
For making a multiplayer game, you need some basic knowledge about PCs, networks, IP addresses and so on.

In short: a PC server has normally an internal and an external IP address. The internal IP address is normally generated by the DHCP server on your local network. For connecting to a server on the network, you need to know either its internal IP address or the server name. The internal IP normally begins with 192.168. Give the name or IP in the session_connect command.

Connecting to a server on the Internet works the same way, but you must give the servers _external_ IP address (which does not begin with 192.168), and must make sure that the connection is not blocked by a firewall. Also, you must set up the server's router to port forwarding to the local server.

The procedure is described in short at the end of the multiplayer workshop. Your log and your command line makes not much sense, and your script does not even compile. Just start with the unchanged tutorial script and only experiment further when this works perfectly.

Re: I cannot connect to another computer with multiplayer [Re: jcl] #343312
10/05/10 12:07
10/05/10 12:07
Joined: May 2010
Posts: 63
J
JohnnyIsDutch Offline OP
Junior Member
JohnnyIsDutch  Offline OP
Junior Member
J

Joined: May 2010
Posts: 63
Originally Posted By: jcl
For making a multiplayer game, you need some basic knowledge about PCs, networks, IP addresses and so on.

In short: a PC server has normally an internal and an external IP address. The internal IP address is normally generated by the DHCP server on your local network. For connecting to a server on the network, you need to know either its internal IP address or the server name. The internal IP normally begins with 192.168. Give the name or IP in the session_connect command.

Connecting to a server on the Internet works the same way, but you must give the servers _external_ IP address (which does not begin with 192.168), and must make sure that the connection is not blocked by a firewall. Also, you must set up the server's router to port forwarding to the local server.

The procedure is described in short at the end of the multiplayer workshop. Your log and your command line makes not much sense, and your script does not even compile. Just start with the unchanged tutorial script and only experiment further when this works perfectly.
i think that this work, but i dont sure. this is wath i have in the function main:
Quote:
function main()
{
if (!connection) { // not started with -cl / -sv -cl?

if (!session_connect(app_name," HERE MY IP? from http://www.mijnip.nl ? ")) // no client found on the localhost?
session_open(app_name); // start as server
}

do { wait(1); }
while (dplay_status < 2); // wait until the session is opened or joined

dplay_entrate = 4; // 16 ticks/4 = 4 updates per second
dplay_smooth = 0; // dead reckoning not needed
dplay_localfunction = 2;
level_load ("multiplayer6.wmb");
vec_set(camera.x, vector (-600, 0, 100)); // set a proper camera position

if (connection & CONNECT_SERVER) { // this instance of the game runs on the server
STRING* title = str_create("Server: ");
str_cat(title,server_ip);
video_window(0,0,0,title);
ent_create ("redguard.mdl",vector(100,50,40),player_move); // then create the red guard!
} else { // otherwise, it runs on a connected client
video_window(0,0,0,player_name);
random_seed(0); // allow random player positions
ent_create ("blueguard.mdl",vector(-100+random(200),-50+random(100),40),player_move); // create the blue guard
}
}


Last edited by JohnnyIsDutch; 10/05/10 12:08.
Re: I cannot connect to another computer with multiplayer [Re: JohnnyIsDutch] #343313
10/05/10 12:17
10/05/10 12:17
Joined: Jul 2000
Posts: 27,987
Frankfurt
jcl Offline

Chief Engineer
jcl  Offline

Chief Engineer

Joined: Jul 2000
Posts: 27,987
Frankfurt
No. You can not connect to your own IP address from http://www.mijnip.nl. This would only work when your router had NAT loopback, which is not the case for most routers. You normally only can connect either to an online server on a really different location with a different IP address, or to a local server on your LAN through its server name or local IP.

All this is mentioned in the multiplayer workshop, so make sure to read and understand that first. This forum is mainly for questions that aren't answered elsewhere.

Re: I cannot connect to another computer with multiplayer [Re: jcl] #343331
10/05/10 14:46
10/05/10 14:46
Joined: May 2010
Posts: 63
J
JohnnyIsDutch Offline OP
Junior Member
JohnnyIsDutch  Offline OP
Junior Member
J

Joined: May 2010
Posts: 63
Originally Posted By: jcl
No. You can not connect to your own IP address from http://www.mijnip.nl. This would only work when your router had NAT loopback, which is not the case for most routers. You normally only can connect either to an online server on a really different location with a different IP address, or to a local server on your LAN through its server name or local IP.

All this is mentioned in the multiplayer workshop, so make sure to read and understand that first. This forum is mainly for questions that aren't answered elsewhere.
oke, but it will well with other programms with that ip adress.


Moderated by  old_bill, Tobias 

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