Recently I’m looking at scripts about Crates, and I’ve found several places that seems not right:
line 218 in data:leveldata\multiplayer\lib\crates.lua : ‘dofilepath(PlayerRace_GetString(playerIndex, “path_crate_ships”, “”))’ should be ‘dofilepath(PlayerRace_GetString(iPlayer, “path_crate_ships”, “”))’.
The last line in crate_ships.lua of each race shouldn’t end with a comma.
line 294 in data:leveldata\multiplayer\lib\crates.lua use a number named ‘research’, which I think is defined in data:scripts\rules\deathmatch.lua. However, line 260 in crates.lua is ‘dofilepath(PlayerRace_GetString(iPlayer, “path_research”, “”))’, and in the file defined by ‘path_research’ there’s another ‘research’ which is a table.