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 09-01-2008, 05:08 PM   #1096
Barade
User
 
Barade's Avatar
 
Join Date: May 2006
Posts: 161

Barade is on a distinguished road (14)

Default

Sorry, but in my opinion the following features are useless:
- Added delegate.
- Added extends array.
- Added the colon operator.

The only thing they do is making the code more unreadable.

offtopic: I could not see the website navigation anymore, using Firefox 3.0.1.
__________________
Barade is offline   Reply With Quote
Sponsored Links - Login to hide this ad!
Old 09-01-2008, 08:52 PM   #1097
PurplePoot
User


Official Map Reviewer
 
Join Date: Jan 2006
Posts: 363

PurplePoot will become famous soon enough (60)PurplePoot will become famous soon enough (60)PurplePoot will become famous soon enough (60)

Default

Quote:
Originally Posted by Barade
Sorry, but in my opinion the following features are useless:
- Added delegate.
- Added extends array.
- Added the colon operator.

The only thing they do is making the code more unreadable.

offtopic: I could not see the website navigation anymore, using Firefox 3.0.1.
I'd agree with colon and somewhat on delegate, but extends array I can see a point to (Heck, take Vex's example, it makes sense well enough).

You're basically just packaging your global arrays into struct names.

EDIT: Would it be possible to overload : separately from []? If so, it would be more useful.

Last edited by PurplePoot : 09-01-2008 at 08:55 PM.
PurplePoot is offline   Reply With Quote
Old 09-01-2008, 09:13 PM   #1098
Vexorian
Free Software Terrorist
 
Vexorian's Avatar


Technical Director
 
Join Date: Apr 2003
Posts: 14,905

Submissions (37)

Vexorian has a reputation beyond repute (1060)Vexorian has a reputation beyond repute (1060)Vexorian has a reputation beyond repute (1060)Vexorian has a reputation beyond repute (1060)Vexorian has a reputation beyond repute (1060)Vexorian has a reputation beyond repute (1060)Vexorian has a reputation beyond repute (1060)

Hero Contest #3 - 2nd Place

Default

Quote:
The only thing they do is making the code more unreadable.
I disagree, as a matter of fact, : and delegate have been made for the sole purpose of making code more readable. I am already using : to make code a lot more readable because I am not typing stuff backwards anymore, and delegate will really simplify code in something I will release later.

Oh, and don't mess with extends array, it definitely it is baseless to call it useless since it is one of the most useful things to be added to vJass in a while.

Either way, like other vJass features, nobody is forcing anybody to use them.

Quote:
EDIT: Would it be possible to overload : separately from []? If so, it would be more useful.
No, I really doubt it would be more useful.
__________________
Zoom (requires log in)Wc3 map optimizer 5.0
Someone should fix .wav sound in this thing.
Zoom (requires log in)JassHelper 0.A.2.A
Turns your simple code into something that is complicated enough to work.
Faster != more useful
Vexorian is offline   Reply With Quote
Old 09-03-2008, 08:34 AM   #1099
TheDamien
User
 
TheDamien's Avatar
 
Join Date: Jun 2007
Posts: 136

TheDamien is on a distinguished road (20)

Default

The below does not appear to error:

Collapse JASS:
scope Test initializer Init
    function interface what takes real r returns nothing

    function waffle takes what f returns nothing
        call f.evaluate(5.6)
    endfunction

    function foo1 takes real v returns nothing
        call BJDebugMsg(R2S(v))
    endfunction

    function foo2 takes real v returns real
        call BJDebugMsg(R2S(v))
        return 0.
    endfunction

    function foo3 takes string s returns nothing
        call BJDebugMsg("WUT")
    endfunction
    
    private function Init takes nothing returns nothing
        call waffle(foo1)
        call waffle(foo2)
        call waffle(foo3)
    endfunction
endscope
TheDamien is offline   Reply With Quote
Old 09-03-2008, 12:10 PM   #1100
Vexorian
Free Software Terrorist
 
Vexorian's Avatar


Technical Director
 
Join Date: Apr 2003
Posts: 14,905

Submissions (37)

Vexorian has a reputation beyond repute (1060)Vexorian has a reputation beyond repute (1060)Vexorian has a reputation beyond repute (1060)Vexorian has a reputation beyond repute (1060)Vexorian has a reputation beyond repute (1060)Vexorian has a reputation beyond repute (1060)Vexorian has a reputation beyond repute (1060)

Hero Contest #3 - 2nd Place

Default

And it shouldn't.

If you wanted validation use what.foo3
__________________
Zoom (requires log in)Wc3 map optimizer 5.0
Someone should fix .wav sound in this thing.
Zoom (requires log in)JassHelper 0.A.2.A
Turns your simple code into something that is complicated enough to work.
Faster != more useful
Vexorian is offline   Reply With Quote
Old 09-04-2008, 10:12 AM   #1101
Sooda
User
 
