Forged Alliance Forever Forged Alliance Forever Forums 2020-05-11T16:35:51+02:00 /feed.php?f=3&t=10825 2020-05-11T16:35:51+02:00 2020-05-11T16:35:51+02:00 /viewtopic.php?t=10825&p=184033#p184033 <![CDATA[Re: Black rectangle over Map]]>
--edited
And i don't get in mind why there is "or", but looks like there is should be "and"
if pos.x >=0 or pos.y >=0 then

--edited
Made a code like in attachment - one game on middle size map gone well. Will test it later again and again.

Statistics: Posted by ArtVC — 11 May 2020, 16:35


]]>
2017-01-28T21:55:25+02:00 2017-01-28T21:55:25+02:00 /viewtopic.php?t=10825&p=142690#p142690 <![CDATA[Re: Black rectangle over Map]]> yorick to finding, i only added destroying bad overlays.

Code:
uid = "ecbf6277-24e3-437a-b968-EcoManager-v7"

Code:
\EM\modules\mexes.lua

Code:
   overlay.OnFrame = function(self, delta)
      if not unit:IsDead() then
         local worldView = import('/lua/ui/game/worldview.lua').viewLeft
         local pos = worldView:Project(unit:GetPosition())
         if pos.x >=0 or pos.y >=0 then
            LayoutHelpers.AtLeftTopIn(overlay, worldView, pos.x - overlay.Width() / 2, pos.y - overlay.Height() / 2 + 1)
         else
            overlay.destroy = true
            overlay:Hide()
            --LOG('Bad position: ('..pos.x..'/'..pos.y..')')
         end
         
      else
         overlay.destroy = true
         overlay:Hide()
      end
   end

Statistics: Posted by Ejsstiil — 28 Jan 2017, 21:55


]]>
2016-11-10T18:17:35+02:00 2016-11-10T18:17:35+02:00 /viewtopic.php?t=10825&p=138778#p138778 <![CDATA[Re: Black rectangle over Map]]> Statistics: Posted by Viba — 10 Nov 2016, 18:17


]]>
2016-11-09T15:06:33+02:00 2016-11-09T15:06:33+02:00 /viewtopic.php?t=10825&p=138671#p138671 <![CDATA[Re: Black rectangle over Map]]> Statistics: Posted by Viba — 09 Nov 2016, 15:06


]]>
2016-11-09T12:55:56+02:00 2016-11-09T12:55:56+02:00 /viewtopic.php?t=10825&p=138658#p138658 <![CDATA[Re: Black rectangle over Map]]> Statistics: Posted by nine2 — 09 Nov 2016, 12:55


]]>
2016-11-08T15:28:02+02:00 2016-11-08T15:28:02+02:00 /viewtopic.php?t=10825&p=138565#p138565 <![CDATA[Re: Black rectangle over Map]]>
I do have EcoManager.

Statistics: Posted by ladderff — 08 Nov 2016, 15:28


]]>
2016-01-03T08:09:53+02:00 2016-01-03T08:09:53+02:00 /viewtopic.php?t=10825&p=116929#p116929 <![CDATA[Re: Black rectangle over Map]]> Statistics: Posted by ghostronin — 03 Jan 2016, 08:09


]]>
2016-01-02T17:34:10+02:00 2016-01-02T17:34:10+02:00 /viewtopic.php?t=10825&p=116898#p116898 <![CDATA[Re: Black rectangle over Map]]>
For the testing i did replaced the CreateMexOverlay function in modules/mexes.lua with: ( only inserted some logging)
Code:
function CreateMexOverlay(unit)
   --local worldView = import('/lua/ui/game/worldview.lua').viewLeft
   local overlay = Bitmap(GetFrame(0))
   local id = unit:GetEntityId()

   overlay.id = unit:GetEntityId()
   overlay.destroy = false
   overlay:SetSolidColor('black')
   overlay.Width:Set(10)
   overlay.Height:Set(10)
   
   overlay.OnFrame = function(self, delta)
      if not unit:IsDead() then
         local worldView = import('/lua/ui/game/worldview.lua').viewLeft
         local pos = worldView:Project(unit:GetPosition())
         if pos.x <=0 or pos.y <=0 then
            LOG('Bad position: ('..pos.x..'/'..pos.y..')')
         end
         LayoutHelpers.AtLeftTopIn(overlay, worldView, pos.x - overlay.Width() / 2, pos.y - overlay.Height() / 2 + 1)
      else
         overlay.destroy = true
         overlay:Hide()
      end
   end

   overlay.text = UIUtil.CreateText(overlay, '0', 10, UIUtil.bodyFont)
   overlay.text:SetColor('green')
    overlay.text:SetDropShadow(true)
   LayoutHelpers.AtCenterIn(overlay.text, overlay, 0, 0)
   overlay:SetNeedsFrameUpdate(true)

   return overlay
