View Issue Details [ Jump to Notes ] | [ Issue History ] [ Print ] | ||||||||
ID | Project | Category | View Status | Date Submitted | Last Update | ||||
---|---|---|---|---|---|---|---|---|---|
0001722 | Spring engine | Lua | public | 2009-11-08 17:15 | 2011-07-03 14:07 | ||||
Reporter | zwzsg | ||||||||
Assigned To | abma | ||||||||
Priority | normal | Severity | minor | Reproducibility | always | ||||
Status | resolved | Resolution | fixed | ||||||
Product Version | 0.80.5 | ||||||||
Target Version | Fixed in Version | ||||||||
Summary | 0001722: Cannot erase AI startpoint marker anymore. | ||||||||
Description | I use the widget below. In 0.80.4.2 it worked fine. But in 0.80.5.1, it erase my startpos marker but not the AI startposmarker. I am playing alone, the AI belongs to me. I am blue, the AI is red. The AI startpos marker is blue and I can delete it manually (so, like the AI startpos is a marker belonging to me). I got in infolog: [ 7] Deleting (1024,100,1024) [ 7] Deleting (nil,nil,nil) [ 7] Deleting (nil,nil,nil) I suppose that it shows three teams instead of two because there is the Gaia team in addition to me and the AI. But it shows only me got the Spring.GetTeamStartPosition returning something non nil. According to SirMaverick, that is because Lua reading enemy start position would be cheating. Well, that's a really stupid limitation, since: - The enemy start pos are marked by a giant glowing beacon anyway. - You just removed any hope of automatically deleting it. Also reported on forums: http://springrts.com/phpbb/viewtopic.php?f=11&t=20977 | ||||||||
Additional Information | function widget:GetInfo() return { name = "Start Point Remover 2", desc = "Deletes your start point once the game begins", author = "TheFatController and jK and zwzsg", date = "Jul 11, 2007", license = "GNU GPL, v2 or later", layer = 0, enabled = true } end function widget:GameFrame(f) if f > 5 then for _,t in ipairs(Spring.GetTeamList()) do local x,y,z = Spring.GetTeamStartPosition(t) Spring.Echo("Deleting ("..(x or "nil")..","..(y or "nil")..","..(z or "nil")..")") Spring.MarkerErasePosition(x or 0, y or 0, z or 0) end widgetHandler:RemoveWidget() end end | ||||||||
Tags | No tags attached. | ||||||||
Checked infolog.txt for Errors | |||||||||
Attached Files |
|
![]() |
|||||||||||||
|
![]() |
|
SirMaverick (reporter) 2009-11-08 17:19 |
You should not be able to determine / see the enemy start position. The bug is, that the enemy start position is drawn. |
hoijui (reporter) 2009-11-08 18:51 |
i agree with SirMaverick, also look at the reports i referenced, especially at 1634. |
abma (administrator) 2011-07-03 14:07 |
fixed in master some time ago... |
![]() |
|||
Date Modified | Username | Field | Change |
---|---|---|---|
2009-11-08 17:15 | zwzsg | New Issue | |
2009-11-08 17:19 | SirMaverick | Note Added: 0004290 | |
2009-11-08 18:47 | hoijui | Relationship added | child of 0001634 |
2009-11-08 18:51 | hoijui | Relationship added | duplicate of 0001651 |
2009-11-08 18:51 | hoijui | Note Added: 0004291 | |
2011-07-03 14:07 | abma | Note Added: 0006877 | |
2011-07-03 14:07 | abma | Status | new => resolved |
2011-07-03 14:07 | abma | Resolution | open => fixed |
2011-07-03 14:07 | abma | Assigned To | => abma |