- Joined
- Jun 9, 2020
- Messages
- 95
I'VE FOUD IT, BRUH!!! Just launch your World Editor with no map. Than go "File" -> "Preferences" -> "Asset mode" -> "SD" After that you should be able to see your maps with the classic graphics... At least...Ok how?
I'VE FOUD IT, BRUH!!! Just launch your World Editor with no map. Than go "File" -> "Preferences" -> "Asset mode" -> "SD" After that you should be able to see your maps with the classic graphics... At least...Ok how?
The interpreter is instant. Simulation time is paused while it is executing. Execution order is well defined for network synchronisation purposes.Since the interpreter is not instant, sometimes the script will trigger properly on an alive unit, but during its execution a unit becomes dead.
Do I really need to prove myself?The interpreter is instant. Simulation time is paused while it is executing. Execution order is well defined for network synchronisation purposes.
function Trig_Spell_BARB_Battle_Cry_Actions takes nothing returns nothing
local integer ilevel
local unit ucurr
local unit utarget = GetSpellTargetUnit()
local player powner
local location lpoint = GetUnitLoc( utarget )
local group gunits = GetUnitsInRangeOfLocAll(300.00, lpoint)
// Auto caster for the defense lowering ability
loop
set ucurr = FirstOfGroup(gunits)
exitwhen ucurr == null
call GroupRemoveUnit( gunits, ucurr )
set powner = GetOwningPlayer( ucurr )
if ( ( powner == Player(11 - 1) ) or ( powner == Player(12 - 1) ) ) then
// ! it's very important to check if unit is alive ! crashes otherwise
if ( IsUnitAliveBJ( ucurr ) ) then
set ilevel = GetUnitAbilityLevel( ucurr, 'A01N' )
if ( ilevel == 0 ) then
call UnitAddAbility( ucurr, 'A01N' )
elseif ( ilevel < 5 ) then
call IncUnitAbilityLevel( ucurr, 'A01N' )
endif
endif
endif
endloop
call RemoveLocation( lpoint )
call DestroyGroup( gunits )
call AddSpecialEffectTargetUnitBJ( "origin", GetTriggerUnit(), "Abilities\\Spells\\Other\\HowlOfTerror\\HowlTarget.mdl" )
call DestroyEffectBJ( GetLastCreatedEffectBJ() )
// clean up local variable pointers
set lpoint = null
set gunits = null
set powner = null
set utarget = null
set ucurr = null
endfunction
function Trig_Spell_BARB_Battle_Cry_Conditions takes nothing returns boolean
return ( GetUnitTypeId(GetTriggerUnit()) == 'h005' )
endfunction
//===========================================================================
function InitTrig_Spell_BARB_Battle_Cry takes nothing returns nothing
set gg_trg_Spell_BARB_Battle_Cry = CreateTrigger( )
call TriggerRegisterPlayerUnitEventSimple( gg_trg_Spell_BARB_Battle_Cry, Player(0), EVENT_PLAYER_UNIT_SPELL_CAST )
call TriggerRegisterPlayerUnitEventSimple( gg_trg_Spell_BARB_Battle_Cry, Player(1), EVENT_PLAYER_UNIT_SPELL_CAST )
call TriggerRegisterPlayerUnitEventSimple( gg_trg_Spell_BARB_Battle_Cry, Player(2), EVENT_PLAYER_UNIT_SPELL_CAST )
call TriggerRegisterPlayerUnitEventSimple( gg_trg_Spell_BARB_Battle_Cry, Player(3), EVENT_PLAYER_UNIT_SPELL_CAST )
call TriggerRegisterPlayerUnitEventSimple( gg_trg_Spell_BARB_Battle_Cry, Player(4), EVENT_PLAYER_UNIT_SPELL_CAST )
call TriggerRegisterPlayerUnitEventSimple( gg_trg_Spell_BARB_Battle_Cry, Player(5), EVENT_PLAYER_UNIT_SPELL_CAST )
call TriggerRegisterPlayerUnitEventSimple( gg_trg_Spell_BARB_Battle_Cry, Player(6), EVENT_PLAYER_UNIT_SPELL_CAST )
call TriggerRegisterPlayerUnitEventSimple( gg_trg_Spell_BARB_Battle_Cry, Player(7), EVENT_PLAYER_UNIT_SPELL_CAST )
call TriggerAddCondition( gg_trg_Spell_BARB_Battle_Cry, Condition( function Trig_Spell_BARB_Battle_Cry_Conditions ) )
call TriggerAddAction( gg_trg_Spell_BARB_Battle_Cry, function Trig_Spell_BARB_Battle_Cry_Actions )
endfunction
I ran into this problem extensively. It gave me such a hard time because it was extremely hard to pin point. I set a Tavern building with no pathing Ai so that they could be set closer to each other and take up less space (dockyard and smaller building Ai works best). If you set it to none, the game plays fine without Ai. If you have an Ai play, the moment they go to expand with an undead gold mine or possibly night elf, the game crashes as soon as it orders their worker the command. Extremely wierd way to crash. However, that won't happen if the building is like >10,000 units away from the expansion gold mine.Not sure if other factors are important, too but I definitively had buildings which crashed my AI and after changing the pathing requirement it worked, maybe the pathing texture/collision was also missing.
This is probably a division-by-zero problem with the way the AI calculates its pathing.I ran into this problem extensively. It gave me such a hard time because it was extremely hard to pin point. I set a Tavern building with no pathing Ai so that they could be set closer to each other and take up less space (dockyard and smaller building Ai works best). If you set it to none, the game plays fine without Ai. If you have an Ai play, the moment they go to expand with an undead gold mine or possibly night elf, the game crashes as soon as it orders their worker the command. Extremely wierd way to crash. However, that won't happen if the building is like >10,000 units away from the expansion gold mine.
What I like about the latest update: the game tells you the reason of the crash. That makes everything a lot easier.At this point, the list of things that do not crash this game might be shorter.
wtf it does?What I like about the latest update: the game tells you the reason of the crash. That makes everything a lot easier.
It tells you what has cused the crash.wtf it does?
where do we find this info? I checked crash logs after latest patch and it's the same info as beforeIt tells you what has cused the crash.
An extra small window pops up right below the crash report. I'll post a screenshot here when it happens next time.where do we find this info? I checked crash logs after latest patch and it's the same info as before
Here, as I promised, my fellow map maker. It doesn't happen all the time, but it has helped me to deal with a few crushes already.where do we find this info? I checked crash logs after latest patch and it's the same info as before
ah yeah I’ve been given this once before like a year ago for a corrupted loading screenHere, as I promised, my fellow map maker. It doesn't happen all the time, but it has helped me to deal with a few crushes already.
globals
region r = CreateRegion()
endglobals