Zero-K icon indicating copy to clipboard operation
Zero-K copied to clipboard

Ultimatum auto targets terraform structures

Open Licho1 opened this issue 11 years ago • 4 comments

http://i.imgur.com/rRZg9PT.png

Licho1 avatar Mar 19 '15 23:03 Licho1

I would require the replay or at least the infolog. The terraunit becoming visible to the enemy is likely an earlier lua error which stops the invisible state being applied.

GoogleFrog avatar Mar 22 '15 01:03 GoogleFrog

Replay is here http://zero-k.info/Battles/Detail/338921

Licho1 avatar Mar 22 '15 12:03 Licho1

when approximately do this happen? (to wait for the replay) UPDATE 4/4/2015: its at 43:49 game second.

Possible cause: cloak conflict

UPDATE 5/4/2015: the decloak happen exactly at 38:18 game second (or 38:17 to be safe) which happen at the moment where "tomicaST gave unit to slowFox due to lag/AFK", and the owner of the terraform is indeed slowFox

xponen avatar Apr 04 '15 10:04 xponen

Weird, no code in unit_terraform.lua set cloak/visibility status ? When I test them with a test code below, its just simply visible to enemy team!

--------------------------------------------------------------------------------
--------------------------------------------------------------------------------
if not gadgetHandler:IsSyncedCode() then
    return
end
--------------------------------------------------------------------------------
--------------------------------------------------------------------------------

function gadget:GetInfo()
  return {
    name      = "Issue #639 tester",
    desc      = "Create and Gives terraform unit for cloak test",
    author    = "!",
    date      = "0/0/0",
    license   = "_",
    layer     = 0,
    enabled   = true  --  loaded by default?
  }
end

local id = -1
function gadget:GameFrame(n)
    if n == 20*30 then
        local team = 1
        local y = CallAsTeam(team, function () return Spring.GetGroundHeight(100,100) end)
        id = Spring.CreateUnit((UnitDefNames["terraunit"].id), 100, y, 100, 0, team, true)
        Spring.SetUnitHealth(id, 0.01)
        Spring.SetUnitTooltip(id, "Estimated Cost: 100")
        Spring.Echo("game_message: terraform created")
    end
    if n == 40*30 then
        local given = true
        local team = 2
        Spring.TransferUnit(id, team, given)
        Spring.Echo("game_message: terraform transfered")
    end
end

xponen avatar Apr 05 '15 08:04 xponen