[RESOLVIDO] Leak em MUI
4 participantes
Página 1 de 1
[RESOLVIDO] Leak em MUI
O que eu quero pedir é simples(mentira).
Pois bem, eu fiz uma spell MUI (corrigindo o maior numero de leaks possiveis), uma bola de fogo, a magia funciona tudo normal.
Mas quando eu utilizo muitas vezes, o jogo começa a 'travar' causa dos leaks.
Eu fiquei horas fuçando para ver onde esta o LEAK e não encontrei mas nenhum leak que eu não tenha corrigido.
Triggers:
FBCast:
FBLoop
Aqui está o mapa: Download
Peço que alguem EXPERIENTE no World Editor possa verificar para mim, é claro, desde já, agradeço!
Pois bem, eu fiz uma spell MUI (corrigindo o maior numero de leaks possiveis), uma bola de fogo, a magia funciona tudo normal.
Mas quando eu utilizo muitas vezes, o jogo começa a 'travar' causa dos leaks.
Eu fiquei horas fuçando para ver onde esta o LEAK e não encontrei mas nenhum leak que eu não tenha corrigido.
Triggers:
FBCast:
- Spoiler:
- FBCast
Events
Unit - A unit Begins casting an ability
Conditions
(Ability being cast) Equal to Fireball
Actions
Set FB_CasterCount = (FB_CasterCount + 1)
Set FB_IndexCount = (FB_IndexCount + 1)
Set FB_IndexNew = FB_IndexCount
Set FB_BIndex[FB_IndexNew] = True
Set FB_Caster[FB_IndexNew] = (Triggering unit)
Set FB_Range[FB_IndexNew] = 0.00
Set TempPoint[0] = (Position of (Triggering unit))
Set TempPoint[1] = (Target point of ability being cast)
Unit - Create 1 Fireball for (Owner of (Triggering unit)) at TempPoint[0] facing (Angle from TempPoint[0] to TempPoint[1]) degrees
Custom script: call RemoveLocation(udg_TempPoint[0])
Custom script: call RemoveLocation(udg_TempPoint[1])
Unit - Add a 3.00 second Generic expiration timer to (Last created unit)
Set FB_Dummy[FB_IndexNew] = (Last created unit)
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(FBLoopis on) Equal to False
Then - Actions
Trigger - Turn on FBLoop
Else - Actions
FBLoop
- Spoiler:
- FBLoop
Events
Time - Every 0.03 seconds of game time
Conditions
Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
FB_CasterCount Equal to 0
Then - Actions
Trigger - Turn off (This trigger)
Set FB_IndexCount = 0
Else - Actions
For each (Integer FB_IndexLoop) from 1 to FB_IndexCount, do (Actions)
Loop - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
FB_BIndex[FB_IndexLoop] Equal to True
Then - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
FB_Range[FB_IndexLoop] Less than 700.00
Then - Actions
Set TempUnit = FB_Dummy[FB_IndexLoop]
Set TempPoint[0] = (Position of TempUnit)
Set TempPoint[1] = (TempPoint[0] offset by 20.00 towards (Facing of TempUnit) degrees)
Custom script: call RemoveLocation(udg_TempPoint[0])
Unit - Move TempUnit instantly to TempPoint[1]
Set FB_Range[FB_IndexLoop] = (FB_Range[FB_IndexLoop] + 20.00)
Set TempGroup = (Units within 70.00 of TempPoint[1])
Unit Group - Pick every unit in TempGroup and do (Actions)
Loop - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
((Picked unit) is A structure) Equal to True
((Picked unit) is alive) Equal to True
(Picked unit) Not equal to FB_Caster[FB_IndexLoop]
Then - Actions
Unit - Remove TempUnit from the game
Set FB_CasterCount = (FB_CasterCount - 1)
Set FB_BIndex[FB_IndexLoop] = False
Special Effect - Create a special effect at TempPoint[1] using Abilities\Spells\Other\Incinerate\FireLordDeathExplode.mdl
Special Effect - Destroy (Last created special effect)
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(FB_Caster[FB_IndexLoop] is A Hero) Equal to True
Then - Actions
Unit - Cause FB_Caster[FB_IndexLoop] to damage (Picked unit), dealing (0.60 x (Real((Intelligence of FB_Caster[FB_IndexLoop] (Include bonuses))))) damage of attack type Spells and damage type Normal
Unit - Cause FB_Caster[FB_IndexLoop] to damage circular area after 0.00 seconds of radius 200.00 at TempPoint[1], dealing (0.60 x (Real((Intelligence of FB_Caster[FB_IndexLoop] (Include bonuses))))) damage of attack type Spells and damage type Normal
Custom script: call RemoveLocation(udg_TempPoint[1])
Else - Actions
Unit - Cause FB_Caster[FB_IndexLoop] to damage (Picked unit), dealing 12.50 damage of attack type Spells and damage type Normal
Unit - Cause FB_Caster[FB_IndexLoop] to damage circular area after 0.00 seconds of radius 200.00 at TempPoint[1], dealing 12.50 damage of attack type Spells and damage type Normal
Custom script: call RemoveLocation(udg_TempPoint[1])
Else - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
((Picked unit) is A structure) Equal to False
((Picked unit) is alive) Equal to True
(Picked unit) Not equal to FB_Caster[FB_IndexLoop]
Then - Actions
Unit - Remove TempUnit from the game
Set FB_CasterCount = (FB_CasterCount - 1)
Set FB_BIndex[FB_IndexLoop] = False
Special Effect - Create a special effect at TempPoint[1] using Abilities\Spells\Other\Incinerate\FireLordDeathExplode.mdl
Special Effect - Destroy (Last created special effect)
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(FB_Caster[FB_IndexLoop] is A Hero) Equal to True
Then - Actions
Unit - Cause FB_Caster[FB_IndexLoop] to damage (Picked unit), dealing (1.25 x (Real((Intelligence of FB_Caster[FB_IndexLoop] (Include bonuses))))) damage of attack type Spells and damage type Normal
Unit - Cause FB_Caster[FB_IndexLoop] to damage circular area after 0.00 seconds of radius 200.00 at TempPoint[1], dealing (1.25 x (Real((Intelligence of FB_Caster[FB_IndexLoop] (Include bonuses))))) damage of attack type Spells and damage type Normal
Custom script: call RemoveLocation(udg_TempPoint[1])
Else - Actions
Unit - Cause FB_Caster[FB_IndexLoop] to damage (Picked unit), dealing 25.00 damage of attack type Spells and damage type Normal
Unit - Cause FB_Caster[FB_IndexLoop] to damage circular area after 0.00 seconds of radius 200.00 at TempPoint[1], dealing 25.00 damage of attack type Spells and damage type Normal
Custom script: call RemoveLocation(udg_TempPoint[1])
Else - Actions
Custom script: call DestroyGroup (udg_TempGroup)
Custom script: call RemoveLocation(udg_TempPoint[1])
Else - Actions
Unit - Remove FB_Dummy[FB_IndexLoop] from the game
Set FB_CasterCount = (FB_CasterCount - 1)
Set FB_BIndex[PB_IndexLoop] = False
Else - Actions
Aqui está o mapa: Download
Peço que alguem EXPERIENTE no World Editor possa verificar para mim, é claro, desde já, agradeço!
Mence- Número de Posts : 233
Data de inscrição : 22/07/2011
Reputação : 41 Pontos : 23942
Re: [RESOLVIDO] Leak em MUI
é meio complicado ver uma spell que outra pessoa fez pq fica confusso kkkk, mas seguinda dar uams dicas :
*nos temppoint[INDEX] em vez deu usar index 1 ou index 0 use o index do LOOP pois assim vocÊ tem certeza que num vai setar 1 em cima do outro.
*nas custom scripts use tbm o mesmo esquema em vez de deletar apenos o [0] delete o do loop .. (se não conseguir fazer o custom script com essa função FIKA A FICA DE USAR O IGUI DO VICTOR que permite fazer isto mais facilmente)
*nos temppoint[INDEX] em vez deu usar index 1 ou index 0 use o index do LOOP pois assim vocÊ tem certeza que num vai setar 1 em cima do outro.
*nas custom scripts use tbm o mesmo esquema em vez de deletar apenos o [0] delete o do loop .. (se não conseguir fazer o custom script com essa função FIKA A FICA DE USAR O IGUI DO VICTOR que permite fazer isto mais facilmente)
fg8d78e48sro- Número de Posts : 1073
Data de inscrição : 07/11/2011
Reputação : 63 Pontos : 25800
Re: [RESOLVIDO] Leak em MUI
Humm, acho que entendi +- obrigado, vou tentar realizar.
Quero ver se alguem ainda consegue achar o 'erro'.
+rep pela resposta
Quero ver se alguem ainda consegue achar o 'erro'.
+rep pela resposta
Mence- Número de Posts : 233
Data de inscrição : 22/07/2011
Reputação : 41 Pontos : 23942
Re: [RESOLVIDO] Leak em MUI
Acho que o erro estava entre o teclado e a cadeira.
Brincadeira.
Tentei achar algo no seu código que poderia estar causando algum bug, mas acabei vendo que ao invés de usar em um certo ponto a variavel FB_IndexLoop você estava usando PB_IndexLoop (acho que esse PB era de outra spell, né?)
Seu Mapa Alterado
Brincadeira.
Tentei achar algo no seu código que poderia estar causando algum bug, mas acabei vendo que ao invés de usar em um certo ponto a variavel FB_IndexLoop você estava usando PB_IndexLoop (acho que esse PB era de outra spell, né?)
Seu Mapa Alterado
Bills- Número de Posts : 1446
Data de inscrição : 04/12/2010
Reputação : 173 Pontos : 31104
Re: [RESOLVIDO] Leak em MUI
Putz, era isso mesmo? Ah Valeu! +rep
A spell não tem nenhum leak então?
A spell não tem nenhum leak então?
Mence- Número de Posts : 233
Data de inscrição : 22/07/2011
Reputação : 41 Pontos : 23942
Re: [RESOLVIDO] Leak em MUI
Não que eu tinha visto, mence.
Parece que seu problema já foi resolvido né? Por favor, mude a tag [ajuda] para [resolvido] e avise se o tópico já pode ser fechado.
Parece que seu problema já foi resolvido né? Por favor, mude a tag [ajuda] para [resolvido] e avise se o tópico já pode ser fechado.
Bills- Número de Posts : 1446
Data de inscrição : 04/12/2010
Reputação : 173 Pontos : 31104
Re: [RESOLVIDO] Leak em MUI
Bills escreveu:Não que eu tinha visto, mence.
Parece que seu problema já foi resolvido né? Por favor, mude a tag [ajuda] para [resolvido] e avise se o tópico já pode ser fechado.
Vou mandar um puta off sem querer querendo...
Os estágiários não podem alterar o título do tópico não ?
VicToR- Número de Posts : 2002
Data de inscrição : 19/12/2010
Reputação : 243 Pontos : 26880
Re: [RESOLVIDO] Leak em MUI
VicToR escreveu:Bills escreveu:Não que eu tinha visto, mence.
Parece que seu problema já foi resolvido né? Por favor, mude a tag [ajuda] para [resolvido] e avise se o tópico já pode ser fechado.
Vou mandar um puta off sem querer querendo...
Os estágiários não podem alterar o título do tópico não ?
Podemos, mas não farei sem autorização do usuário. Não tem necessidade.
Bills- Número de Posts : 1446
Data de inscrição : 04/12/2010
Reputação : 173 Pontos : 31104
Tópicos semelhantes
» [Resolvido][DUVIDA] Leak ou n Leak?
» [Resolvido] Leak Region
» [Resolvido] muitos doodads gera game leak, Verdade?
» Onde tem Leak?
» [Tool] Leak Check
» [Resolvido] Leak Region
» [Resolvido] muitos doodads gera game leak, Verdade?
» Onde tem Leak?
» [Tool] Leak Check
Página 1 de 1
Permissões neste sub-fórum
Não podes responder a tópicos
|
|