April 09, 2020, 22:02:40 PM
Multiplayer Connection issues (V0.3)
Read 4406 times

0 Members and 1 Guest are viewing this topic.

dookey

  • Goblin
  • *
  • Posts3
Hello.

My friends are having trouble connecting to my server IP.

I have the port 37557 forwarded, however they still cannot connect. I have tried using my own IP to connect with a 2nd client open and even I couldn't connect, which was extremely odd, localhost worked however.

But, if I change the server port in my .cfg file, I actually cannot connect to my own server (on the same machine using 2 game windows), even with localhost (127.0.0.1).

Additionally, changing server_name. server_ip, etc. in the cfg file does nothing as the name/ip defaults to the last ones I actually used, and changing the timeout doesn't seem to do anything, which leads me to believe that the game for some reason isn't reading the cfg file? I dunno.

Anyway, I just want to try and figure out how to get MP to work so we can all play online. What else do I need to do, am I missing something?

Tomashu

  • Administrator
  • *****
  • Posts383
Changing port was bugged and will work in next version.

Have you tried disabling firewall or changing it settings?

server_name - last thing you put in create server as name.
server_ip - last thing you put in join by ip.

If you are both behind routers you may need to use port forwarding (but you already tried that).

If nothing else work you may try tunngle or hamachi.



Can you post logs for server/client when you can't join to your own ip?

dookey

  • Goblin
  • *
  • Posts3
Sure.

Now, with portfowarding, would they also have to forward port 37557? That's the only thing I can think of that might be hampering this.

Server created logs:
Code: [Select] [nofollow]
13:57:32 INFO - CaRpg 0.3.0 (beta)
13:57:32 INFO - Date: 2015-05-17
13:57:32 INFO - Build: 2015-05-16 15:10:58 (21)
13:57:32 INFO - Process ID: 17060
13:57:32 INFO - Build type: release beta
13:57:32 INFO - Processor features: x64, MMX, SSE, SSE2, SSE3, SSSE3, SSE41, SSE42, AVX
13:57:32 INFO - Parsing command line.
13:57:32 INFO - Loading config file
13:57:32 INFO - Settings: Resolution 1024x768.
13:57:32 INFO - Settings: Refresh rate 60 Hz.
13:57:32 INFO - Settings: Adapter 0.
13:57:32 INFO - Reading install scripts.
13:57:32 INFO - Random seed: 1431885452/0/0
13:57:32 INFO - Starting game engine.
13:57:32 INFO - Engine: Window created.
13:57:32 INFO - Engine: Adapters count: 1
13:57:32 INFO - Engine: Adapter 0: NVIDIA GeForce GTX 560 Ti, version 9.18.13.3523
13:57:32 INFO - Supported shader version vertex: 3.0, pixel: 3.0.
13:57:32 INFO - Using shader version 3.
13:57:32 INFO - Engine: Available multisampling: x2(1), x4(8), x8(4)
13:57:32 INFO - Engine: Available display modes:
    720x576 (60 Hz)
    800x600 (60 Hz)
    1024x768 (60 Hz)
    1152x864 (60 Hz)
    1280x720 (60 Hz)
    1280x768 (60 Hz)
    1280x800 (60 Hz)
    1280x960 (60 Hz)
    1280x1024 (60 Hz)
    1360x768 (60 Hz)
    1366x768 (60 Hz)
    1440x900 (60 Hz)
    1600x900 (60 Hz)
