#2945: Host always starts with 3 extra trucks in 4c-Pyramidal
------------------------+-------------------------------------
Reporter: Cyp | Owner:
Type: bug | Status: new
Priority: major | Milestone: unspecified
Component: Data: Maps | Version: master_20111107
Keywords: | Blocked By:
Blocking: | Operating System: All/Non-Specific
------------------------+-------------------------------------
No matter which slot the host is in, in 4c-Pyramidal, the host starts with
3 extra trucks near the middle of the map.
The extra trucks are:
{{{
[droid_1501]
id = 1501
position = 8512, 10048, 408
rotation = 0, 0, 0
startpos = 4
template = ConstructionDroid
[droid_1502]
id = 1502
position = 8640, 10048, 408
rotation = 0, 0, 0
startpos = 5
template = ConstructionDroid
[droid_1503]
id = 1503
position = 8768, 10048, 408
rotation = 0, 0, 0
startpos = 6
template = ConstructionDroid
}}}
Note they they belong to player 4, 5 and 6, and it's a 4-player map.
They trigger three assertions:
{{{
info |09:17:07: [getPlayer] No player info found!
info |09:17:07: [getPlayer] Assert in Warzone: ../../src/game.cpp:3935
(false), last script event: '<none>'
info |09:17:07: [getPlayer] No player info found!
info |09:17:07: [getPlayer] Assert in Warzone: ../../src/game.cpp:3935
(false), last script event: '<none>'
info |09:17:07: [getPlayer] No player info found!
info |09:17:07: [getPlayer] Assert in Warzone: ../../src/game.cpp:3935
(false), last script event: '<none>'
}}}
getPlayer() looks at players 0-3, and gives up, asserts, and returns
client 0, which is the host.
Don't know whether the map or the code should be fixed, or both. Don't
know whether other maps have the same problem.
--
Ticket URL: <http://developer.wz2100.net/ticket/2945>
Warzone 2100 Trac <http://developer.wz2100.net/>
The Warzone 2100 Project
_______________________________________________
Warzone-dev mailing list
[email protected]
https://mail.gna.org/listinfo/warzone-dev