1. If you have a problem and need help, create a new thread with a title that briefly describes the problem.
    Do not use titles like 'Help!' or 'I have a problem!'
    Dismiss Notice
  2. Hey Guest, is it this your first time on the forums?

    Visit the Beginner's Box

    Introduce yourself, read some of the ins and outs of the community, access to useful links and information.

    Dismiss Notice

Cannot direct connect to local server

Discussion in 'General Help' started by SimmyD, Oct 3, 2011.

  1. SimmyD

    SimmyD Shipwright

    Messages:
    5
    Hi all,

    When trying to connect to a server on my network i get this in the output of the terminal

    [2043] Connecting to 192:168
    Error sending outgoing packets: Invalid argument
    Error sending outgoing packets: Invalid argument
    Error sending outgoing packets: Invalid argument
    [2203] Connection to server failed.
    [2203] Connection to server failed.
    [2203] Connection to server failed.

    i am trying to connect to 192.168.85.251:50301 which is what i have in the client.

    I am running fedora 15 x64.

    It seems it may not be picking up the .'s correctly and thinking they are : ?

    i can connect to servers fine using the browser

    Client created
    [6562] Connecting to 63.237.124.75:8111
    Client: Connected to foreign host 4b7ced3f:8111.

    Which leads me to believe this is a bug :)

    Simon
     
  2. SirSalami

    SirSalami THD Team THD Team Administrator

    Messages:
    301
    Hi SimmyD, welcome!

    This is a known issue. The problem seems to be that the master server gets confused when two of the same IPs are interacting with it. So to run a server in which you want connect locally, you have to do this:

    In /kag/base/scripts/dedicated_autoconfig.gm, add the following line:

    global sv_require_auth = 0;

    This removes the requirement of connecting players authorizing with the master server first. Then you can connect by typing your local address as you have tried. The server list will still not work as it will still be confused. The server is still listed there, and others can connect via the list... just not anyone on your lan.

    Sadly, doing this will also prevent us kag guards from protecting your server from griefers / hackers as we will no longer have our booting powers on a server that doesn't require authorization. Hopefully this will be resolved at some point.

    Hope this helps!
     
  3. SimmyD

    SimmyD Shipwright

    Messages:
    5
    Hi SirSalami :)

    Thanks for the fast reply. I am not sure how this will effect the ip address my client is trying to connect to (as those outputs were from my client not the server) but i will give it a crack when i get home tonight and report back how i go.

    Cheers,

    Simon
     
  4. SimmyD

    SimmyD Shipwright

    Messages:
    5
    Still no good. It does seem to be an issue with the client as its not even getting the right ip address to connect to hence the 192:168. its not looking at the "." properly. And again it works if i connect to a random server in the browser section.

    Simon

    [sdwyer@fitz king-arthurs-gold]$ ./launch-game.sh
    Running KAG
    mv: cannot stat `KAG.tmp': No such file or directory
    PID: 3813
    Starting in directory: ./
    Engine (build: 154 version: 0.90A)

    Downloading checksums from http://kag2d.com/update/kag_x/App/version.txt
    Downloading http://kag2d.com/update/kag_x/App/version.txt...
    % Total % Received % Xferd Average Speed Time Time Time Current
    Dload Upload Total Spent Left Speed
    100 15939 100 15939 0 0 12933 0 0:00:01 0:00:01 --:--:-- 18576
    Version file the same (key matches)
    Using file 'Base/Juxta.so'
    APP GameDLLInit

    Game DLL initialized.
    Changing game working directory to './Base/'
    [] Config loaded from 'Scripts/autoconfig.gm'
    [] Config loaded from 'Scripts/config.gm'
    [0] Creating video device...
    ******* params.DeviceType 7
    Irrlicht Engine version 1.7.2
    Linux 2.6.40.4-5.fc15.x86_64 #1 SMP Tue Aug 30 14:38:32 UTC 2011 x86_64
    ******* CNullDriver, 164059560
    ******* FileSystem
    ******* SurfaceLoader
    ******* ExposedData
    [0] Desktop resolution is 1680x1050
    [0] Checking driver support...
    [0] Initializing new video device...
    ******* params.DeviceType 7
    [0] Irrlicht Engine version 1.7.2
    [0] Linux 2.6.40.4-5.fc15.x86_64 #1 SMP Tue Aug 30 14:38:32 UTC 2011 x86_64
    ******* CNullDriver, 164059560
    ******* FileSystem
    ******* SurfaceLoader
    ******* ExposedData
    [0] Using renderer: OpenGL 4.1.0
    [0] GeForce GTX 560 Ti/PCI/SSE2: NVIDIA Corporation
    [0] OpenGL driver version is 1.2 or better.
    [0] GLSL version: 4.1
    [0] The amount of upper corner pixels and the lower corner pixels is not equal, font file may be corrupted.
    [0] Loaded texture: /home/sdwyer/desura/common/games/king-arthurs-gold/Base/GUI/arrow_cursor.png
    [0] Loaded texture: /home/sdwyer/desura/common/games/king-arthurs-gold/Base/GUI/title.png
    [0] Loaded texture: /home/sdwyer/desura/common/games/king-arthurs-gold/Base/GUI/minimap.png
    [0] Loaded texture: /home/sdwyer/desura/common/games/king-arthurs-gold/Base/GUI/hud_back.png
    [0] Loaded texture: /home/sdwyer/desura/common/games/king-arthurs-gold/Base/GUI/materials.png
    [0] Loaded texture: /home/sdwyer/desura/common/games/king-arthurs-gold/Base/GUI/paper_tiles.png
    [0] Loaded texture: /home/sdwyer/desura/common/games/king-arthurs-gold/Base/GUI/blockmenu.png
    [0] Loaded texture: /home/sdwyer/desura/common/games/king-arthurs-gold/Base/GUI/button.png
    [0] Loaded texture: /home/sdwyer/desura/common/games/king-arthurs-gold/Base/GUI/whitebutton.png
    irrKlang sound library version 1.3.0
    Could not load libasound.so
    [0] Sound engine started
    Game version 158
    [0] Precaching files...
    Precaching files.
    [0] ...Precaching files.
    [0] Loading config defines Scripts/defines.cfg
    [0] Creating world from file ''
    [0] *Match Ended*
    [0] Autostart: doing nothing
    [0] Config loaded from autostart.gm
    No entity file ../Cache/entity.dat.[0] Unsupported texture format
    [13] Loaded texture: /home/sdwyer/desura/common/games/king-arthurs-gold/Base/GUI/DarkMicroStone.png
    [13] Loaded texture: /home/sdwyer/desura/common/games/king-arthurs-gold/Base/GUI/BorderStone.png
    [13] Loaded texture: /home/sdwyer/desura/common/games/king-arthurs-gold/Base/GUI/MicroStone.png
    [13] Loaded texture: /home/sdwyer/desura/common/games/king-arthurs-gold/Base/GUI/SimpleStone.png
    [13] Loaded texture: /home/sdwyer/desura/common/games/king-arthurs-gold/Base/GUI/FramedStone.png
    [13] Could not load sprite bank because the file does not exist: servers bank
    [13] Loaded texture: /home/sdwyer/desura/common/games/king-arthurs-gold/Base/GUI/server_icons.png
    Client created
    [565] Connecting to 192:168
    Error sending outgoing packets: Invalid argument
    Error sending outgoing packets: Invalid argument
    Error sending outgoing packets: Invalid argument
    [725] Connection to server failed.
    [725] Connection to server failed.
    [725] Connection to server failed.

    [2227] Connecting to 63.237.124.75:8111
    Client: Connected to foreign host 4b7ced3f:8111.
    [2254] *Match Ended*
    [2254] New track added to mixer Sounds/Music/ambient_forrest.ogg
    [2254] New track added to mixer Sounds/Music/ambient_cavern.ogg
    [2254] New track added to mixer Sounds/Music/ambient_cavern_creatures1.ogg
    [2254] New track added to mixer Sounds/Music/ambient_cavern_creatures2.ogg
    [2254] New track added to mixer Sounds/Music/ambient_cavern_creatures3.ogg
    [2254] New track added to mixer Sounds/Music/ambient_cavern_creatures4.ogg
    [2254] New track added to mixer Sounds/Music/ambient_mountain.ogg
    [2254] New track added to mixer Sounds/Music/aminor/intro.ogg
    [2254] New track added to mixer Sounds/Music/aminor/bridge.ogg
    [2254] New track added to mixer Sounds/Music/aminor/bridge2.ogg
    [2254] New track added to mixer Sounds/Music/aminor/middle.ogg
    [2254] New track added to mixer Sounds/Music/aminor/outro.ogg
    [2254] New track added to mixer Sounds/Music/aminor/contemplations1.ogg
    [2254] New track added to mixer Sounds/Music/aminor/contemplations3.ogg
    [2254] *Match Ended*
    [2282] setNetworkID: wrong id 0

    [2282] New player joined the game
     
  5. SimmyD

    SimmyD Shipwright

    Messages:
    5
    Tried it with the windows client under wine and it works great as per below.

    i would much perfer to run it native though, thats why i bought it on desura.

    Cheers,

    Simon

    [6] Loaded texture: C:/KAG/Base/GUI/DarkMicroStone.png
    [6] Loaded texture: C:/KAG/Base/GUI/BorderStone.png
    [6] Loaded texture: C:/KAG/Base/GUI/MicroStone.png
    [6] Loaded texture: C:/KAG/Base/GUI/SimpleStone.png
    [6] Loaded texture: C:/KAG/Base/GUI/FramedStone.png
    [6] Could not load sprite bank because the file does not exist: servers bank
    [6] Loaded texture: C:/KAG/Base/GUI/server_icons.png
    Client created
    [444] Connecting to 192.168.85.251:50301
    Client: Connected to foreign host fb55a8c0:50301.
    [448] *Match Ended*
    [449] *Match Ended*
    [460] setNetworkID: wrong id 0

    [460] New player joined the game