13:57:32 INFO - Engine: Created direct3d device in hardware mode.
13:57:32 INFO - Engine: Directx device created.
13:57:32 INFO - Engine: FMOD system created
13:57:32 INFO - Engine: Bullet physics system created.
13:57:32 INFO - Compiling super shader: 0
13:57:32 INFO - Setting up super shader parameters.
13:57:32 INFO - Reading text file "dataC/lang/en/menu.txt".
13:57:32 INFO - Reading text file "dataC/lang/en/items.txt".
13:57:32 INFO - Reading text file "dataC/lang/en/units.txt".
13:57:32 INFO - Reading text file "dataC/lang/en/stats.txt".
13:57:32 INFO - Reading text file "dataC/lang/en/dialogs.txt".
13:57:32 INFO - Reading text file "dataC/lang/en/names.txt".
13:57:32 INFO - Creating list of files.
13:57:32 INFO - Preloading files.
13:57:32 INFO - Opening file 'data.pak'.
13:57:36 INFO - Engine: Game initialized.
13:57:36 INFO - Checking CaRpg version.
13:57:37 INFO - New version 0.3.0 is available.
13:57:44 INFO - Loading saved game 'saves/multi/1.sav'.
13:57:44 INFO - Clearing game.
13:57:44 INFO - Loading save. Version 0.3.0, build 21 (same), format 5, mp 1, dev 0, debug 0, beta 1.
13:57:44 INFO - Game loaded.
13:57:49 INFO - Creating server (port 37557)...
13:57:49 INFO - Set server password.
13:57:49 INFO - Server created. Waiting for connection.
13:57:49 INFO - sv_online = true
13:57:49 INFO - ServerPanel: Joined loaded game with existing character.

Attempting to join server using my IP from a 2nd client:
Code: [Select] [nofollow]
14:03:29 INFO - CaRpg 0.3.0 (beta)
14:03:29 INFO - Date: 2015-05-17
14:03:29 INFO - Build: 2015-05-16 15:10:58 (21)
14:03:29 INFO - Process ID: 14340
14:03:29 INFO - Build type: release beta
14:03:29 INFO - Processor features: x64, MMX, SSE, SSE2, SSE3, SSSE3, SSE41, SSE42, AVX
14:03:29 INFO - Parsing command line.
14:03:29 INFO - Loading config file
14:03:29 INFO - Settings: Resolution 1024x768.
14:03:29 INFO - Settings: Refresh rate 60 Hz.
14:03:29 INFO - Settings: Adapter 0.
14:03:29 INFO - Reading install scripts.
14:03:29 INFO - Random seed: 1431885809/0/0
14:03:29 INFO - Starting game engine.
14:03:29 INFO - Engine: Window created.
14:03:29 INFO - Engine: Adapters count: 1
14:03:29 INFO - Engine: Adapter 0: NVIDIA GeForce GTX 560 Ti, version 9.18.13.3523
14:03:29 INFO - Supported shader version vertex: 3.0, pixel: 3.0.
14:03:29 INFO - Using shader version 3.
14:03:29 INFO - Engine: Available multisampling: x2(1), x4(8), x8(4)
14:03:29 INFO - Engine: Available display modes:
    720x576 (60 Hz)
    800x600 (60 Hz)
    1024x768 (60 Hz)
    1152x864 (60 Hz)
    1280x720 (60 Hz)
    1280x768 (60 Hz)
    1280x800 (60 Hz)
    1280x960 (60 Hz)
    1280x1024 (60 Hz)
    1360x768 (60 Hz)
    1366x768 (60 Hz)
    1440x900 (60 Hz)
    1600x900 (60 Hz)
14:03:29 INFO - Engine: Created direct3d device in hardware mode.
14:03:29 INFO - Engine: Directx device created.
14:03:29 INFO - Engine: FMOD system created
14:03:29 INFO - Engine: Bullet physics system created.
14:03:29 INFO - Compiling super shader: 0
14:03:29 INFO - Setting up super shader parameters.
14:03:29 INFO - Reading text file "dataC/lang/en/menu.txt".
14:03:29 INFO - Reading text file "dataC/lang/en/items.txt".
14:03:29 INFO - Reading text file "dataC/lang/en/units.txt".
14:03:29 INFO - Reading text file "dataC/lang/en/stats.txt".
14:03:29 INFO - Reading text file "dataC/lang/en/dialogs.txt".
14:03:29 INFO - Reading text file "dataC/lang/en/names.txt".
14:03:29 INFO - Creating list of files.
14:03:29 INFO - Preloading files.
14:03:29 INFO - Opening file 'data.pak'.
14:03:33 INFO - Engine: Game initialized.
14:03:33 INFO - Checking CaRpg version.
14:03:34 INFO - New version 0.3.0 is available.
14:03:38 INFO - Initlializing client...
14:03:38 INFO - sv_online = true
14:03:38 INFO - Pinging 50.166.193.40...
14:03:39 INFO - Pinging 50.166.193.40...
14:03:40 INFO - Pinging 50.166.193.40...
14:03:41 INFO - Pinging 50.166.193.40...
14:03:42 INFO - Pinging 50.166.193.40...
14:03:43 INFO - Pinging 50.166.193.40...
14:03:44 WARN - NM_CONNECT_IP(0): Connection timeout.
14:03:44 INFO - Peer shutdown.
14:03:44 INFO - sv_online = false

