[Issue][Preload?] Unit don't get out of map!

ZeroTag

New Member
Reaction score
0
Well, another help for the noob here...

Ok heres the deal, I was reading some tutorials, and some guy said that preload is good for lag issues, so the noob here gave it a try, well I couldn't ( tell some news right? )

All units are removed from game, but 2 units don't!
Those two units are the only units that I use for abilities ( dummys ), they have locust, no pathing block, and the models are effects ( buffs and abilities sections ).

So why the hell they don't get out?? ( maybe is the trigger? but is so simple! )

( I don't know which code tag you guys prefer so I used [ code ] )
( Maybe [ wc3 ]? But it's weird now in this new forum style )


Here's the trigger:
Code:
TOP KILLER
    Events
        Map initialization
    Conditions
    Actions
        Set PRELOAD_Region[1] = PRELOAD KILLER TOP <gen>
        Set PRELOAD_UnitGroup[1] = (Units in PRELOAD_Region[1])
        Unit Group - Pick every unit in PRELOAD_UnitGroup[1] and do (Actions)
            Loop - Actions
                Unit - Remove (Picked unit) from the game
        Custom script:   call RemoveRect ( udg_PRELOAD_Region [ 1 ] )
        Custom script:   call DestroyGroup ( udg_PRELOAD_UnitGroup [ 1 ] )
        Custom script:   call DestroyTrigger ( GetTriggeringTrigger (  ) )

[ Edit ]
Well, those units have <Movement Type: Fly> is that the problem? But it doesn't make any sense!
 

HydraRancher

Truth begins in lies
Reaction score
197
I just have a question, rects don't leak as far as I'm aware. Why did you put it in a variable and destroy it? Also, it's unnecessary to destroy the trigger.

The reason why it isn't working is because they have locust. Locusted units are not found in "Units in <Region>" I advise 2 more trigger actions to destroy them separately.
 

TomTTT

New Member
Reaction score
44
Forget what I said, wasn't necessery for anyone.
But now that I see what HydraRancher said, I suggest you to just take an empty model, then make it's size to 0.10, set the selection scale to 0.10 and add Invulnerability instead of Locust.
 

HydraRancher

Truth begins in lies
Reaction score
197
I don't think that their Movement Type changes anything, because they are still in that region.
But my I ask, what is a Preload? I'm sorry if this is hijacking but I never acctually encoutered this word, not in WE means... I guess other people also think like me, or I'm just being dumb :p

Preloading is literately what it means. You load the unit's data prior to the actual game, usually seen in the first 15 seconds, (a good example would be Island Defence) and helps prevent lag later when you cast an ability for the first time.
 

ZeroTag

New Member
Reaction score
0
Ok, thanks for the replys.

[HydraRancher]
Well, about the Region Leak I just followed the tutorial xD, so if it doesn't leak then great, but if it leaks then is prevented.
And I destroyed the trigger, becouse it only runs one time.
Here is the Leak Tutorial that I followed :D

And about the locust... I also used the specific unit to remove those units.
Code:
TOP KILLER
    Events
        Map Initialization
    Conditions
    Actions
        Unit - Remove [b]Ability Effect ( boudaries ) 0039[/b] <gen> from the game
        Unit - Remove [b]Ability Effect ( heroes ) 0040[/b] <gen> from the game
And it didn't work either. It really is becouse of the Locust?

[TomTTT]
Ok, but doing that doesn't make selectable? ( Using group selection, or simple click ).
 

HydraRancher

Truth begins in lies
Reaction score
197
Ok, thanks for the replys.

[HydraRancher]
Well, about the Region Leak I just followed the tutorial xD, so if it doesn't leak then great, but if it leaks then is prevented.
Here is the Leak Tutorial that I followed :D

And about the locust... I also used the specific unit to remove those units.
Code:
TOP KILLER
    Events
        Map Initialization
    Conditions
    Actions
        Unit - Remove [b]Ability Effect ( boudaries ) 0039[/b] <gen> from the game
        Unit - Remove [b]Ability Effect ( heroes ) 0040[/b] <gen> from the game
And it didn't work either. It really is becouse of the Locust?

[TomTTT]
Ok, but doing that doesn't make selectable? ( Using group selection, or simple click ).

No. Units without a model cannot be selected. Also, you should remove the shadow.
 

skyblader

You're living only because it's illegal killing.
Reaction score
159
I'm not too sure with preloading but... what I think you can do is set the selection scale to something really low, or adding locust to the unit upon creation (An extra step every time you create dummies).

Only regions created in-game lag, Like set region = Region centered at bla bla bla, that leaks. Preplaced ones don't leak.
 

ZeroTag

New Member
Reaction score
0
Ok, then is easy, I only make blank model, and trigger to make the effect.
Thanks :D +rep to everyone :D

[Edit]
[skyblader]
Hmm, adding locust after creation seems more usefull. Thanks!
So regions that leak, are the ones made in Jass? In Region Editor don't?

[Edit2]
Ok, seems that Locust is not an ability?? I can't select from Object Editor, and can't use <Add Ability: Locust> either!
So the only way is make unit with no model and add the effect on unit.
 

HydraRancher

Truth begins in lies
Reaction score
197
Ok, then is easy, I only make blank model, and trigger to make the effect.
Thanks :D +rep to everyone :D

[Edit]
[skyblader]
Hmm, adding locust after creation seems more usefull. Thanks!
So regions that leak, are the ones made in Jass? In Region Editor don't?

[Edit2]
Ok, seems that Locust is not an ability?? I can't select from Object Editor, and can't use <Add Ability: Locust> either!
So the only way is make unit with no model and add the effect on unit.

1. No, regions created by ANY trigger leaks.
2. You can add locust with a trigger. It's in the preset bit I believe (the top bar) it's called Aloc or something.
 

skyblader

You're living only because it's illegal killing.
Reaction score
159
Addign to what he said, you can create regions in GUI(Without custom scripts) by setting regionVariable = A region(E.g. region centered at TempPoint)
 
General chit-chat
Help Users
  • No one is chatting at the moment.
  • Ghan Ghan:
    Howdy
  • Ghan Ghan:
    Still lurking
    +3
  • The Helper The Helper:
    I am great and it is fantastic to see you my friend!
    +1
  • The Helper The Helper:
    If you are new to the site please check out the Recipe and Food Forum https://www.thehelper.net/forums/recipes-and-food.220/
  • Monovertex Monovertex:
    How come you're so into recipes lately? Never saw this much interest in this topic in the old days of TH.net
  • Monovertex Monovertex:
    Hmm, how do I change my signature?
  • tom_mai78101 tom_mai78101:
    Signatures can be edit in your account profile. As for the old stuffs, I'm thinking it's because Blizzard is now under Microsoft, and because of Microsoft Xbox going the way it is, it's dreadful.
  • The Helper The Helper:
    I am not big on the recipes I am just promoting them - I use the site as a practice place promoting stuff
    +2
  • Monovertex Monovertex:
    @tom_mai78101 I must be blind. If I go on my profile I don't see any area to edit the signature; If I go to account details (settings) I don't see any signature area either.
  • The Helper The Helper:
    You can get there if you click the bell icon (alerts) and choose preferences from the bottom, signature will be in the menu on the left there https://www.thehelper.net/account/preferences
  • The Helper The Helper:
    I think I need to split the Sci/Tech news forum into 2 one for Science and one for Tech but I am hating all the moving of posts I would have to do
  • The Helper The Helper:
    What is up Old Mountain Shadow?
  • The Helper The Helper:
    Happy Thursday!
    +1
  • Varine Varine:
    Crazy how much 3d printing has come in the last few years. Sad that it's not as easily modifiable though
  • Varine Varine:
    I bought an Ender 3 during the pandemic and tinkered with it all the time. Just bought a Sovol, not as easy. I'm trying to make it use a different nozzle because I have a fuck ton of Volcanos, and they use what is basically a modified volcano that is just a smidge longer, and almost every part on this thing needs to be redone to make it work
  • Varine Varine:
    Luckily I have a 3d printer for that, I guess. But it's ridiculous. The regular volcanos are 21mm, these Sovol versions are about 23.5mm
  • Varine Varine:
    So, 2.5mm longer. But the thing that measures the bed is about 1.5mm above the nozzle, so if I swap it with a volcano then I'm 1mm behind it. So cool, new bracket to swap that, but THEN the fan shroud to direct air at the part is ALSO going to be .5mm to low, and so I need to redo that, but by doing that it is a little bit off where it should be blowing and it's throwing it at the heating block instead of the part, and fuck man
  • Varine Varine:
    I didn't realize they designed this entire thing to NOT be modded. I would have just got a fucking Bambu if I knew that, the whole point was I could fuck with this. And no one else makes shit for Sovol so I have to go through them, and they have... interesting pricing models. So I have a new extruder altogether that I'm taking apart and going to just design a whole new one to use my nozzles. Dumb design.
  • Varine Varine:
    Can't just buy a new heatblock, you need to get a whole hotend - so block, heater cartridge, thermistor, heatbreak, and nozzle. And they put this fucking paste in there so I can't take the thermistor or cartridge out with any ease, that's 30 dollars. Or you can get the whole extrudor with the direct driver AND that heatblock for like 50, but you still can't get any of it to come apart
  • Varine Varine:
    Partsbuilt has individual parts I found but they're expensive. I think I can get bits swapped around and make this work with generic shit though
  • Ghan Ghan:
    Heard Houston got hit pretty bad by storms last night. Hope all is well with TH.
  • The Helper The Helper:
    Power back on finally - all is good here no damage
    +1
  • V-SNES V-SNES:
    Happy Friday!
    +1

      The Helper Discord

      Members online

      No members online now.

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top