Bug #22752

Aircraft crash: Bstats emits "scalar" instead of passengers, points

Added by MaHuJa almost 6 years ago. Updated almost 6 years ago.

Status:Closed Start date:07/24/2011
Priority:Normal Due date:
Assignee:Spyder001 % Done:


Target version: Estimated time:1.00 hour
Affected Version: Reproducible for you:No


Last time we saw this, I think you mentioned that it was probably related to respawning vehicles.

Until fixed, it will emit

 bstats_accrash (3838278, 2583.38, scalar, scalar, "[4239.8,4765.98,1.15535]")

Uplink's error log will show

uplink/user/bstats.lua:49: LuaSQL: error executing statement. PostgreSQL: ERROR:  null value in column "totalscore" violates not-null constraint
CONTEXT:  SQL statement "UPDATE playersum 
        SET aircrashes = aircrashes + 1, totalscore = totalscore + new.score_value
        WHERE playerid = new.victimid" 
PL/pgSQL function "killevent_after_insert" line 12 at SQL statement
INSERT INTO "killevent" (victimid, gametime, param_int, score_value, victim_position, event_type, session)
    VALUES (367170, 2781.54, NULL, NULL, '{4234.73,4787.9,4.39011}', 'accrash', %s)

Related issues

related to SPY Battle Statistics - Bug #23224: Vehicle TK Emits "any" to A2U Closed 08/07/2011


Updated by Spyder001 almost 6 years ago

Yeah, I need to add a check if the aircraft is setup right. Otherwise it needs to exit and do nothing.

Updated by Spyder001 almost 6 years ago

  • Target version set to

Updated by Spyder001 almost 6 years ago

  • Status changed from New to Closed
  • % Done changed from 0 to 100
  • Estimated time set to 1.00

Fixed, default number of passangers set to 0 now.

Also available in: Atom PDF