HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Jasshelper and JassCraft

04-26-2009, 09:11 PM#1
uR_tormented
I tried using JasshelperCLI with JassCraft, but when I syntax check with any file, it just puts blizzard.j into a folder called logs and checks the syntax which also gives an error.
Can anyone help?

Output of Jasshelper


Checking tool existence...
copying...
Loading...
Loading...
Parsing...
Textmacros - initializing...
Textmacros - parsing...
Textmacros - writing...
Libraries - parsing...
logs\currentmapscript.j
JASSHelper - Step 1 (textmacros, libraries, scopes)
Line 2: Could not find correct main function in file. / unclosed string
(First five lines of JassCraft's blizzard.j here.)

06-27-2009, 07:54 AM#2
Dark Defiance
might be because your on an apple? im on an apple and there are no such downloads so far that work. if not then try the troubleshooting
01-20-2014, 09:42 AM#3
MasterofSickness
Came to this old thread by having the exact same error message. The problem wasnt solved here, but after some fiddling I could get rid of it, thats the reason im replying & reviving this thread! Think this is ok then... By the way, I didnt even used JassCraft.

solution:
Add this to the top of your script which should get parsed:
Code:
function main takes nothing returns nothing
endfunction

course of events:
Downloaded latest JassHelper (JH) (used version: 0.A.2.B) & extracted.
Downloaded latest JassNewGenPack (JNGP) (used version: 5d) & extracted.
From JNGP "...\newgen5d\jasshelper\", copied: "Blizzard.j", "common.j", "pjass.exe", "sfmpq.dll" & pasted to JH "...\0.A.2.B.jasshelper\executable\".
Created folder "bin" in "...\0.A.2.B.jasshelper\executable\" & pasted "sfmpq.dll" there a 2nd time.
Created a BAT-file (Im on windows) in JH "...\0.A.2.B.jasshelper\executable\".
In the batch file I wrote:
Code:
jasshelper.exe --scriptonly common.j blizzard.j InputTestScript.j OutputTestScript.j
Command line usage described here:
http://www.wc3c.net/vexorian/jasshel...l.html#clifile
https://warcraft.ingame.de/maps/mappedia/JassHelper


Apparently I also pasted the script file - which should get tested & parsed - into the same folder (the "InputTestScript.j").
As a test I tried parsing Vex's Table script.
What happens then? Yeah, see post #1!
What helped? See solution above!