Sooda's Avatar
 
Join Date: Apr 2007
Posts: 27

Sooda has little to show at this moment (4)

Default

I got vJASS which crashes World Editor on save, in the very end of save process:
Collapse JASS:
library CreateBug initializer Init
    globals
        private constant integer number = '0000'
        private constant integer number = 0
    endglobals

    private function Init takes nothing return nothing
    endfunction
endlibrary
Try to save map and World Editor will crash in the very end of save process. If 'return' is replaced with 'returns' JASSHelper starts to give error messages again.

PM-d Vexorian about this issue and he told it should not be caused by JASSHelper.

I'm using Jass New Generation Pack 5a.
Sooda is offline   Reply With Quote
Old 09-04-2008, 11:36 AM   #1102
Vexorian
Free Software Terrorist
 
Vexorian's Avatar


Technical Director
 
Join Date: Apr 2003
Posts: 14,905

Submissions (37)

Vexorian has a reputation beyond repute (1060)Vexorian has a reputation beyond repute (1060)Vexorian has a reputation beyond repute (1060)Vexorian has a reputation beyond repute (1060)Vexorian has a reputation beyond repute (1060)Vexorian has a reputation beyond repute (1060)Vexorian has a reputation beyond repute (1060)

Hero Contest #3 - 2nd Place

Default

Quote:
PM-d Vexorian about this issue and he told it should not be caused by JASSHelper.
It isn't, I can compile that just fine with jasshelper, try newgen pack's thread or something.
__________________
Zoom (requires log in)Wc3 map optimizer 5.0
Someone should fix .wav sound in this thing.
Zoom (requires log in)JassHelper 0.A.2.A
Turns your simple code into something that is complicated enough to work.
Faster != more useful
Vexorian is offline   Reply With Quote
Old 09-04-2008, 01:12 PM   #1103
Sooda
User
 
Sooda's Avatar
 
Join Date: Apr 2007
Posts: 27

Sooda has little to show at this moment (4)

Default

You are right, I found out that when I save my map, JassHelper (which should convert vJass to Jass?) puts map's vJass directly into war3map.j.

I compared two maps and found it out, really strange. I have JassHelper enabled and from Grimoire disabled WE Syntax Check.

I will attach map and extracted war3map.j for prove. I think when you open map and save it will save fine. Something wrong with my WE or JNGP.

All worked fine before, I got Win XP Prof with SP3, JNGP 5a and double installation of both RoC and TFT (In Program Files under Warcraft III and Warcraft III 2). One copy is for playing in battle.net and another is for editing maps.

war3map download link from Rapidshare: http://rapidshare.com/files/142568295/war3map.j.html

EDIT:
WE (version 1.21b, 6052) crashes when reaches to 'Generating Map Archive', I unticked all options from both Grimoire and JassHelper, still happens. When I first save Grimoire gives error 'can't find map path' and on second save crashes at 'Generating Map Archive' start.

EDIT: Reinstalling games didn't solve problem. I have RoC downloaded from Blizzard Account and TFT is on original CD, maybe that causes problems, but it worked perfectly fine with such install combo before.

EDIT: Running jasshelper.exe gave error about missing bin\SFmpq.dll, sfmpq.dll was in jasshelper folder, I created bin folder and moved sfmpq.dll into it, changed name to SFmpq.dll and ran jasshelper.exe again, now it gives error "Missing arguments: <commonj> <blizzardj> <mappath>, I can only click OK. Do I have to run jasshelper.exe from cmd line? If yes how?

EDIT: Ah cmd line, I googled how to use it.

EDIT: Good news, I just compiled my map with cmd line!
Used these parameters:
Code:
jasshelper.exe "C:\common.j" "C:\Blizzard.j" "C:\war3map.j" "C:\Archi.w3x"

EDIT: Anyway to fix WE Jasshelper? Or I have to use cmd line from now on?
Attached Files
File Type: w3x Archimonde Returns 03_09_08 ver 1.w3x (282.6 KB, 8 views)

Last edited by Sooda : 09-05-2008 at 04:28 PM.
Sooda is offline   Reply With Quote
Old 09-06-2008, 12:55 AM   #1104
cohadar
master of fugue
 
cohadar's Avatar
 
Join Date: Jun 2007
Posts: 2,453

Submissions (5)

cohadar is a jewel in the rough (246)cohadar is a jewel in the rough (246)cohadar is a jewel in the rough (246)cohadar is a jewel in the rough (246)cohadar is a jewel in the rough (246)

Default

Jasshelper command line not working on windows

not even --about works.
__________________
Omg database crash deleted my signature, as a side effect this immensely improved wc3c.
cohadar is offline   Reply With Quote
Old 09-06-2008, 01:34 AM   #1105
Vexorian
Free Software Terrorist
 
Vexorian's Avatar


Technical Director
 
Join Date: Apr 2003
Posts: 14,905

Submissions (37)

