View Issue Details

IDProjectCategoryView StatusLast Update
0001722Spring engineLuapublic2011-07-03 14:07
Reporterzwzsg Assigned Toabma  
PrioritynormalSeverityminorReproducibilityalways
Status resolvedResolutionfixed 
Product Version0.80.5 
Summary0001722: Cannot erase AI startpoint marker anymore.
DescriptionI 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 Informationfunction 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
TagsNo tags attached.
Checked infolog.txt for Errors

Relationships

duplicate of 0001651 resolvedabma Spring engine All Enemy AI Start Positions Marked At Start 
child of 0001634 new AI AI Line-drawing seems totally borked in git master head 

Activities

SirMaverick

2009-11-08 17:19

reporter   ~0004290

You should not be able to determine / see the enemy start position.

The bug is, that the enemy start position is drawn.

hoijui

2009-11-08 18:51

reporter   ~0004291

i agree with SirMaverick, also look at the reports i referenced, especially at 1634.

abma

2011-07-03 14:07

administrator   ~0006877

fixed in master some time ago...

Issue History

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