System Advanced Indexing & Data Storage

Romek

Super Moderator
Reaction score
964
Update your Jasshelper.

There's a link in this thread. (Or click here)
 

W!†A_cRaft

Ultra Cool Member
Reaction score
28
i downloaded the 0.A.2.7 version, how do I update? simply copy the files into the correct directory?

or I only need to copy jasshelper.exe and forget the rest?
 

Darthfett

Aerospace/Cybersecurity Software Engineer
Reaction score
615
i downloaded the 0.A.2.7 version, how do I update? simply copy the files into the correct directory?

or I only need to copy jasshelper.exe and forget the rest?

TheThreadThatWasLinked said:
When installing a new jasshelper version in newgen pack, replace jasshelper.exe and clijasshelper.exe in the folder called "bin" inside jass newgen pack's folder.

.
 

W!†A_cRaft

Ultra Cool Member
Reaction score
28
I cannot replace somethign that doesnt exist.....

In :
...Previous directoyry\JassNewGen1.5\bin\
there is no jasshelper.exe nor clijasshelper.exe

so i cannot replace them with somethign if they do not exist, i can put these two (jasshelper.exe and clijasshelper.exe from the following directory:
...Previous directory\0.A.2.7.jasshelper\executable\

but than what am i suppose to do with the rest of the stuff that is in
0.A.2.7.JassHelper folder? simply delete them or what?

Picture of the NewGen1.5/bin directory (there is no jasshelper.exe nor clijasshelper.exe)


picture of 0.A.2.7.jasshelper directory (what to do with rest of the stuff?)
 

Kenny

Back for now.
Reaction score
202
I was just reading up on AutoIndex, and found that it hooked RemoveUnit() and all that. Does this accomplish the same thing without the use of hooks? Or did you just not implement that?

Also, I was just wondering.. besides the AIDS structs, what else does AIDS provide that something like AutoIndex doesn't. Like efficiency perks or something.

(Just trying to get an opinion on the two systems, people at wc3c seem to hate anything that isn't in their database, and also things that have unusual and/or funny names)
 

Jesus4Lyf

Good Idea™
Reaction score
397
>I was just reading up on AutoIndex, and found that it hooked RemoveUnit() and all that. Does this accomplish the same thing without the use of hooks? Or did you just not implement that?

That. I don't need hooks.

>Also, I was just wondering.. besides the AIDS structs, what else does AIDS provide that something like AutoIndex doesn't. Like efficiency perks or something.

AIDS has lots of efficiency perks that AutoIndex doesn't have. For example, getting an AIDS struct for a unit is a native call, and you can typecast between AIDS structs for a unit. AutoIndex allows access to a unit just before it is removed from the game, AIDS trades that off for struct/index locking and efficiency (I've never needed access on removal personally - you can access all the unit's data in AIDS, but not the unit itself). Truth is I could add it if I felt like it. I don't see the point.

>(Just trying to get an opinion on the two systems, people at wc3c seem to hate anything that isn't in their database, and also things that have unusual and/or funny names)

In reality, the systems are very close. The only difference in practice is efficiency vs accessing the unit before it leaves the game. AIDS structs are never allocated and deallocated. Actually, the methods for onCreate/onDestroy are called for the unit ID. In AutoIndex, to achieve a similar thing, they make a struct which is allocated/deallocated as the unit enters/leaves the map, and this stuff is fired through a trigger evaluate loop. AIDS fires it through a single trigger eval (diff between TT and KT2 stuff, and some).

I do it for the cheap (lightweight) unit data structs. :thup:
 

Kenny

Back for now.
Reaction score
202
Thanks for the detailed response. Grim's rants on some threads kinda got me a bit confused. I think the biggest difference was the periodic removal vs undefend removal, which has now been implemented.

Even with some of the "drawbacks" of AIDS structs (such as no array members and all that crap), I still find AIDS structs a pretty simple way to go about doing many unit based systems, such as spawn systems. And I am aware that I can use array members if I use a work around method. :)

Anywho, looks like I will be using AIDS. Plus it is always good to support local systems. :D

Oh and:

>I was just reading up on AutoIndex, and found that it hooked RemoveUnit() and all that. Does this accomplish the same thing without the use of hooks? Or did you just not implement that?

That. I don't need hooks.

That is really interesting. And also a major plus for me. I never thought it necessary to hook [ljass]RemoveUnit()[/ljass] and all that for some unit indexing.

Edit:

Some more questions:

If I was to use the undefend method for unit-leaves events, the AIDS_onDestroy method would fire just before the unit leaves, allowing me to still do stuff with the unit (such as add special effects and stuff) just before it leaves, correct?

And if I was to use the periodic method for the above situation, I wouldn't be able to do so, right?

Also, what is your reasoning behind not using an AIDS module? I guess then users could have their onInit method back (although it would feel awkward having AIDS_onCreate, AIDS_onDestroy, AIDS_onFilter but no AIDS_onInit :p).
 

Jesus4Lyf

Good Idea™
Reaction score
397
>If I was to use the undefend method for unit-leaves events, the AIDS_onDestroy method would fire just before the unit leaves, allowing me to still do stuff with the unit (such as add special effects and stuff) just before it leaves, correct?

Nope. Regardless which method you use, you can't access a unit just before it leaves using AIDS. Only the unit's data.

I can change this but I haven't seen any need yet.

>Also, what is your reasoning behind not using an AIDS module?
At the time of release, there were still issues with modules, and they took up your onInit method regardless. The textmacro would compile on the JassHelper version that came with NewGen, and most people didn't update their JassHelper beyond that. I intend to release an AIDS module in the future, and have the textmacro simply implement the module. Even with the AIDS module, AIDS_onInit will work for backwards compatability. I might even release a second module that allows non [LJASS]extends array[/LJASS] structs. (Actually, I intend to.) :)
 

Kenny

Back for now.
Reaction score
202
>Nope. Regardless which method you use, you can't access a unit just before it leaves using AIDS. Only the unit's data.

Oh.. Fair enough. What I meant was something like:

JASS:
struct Example extends array
     //! runtextmacro AIDS()

    real x
    real y

    static method AIDS_filter takes unit u returns boolean
        return GetUnitTypeId(u) == 'hfoo'
    endmethod

    method AIDS_onDestroy takes nothing returns nothing
        call DestroyEffect(AddSpecialEffect("SomeBigEffect.mdl",this.x,this.y)) // So can I do this?
        call DestroyEffect(AddSpecialEffectTarget("SomeBigEffect.mdl",this.unit,"chest")) // And I can't do this?
    endmethod

    method AIDS_onCreate takes nothing returns nothing
        set this.x = GetUnitX(this.unit)
        set this.y = GetUnitY(this.unit)
        // Lets just pretend that x and y get updated every second or so because I am lazy.
    endmethod

endstruct


Also, is it necessary to have some of the functions in AIDS (such as RegisterOnEnter() etc) available to users (via the public keyword)? I just found it odd.

Oh and I am looking forward to the AIDS module. :)
 

Jesus4Lyf

Good Idea™
Reaction score
397
>[LJASS]// So can I do this?[/LJASS]
Yep.
>[LJASS]// And I can't do this?[/LJASS]
Yep.

>is it necessary to have some of the functions in AIDS (such as RegisterOnEnter() etc) available to users (via the public keyword)?

They'll be made private finally when I release the module. All part of what I mentioned before as to why I used a textmacro. :p
 

Kenny

Back for now.
Reaction score
202
Just wanted to give a heads up about static ifs outside of functions being removed in the future:

Vexorian's post.

More specifically:

Static ifs outside functions will get removed. They DO NOT work fine right now the library phase will get confused by them.

Seems like that could screw with your "choose one or the other" deal you have going right now.
 

Azlier

Old World Ghost
Reaction score
461
There is one way in which this system can fail.

Units with a default autocast ability (ex: Priests with heal) receive the healon order when created and fire the associated triggers before the enter region event even fires. Yes, even when you abuse the boolexpr in the event.

Which means that triggers that are registered for orders with no targets have the possibility of getting an unindexed unit :p.

Insane, no?
 

Azlier

Old World Ghost
Reaction score
461
There is a way to capture that, with an event that detects autocast orders. Where are we gonna get one of those? Hmm.
 

Jesus4Lyf

Good Idea™
Reaction score
397
>Where are we gonna get one of those? Hmm.
*Laughs* :banghead:
I'll need to investigate. Makes sense to use yours if that is indeed what I need, however. I really should reverse the order Event fires its triggers...
I think its back to front at the moment, off memory (meaning using your sys would solve nothing since AIDS would fire after anything using it, but at least I wrote what your sys runs on (Event)... it's all RIGGED). :p

Investigating AIDS with autocast orders, exposing T32 members, reversing Event firing, adding .unregister(trig) to Event, I'll get around to it!
 
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

      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