HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Error with JassNewGenPackv5d & JassHelper (undefined type hashtable)

04-13-2010, 07:37 PM#1
MasterofSickness
EDIT
Ah great
My slow internet connection cut 80% of my post when I edited and saved it.
I have to rewrite, w8 a sec or two... wew, done... me 2


Hallo!

I have asked in different threads already.

References
'JassHelper 0.A.2.B - A vJass and Zinc 2 Jass compiler' (from post 3564)
'DamageEvent & DamageModifiers' (from post 59, edit)
'Jass NewGen Pack v5d' (from post 1796)

Problem
I use the Jass NewGen Pack v5d with an installation of Warcraft III:The Frozen Throne patched to version 1.21b. For playing maps I use an installation of Warcraft III:The Frozen Throne patched to version 1.24e. I set it up this way like it is described in the instructions from Vexorian (quoted on April 14, 2010):
Quote:
Can I use war3err and japi with the latest Warcraft III version?
No, the last version that Grimoire supports is 1.21b. All editor features will still work with later versions, but the ingame features like war3err, japi and the debugger wont. A dual installation of Warcraft III is suggested to be able use to the powerful features of Grimoire still. For a dual installtion you need to follow these steps:
1. Uninstall previous Warcraft III installations from your computer.
2. Make a fresh installation of Warcraft III.
3. Patch the new installation to 1.21b with the standalone patch that can be obtained from the Blizzard site
4. Copy the complete Warcraft III folder to a different directory, so you have a second installation.
5. Patch the first installation to the latest version through battle.net or the standalone patch.
6. Fire up regedit and change the values of "HKEY_CURRENT_USER\Software\Blizzard Entertainment\Warcraft III\InstallPath", "HKEY_CURRENT_USER\\Software\Blizzard Entertainment\Warcraft III\InstallPathX" and "Software\Grimoire\War3InstallPath" to the directory of the copy you made in step 4.
7. Now you're set up to use the first installation for regular battle.net play and the second installation for mapmaking.
Now, I want to save a map with jass-code in it, especially hashtables, but then there comes up an error message, it looks like this (screenshot):
Click image for larger version

Name:	Unbenannozttztredtret.JPG
Views:	135
Size:	105.8 KB
ID:	48691
As I said I already asked in other threads and there it was said, that the jasshelper isn't the current one available and that the "common.j" and "Blizzard.j" files were outdated. So next thing I did was downloading "0.A.2.B.jasshelper" and replacing the old "jasshelper.exe" file in "JassNewGenPackv5d\jasshelper\" with the new one from "0.A.2.B.jasshelper\executable\". In a 2nd step I used the tool MpqMaster to extract the "common.j" and "Blizzard.j" files from my WIII:TFT1.24e "War3Patch.mpq" and replaced the old ones in "JassNewGenPackv5d\jasshelper\" with these new ones. Then I started WE, tried to save a map with current jass code and a new error message pops up:
Click image for larger version

Name:	hm.JPG
Views:	37
Size:	119.5 KB
ID:	48692
As a final attempt, Anitarf was so kind to upload his current working JassHelper so that I could use it. I deleted my "JassNewGenPackv5d\jasshelper" and used Anitarfs, but nevertheless the above error resisted.

Details
Microsoft Windows XP Home Edition Version 2002 Service Pack 3 (German)
Warcraft III: The Frozen Throne (German)
Patch 1.21b (German)
Patch 1.24e (German)
Jass NewGen Pack v5d
0.A.2.B.jasshelper
Attached Images
File type: jpgUnbenannozttztredtret.JPG (105.8 KB)
File type: jpghm.JPG (119.5 KB)
04-13-2010, 08:44 PM#2
MindWorX
Are you sure you're using Patch 1.24e?
04-13-2010, 10:31 PM#3
MasterofSickness
For playing maps in Warcraft III I use the 1.24e Version,
but for map making I use the 1.21b Version as it is the last version where Grimoire is supported.
So, no, I run JassNewGenPackv5d with Warcraft III 1.21b...

Or do you mean the exact Version of Warcraft III for playing?
When I run War3TFT then in the bottom right corner there is Version "1.24.4.6387".
But that has not anything to do with WE, does it?
04-14-2010, 01:03 AM#4
Fledermaus
........Hashtables did not exist before patch 1.24, so you can't use them with your 1.21b version of wc3.......
04-14-2010, 09:23 AM#5
MasterofSickness
So I have to go without the said features and use one new WIII installation in V 1.24e instead of two in V1.21b and V1.24e.
Quote:
...the last version that Grimoire supports is 1.21b. All editor features will still work with later versions, but the ingame features like war3err, japi and the debugger wont...

