Sign up Calendar Latest Topics
 
 
 


Reply
  Author   Comment  
Xavier Wise

Registered:
Posts: 1,362
Reply with quote  #1 
There is still a bug with wrecks and monsters in the game. I have taken a screenshot of a monster that has spawned (possibly due to a wreck spawning it?) 

Screenshot 2016-07-16 23.59.06.png 
The space monster spawned during the game at some point. There was no input from the GM at all to spawn the monster. It was stuck in the top right corner of the sector. The GM tried to delete the monster, however it respawned after a few seconds. One ship did scan the monster; you can see the information about the monster type in the info box on the Captain's map.

Soon after, when we were attacking another enemy fleet all the clients crashed with an assertion failure that referenced monsters. 

I think the continuing spawn of the monster in the top right corner contributed to the crash. I have found when scripting that it is possible to spawn ships in the exact same location (using GM_position), but not possible to spawn monsters.

If something in the game triggered a space monster to spawn in the top right hand corner of the sector, and then the same events occurred again to spawn another monster,on top of the monster that was already present there, the game would crash because of two monsters occupying the same location. 

Hope this helps to finally pinpoint and get rid of this bug!


__________________
Fleet Captain Xavier Wise - TSN Sabre
Link to TSN RP Community Website

Want to follow development of the TSN Sandbox? Head here:
https://ko-fi.com/xavierwise
Xavier Wise

Registered:
Posts: 1,362
Reply with quote  #2 
OK, so this persistent bug is really ruining the game for the TSN RP Community. We seem to be experiencing it on a weekly basis. The only work arounds that we can think of are a) remove Kraliens (as they seem to be the only race that spawn wrecks) or b) play using a GM script and don't spawn any Kraliens.

Having the server crash during an hour long mission with 20-30 people playing is pretty annoying. Having the server also crash when we try to run a normal solo or coop game is also pretty annoying. It basically means that no matter what we do, we can't play without the risk of a crash. 

Sorry for whining [frown] 

__________________
Fleet Captain Xavier Wise - TSN Sabre
Link to TSN RP Community Website

Want to follow development of the TSN Sandbox? Head here:
https://ko-fi.com/xavierwise
Fish Evans

Registered:
Posts: 383
Reply with quote  #3 
Ok so potential new theroy... Fighter launches the TSN this week modded things so that fighters would not launch from carrier, the result was that instad of crashing 10 or 12 times.. we only crashed twice. now it may of been that we where quiert then normal this week only 20-24 people showed rathr then the normal 25-30.. we will montor this again next week.
Fish Evans

Registered:
Posts: 383
Reply with quote  #4 
something is not right with the netcode when it comes to spawning wrecks and or fighters the odd thing is that about half the time all the clients crash but the server remains operational, only when the clients reconect and the server is unpaused all the clients crash again
NinetyEyes

Registered:
Posts: 6
Reply with quote  #5 
Are people still encountering this bug? Did anybody ever get to the bottom of the mechanism for the crashes?
(I am gearing up for a large LARP and am hoping to use some Kraliens.)
LawsonThompson

Registered:
Posts: 827
Reply with quote  #6 
Is this the error message:

Assertion failed!

Program: Artemis.exe
File: .\OBJMonster.cpp
Line: 233

Expression: pos.x > -SPACE_SIZE_W

Seems to me it means the monster x position exceeded the width of space. We got this in the middle of a mission at DragonCon last year. It was a generated mission unscripted Single Front. 

http://artemiswiki.pbworks.com/w/page/100482905/Space%20Piranha indicates a possible crash bug with Piranha spawning when a wreck is destroyed. I'm tempted to write up a script that creates and destroys a large number of ships and wrecks in an attempt to trigger the bug.

__________________
----
https://LTEBridge.com
Xavier Wise

Registered:
Posts: 1,362
Reply with quote  #7 
Looks about right for the message. If you try to ignore, the only change is in 'Line: 233' where the number changes.
__________________
Fleet Captain Xavier Wise - TSN Sabre
Link to TSN RP Community Website

Want to follow development of the TSN Sandbox? Head here:
https://ko-fi.com/xavierwise
Mike Substelny

Avatar / Picture

Administrator
Registered:
Posts: 2,990
Reply with quote  #8 
That looks like the sort of error my scripts generate when I accidentally spawn two items at the same coordinates. When the server tries to calculate the distance between them it gets a divided by zero error, or so I believe.