Vexorian has a reputation beyond repute (1060)Vexorian has a reputation beyond repute (1060)Vexorian has a reputation beyond repute (1060)Vexorian has a reputation beyond repute (1060)Vexorian has a reputation beyond repute (1060)Vexorian has a reputation beyond repute (1060)Vexorian has a reputation beyond repute (1060)

Hero Contest #3 - 2nd Place

Default

It would be nonsense, if grimoire can call jasshelper, then jasshelper's command line works...
__________________
Zoom (requires log in)Wc3 map optimizer 5.0
Someone should fix .wav sound in this thing.
Zoom (requires log in)JassHelper 0.A.2.A
Turns your simple code into something that is complicated enough to work.
Faster != more useful
Vexorian is offline   Reply With Quote
Old 09-06-2008, 05:12 PM   #1106
PurplePoot
User


Official Map Reviewer
 
Join Date: Jan 2006
Posts: 363

PurplePoot will become famous soon enough (60)PurplePoot will become famous soon enough (60)PurplePoot will become famous soon enough (60)

Default

In the movableEffect example struct in Operator Overloading, you use effectpath twice, where one should be effectpath=.

Last edited by PurplePoot : 09-06-2008 at 05:12 PM.
PurplePoot is offline   Reply With Quote
Old 09-06-2008, 07:06 PM   #1107
cohadar
master of fugue
 
cohadar's Avatar
 
Join Date: Jun 2007
Posts: 2,453

Submissions (5)

cohadar is a jewel in the rough (246)cohadar is a jewel in the rough (246)cohadar is a jewel in the rough (246)cohadar is a jewel in the rough (246)cohadar is a jewel in the rough (246)

Default

I found out what was the problem.
grimoire expects sfmpq.dll to be in same directory as jasshelper
while jasshelper when used alone expects bin/sfmpq.dll

EDIT:
can you please add command line option for macro preprocessor only.
__________________
Omg database crash deleted my signature, as a side effect this immensely improved wc3c.

Last edited by cohadar : 09-06-2008 at 07:10 PM.
cohadar is offline   Reply With Quote
Old 09-06-2008, 07:14 PM   #1108
Vexorian
Free Software Terrorist
 
Vexorian's Avatar


Technical Director
 
Join Date: Apr 2003
Posts: 14,905

Submissions (37)

Vexorian has a reputation beyond repute (1060)Vexorian has a reputation beyond repute (1060)Vexorian has a reputation beyond repute (1060)Vexorian has a reputation beyond repute (1060)Vexorian has a reputation beyond repute (1060)Vexorian has a reputation beyond repute (1060)Vexorian has a reputation beyond repute (1060)

Hero Contest #3 - 2nd Place

Default

Yes, should add an explanation about sfmpq.dll for command line people.

What kind macro exactly?

Sure you don't want --warcity?
__________________
Zoom (requires log in)Wc3 map optimizer 5.0
Someone should fix .wav sound in this thing.
Zoom (requires log in)JassHelper 0.A.2.A
Turns your simple code into something that is complicated enough to work.
Faster != more useful
Vexorian is offline   Reply With Quote
Old 09-06-2008, 07:41 PM   #1109
cohadar
master of fugue
 
cohadar's Avatar
 
Join Date: Jun 2007
Posts: 2,453

Submissions (5)

cohadar is a jewel in the rough (246)cohadar is a jewel in the rough (246)cohadar is a jewel in the rough (246)cohadar is a jewel in the rough (246)cohadar is a jewel in the rough (246)

Default

--warcity does not evaluate //! runtextmacro

I need to call macro preprocessor only.
__________________
Omg database crash deleted my signature, as a side effect this immensely improved wc3c.
cohadar is offline   Reply With Quote
Old 09-06-2008, 08:30 PM   #1110
Vexorian
Free Software Terrorist
 
Vexorian's Avatar


Technical Director
 
Join Date: Apr 2003
Posts: 14,905

Submissions (37)

Vexorian has a reputation beyond repute (1060)Vexorian has a reputation beyond repute (1060)Vexorian has a reputation beyond repute (1060)Vexorian has a reputation beyond repute (1060)Vexorian has a reputation beyond repute (1060)Vexorian has a reputation beyond repute (1060)Vexorian has a reputation beyond repute (1060)

Hero Contest #3 - 2nd Place

Default

I could make one that does novjass, import and textmacro. Only textmacro would be harder.
__________________
Zoom (requires log in)Wc3 map optimizer 5.0
Someone should fix .wav sound in this thing.
Zoom (requires log in)JassHelper 0.A.2.A
Turns your simple code into something that is complicated enough to work.
Faster != more useful
Vexorian 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:40 AM.


Donate

Affiliates
The Hubb http://bylur.com - Warcraft, StarCraft, Diablo and DotA Blog & Forums The JASS Vault Clan WEnW Campaign Creations Clan CBS GamesModding Flixreel Videos

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