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: 265
  • Constants2.jpg
    Constants2.jpg
    28.6 KB · Views: 301

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.

      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