Spell Static Shield

The_Kingpin

Member (Who are you and why should I care?)
Reaction score
41
Odd. I am having no trouble whatsoever casting on the same unit. Grimoire and debug mode is on and it is not giving me any null struct troubles. All it does is destroy balls from the last cast and replace them with new ones.

EDIT: Updated, removed tabs on config section, increased storage space to 32760.

Double Edit: Wait, I found a problem.

Triple Edit: Nevermind, lol. There's an entire struct not being destroyed.

Quadruple Edit: LOL it was just something stupid. I forgot to decrease the variable containing the amount of balls that were left orbiting when the unit was attacked.

What the hell comes after quadruple? Edit: Fixed it. No, it wasn't anything to do with the storage system.
 

Cohadar

master of fugue
Reaction score
209
I see you "updated" your system.
Well it is better now, instead of crashing it will only get slow after some time :D

Why don't you stop being a smart ass and if you really like 0x100000 hacks so much start to use Vexorian's CSData?

And for the last time:
ATTACHING TO UNITS IS NOT MUI.

It is a fact, and it does not matter what system you use, the moment you attach something to unit that code is not MUI any more.
 

ReVolver

Mega Super Ultra Cool Member
Reaction score
609
He claims it MUI but its not (I just edited his first post to Not MUI) Once you fix your problems you can add MUI again.
 

The_Kingpin

Member (Who are you and why should I care?)
Reaction score
41
Um, I can cast this spell with two units at the same time, and everything comes out okay. Yes, attaching something to a unit would not function correctly when two are used on a single unit, but in this case, there is only supposed to be one effect on the unit at a time! (I.E. it doesn't stack.) I might not be getting the picture here, though. I don't really see how it isn't. Please, enlighten me someone.
 

Cohadar

master of fugue
Reaction score
209
Well in case you are checking if something is already attached to a unit (are you?),
and then replace the old attachment with a new one every time spell is cast on the same unit it will be MUI.

You could add stacking (by time perhaps)
maybe also check to not replace attachments from higher level spell with a lover level one.

I believe Anitarf has a whole buff system for this kind of stuff.
 

The_Kingpin

Member (Who are you and why should I care?)
Reaction score
41
Yeah, if a struct for that ability is already set to that unit, it destroys that struct and creates a new one. This refreshes the effect, restarting its duration timer, replacing expired balls, and matching the number of balls on the affected unit with the caster's ability level.
 

Cohadar

master of fugue
Reaction score
209
Lol, why are you destroying old struct?
Simply assign new values to it.
 

The_Kingpin

Member (Who are you and why should I care?)
Reaction score
41
Well then I'd have to add / subtract more balls to it, move the balls so they are at even angles, restart the countdown timer, adjust the damage values....

And does that make it MUI yet?
 

Cohadar

master of fugue
Reaction score
209
Yes I believe it is MUI now,
I did not test the map however.

That is your job anyways.
Use several heroes and start casting buffs like crazy for 5 min.

If nothing bad happens in the meantime it is ok.

Btw all this can be done with 4 times less code.
Learn to use ForGroup.
 

The_Kingpin

Member (Who are you and why should I care?)
Reaction score
41
I find loops more convenient and easier to read, however. But I'll consider it. (Wouldn't that make more code to write, declaring a new static method, transferring the variables and all that crap?)

And one last thing, how exactly would the slowing down over time play out, and why?

(Going to sleep now, staying up late makes me fat.)
 

Cohadar

master of fugue
Reaction score
209
Well good morning now, I have a couple of bad news.

Cast level 3 shield on a unit, and the cast lvl 1 shield on a unit.
When shield expires you get:
Attempt to destroy a null struct of type: StaticShield__Orbit

Attaching to units is always a bad idea,
it simply takes too much effort to fix it to be MUI,
and it is just too damn easy to make a mistake.

I recommend using this.

------------------
About "why is it getting slower":
number of if's the system checks increases with max handle index.
Wasn't that pretty obvious?
 

The_Kingpin

Member (Who are you and why should I care?)
Reaction score
41
Updated! The null struct message was yet another issue with me and the BallCount variable for keeping track of the number of balls left (It was uninitialized but I tried to increment it.) It works now.

Oh, you meant getting slower by performing 2/3/4 if comparisons. I though you meant crippling lag increasing exponentially over a long period of time.
 
General chit-chat
Help Users
  • No one is chatting at the moment.
  • 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
    +2
  • V-SNES V-SNES:
    Happy Friday!
    +1
  • The Helper The Helper:
    New recipe is another summer dessert Berry and Peach Cheesecake - https://www.thehelper.net/threads/recipe-berry-and-peach-cheesecake.194169/

      The Helper Discord

      Staff online

      Members online

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top