JASS NewGen Pack 1.5d

PitzerMike

poo kaka
Reaction score
38
Here's an upate for you. I hope it fixes most of the problems with 1.22. War3err and japi are still not up to date, but I've included details on how to get them work with a dual install of War3.

Here's the changelog anyway:
$ works for 1.22 (except war3err/japi)
$ most recent JassHelper included (0.9.E.0)
$ included Risc's Colorizer plugin that adds a colorizer to the object editor (if .NET 2.0 is installed)
$ fixed the broken japi testmap and instructions and added a japi menu item
$ added umswe's missing game interface strings
$ included info on antivirus trouble and dual installs for war3err/japi in troubleshooting section

PS: if you're using UMSWE, disabe and re-enable UMSWE after the update to get it up to date.
 

saw792

Is known to say things. That is all.
Reaction score
280
I notice that 'compatible with 1.22' really just means it creates a 1.21b automatically in the warcraft 3 directory and runs off that...
 

Renendaru

(Evol)ution is nothing without love.
Reaction score
309
[OFFTOPIC]
Automatic updowngrade

E-Lation (Enhanced Elation)

XD
[/OFFTOPIC]

[ONTOPIC]
Gj Pitzermike.
[/ONTOPIC]
 

PitzerMike

poo kaka
Reaction score
38
Well, it's technically not a downgrade since they didn't add anything nor change anything in the 1.22 editor.
Only thing they did is recompile it with a different compiler.
 

cleeezzz

The Undead Ranger.
Reaction score
268
i have a question, can tesh be updated to include events? /stuff that are all caps and some other default stuff

ex. UNIT_STATE_LIFE, bj_mapInitialPlayableArea
 

Darthfett

Aerospace/Cybersecurity Software Engineer
Reaction score
615
i have a question, can tesh be updated to include events? /stuff that are all caps and some other default stuff

ex. UNIT_STATE_LIFE, bj_mapInitialPlayableArea

Constants. I would second this, since I have to use JASSCraft just for this purpose. It's a bother to have to do that. :eek:
 

Artificial

Without Intelligence
Reaction score
326
i have a question, can tesh be updated to include events? /stuff that are all caps and some other default stuff

ex. UNIT_STATE_LIFE, bj_mapInitialPlayableArea
It already does that? If yours doesn't, go to Options -> Style Options -> Constant and make sure it has some nice styling.
Or if you meant the function list to include them, that's also possible. Just select the radio button 'constants' instead of 'functions' below the search box.
 

Attachments

  • Constants.jpg
    Constants.jpg
    4.3 KB · Views: 267
  • Constants2.jpg
    Constants2.jpg
    28.6 KB · Views: 304

Trithilon-V2

New Member
Reaction score
20
I my Kaspersky Internet Security does'nt detect any viruses in JNGP 1.4b nor its japi.dll.
But it reports 1.5a's japi.dll as a Backdoor.
Why the difference?
At the moment i am using JNGP 1.5a with the japi.dll of 1.4b.
Is that ok? what problems can i face?
Btw I think somethings fishy.....
 

PitzerMike

poo kaka
Reaction score
38
I my Kaspersky Internet Security does'nt detect any viruses in JNGP 1.4b nor its japi.dll.
But it reports 1.5a's japi.dll as a Backdoor.
Why the difference?
At the moment i am using JNGP 1.5a with the japi.dll of 1.4b.
Is that ok? what problems can i face?
Btw I think somethings fishy.....

We've changed how the dll injection works from 1.4 to 1.5 because for many people the old method didn't work after the 1.21 warcraft III patch.
If 1.4 works for you then that should be ok.

PS: If you're worried about viruses, you can check the source code at http://w3grimoire.svn.sourceforge.net/svnroot/w3grimoire for backdoors and compile it for your own.
But don't use the latest version because war3err is broken there, I suggest revision 237, at least that's what I used.
 

Trithilon-V2

New Member
Reaction score
20
So...you mean both the japi.dll do the same stuff but in different ways. Thus if i am using warcraft 1.20e with JNGP 1.5a with the old 1.4b japi.dll, i shouldnt face any problems or reduced functionality.
BTW: Thx for the fast reply.
 

SerraAvenger

Cuz I can
Reaction score
234
There's a few things I'ld pretty much like to see in JassHelper:
  • An overwrite / inject for functions, constant globals and structs in other libraries ( in order to change something / extend functionality without having to code wrappers )
    As in
    JASS:
    function Test takes integer a, integer b returns integer
      set b = b + 5 
      return a + b
    endfunction
    
    //! extend function Test
     set a = a + b*6
     //! code
    //! endextend
    compiles to:
    JASS:
    function Test takes integer a, integer b, integer c returns nothing
      set a = a + b*6
      set b = b + 5 
      return a + b
    endfunction
  • An automatical handle-leak fixer ( before any return or the end of the function, set all local handle variables to null );
    an easy debug message system as in
    JASS:
    debug "40" // prints 40 when debug mode is activated
  • An easy string formatting system,
    as in
    JASS:
    call BJDebugMSG( "%p: Kills: %d; Deaths: %d" % ( Player( trigId ), Kills[ trigId ], Deaths[ trigId ] ) )

    Compiles to:
    JASS:
    call BJDebugMSG( GetPlayerName( Player( trigId ) ) + "Kills: " + I2S( Kills[ trigId ] ) +  "; Deaths: " 
    + I2S( Deaths[ trigId ] ) )
  • An automatical local variable declarer:
    Whenever a variable is used within the function, yet has not been declared yet, the preprocessor declares the function for us:
    JASS:
    function Test2 takes nothing returns nothing
      set a = 5
      set b = GetTriggerUnit()
    endfunction

    becomes
    JASS:
    function Test2 takes nothing returns nothing
      local integer a = 0 // Initialised with the "null" type!
      local unit b = null
      set a = 5
    endfunction
  • Perhaps ( not thaat important, but useful ) an easier way of writing functions:
    JASS:
    function TestA( integer a, integer b): nothing
     //...
    endfunction
    becomes:
    JASS:
    function TestA takes integer a, integer b returns nothing
     //...
    endfunction

    also +=, -=, *= and /= would be appreciated.
Best regards and thanks a lot for what you allready did,
SerraAvenger
 

Darthfett

Aerospace/Cybersecurity Software Engineer
Reaction score
615
... [Removed to keep post short] ...
also +=, -=, *= and /= would be appreciated.
Best regards and thanks a lot for what you already did,
SerraAvenger

Great ides, here. I would also like to see stuff like c++ and c--, since they are used so often.
 

saw792

Is known to say things. That is all.
Reaction score
280
@Serra

You should post JassHelper suggestions in the JassHelper thread over on wc3campaigns. It is much more likely that they will be read by vex then.
 

PitzerMike

poo kaka
Reaction score
38
I really hope those suggestions were a joke.

Anyway, yeah, the JassHelper thread would be the best place to post your ideas, although I'm sure Vexorian won't consider any one of them.

No offense meant of course.
 
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