dookey

  • Goblin
  • *
  • Posts3
Also, using hamachi, my friends still cannot connect to me, however I can connect to them, but upon connecting everyone but the host crashes. Without hamachi, none of us can connect to each other.

Here's the crash logfile info and the .dmp:
Code: [Select] [nofollow]
04:42:59 INFO - CaRpg 0.3.0 (beta)
04:42:59 INFO - Date: 2015-05-17
04:42:59 INFO - Build: 2015-05-16 15:10:58 (21)
04:42:59 INFO - Process ID: 12636
04:42:59 INFO - Build type: release beta
04:42:59 INFO - Processor features: x64, MMX, SSE, SSE2, SSE3, SSSE3, SSE41, SSE42, AVX
04:42:59 INFO - Parsing command line.
04:42:59 INFO - Loading config file
04:42:59 INFO - Settings: Resolution 1024x768.
04:42:59 INFO - Settings: Refresh rate 60 Hz.
04:42:59 INFO - Settings: Adapter 0.
04:42:59 INFO - Reading install scripts.
04:42:59 INFO - Random seed: 1431852179/0/0
04:42:59 INFO - Starting game engine.
04:42:59 INFO - Engine: Window created.
04:42:59 INFO - Engine: Adapters count: 1
04:42:59 INFO - Engine: Adapter 0: NVIDIA GeForce GTX 560 Ti, version 9.18.13.3523
04:42:59 INFO - Supported shader version vertex: 3.0, pixel: 3.0.
04:42:59 INFO - Using shader version 3.
04:42:59 INFO - Engine: Available multisampling: x2(1), x4(, x8(4)
04:42:59 INFO - Engine: Available display modes:
    720x576 (60 Hz)
    800x600 (60 Hz)
    1024x768 (60 Hz)
    1152x864 (60 Hz)
    1280x720 (60 Hz)
    1280x768 (60 Hz)
    1280x800 (60 Hz)
    1280x960 (60 Hz)
    1280x1024 (60 Hz)
    1360x768 (60 Hz)
    1366x768 (60 Hz)
    1440x900 (60 Hz)
    1600x900 (60 Hz)
04:42:59 INFO - Engine: Created direct3d device in hardware mode.
04:42:59 INFO - Engine: Directx device created.
04:42:59 INFO - Engine: FMOD system created
04:42:59 INFO - Engine: Bullet physics system created.
04:42:59 INFO - Compiling super shader: 0
04:42:59 INFO - Setting up super shader parameters.
04:42:59 INFO - Reading text file "dataC/lang/en/menu.txt".
04:42:59 INFO - Reading text file "dataC/lang/en/items.txt".
04:42:59 INFO - Reading text file "dataC/lang/en/units.txt".
04:42:59 INFO - Reading text file "dataC/lang/en/stats.txt".
04:42:59 INFO - Reading text file "dataC/lang/en/dialogs.txt".
04:42:59 INFO - Reading text file "dataC/lang/en/names.txt".
04:42:59 INFO - Creating list of files.
04:42:59 INFO - Preloading files.
04:42:59 INFO - Opening file 'data.pak'.
04:43:03 INFO - Engine: Game initialized.
04:43:03 INFO - Checking CaRpg version.
04:43:03 INFO - New version 0.3.0 is available.
04:43:06 INFO - Loading saved game 'saves/multi/1.sav'.
04:43:06 INFO - Clearing game.
04:43:06 INFO - Loading save. Version 0.3.0, build 21 (same), format 5, mp 1, dev 0, debug 0, beta 1.
04:43:06 INFO - Game loaded.
04:43:07 INFO - Creating server (port 37557)...
04:43:07 INFO - Set server password.
04:43:07 INFO - Server created. Waiting for connection.
04:43:07 INFO - sv_online = true
04:43:07 INFO - ServerPanel: Joined loaded game with existing character.
04:43:09 INFO - Starting in 3...
04:43:10 INFO - UpdateLobbyNet: Starting in 2...
04:43:11 INFO - UpdateLobbyNet: Starting in 1...
04:43:12 INFO - UpdateLobbyNet: Starting game.
04:43:12 INFO - UpdateLobbyNet: Starting in 0...
04:43:12 INFO - NM_TRANSFER_SERVER: Received player data from all players.
04:43:12 INFO - All players ready. Starting game.
04:43:12 INFO - Compiling super shader: 68
04:43:12 INFO - Compiling super shader: 69
04:43:12 INFO - Compiling super shader: 76
04:43:12 INFO - Compiling super shader: 70
04:43:12 INFO - Compiling super shader: 86
04:44:19 INFO - Compiling super shader: 94
04:45:22 INFO - Game saved 'saves/multi/1.sav'.
04:47:24 INFO - Game over: all players died.
04:47:29 INFO - ServerPanel: Closing server.
04:47:29 INFO - Peer shutdown.
04:47:29 INFO - sv_online = false
04:47:29 INFO - Clearing game.
04:47:32 INFO - Loading saved game 'saves/multi/1.sav'.
04:47:32 INFO - Clearing game.
04:47:32 INFO - Loading save. Version 0.3.0, build 21 (same), format 5, mp 1, dev 0, debug 0, beta 1.
04:47:32 INFO - Game loaded.
04:47:33 INFO - Creating server (port 37557)...
04:47:33 INFO - Set server password.
04:47:33 INFO - Server created. Waiting for connection.
04:47:33 INFO - sv_online = true
04:47:33 INFO - ServerPanel: Joined loaded game with existing character.
04:47:35 INFO - Starting in 3...
04:47:36 INFO - UpdateLobbyNet: Starting in 2...
04:47:37 INFO - UpdateLobbyNet: Starting in 1...
04:47:38 INFO - UpdateLobbyNet: Starting game.
04:47:38 INFO - UpdateLobbyNet: Starting in 0...
04:47:38 INFO - NM_TRANSFER_SERVER: Received player data from all players.
04:47:38 INFO - All players ready. Starting game.
04:48:51 INFO - Leaving location.
04:48:53 INFO - Generating location 'Dungeon Deepmore', seed 1429577071.
04:48:53 INFO - Generating dungeon, target 0.
04:48:53 INFO - Randomness integrity: 24578
04:48:53 INFO - Entered location.
04:48:53 INFO - All players ready. Starting game.
04:48:53 INFO - Compiling super shader: 38
04:48:53 INFO - Compiling super shader: 62
04:48:53 INFO - Compiling super shader: 36
04:48:53 INFO - Compiling super shader: 37
04:48:53 INFO - Compiling super shader: 44
04:50:15 INFO - Leaving location.
04:50:15 ERRO - Handling crash. Code: 0xc0000005
Text: Access violation
Flags: 0
Address: 0x77AC332F.

[załącznik usunięty przez administratora]

George The Desesee

  • Goblin
  • *
  • Posts4
Sure.

Now, with portfowarding, would they also have to forward port 37557? That's the only thing I can think of that might be hampering this.

This is what I had my friends do when I played with them, I had uploaded the game with the changes I made to my Google Drive and had them download it. Speaking of this, I just realized that I'll have to do this for 0.3 as well. I played with 6 people including myself if that poses any importance.


Also I don't use Hamachi ever because I have an unreasonable distrust of it.
« Last Edit: May 27, 2015, 02:33:00 AM by George The Desesee »

Minister of Death

  • Hero
  • ***
  • Posts210
I actually think that distrusting hamachi isn't a bad idea.

Tomashu

  • Administrator
  • *****
  • Posts383
I used it once or twice, Tunngle is better imho. But whats wrong with hamachi?

 

With Quick-Reply you can write a post when viewing a topic without loading a new page. You can still use bulletin board code and smileys as you would in a normal post.

Warning: this topic has not been posted in for at least 60 days.
Unless you're sure you want to reply, please consider starting a new topic.

Note: this post will not display until it's been approved by a moderator.
Name:
Verification: