The Last Outpost

Member Services => Engineering => Topic started by: Jack Telford on May 27, 2019, 07:38:34 PM

Title: [INVESTIGATING] Crash on Phaser Fire in new RPG-X
Post by: Jack Telford on May 27, 2019, 07:38:34 PM
Hey everyone,
I recently updated to the new RPG-X version and am having an issue where the server crashes when someone is hit by phaser fire. If y'all have any ideas to fix it please let me know.
Thanks!
Title: Re: [INVESTIGATING] Crash on Phaser Fire in new RPG-X
Post by: Callum603 on May 27, 2019, 07:52:22 PM
Acknowledging issue and looking into it
Title: Re: [INVESTIGATING] Crash on Phaser Fire in new RPG-X
Post by: Klaw on May 28, 2019, 08:13:38 AM
idk for sure - but could this be the issue?

Set in_mouse to 1 (instead of the default of -1) in your hmconfig
Title: Re: [INVESTIGATING] Crash on Phaser Fire in new RPG-X
Post by: Callum603 on May 28, 2019, 09:01:46 AM
in_mouse should be set to 1 by default now in the latest version.

I'm currently looking into the issue but all I can find so far is a potential programming error.

Just so I know, does this happen on a local server, one of our servers, or both?
Title: Re: [INVESTIGATING] Crash on Phaser Fire in new RPG-X
Post by: Jack Telford on May 28, 2019, 11:06:51 AM
Klaw - I will try setting my in_mouse to 1 because I had to manually set it to -1 as when it was set to 1 it caused an issue with my RPG-X if I alt-tabbed out and then back into it.
UPDATE: Doesn't seem that the in-mouse setting effects it, also I believe it is only when someone is hit
Callum- Just local server I believe though I have not tried it on yours.
Title: Re: [INVESTIGATING] Crash on Phaser Fire in new RPG-X
Post by: Callum603 on May 28, 2019, 09:16:08 PM
Just so I know for testing some possible solutions I may have come up with, when you run a local server how are you doing it?

Listen Server - Where you run a server and play on that server from the same client

Dedicated Server - Where you have a second copy of the game open that only shows a console of the running server
Title: Re: [INVESTIGATING] Crash on Phaser Fire in new RPG-X
Post by: Jack Telford on May 29, 2019, 06:35:01 AM
A listen server - basically I'm just using the /map (map name) to launch the server
Title: Re: [INVESTIGATING] Crash on Phaser Fire in new RPG-X
Post by: RetroActiveGM on August 07, 2021, 09:22:14 PM
Hey guys, I was wondering if a fix/patch was ever worked out for this bug? I downloaded RPG-X earlier today to play with friends and whenever we shot each other, the server crashed.
Title: Re: [INVESTIGATING] Crash on Phaser Fire in new RPG-X
Post by: Callum603 on August 08, 2021, 01:44:30 PM
Quote from: RetroActiveGM on August 07, 2021, 09:22:14 PMHey guys, I was wondering if a fix/patch was ever worked out for this bug? I downloaded RPG-X earlier today to play with friends and whenever we shot each other, the server crashed.

Sadly it wasn't.  The best work around is to run two clients, set one up as a dedicated server and use the other one to play from, the issue is the server host being shot, with the server host not being a playable character it removes that issue.

If you need any help setting up a client as a dedicated server, just drop me a message and I will help you out.
Title: Re: [INVESTIGATING] Crash on Phaser Fire in new RPG-X
Post by: RetroActiveGM on August 08, 2021, 03:05:32 PM
Quote from: Callum603 on August 08, 2021, 01:44:30 PM
Quote from: RetroActiveGM on August 07, 2021, 09:22:14 PMHey guys, I was wondering if a fix/patch was ever worked out for this bug? I downloaded RPG-X earlier today to play with friends and whenever we shot each other, the server crashed.

Sadly it wasn't.  The best work around is to run two clients, set one up as a dedicated server and use the other one to play from, the issue is the server host being shot, with the server host not being a playable character it removes that issue.

If you need any help setting up a client as a dedicated server, just drop me a message and I will help you out.

I don't think it's an issue specific to the server host being shot. Myself and a group of friends tested out the bug on both client hosted and dedicated client hosted, and whenever any of us was killed (not simply shot/damaged) by a phaser, the server would crash. Respawn and death by collison/being sucked into space worked fine, so it's something to do with the death the phaser causes.

Here's an excerpt from my server log which shows the point at which the crash occurs:

Kill: 0 1 10: William T. Riker killed Sherlock by MOD_PHASER
Lua: Lua module [scripts/lua/RPG_Voy4/rpg_voy4.lua] unloaded.
********************
ERROR: Q_strncpyz: NULL src. dest was
********************
----- Server Shutdown (Server crashed: Q_strncpyz: NULL src. dest was ) -----
Sending heartbeat to master.stef1.ravensoft.com:27953
Sending heartbeat to master.stef1.ravensoft.com:27953
==== ShutdownGame ====
AAS shutdown.
forcefully unloading qagame vm
---------------------------
RE_Shutdown( 0 )
Hunk_Clear: reset the hunk ok
----- R_Init -----

I should also note that we tested this on a different map, the Enterprise-E, and the same thing happened so it's not map-specific.