I wonder if certain monsters, especially piranha and whales which spawn in tight groups, can sometimes spawn right on top of each other? If their coordinates are assigned randomly this might happen sometimes.

In that case, I would also wonder if NPC fighters can sometimes spawn on top of each other. Has anyone ever observed a server crash when an enemy carrier launches fighters?

__________________
"The Admiralty had demanded six ships; the economists offered four; and we finally compromised on eight."
- Winston Churchill
Xavier Wise

Registered:
Posts: 1,362
Reply with quote  #9 
At one point, we removed fighters from the game entirely and it seemed to stabalise. I did notice when scripting that to create a piranha swarm I had to set a sequence of timed spawns so that they didn't all drop on one another.
When the crash occurs, there is always a monster indicator in the top right corner of the map, so I wonder if some event creates a monster there a second time, and therefore it crashes due to them occupying the same place at the same time.

__________________
Fleet Captain Xavier Wise - TSN Sabre
Link to TSN RP Community Website

Want to follow development of the TSN Sandbox? Head here:
https://ko-fi.com/xavierwise
Mike Substelny

Avatar / Picture

Administrator
Registered:
Posts: 2,990
Reply with quote  #10 
If a swarm of monsters is being spawned at (0,0,0) then I could see this causing an instant server crash.
__________________
"The Admiralty had demanded six ships; the economists offered four; and we finally compromised on eight."
- Winston Churchill
Xavier Wise

Registered:
Posts: 1,362
Reply with quote  #11 
Which is why I think it is linked to wrecks and pirahna swarms. I removed wrecks in the TSN Sandbox mission script by having a delete event trigger constantly and it seemed to help boost reliability if the script; no wrecks means no potential pirahnas to spawn from them. I personally cannot recall seeing a pirahna swarm spawn from a wreck, though others have reported that they do and have had no issues.
I'll note that we play multi-ship missions. Could it be something that occurs when two enemies are destroyed simultaneously in the same area, create wrecks that immediately spawn pirahnas and there is some kind of conflict with multiple swarms spawning at the same time?
I am aware though that Thom looked into this in the past and couldn't find any particular problem.

__________________
Fleet Captain Xavier Wise - TSN Sabre
Link to TSN RP Community Website

Want to follow development of the TSN Sandbox? Head here:
https://ko-fi.com/xavierwise
Fish Evans

Registered:
Posts: 383
Reply with quote  #12 
this might be the same bug as was casueing issues with figher spawns from arvonians

if the mechanic is that they are spawned at 0 0 0 then moved and angled reltive to the carrier calling them into existance..... it might also explain why net games are a bit more fragile as the clients will not be so closely in step with the server.
NinetyEyes

Registered:
Posts: 6
Reply with quote  #13 
Would it be possible to run a "delete everything at 0,0,0" event to prevent the bug? If so, what might that look like in a mission file?

Xavier Wise, what was the script for that "delete wrecks" event? I'm hoping that I might be able to plug it in to Arrew's GM sandbox V5 for a larp.

Xavier Wise

Registered:
Posts: 1,362
Reply with quote  #14 
@NinetyEyes

This is the code I use in the TSN Sandbox. The event is immediately after the Start block.

<event name_arme="Destroy Wrecks" id_arme="6b647792-11ee-4b66-b366-4dc3fecaac77">
<if_exists name="WRECK" />
<destroy name="WRECK" />
</event>


You could also add the code below to destroy the monster in the top corner if one spawned. I believe this would mean that there would be no monsters in the script at all, as they all appear as ZZ until scanned. 

<event name_arme="Destroy ZZ" id_arme="6b647792-11ee-4b66-b366-4dc3fecaac77">
<if_exists name="ZZ" />
<destroy name="ZZ" />
</event>


An alternative to destroy the monster in the top corner could be:

<event name_arme="Destroy ZZ" id_arme="6b647792-11ee-4b66-b366-4dc3fecaac77">
<if_exists name="ZZ" />
<if_inside_sphere name="ZZ" centerX="0.0" centerY="0.0" centerZ="0.0" radius="10" />
<destroy name="ZZ" />
</event>


That would just destroy a monster in the top right corner if it ever spawned.


__________________
Fleet Captain Xavier Wise - TSN Sabre
Link to TSN RP Community Website

Want to follow development of the TSN Sandbox? Head here:
https://ko-fi.com/xavierwise
Previous Topic | Next Topic
Print
Reply

Quick Navigation:

Easily create a Forum Website with Website Toolbox.