• Status Closed
  • Percent Complete
  • Task Type Bug Report
  • Category Server
  • Assigned To
  • Operating System Linux
  • Severity High
  • Priority Very Low
  • Reported Version Development
  • Due in Version Undecided
  • Due Date Undecided
  • Votes
  • Private
Attached to Project: N!tmod
Opened by Ken Wolter - 2012-01-12
Last edited by N!trox* - 2012-04-06

FS#38 - Warping and flying corpses

* N!tmod version : nitmod_2.2-20111216 * Build Date (!about cmd) : Dec 15 2011 * Map : All * Omni-Bot enabled ? : Yes * If yes, bot count : Maxbots set to 8 * Gametype : Objective * Any custom mapscripts ? If yes, provide link : / * Any LUA modules ? If yes, provide link : Default ones, just a few self-written ones that worked very well on previous versions and are hardly related to the errors * Happens in Warmup/Playing/Intermission ? : Warmup and playing * Explain the bug : Sometimes when a player is about to die meaning on very low HP he looks to those that shoot him like a corpse that's already dead but he can still shoot back and even move around. It basically really looks like you're fighting a flying corpse. Fortunately this happens quite rarely but when it does it's rather bothersome.
Closed by  N!trox*
Friday, 06 April 2012, 02:06 GMT
Reason for closing:  Fixed
Additional comments about closing:  Alright i think i found the problem, a modification i made a long time ago... Needs to be tested but i'm 99% sure this was the reason!
N!trox* commented on Thursday, 12 January 2012, 15:13 GMT
I would really need some screenshots/videos to understand these problems, it never happend to me on my test servers, neither on H20 server. No modifications have been made to antiwarp related code. About the flying corpses, i really need to be 100% sure this doesn't happen in any older version. If you can ensure me this never happened in 2.2b2, it should be easier for us to fix it. About warping: The only thing i could think of is a little SQLite problem that makes the server process hang for a few milliseconds if a SQL query takes too much time being executed. So far this has only been reported when using one database for multiple servers. SQLite allows multiple process to execute "SELECT" queries at the same time, but only one process can modify the database at a time, which results in small server engine freezes. I know this is probably hard for you to do because of all the XPSave etc, but try running the server without the database (n_sqliteDBPath "") and tell me if this happens again.
Ken Wolter commented on Thursday, 12 January 2012, 15:30 GMT
Yes, I can ensure you that this has never happened to us on any previous version of the mod. What you say about the SQLite Database problem sounds pretty logical since we did not have this problem at the beginning of the test phase but only as we gave all players there XP back and as new players joined the server. If you insist however, I shall give it a try without the database running but I'm kinda sure the only reason it freezes is what you mentionned.
N!trox* commented on Thursday, 12 January 2012, 15:48 GMT
I will try to handle SQLite locks, if a query can't be executed because the database is busy, it will be executed later or on map end, i'm not sure yet. However if only one server is using your database, SQLite locking shouldn't happen. If you can try without database, it would be really helpful for us, to make sure this is really caused by SQLite timeouts. I will check all the modifications made between 2.2b2 and 2.2-20111216 in order to find what's causing the flying corpses.
N!trox* commented on Thursday, 12 January 2012, 15:54 GMT
Oh hmm, just thought about this. 2.2 20111216 is still affected by configstrings problems, server sends correct data but client doesn't parse it correctly, so client request it again, server sends again, and so on... This rally increases data exchange between the server and all the clients, so this might be the reason about excessive warping. If it doesn't look like the server hangs (connection interrupted should appear) when the warping happens then it's due to CS problems.
N!trox* commented on Thursday, 12 January 2012, 15:56 GMT
Try setting cg_debugNewCS cvar to 1 when it happens, if your console is flooded by these debug lines, then this is a CS related issue, that has been fixed in latest builds.
Ken Wolter commented on Thursday, 12 January 2012, 16:11 GMT
I'll try to get screenshot or a demo of the corpse issue but since it happens so rarely I'm not sure when I'll be able to hand it in. In what concerns the warps, it is not related to the Connection Interrupted message that you get when you're losing packets for real. It feels more like an FPS lag rather than an internet lag. I've tried the cg_debugNewCS cvar but nothing happened, the console wasn't flooded nor did the lag disappear. The database is indeed only used on one single server. I'm not exactly sure if it would matter but db_sync is set to 1. I'd really like to avoid removing the database, though, because I'm kinda scared that visitors who will not understand the explanations will quit the server, let alone creating a scenario similar to the one we have everyday and see if the lag is gone for real. Perhaps you could somehow give me the newest version and see if it's fixed on there? As for my side that would spare me loads of trouble.
N!trox* commented on Thursday, 12 January 2012, 18:06 GMT
If there's no connection interrupted message, then it's probably not related to SQLite locks, neither any other server side problem... So this is a FPS lag ? nothing unusual on the lagometer ? If the lagometer stays stable, then this is probably a client side issue. I'm not home and will probably not go home for 2 or 3 days, so i can't test or send you the latest build, but i'm pretty sure that this doesn't happen on my test server ( Visit my server and see if this happens (probably only bots but shouldn't make a big difference, if the bug still exists it will happen anyway) I understand that removing the db can cause lot of troubles and make players leave, so it's up to you. If you want to test it, do it, else I will try to figure out what's wrong by myself next time i go home.
Ken Wolter commented on Thursday, 12 January 2012, 18:36 GMT
Well, there's no Connection Interrupted message which makes it LOOK like it is an FPS problem. But it isn't because my FPS are stable at 125 at all times (NVIDIA GTX 580). That's what's weird. And other players have the exact same issue which makes it hard to believe that this is a client side issue. Anyhow, I'll get on your test server later and see what happens to me there.
Ken Wolter commented on Thursday, 12 January 2012, 19:12 GMT
I'm not getting any warps on your server.
Ken Wolter commented on Thursday, 12 January 2012, 19:42 GMT
I'm not getting any warps on your server.
Ken Wolter commented on Thursday, 12 January 2012, 20:21 GMT
I'm not getting any warps on your server.
Ken Wolter commented on Thursday, 12 January 2012, 20:50 GMT
I'm not getting any warps on your server.
N!trox* commented on Friday, 13 January 2012, 01:49 GMT
Oh crap, forgot one of the most important questions... Does this happen to everyone at the same time ? If it does, then it's most likely a server side problem.
Ken Wolter commented on Friday, 13 January 2012, 13:45 GMT
I'm not sure if the warping occurs to all the players at the very same time, though I can tell that all those that use the chat complain about warps and if one does at least two others confirm the issue.
Ken Wolter commented on Friday, 13 January 2012, 19:17 GMT
I attached a demo on this post on which the warps should be clearly visible at some points. Don't mind my sucking, it's just to show you what I mean and how annoying it can be.
N!trox* commented on Tuesday, 17 January 2012, 07:18 GMT
Watched the demo and didn't really notice anything wrong, but i guess there are some things that demo can't reproduce. (One wierd thing i noticed was incredibly wrong gravity on gibs/grenades/flying things, but this is probably just a little problem with demos) I also played on your server befre for 5/10 minutes (only bots, maybe it only happens with more people ?) and didn't notice anything wrong either. I still have some things to fix (SQLite timeout handling, cvar to lower body hitbox to shoulders...) before i can build a new release. When it's ready, I can send it to you so you can test and see if it happens again.
Ken Wolter commented on Tuesday, 17 January 2012, 18:10 GMT
Alright, thanks.
N!trox* commented on Thursday, 22 March 2012, 13:04 GMT
Modified the bug report, didn't notice any warping on your server with 2.2PR2 (neither with 2.2-20111216) About the "living dead" players i've seen it happen but i don't have enough informations on how to reproduce it...


Available keyboard shortcuts


Task Details

Task Editing