I think to the instructions from Vexorian about using JassNewGen in WIIIV1.21b there should be added, that current jass-code (is it vjass?) won't work! Then I instantly had decided to just make one installation of WIII in V1.24e, because I have to use hashtables...
04-14-2010, 10:00 AM#6
SFilip
From what I understand, all you wanted was new JassHelper, the instructions you followed were for the people who wanted to use war3err (which is unrelated to JassHelper). Now we need to fix all the mess they made.
So, here's what to do:
  1. Delete everything related to JNGP.
  2. Delete both Warcraft III installations.
  3. Install Warcraft III and TFT.
  4. Patch to 1.24d.
  5. Download latest JassNewGen and extract it somewhere.
  6. Download latest JassHelper from this thread.
  7. Replace all files in NewGen's jasshelper directory with files from the latest JassHelper's "executable" folder.

After you're done, if it still doesn't work, post back here.
04-14-2010, 11:25 AM#7
<?White-Tiger?>
but... what about newest war3err attached to first post here:
http://www.wc3c.net/showthread.php?t=86652
doesn't it work? I use it with JNGP and newest War3 version... and my Warcraft does not crash at all. But i don't know if it works or not^^
04-14-2010, 12:13 PM#8
MasterofSickness
I almost did the same you were advicing, but I wanted to have the latest version and not 1.24d, so I installed 1.24e. (Why 1.24d, do I have to expect any issues again?) I downloaded the jasshelper from the official thread and replaced all 3 files from the executable folder. I opened a map with vjass code and saved it and it worked. My problem is solved now, but the explanation of setting up Warcraft with two versions should also contain, that vjass won't work then in 1.21b.

EDIT (in refer to post 9)
...that vjass with hashtables don't work...
04-14-2010, 02:27 PM#9
SFilip
Quote:
Originally Posted by MasterofSickness
I almost did the same you were advicing, but I wanted to have the latest version and not 1.24d, so I installed 1.24e. (Why 1.24d, do I have to expect any issues again?) I downloaded the jasshelper from the official thread and replaced all 3 files from the executable folder. I opened a map with vjass code and saved it and it worked. My problem is solved now, but the explanation of setting up Warcraft with two versions should also contain, that vjass won't work then in 1.21b.
Yes, that d was a typo on my side.
vJass (in theory) should work fine in 1.21b, it's hashtables that didn't exist back then.

> doesn't it work?
Grimoire wasn't updated since 1.21b, so it's probably turned off for you.
04-14-2010, 04:16 PM#10
<?White-Tiger?>
Quote:
Originally Posted by SFilip
> doesn't it work?
Grimoire wasn't updated since 1.21b, so it's probably turned off for you.
that's not true^^ Look at that i said^^ war3err is updated
Quote:
Originally Posted by PipeDream
War3err for 1.24b attached.
04-15-2010, 10:42 AM#11
kingkingyyk3
Replace blizzard.j and common.j from War3Patch.mpq in your war3 directory to jasshelper folder which located in newGen.
05-09-2010, 12:16 PM#12
Oziris
I reinstalled the whole Warcraft, turned of the fucking Kaspersky off did what SFilip said and the same thing happened.

We.Lua
Couldn't start World Editor. An instance of World Editor may already be running.
If running a patch prior to 1.21b make sure the Warcraft III CD is in your drive and try again
If your using kaspersky antivirus, turn it off before using NewGen.

Sorry for the offtopic but I'm really pissed of with this JNPG.
05-25-2011, 11:02 AM#13
Chomtana
JassNewGenPack is worldedit for 1.21b not 1.24e or 1.26a or newest than this.

i see it check the my script is valid but can't use in the map.i test it with install the older patch.and this map is work.
05-25-2011, 11:06 AM#14
Chomtana
i am edit the the WE Path from worldedit121.exe to worldedit.exe and it say Microsoft visaul studio C++ error
05-25-2011, 11:07 AM#15
Chomtana
Quote:
Originally Posted by Oziris
I reinstalled the whole Warcraft, turned of the fucking Kaspersky off did what SFilip said and the same thing happened.

We.Lua
Couldn't start World Editor. An instance of World Editor may already be running.
If running a patch prior to 1.21b make sure the Warcraft III CD is in your drive and try again
If your using kaspersky antivirus, turn it off before using NewGen.

Sorry for the offtopic but I'm really pissed of with this JNPG.

It say if you run the patch 1.21b you need cd