Results 1 to 6 of 6

Thread: My Location Mod on Windows vs Linux

  1. #1
    Purple Developer Purple Elephant1au's Avatar
    Join Date
    Feb 2012
    Location
    Australia
    Posts
    1,269

    Default My Location Mod on Windows vs Linux

    Hi

    This is been frustrating me for awhile now , and i keep going back to it every few days as to try and find an answer to the problem

    Ok Problem is

    I have this mod ( location helper mod ) for freezetag , which works as it should when im testing on a windows server but whenever i upload it to my Linux server ( public )
    it crashes the server.

    I highlighted when i turned the mod on ( which is in the spawn event ) so it registers the spawn event but wont do anything if cvar not set , spawn event works fine if cvar not set.

    Error code from console log
    Code:
    SV packet 60.229.145.24:12203 : getchallenge
    SV packet 60.229.145.24:12203 : connect
    SVC_DirectConnect ()
    >>>\challenge\-1804391370\qport\52293\protocol\8\cl_namepass\Eggplant\dm_playergermanmodel\german_panzer_tankcommander\dm_playermodel\allied_capt_recon\rate\25000\name\PurpleElephant (  .  Y  .  )\snaps\20<<<
    version 8 connecting to 8
    Client 0 connecting with 0 challenge ping
    IP: 60.229.145.24:12203
    PurpleElephant (  .  Y  .  ) is preparing for deployment
    Going from CS_FREE to CS_CONNECTED for PurpleElephant (  .  Y  .  )
    PurpleElephant (  .  Y  .  ) : dropped gamestate, resending
    SV_SendClientGameState() for PurpleElephant (  .  Y  .  )
    Going from CS_CONNECTED to CS_PRIMED for PurpleElephant (  .  Y  .  )
    Going from CS_PRIMED to CS_ACTIVE for PurpleElephant (  .  Y  .  )
    Warning: cvar "g_maxplayerhealth" given initial values: "750" and "250"
    ^~^~^ Add the following line to the *_precache.scr map script:
    cache models/player/allied_capt_recon.tik
    PurpleElephant (  .  Y  .  ) has entered the battle
    clientCommand: PurpleElephant (  .  Y  .  ) : 1 : join_team axis
    Cvar_Set2: cheats 0
    clientCommand: PurpleElephant (  .  Y  .  ) : 2 : primarydmweapon heavy
    Cvar_Set2: cheats 0
    Taking item Panzerschreck away from player
    player::Sentient::DeactivateWeapon : Tried to deactivate a non-active weapon in hand 0
    
    SV packet 60.229.145.24:12203 : rcon
    Rcon from 60.229.145.24:12203:
    location_help
    clientCommand: PurpleElephant (  .  Y  .  ) : 3 : join_team allies
    Cvar_Set2: cheats 0
    Got signal 11 - Segmentation fault, faulty address is (nil)
    Crash Recover Attempt will take place!
    Execution path:
     --> ./fgameded.so(STR_GetText+0x6) [0xf6491a0f]
     --> ./fgameded.so(ST_iHudDrawShader+0x112) [0xf6491efa]
     --> ./fgamededmohaa.so(_ZN8ScriptVM7ExecuteEP14ScriptVariablei9const_str+0x7cd) [0xf610523d]
     --> ./fgamededmohaa.so(_ZN12ScriptThread13ScriptExecuteEP14ScriptVariableiRS0_+0xec) [0xf60f80bc]
     --> ./fgamededmohaa.so(_ZN8Listener21ExecuteThreadInternalEP13Event_GAMEDLLR14ScriptVariable+0x4a) [0xf61bb81a]
     --> ./fgamededmohaa.so(_ZN8Listener12CreateThreadEP13Event_GAMEDLL+0x29) [0xf61bb659]
     --> ./fgamededmohaa.so(_ZN8ScriptVM7ExecuteEP14ScriptVariablei9const_str+0x7cd) [0xf610523d]
     --> ./fgamededmohaa.so(_ZN12ScriptThread13ScriptExecuteEP14ScriptVariableiRS0_+0xec) [0xf60f80bc]
     --> ./fgamededmohaa.so(_ZN8Listener21ExecuteThreadInternalEP13Event_GAMEDLLR14ScriptVariable+0x4a) [0xf61bb81a]
     --> ./fgamededmohaa.so(_ZN8Listener12CreateThreadEP13Event_GAMEDLL+0x29) [0xf61bb659]
     --> ./fgamededmohaa.so(_ZN8ScriptVM7ExecuteEP14ScriptVariablei9const_str+0x7cd) [0xf610523d]
     --> ./fgamededmohaa.so(_ZN12ScriptThread13ScriptExecuteEP14ScriptVariableiRS0_+0xec) [0xf60f80bc]
     --> ./fgamededmohaa.so(_ZN8Listener21ExecuteScriptInternalEP13Event_GAMEDLLR14ScriptVariable+0x4a) [0xf61bbbda]
     --> ./fgamededmohaa.so(_ZN8Listener13ExecuteScriptEP13Event_GAMEDLL+0x29) [0xf61bba19]
     --> ./fgameded.so(ExecuteScript+0x2e) [0xf6491a03]
     --> ./fgameded.so(Player_Respawn_hook+0x83) [0xf6499cc9]
     --> ./fgamededmohaa.so(_ZN8Listener12ProcessEventEP13Event_GAMEDLL+0x4f) [0xf61c390f]
     --> ./fgamededmohaa.so(L_ProcessPendingEvents+0x4e) [0xf61c43ae]
     --> ./fgamededmohaa.so(G_RunFrame+0x1cf) [0xf619cfef]
     --> ./fgameded.so(G_RunFrame+0x7d1) [0xf6498b8a]
     --> ./mohaa_lnxded [0x808d7ab]
     --> ./mohaa_lnxded [0x8067486]
     --> ./mohaa_lnxded [0x809726e]
     --> /lib/libc.so.6(__libc_start_main+0xdc) [0xb06ebc]
     --> ./mohaa_lnxded(_Znwj+0x71) [0x8049c41]
    [OVERLORD] ERROR    Server has died, return code 0
    [OVERLORD] INFO     Starting server
    --- Common Initialization ---
    Medal of Honor Allied Assault 1.11 linux-i386 Jul 22 2004
    Cvar_Set2: fs_outputpath /usr/local/games/moh/996519/173.199.80.177:12203
    ----- FS_Startup -----
    The servers ( local and public ) have the same pk3 in them , both exec the location mod from spawn event but it only works on Windows version

    I cant tell what the error is saying , i thought it had something to do with the ihuddraws , so i tried changing index numbers a few times but same problem
    Ive run out of ideas , fresh eyes anyone

    Ill attach the location_help.scr
    Attached Files Attached Files

    Purple's Playground
    OBJ :
    103.29.85.127:12203
    xfire: purpleelephant1au
    email: purpleelephant1au@gmail.com
    skydrive: PurpleElephantSkydrive




  2. #2
    Administrator James's Avatar
    Join Date
    May 2010
    Location
    on the intraweb
    Posts
    3,180

    Default

    I see you've done some println(), which is good, may I suggest putting them in more loops though to better assist where the issue could potentially be.
    At first glance I can't really tell, and if it only crashes on *nix, then maybe the segmentation fault is on our end with the patch. Perhaps RR can assist better with this.

    BTW, your ingame name "PurpleElephant ( . Y . )" priceless.

  3. #3
    Über Prodigy & Developer Razo[R]apiD's Avatar
    Join Date
    May 2010
    Location
    Poland, Lublin
    Posts
    3,257

    Default

    When you call ihuddraw_shader, initialize variable holding string first. I bet you have some variable like local.shader which is sometimes NULL or NIL. You have to initialize this variable.

    If you don't have a variable but you pass string directly, you should use variable.

    Stacktrace shows clearly where it crashed and why:

    --> ./fgameded.so(STR_GetText+0x6) [0xf6491a0f]
    --> ./fgameded.so(ST_iHudDrawShader+0x112) [0xf6491efa]

    Also faulty address is (nil) means that it crashed because of some NULL variable.

  4. #4
    Developer Sor's Avatar
    Join Date
    Aug 2010
    Location
    The Medieval City of Bruges
    Posts
    747

    Default

    Isn't it weird that Linux won't accept a constant string? Are there more commands that are sensitive to this? I only test on windows as well.
    Morpheus Script (MoH) => You try to shoot yourself in the foot only to discover that MorpheusScript already shot your foot for you.

  5. #5
    Über Prodigy & Developer Razo[R]apiD's Avatar
    Join Date
    May 2010
    Location
    Poland, Lublin
    Posts
    3,257

    Default

    Well, this can be a problem on my side, I'll have to add some protection against this.

  6. #6
    Purple Developer Purple Elephant1au's Avatar
    Join Date
    Feb 2012
    Location
    Australia
    Posts
    1,269

    Default

    Hi

    Razo[R]apiD When you call ihuddraw_shader, initialize variable holding string first. I bet you have some variable like local.shader which is sometimes NULL or NIL. You have to initialize this variable.

    If you don't have a variable but you pass string directly, you should use variable.
    Thanks , i used varibles and it works now , stupid thing lol

    Purple's Playground
    OBJ :
    103.29.85.127:12203
    xfire: purpleelephant1au
    email: purpleelephant1au@gmail.com
    skydrive: PurpleElephantSkydrive




Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •