Loading...
  OR  Zero-K Name:    Password:   
Title: TeamsRoom
Host: DErankChesti
Game version: Zero-K v1.5.1.6
Engine version: 103.0.1-298-gaf1edb1
Started: 7 years ago
Duration: 30 minutes
Players: 7
Bots: False
Mission: False
Watch Replay Now
Manual download

Team 1
Chance of victory: 43.9%

HRranktomicaST
USrankBatman
USrankAMPERSAND
Team 2
Chance of victory: 56.1%

FRrankmalric
CZrankanonymise737
DErankSurfmaniac
FRranknewparrain

Show winners



Preview
Filter:    Player:  
sort

7 years ago
Deluxe playerlist actually worked in this game in spite of commshare, but crashed towards the end:

quote:
[f=0048903] [cawidgets.lua] Error: Error in PlayerChanged(): [string "LuaUI/Widgets/gui_chili_deluxeplayerlist.lu..."]:1263: attempt to index field '?' (a nil value)
[f=0048903] [cawidgets.lua] Error: Removed widget: Chili Deluxe Player List - Alpha 2.02
+0 / -0


7 years ago
Awesome, looks like there's something to go off of now. Looking at the code the line is:

if (teams[a].roster and teams[a].roster[1].isActive) and not (teams[b].roster and teams[b].roster[1].isActive) then return true end


Perhaps [1] doesn't exist on roster?
+0 / -0
hmm.. more context:

[f=0048034] <tomicaST> Allies: I sent a request to join AMPERSAND's squad.
[f=0048903] [cawidgets.lua] Error: Error in PlayerChanged(): [string "LuaUI/Widgets/gui_chili_deluxeplayerlist.lu..."]:1263: attempt to index field '?' (a nil value)
[f=0048903] [cawidgets.lua] Error: Removed widget: Chili Deluxe Player List - Alpha 2.02
[f=0048930] game_message: Giving all units of [I]burp to AMPERSAND due to lag/AFK

burp wasn't even a player so I'm not sure if that's what was relevant or if it was due to the merge request before that.
+0 / -0
Hmph... I tried to blindfix that error with the "if teams[a].roster" check but I guess it didn't take.
+0 / -0

7 years ago
Assuming that the team was nil it could be teams[a] or teams[b] rather than any of the contents of those. Or teams[x].roster[1], which would cause a nil before isActive could be checked.
+0 / -0
I believe the existence of teams[a] and teams[b] is checked earlier in the function. Indexing teams[a].roster[1] seems like the most likely culprit.

I'm currently (partially re-)writing a playerlist widget which ought not to have the performance issues of the present iteration. Easy crash fixes (like I believe this is) for Crude and Deluxe are probably still worthwhile but I wouldn't spend too much effort on them.
+1 / -0