Massive Creep amounts with respawn problem

Ice Bane

Member
Reaction score
5
Hello there everyone, I've been working on a map for some time now and it's like, go out and farm yourself up to level 10, survive for 5 mins > win. If another player kills you, you lose one level. (Just some off-topic info)

In which case, I need a lot of creeps out on the battlefield, similiar to World of Warcrafts (and tons of other MMO:s) creep system.


I made a system based on regions where a trigger that every 20-35(or any other number) checks whether there is equal to 0 units owned by neutral hostile in the region, if there isn't any it will spawn one of levels ranging from 1-6, where these creep-types are setup with variables (with arrays), since I don't want ALL of the original creeps.

Code:
Event - Every (Random Integer between 20 - 35 seconds

Condition - (""Counts units in region owned by Neutral Hostile")

Action - Unit - Create 1 Level_1_to_6[Random NR between 1 and 5]


----------------------

I had about 80-100 of these triggers and when they started, they caused a desync, also known as server split. Which tend to appear if to much data is handled at the same time, and when it happens players are setup on diffrent servers not syncing and in doing so the players actions can't be seen by those who're on the opposite server.

I know this is the source of the desync since I removed all the spawn triggers and after that it was fixed.


------------------------

So here's my problem, is there any possible way to create a Creep system with about 80-100 instances running at the same time?

Either if you come up with a solution to the server split/desync problem OR if you come up with a new system.

Any feedback is very much appreciated!




-----------------------

Questionmarks


Can you prevent desyncs/server splits? (If you can, what will do the trick?


Could putting all these triggers together into a smaller amount of triggers with a quicker timer and a randomizer for the regions solve it?



Like:
Code:
[B][U]Event [/U][/B] - Time - Every (Random nr between 8 - 12) seconds

[B][U]Cond[/U][/B] - none

[B][U]Actions[/U][/B] - 

[B][I]If/Then/Else[/I][/B]

- [B]If[/B]  - Integer - (Nr of Units in (Region[Random Nr between 1-10)) equal to 0

- [B]Then[/B] - Create 1 Level_1_to_6[Random NR between 1 and 5]

- [B]Else[/B] - Do nothing
 

Komaqtion

You can change this now in User CP.
Reaction score
469
First off, this is the Tutorials and Resources subforum, which is not the place for a question like this to be posted, so you should've posted it in the World Editor Help section :p

But now, for you problem... Why not just use an integer loop? I mean since you've already set the regions up in an array, then just use something like this:
Trigger:
  • Random Creeps Respawn
    • Events
      • Time - Every (Random real number between 8.00 and 12.00) seconds of game time
    • Conditions
    • Actions
      • For each (Integer A) from 1 to 10, do (Actions)
        • Loop - Actions
          • Set TempGroup = (Units in Region[(Integer A)])
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • If - Conditions
              • (Number of units in TempGroup) Equal to 0
            • Then - Actions
              • Set TempPoint = (Random point in Region[(Integer A)])
              • Unit - Create 1 Level_1_to_6[Random NR between 1 and 5] for Neutral Hostile at TempPoint facing Default building facing degrees
              • Custom script: call RemoveLocation(udg_TempPoint)
            • Else - Actions
          • Custom script: call DestroyGroup(udg_TempGroup)


Btw, why not just use one of the simply respawn systems we have heve already at thehelper.net... Like after X seconds when a unit owned by neutral hostile dies, it'll respawn ?

http://www.thehelper.net/forums/showthread.php?t=55581

Here you can find some things that'll cause desyncs:
http://www.thehelper.net/forums/showthread.php?t=89207
 

TheCrystal

New Member
Reaction score
36
By the way, I've been wondering this for awhile, does "clear group" keep the handles on units? Or would it always be best to use your method of DestroyGroup? Something I missed on my education ^_^
 

Komaqtion

You can change this now in User CP.
Reaction score
469
Nope, Clear Group saves nothing but the group...
And it's best to destroy the group after use, always...

Though, in JASS, you should use one single global group, when using GroupEnumUnits...
As it takes less processor load to do that, than to create a new group all the time...
 

TheCrystal

New Member
Reaction score
36
The whole point I'm wondering is because the handles are destroyed on unit death, but I guess it'd be fine to remove the handles in these types of situations, like shit for an ability it seems useless unless you can type the code faster then use the GUI action.
 

Ice Bane

Member
Reaction score
5
First off, this is the Tutorials and Resources subforum, which is not the place for a question like this to be posted, so you should've posted it in the World Editor Help section :p

-------------------
ANSWER:

Oh, I have? XD Silly me, wasn't my intention, so IF ANY MODERATOR SEES THIS, JUST MOVE IT TO THE WORLD EDITOR HELP SECTION PLEASE. =)


--------------------


Btw, why not just use one of the simply respawn systems we have heve already at thehelper.net... Like after X seconds when a unit owned by neutral hostile dies, it'll respawn ?


http://www.thehelper.net/forums/showthread.php?t=55581

--------------------
ANSWER:

I know I could use it, but I anyhow need the map to create about 120-150 units in start randomly, I don't want people to notice that every time a creep starts on one place and another on the same place every time.

If you get my point?

Else I belive it's a good system, which I'll probably use :)

--------------------

I think I'll do it like this, I make a few triggers with integer loops for groups I've divided the regions in. (Like, Lv_1_to_6 e t c)
This however will not be a repeating timer but a "Eplapsed gametime"-trigger.

Then I'll use the "Whenever a unit dies" system and just edit it a bit.

Thanks a lot for your reply, realy helps me a lot!

Best Wishes! - Ice bane
+ rep
 

Ice Bane

Member
Reaction score
5
Just found out what it was; seemingly the World Editor doesn't like when you use the condition "Count number of units in region" to many times.

That made wc3 cause to serversplit.
 
General chit-chat
Help Users
  • No one is chatting at the moment.
  • Monovertex Monovertex:
    How are you all? :D
    +1
  • 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

      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