wc3campaigns
WC3C Homepage - www.wc3c.netUser Control Panel (Requires Log-In)Engage in discussions with other users and join contests in the WC3C forums!Read one of our many tutorials, ranging in difficulty from beginner to advanced!Show off your artistic talents in the WC3C Gallery!Download quality models, textures, spells (vJASS/JASS), systems, and scripts!Download maps that have passed through our rigorous approval process!

Go Back   Wc3C.net > Warcraft III Modding > Developer's Corner > Warcraft Editing Tools
User Name
Password
Register Rules Get Hosted! Chat Pastebin FAQ and Rules Members List Calendar



Reply
 
Thread Tools Search this Thread
Old 04-26-2009, 09:11 PM   #1
uR_tormented
User
 
Join Date: Nov 2008
Posts: 14

Submissions (1)

uR_tormented has little to show at this moment (0)

Default Jasshelper and JassCraft

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.)

uR_tormented is offline   Reply With Quote
Sponsored Links - Login to hide this ad!
Old 06-27-2009, 07:54 AM   #2
Dark Defiance
User
 
Dark Defiance's Avatar
 
Join Date: Jun 2009
Posts: 3

Dark Defiance has little to show at this moment (0)

Default

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
__________________
OMG im on an apple so im cooler then u
Dark Defiance is offline   Reply With Quote
Old 01-20-2014, 09:42 AM   #3
MasterofSickness
User
 
MasterofSickness's Avatar
 
Join Date: Feb 2006
Posts: 218

MasterofSickness is on a distinguished road (23)

Idea "Line 2: Could not find correct main function in file. / unclosed string"

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!
__________________
my nicknames:
20002006200720102012
Master of SicknessDesignatusKakarotEdwardElricSourceSeeker

Last edited by MasterofSickness : 01-20-2014 at 11:58 AM.
MasterofSickness is offline   Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off


All times are GMT. The time now is 03:37 AM.


Affiliates
The Hubb The JASS Vault Clan WEnW Campaign Creations Clan CBS GamesModding Flixreel Videos

Powered by vBulletin (Copyright ©2000 - 2020, Jelsoft Enterprises Ltd).
Hosted by www.OICcam.com
IT Support and Services provided by Executive IT Services