0 registered members (),
1,280
guests, and 4
spiders. |
Key:
Admin,
Global Mod,
Mod
|
|
|
I cannot connect to another computer with multiplayer
#343235
10/04/10 16:56
10/04/10 16:56
|
Joined: May 2010
Posts: 63
JohnnyIsDutch
OP
Junior Member
|
OP
Junior Member
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: -cl -sv -ip 94.212.202.64 but it didnt work. here are the acklogs: Server: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.comA8 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.com13 days left Unfreed: 938, FIL, 3236 bytes Close window at 16.170 Client: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.comA8 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.com13 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
Senior Expert
|
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: JohnnyIsDutch]
#343297
10/05/10 08:38
10/05/10 08:38
|
Joined: Jul 2000
Posts: 27,987 Frankfurt
jcl
![](/ubb7/images/groups/adm.gif)
Chief Engineer
|
![](/ubb7/images/groups/adm.gif)
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
JohnnyIsDutch
OP
Junior Member
|
OP
Junior Member
Joined: May 2010
Posts: 63
|
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: 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: jcl]
#343331
10/05/10 14:46
10/05/10 14:46
|
Joined: May 2010
Posts: 63
JohnnyIsDutch
OP
Junior Member
|
OP
Junior Member
Joined: May 2010
Posts: 63
|
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.
|
|
|
|