end

Iirc i saw this LOG('Bad position: ('..pos.x..'/'..pos.y..')') in the logs with negative values for either x or y, which makes me think the actual bug is in the worldview.lua file, but i didnt investigate this further.

Statistics: Posted by yorick — 02 Jan 2016, 17:34


]]>
2016-01-01T23:25:08+02:00 2016-01-01T23:25:08+02:00 /viewtopic.php?t=10825&p=116882#p116882 <![CDATA[Re: Black rectangle over Map]]> Statistics: Posted by ghostronin — 01 Jan 2016, 23:25


]]>
2015-09-17T22:49:03+02:00 2015-09-17T22:49:03+02:00 /viewtopic.php?t=10825&p=110426#p110426 <![CDATA[Re: Black rectangle over Map]]> Do you use EcoManager?

Statistics: Posted by Dragonfire — 17 Sep 2015, 22:49


]]>
2015-09-17T21:36:41+02:00 2015-09-17T21:36:41+02:00 /viewtopic.php?t=10825&p=110408#p110408 <![CDATA[Re: Black rectangle over Map]]> As a fix you can make it go away by enabling and disabling the mexoverlay in the ingame options ( worked for me every time it happend to me).

Statistics: Posted by yorick — 17 Sep 2015, 21:36


]]>
2015-09-17T21:14:34+02:00 2015-09-17T21:14:34+02:00 /viewtopic.php?t=10825&p=110407#p110407 <![CDATA[Re: Black rectangle over Map]]> Statistics: Posted by Ionic — 17 Sep 2015, 21:14


]]>
2015-09-18T14:22:37+02:00 2015-09-17T18:24:39+02:00 /viewtopic.php?t=10825&p=110398#p110398 <![CDATA[Black rectangle over Map]]>
I tabbed out and in -> not helping
I was forced to play with splitscreen.

Replay of the game only desync after a com died, but not when the black rectangle appears


Computer: Acer Aspire V5-573G
CPU: Intel Core i5-4200U (Haswell ULT, C0/D0)
2300 MHz (23.00x100.0) @ 2593 MHz (26.00x99.8)
Motherboard: Acer Dazzle_HW
Chipset: Intel Lynx Point-LP (Premium)
Memory: 8077 MBytes @ 798 MHz, 11.0-11-11-28
- 4096 MB PC12800 DDR3 SDRAM - Kingston ACR16D3LS1NGG/4G
Graphics: Intel Haswell-MB ULT GT2 - Integrated Graphics Controller [C0/D0] [ACER]
Intel HD Graphics 4400, 1024 MB
Graphics: NVIDIA GeForce GT 750M [Acer]
NVIDIA GeForce GT 750M, 4095 MB
Drive: Crucial_CT256M550SSD3, 250.1 GB, Serial ATA 6Gb/s @ 6Gb/s
Drive: TOSHIBA MQ01ABF050, 488.4 GB, Serial ATA 6Gb/s @ 6Gb/s
Sound: Intel Haswell-MB ULT - Mini HD Audio Controller [C0/D0]
Sound: Intel Lynx Point-LP - High Definition Audio Controller [B2]
Network: Atheros/Qualcomm AR5BWB222 Wireless Network Adapter
Network: RealTek Semiconductor RTL8168/8111 PCI-E Gigabit Ethernet NIC
OS: Microsoft Windows 7 Professional (x64) Build 7601

Statistics: Posted by Dragonfire — 17 Sep 2015, 18:24


]]>