Statistics: Posted by Sprouto — 10 May 2018, 16:43
Statistics: Posted by Ghoustaq — 10 May 2018, 12:26
Statistics: Posted by Ghoustaq — 09 May 2018, 15:12
Statistics: Posted by Sprouto — 26 Apr 2018, 21:40
WARNING: Invalid args to yield(); expected tick count
stack traceback:
Statistics: Posted by Ghoustaq — 26 Apr 2018, 18:59
Statistics: Posted by Sprouto — 25 Apr 2018, 21:57
WARNING: Error running lua script: attempt to use as integer a table value
stack traceback:
[C]: in function `_c_CreateEntity'
...ed alliance\gamedata\mohodata.scd\lua\sim\entity.lua(11): in function `__init'
...alliance\gamedata\mohodata.scd\lua\sim\vizmarker.lua(15): in function `initfn'
... alliance\gamedata\mohodata.scd\lua\system\class.lua(258): in function <... alliance\gamedata\mohodata.scd\lua\system\class.lua:246>
...me commander - forged alliance\maps\11\11_script.lua(41): in function <...me commander - forged alliance\maps\11\11_script.lua:24>
local ScenarioUtils = import('/lua/sim/ScenarioUtilities.lua')
local TriggerFile = import('scenariotriggers.lua')
local ScenarioUtils = import('/lua/sim/ScenarioUtilities.lua')
local UnitUpgradeTemplates = import('/lua/upgradeTemplates.lua').UnitUpgradeTemplates
local ScenarioPlatoonAI = import('/lua/ScenarioPlatoonAI.lua')
local VizMarker = import('/lua/sim/VizMarker.lua').VizMarker
local SimCamera = import('/lua/SimCamera.lua').SimCamera
local Cinematics = import('/lua/cinematics.lua')
local SimUIVars = import('/lua/sim/SimUIState.lua')
function OnPopulate()
ScenarioUtils.InitializeArmies()
ForkThread(CreateVisibleAreaLocation)
end
local vizLocation
local vizArmy
local vizRadius
local vizLifetime
local X
local Z
local Radius
local LifeTime
local Army
function CreateVisibleAreaLocation(vizRadius, vizLocation, vizLifetime, vizArmy)
while true do
for k = 1, 1 do
vizLocation = ScenarioUtils.MarkerToPosition('vizLocation_' .. k)
vizArmy = GetUnitsInRect( Rect(vizLocation[1]-5, vizLocation[3]-5, vizLocation[1]+5, vizLocation[3]+5) )
if vizArmy then
for _, instigator in vizArmy do
if VDist3(instigator:GetPosition(), vizLocation) <= 5 then
vizRadius = 20
vizLifetime = 0
local spec = {
X = vizLocation[1],
Z = vizLocation[3],
Radius = vizRadius,
LifeTime = vizLifetime,
Army = vizArmy[1]:GetAIBrain(),
}
local vizEntity = VizMarker(spec)
return vizEntity
end
end
end
end
WaitSeconds(5)
end
end
function OnStart(self)
end
Statistics: Posted by Ghoustaq — 25 Apr 2018, 19:01
Statistics: Posted by Ghoustaq — 24 Apr 2018, 19:25
Statistics: Posted by Sprouto — 24 Apr 2018, 18:49
local ScenarioUtils = import('/lua/sim/ScenarioUtilities.lua')
local TriggerFile = import('scenariotriggers.lua')
local ScenarioUtils = import('/lua/sim/ScenarioUtilities.lua')
local UnitUpgradeTemplates = import('/lua/upgradeTemplates.lua').UnitUpgradeTemplates
local ScenarioPlatoonAI = import('/lua/ScenarioPlatoonAI.lua')
local VizMarker = import('/lua/sim/VizMarker.lua').VizMarker
local SimCamera = import('/lua/SimCamera.lua').SimCamera
local Cinematics = import('/lua/cinematics.lua')
local SimUIVars = import('/lua/sim/SimUIState.lua')
function OnPopulate()
ScenarioUtils.InitializeArmies()
ForkThread(CreateVisibleAreaLocation)
end
local vizLocation
local vizArmy
local vizRadius
local vizLifetime
local X
local Z
local Radius
local LifeTime
local Army
function CreateVisibleAreaLocation(vizRadius, vizLocation, vizLifetime, vizArmy)
if type(vizLocation) == 'string' then
vizLocation = ScenarioUtils.MarkerToPosition(vizLocation)
vizArmy = GetUnitsInRect( Rect(vizLocation[1]-5, vizLocation[3]-5, vizLocation[1]+5, vizLocation[3]+5) )
vizRadius = 20
vizLifetime = 0
end
local spec = {
X = vizLocation[1],
Z = vizLocation[3],
Radius = vizRadius,
LifeTime = vizLifetime,
Army = vizArmy:GetArmyIndex(),
}
local vizEntity = VizMarker(spec)
return vizEntity
end
function OnStart(self)
end
WARNING: Error running lua script: ...me commander - forged alliance\maps\11\11_script.lua(36): attempt to call method `GetArmyIndex' (a nil value)
stack traceback:
...me commander - forged alliance\maps\11\11_script.lua(36): in function <...me commander - forged alliance\maps\11\11_script.lua:24>
Statistics: Posted by Ghoustaq — 24 Apr 2018, 18:12
Statistics: Posted by speed2 — 22 Apr 2018, 07:25
Statistics: Posted by Ghoustaq — 22 Apr 2018, 05:54