Can't use local server, Connection to Server Failed, Returning to Main Menu.

Discussion in 'Support!' started by foxhive, January 10, 2015.

  1. foxhive

    foxhive New Member

    Messages:
    27
    Likes Received:
    0
    Hello everyone
    First I want to apologize, I speak French, accordingly I have trouble with English .. Sorry for the eventual fault.

    In short, I run the offline game, having Declared "activated the local server" in the option, but when I start a game I get the following error message: Connection to Server Failed, Returning to Main Menu.

    I have an Intel core i5 3210m
    6gb ram
    window 7

    Here is the log of the error message

    [00:09:20.532] INFO client::ClientGame::resetGameState
    [00:09:20.532] INFO Mouse constraint cleared.
    [00:09:20.532] INFO ClientInterface constructed
    [00:09:21.531] INFO Connect to 127.0.0.1:20545 failed: Refused
    [00:09:22.560] INFO Connect to 127.0.0.1:20545 failed: Refused
    [00:09:23.559] INFO Connect to 127.0.0.1:20545 failed: Refused
    [00:09:41.076] INFO Connect to 127.0.0.1:20545 failed: Failed
    [00:10:02.074] INFO Connect to 127.0.0.1:20545 failed: Failed
    [00:10:02.074] INFO Could not connect to server at 127.0.0.1:20545: Failed
    [00:10:02.074] INFO client::ClientGame::connection_ConnectionFailed
    [00:10:05.085] INFO client::ClientGame::resetGameState
    [00:10:05.085] INFO Mouse constraint cleared.
    [00:10:05.085] INFO ClientInterface constructed
    [00:10:26.098] INFO Connect to 127.0.0.1:20545 failed: Failed
    [00:10:47.096] INFO Connect to 127.0.0.1:20545 failed: Failed
    [00:11:08.109] INFO Connect to 127.0.0.1:20545 failed: Failed
    [00:11:29.122] INFO Connect to 127.0.0.1:20545 failed: Failed
    [00:11:30.121] INFO Connect to 127.0.0.1:20545 failed: Refused
    [00:11:30.121] INFO Could not connect to server at 127.0.0.1:20545: Refused

    Thank for help !
  2. stuart98

    stuart98 Post Master General

    Messages:
    6,009
    Likes Received:
    3,888
    Have you tried navigating to your PA folder and running server.exe first?

    To clarify, Windows 7 64 bit or Windows 7 32 bit?
  3. foxhive

    foxhive New Member

    Messages:
    27
    Likes Received:
    0
    Windows 64 sorry

    No, but I just tried.
    But it still does not work even if I run the server in the folder before launching the game

    it marks on a black background "No SIM"
  4. stuart98

    stuart98 Post Master General

    Messages:
    6,009
    Likes Received:
    3,888
    That's supposed to happen.

    What happens when you run server.exe and then try to play a single player game? Do you still get a connection to server lost?
  5. foxhive

    foxhive New Member

    Messages:
    27
    Likes Received:
    0
    Yes, I can't connect, I have a same error message if I launch Skirmish AI
  6. SXX

    SXX Post Master General

    Messages:
    6,896
    Likes Received:
    1,812
    Do you have any firewall or anti-virus software installed?
  7. foxhive

    foxhive New Member

    Messages:
    27
    Likes Received:
    0
    Yes, I have Avast and basic windows firewall
  8. stuart98

    stuart98 Post Master General

    Messages:
    6,009
    Likes Received:
    3,888
    Have you tried temporarily disabling one or both of these items to see if that fixes the problem?
  9. foxhive

    foxhive New Member

    Messages:
    27
    Likes Received:
    0
    Yes I took the initiative to do ^^
    Unfortunately, the problem remains the same ..
  10. cola_colin

    cola_colin Moderator Alumni

    Messages:
    12,074
    Likes Received:
    16,221
    not sure if it will fix the issue, as I think PA doesn't do anything different when you click "create local game", but to start a server in the console you need a few parameters:

    server.exe --headless --game-mode Config --allow-lan --server-name joinMe
  11. SXX

    SXX Post Master General

    Messages:
    6,896
    Likes Received:
    1,812
    Any chance you have some other software that affect networking? E.g VPN, proxies, LAN emulators?
  12. foxhive

    foxhive New Member

    Messages:
    27
    Likes Received:
    0
    "but to start a server in the console you need a few parameters"
    Sorry but how to open a console please ?

    SXX : Maybe Hamachi ? But it's not launch
  13. stuart98

    stuart98 Post Master General

    Messages:
    6,009
    Likes Received:
    3,888
    Go to your root PA folder and shift-right click on your x64 folder, then click open in command prompt.
  14. foxhive

    foxhive New Member

    Messages:
    27
    Likes Received:
    0
    Oh ? Oo
    I do not have that choice!
    but I create a shortcut of server.exe with the command, it works too?

    (I tried but .. don't work)

    In the console when I did that is what is written:

    INFO Mounting h:\SteamLibrary\SteamApps\common\Planetary Annihilation\media\as/
    INFO SDL: Built w/ v2.0.3, linked w/ v2.0.3
    WARN Crash reporting disabled.
    INFO Starting background thread pool with 3 threads
    INFO GameSeverImpl::resetModUpdateAuthToken: Auth token reset to "ad6b0eb9-48e4-5e48-b051-ff3df85f271e"


    And the complete log (in log folder) is :
    [01:13:15.000] INFO Log file C:\Users\user\AppData\Local\Uber Entertainment\Planetary Annihilation\log\PA-01-13-15.000.txt opened
    [01:13:15.000] INFO delete C:\Users\user\AppData\Local\Uber Entertainment\Planetary Annihilation\log\PA-00-08-51.000.txt
    [01:13:15.078] INFO Looks like we are running via Steam
    [01:13:15.078] INFO Loading mod : server_browser_show_cheat_servers
    [01:13:15.078] INFO Loading mod : rPAMM
    [01:13:15.078] INFO Mounting C:\Users\user\AppData\Local\Uber Entertainment\Planetary Annihilation\client_mods\rPAMM\ as /
    [01:13:15.078] INFO Client loaded 2 mods, mounted 1
    [01:13:15.094] INFO Loading mod : cheat_allow_change_control
    [01:13:15.094] INFO Loading mod : cheat_allow_change_vision
    [01:13:15.094] INFO Loading mod : cheat_allow_create_unit
    [01:13:15.094] INFO Loading mod : cheat_allow_mod_data_updates
    [01:13:15.094] INFO Starting async parallel for driver with 3 threads
    [01:13:15.671] INFO Successfully created context with configuration 1/9: v4.4 (core)
    [01:13:15.671] INFO HAL initializing...
    [01:13:15.671] INFO OpenGL Vendor: NVIDIA Corporation
    [01:13:15.671] INFO OpenGL Renderer: GeForce GT 630M/PCIe/SSE2
    [01:13:15.671] INFO OpenGL Version: 4.4.0 NVIDIA 344.75
    [01:13:15.671] INFO OpenGL Shader Language Version: 4.40 NVIDIA via Cg compiler
    [01:13:15.686] INFO Vendor flag set to NVidia
    [01:13:15.686] INFO Supported rasterizer capabilities: Gamma correct pipeline, Ranged mapping, Advanced instancing, Advanced shaders, Compute shaders, Persistent buffer mapping
    [01:13:15.686] INFO Unsupported rasterizer capabilities:
    [01:13:15.686] INFO Buffer textures enabled.
    [01:13:15.686] INFO initial size 1600x900
    [01:13:15.702] INFO Loading effects from file /shaders/post.json
    [01:13:15.702] INFO Loading effects from file /shaders/content.json
    [01:13:15.780] INFO Loading effects from file /shaders/impostors.json
    [01:13:15.780] INFO Loading effects from file /shaders/misc.json
    [01:13:15.811] INFO Loading effects from file /shaders/particle.json
    [01:13:15.842] INFO Loading effects from file /shaders/scene.json
    [01:13:15.874] INFO Loading effects from file /shaders/vtex.json
    [01:13:15.889] INFO Coherent content root: "coui://ui/"
    [01:13:15.889] INFO Coherent host dir: "H:\\SteamLibrary\\steamapps\\common\\Planetary Annihilation\\bin_x64\\host"
    [01:13:15.889] INFO Coherent local store: "C:\\Users\\user\\AppData\\Local\\Uber Entertainment\\Planetary Annihilation\\localstore"
    [01:13:16.373] INFO ClientInterface constructed
    [01:13:16.388] INFO {{FMOD}} fmod buffer size 5
    [01:13:16.435] INFO Using local server at H:\SteamLibrary\steamapps\common\Planetary Annihilation\bin_x64\server.exe
    [01:13:16.435] INFO ClientInterface constructed
    [01:13:16.654] INFO TwitchTV::flushStreamingEvents Twitch state changed
    [01:13:16.654] ERROR twitch tried to send message and no UI.
    [01:13:16.654] INFO client::ClientGame::SystemReady
    [01:13:16.654] INFO CoherentUI::loadUrl ForceSoftwareRendering : 0
    [01:13:16.654] INFO CoherentUI::loadUrl ForceSoftwareRendering : 0
    [01:13:16.654] INFO CoherentUI::loadUrl ForceSoftwareRendering : 0
    [01:13:16.654] INFO CoherentUI::loadUrl ForceSoftwareRendering : 0
    [01:13:17.590] INFO CoherentUI::loadUrl ForceSoftwareRendering : 0
    [01:13:17.590] INFO CoherentUI::loadUrl ForceSoftwareRendering : 0
    [01:13:19.025] INFO client::ClientGame::resetGameState
    [01:13:19.040] INFO Mouse constraint cleared.
    [01:13:19.040] INFO ClientInterface constructed
    [01:13:19.040] INFO ClientInterface constructed
    [01:13:19.368] INFO client::ClientGame::setMusic /Music/Main_Menu_Music
    [01:13:22.441] INFO Setting option graphics to 'custom'
    [01:13:22.441] INFO Setting option graphics.vte to 'medium'
    [01:13:22.441] INFO Setting option graphics.headlights to 'medium'
    [01:13:22.441] INFO Setting option graphics.shadows to 'off'
    [01:13:22.441] INFO Setting option graphics.ao to 'off'
    [01:13:22.441] INFO Setting option graphics.hdr to 'off'
    [01:13:22.441] INFO Setting option graphics.aa to 'off'
    [01:13:22.441] INFO Setting option graphics.display_mode to 'fullscreen'
    [01:13:22.441] INFO Setting camera mouse pan speed to 1x
    [01:13:22.441] INFO Setting camera key pan speed to 1x
    [01:13:22.441] INFO Setting camera zoom speed to 4x
    [01:13:22.441] INFO Setting camera friction to 2.5x
    [01:13:22.441] INFO Setting camera edge scroll to off (no mouselock)
    [01:13:22.441] INFO Setting planet pole lock to off
    [01:13:23.533] INFO Setting option graphics to 'custom'
    [01:13:23.533] INFO Setting option graphics.vte to 'medium'
    [01:13:23.533] INFO Setting option graphics.headlights to 'medium'
    [01:13:23.533] INFO Setting option graphics.shadows to 'off'
    [01:13:23.533] INFO Setting option graphics.ao to 'off'
    [01:13:23.533] INFO Setting option graphics.hdr to 'off'
    [01:13:23.533] INFO Setting option graphics.aa to 'off'
    [01:13:23.533] INFO Setting option graphics.display_mode to 'fullscreen'
    [01:13:23.533] INFO Setting camera mouse pan speed to 1x
    [01:13:23.533] INFO Setting camera key pan speed to 1x
    [01:13:23.533] INFO Setting camera zoom speed to 4x
    [01:13:23.533] INFO Setting camera friction to 2.5x
    [01:13:23.533] INFO Setting camera edge scroll to off (no mouselock)
    [01:13:23.533] INFO Setting planet pole lock to off
    [01:13:42.238] ERROR Failed loading panel 2, path coui://ui/main/game/start/start.html: net::ERR_ABORTED
    [01:13:43.533] INFO client::ClientGame::enableLanLookout
    [01:14:27.431] INFO client::ClientGame::resetGameState
    [01:14:27.431] INFO Mouse constraint cleared.
    [01:14:27.431] INFO ClientInterface constructed
    [01:14:27.462] INFO ClientInterface constructed
    [01:15:29.208] INFO Starting background thread pool with 3 threads
    [01:15:29.270] INFO Created subprocess 6964 from cmd line "H:\SteamLibrary\steamapps\common\Planetary Annihilation\bin_x64\server.exe" --headless --allow-lan --game-mode Config --enable-crash-reporting --ubernet-url https://4.uberent.com --monitor-url https://4.uberent.com
    [01:15:29.395] INFO client::ClientGame::resetGameState
    [01:15:29.395] INFO Mouse constraint cleared.
    [01:15:29.395] INFO ClientInterface constructed
    [01:15:30.409] INFO Connect to 127.0.0.1:20545 failed: Refused
    [01:15:31.423] INFO Connect to 127.0.0.1:20545 failed: Refused
    [01:15:32.437] INFO Connect to 127.0.0.1:20545 failed: Refused
    [01:15:33.451] INFO Connect to 127.0.0.1:20545 failed: Refused
    [01:15:34.449] INFO Connect to 127.0.0.1:20545 failed: Refused
    [01:15:34.449] INFO Could not connect to server at 127.0.0.1:20545: Refused
    [01:15:34.449] INFO client::ClientGame::connection_ConnectionFailed
    [01:15:37.476] INFO client::ClientGame::resetGameState
    [01:15:37.476] INFO Mouse constraint cleared.
    [01:15:37.476] INFO ClientInterface constructed
    [01:15:38.474] INFO Connect to 127.0.0.1:20545 failed: Refused
    [01:15:39.472] INFO Connect to 127.0.0.1:20545 failed: Refused
    [01:15:40.471] INFO Connect to 127.0.0.1:20545 failed: Refused
    [01:15:41.485] INFO Connect to 127.0.0.1:20545 failed: Refused
    [01:15:42.499] INFO Connect to 127.0.0.1:20545 failed: Refused
    [01:15:42.499] INFO Could not connect to server at 127.0.0.1:20545: Refused
    [01:15:42.499] INFO client::ClientGame::connection_ConnectionFailed
    [01:15:48.567] INFO client::ClientGame::resetGameState
    [01:15:48.567] INFO Mouse constraint cleared.
    [01:15:48.567] INFO ClientInterface constructed
    [01:15:48.583] INFO ClientInterface constructed
    Last edited: January 10, 2015
  15. foxhive

    foxhive New Member

    Messages:
    27
    Likes Received:
    0
    Thanks you so much for help ^^ but nothing work it's very strange :(
  16. SXX

    SXX Post Master General

    Messages:
    6,896
    Likes Received:
    1,812
    Yes it's will work.
  17. foxhive

    foxhive New Member

    Messages:
    27
    Likes Received:
    0
    I tried this and nothing change :(
  18. foxhive

    foxhive New Member

    Messages:
    27
    Likes Received:
    0
    It's because i have 6gb ram?:(
  19. radongog

    radongog Well-Known Member

    Messages:
    638
    Likes Received:
    295
    Why didn´t you tell us this right at the beginning?! You need at least 8 GiB to create a local server! It´s not like it wouldn´t work otherwise, but stability could not been granted so Uber doesn´t allow that option. If you are running local server and it crashes you loose the entire progress!
  20. trialq

    trialq Post Master General

    Messages:
    1,295
    Likes Received:
    917
    @radongog
    It's in the OP with no edits afaik, so it looks like they did. Local games should work fine on 6GB, I don't know if you need to do something to make it work with that much ram. The server and client tend to use about a gigabyte each for 1v1 sized games, in my experience.

Share This Page