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 05-21-2005, 12:21 AM   #1
PitzerMike
Alcopops
 
PitzerMike's Avatar


Tools & Tutorials Moderator
 
Join Date: Jan 2003
Posts: 2,794

Submissions (12)

PitzerMike is a splendid one to behold (643)PitzerMike is a splendid one to behold (643)PitzerMike is a splendid one to behold (643)PitzerMike is a splendid one to behold (643)

Approved Map: Pitzer's Minesweeper

Default PJASS Updates

Well, as I'm now maintaining pjass, I decided to make the source code available to anyone who is willing to play around with it and maybe improve it. The source is available here.

Also I've compiled a new version recently that fixes a bunch of smaller issues that had been reported. The latest compile will always be available at
http://www.wc3campaigns.net/attachme...4&d=1191925244 (1.0j, latest version)
http://www.wc3campaigns.net/attachme...7&d=1191070580 (1.0i)
http://www.wc3campaigns.net/attachme...0&d=1189730741 (1.0h)
http://www.wc3campaigns.net/tools/weu/pjass_10f.rar
http://www.wc3campaigns.net/tools/weu/pjass_10e.rar
http://www.wc3campaigns.net/tools/weu/pjass_099.rar
http://www.wc3campaigns.net/tools/weu/pjass_098.rar
http://www.wc3campaigns.net/tools/weu/pjass_097.zip
http://www.wc3campaigns.net/tools/weu/pjass_095.zip

If you find a new bug, feel free to report it in this thread, I'll then update pjass asap.
__________________
Zoom (requires log in)

Last edited by PitzerMike : 10-09-2007 at 10:25 AM.
PitzerMike is offline   Reply With Quote
Sponsored Links - Login to hide this ad!
Old 04-03-2006, 06:23 PM   #2
PitzerMike
Alcopops
 
PitzerMike's Avatar


Tools & Tutorials Moderator
 
Join Date: Jan 2003
Posts: 2,794

Submissions (12)

PitzerMike is a splendid one to behold (643)PitzerMike is a splendid one to behold (643)PitzerMike is a splendid one to behold (643)PitzerMike is a splendid one to behold (643)

Approved Map: Pitzer's Minesweeper

Default

I've updated pjass today, tool makers and users make sure you're updating
your pjass version. (download link in the first post)

Update to version 0.97 includes:

* Fixed rules for id integer literals to allow special characters (eg. ' ', '$abc' ...), but only 1 or 4 characters in length are allowed. (reported by karukef)
* Fixed a flaw that allowed array variables to be used without brackets (eg. local integer array arr = 2). (reported by RodOfNOD and Blade.dk)
* Hack-Fixed an error where a constant function defined directly after the globals section would be confused with a native declaration. (known error)
* Smaller file size and added version information

This is the first compressed pjass release.
So please report if it works for all of you without any flaws.
__________________
Zoom (requires log in)
PitzerMike is offline   Reply With Quote
Old 04-03-2006, 06:27 PM   #3
karukef
User
 
Join Date: Jan 2004
Posts: 388

karukef has a spectacular aura about (97)karukef has a spectacular aura about (97)karukef has a spectacular aura about (97)karukef has a spectacular aura about (97)

Default

Excellent work.

Worked flawlessly on my map script as far as I can tell.
karukef is offline   Reply With Quote
Old 04-03-2006, 07:13 PM   #4
Vexorian
Free Software Terrorist
 
Vexorian's Avatar


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

Submissions (37)

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

Hero Contest #3 - 2nd Place

Default

what? you got ftp to work?
__________________
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 04-03-2006, 07:33 PM   #5
Blade.dk
.
 
Blade.dk's Avatar


Respected User
 
Join Date: May 2005
Posts: 1,990

Submissions (15)

Blade.dk is a glorious beacon of light (418)Blade.dk is a glorious beacon of light (418)Blade.dk is a glorious beacon of light (418)Blade.dk is a glorious beacon of light (418)Blade.dk is a glorious beacon of light (418)Blade.dk is a glorious beacon of light (418)

Approved Map: Azeroth's Arcane ArenaSpell session 01 winner

Send a message via MSN to Blade.dk
Default

Yes, FTP started working again today.
__________________
Spell Making Course: Part 1: Making a simple stomp spell.
I wonder if I'll ever finish part 2.
Blade.dk is offline   Reply With Quote
Old 04-03-2006, 10:43 PM   #6
PipeDream
Moderator
 
PipeDream's Avatar


Code Moderator
 
Join Date: Feb 2006
Posts: 1,405

Submissions (6)

PipeDream is a glorious beacon of light (463)PipeDream is a glorious beacon of light (463)PipeDream is a glorious beacon of light (463)PipeDream is a glorious beacon of light (463)

Default

Bison... *shudder*

Thanks for maintaining this tool! gg no re, headaches
PipeDream is offline   Reply With Quote
Old 04-07-2006, 11:10 AM   #7
Blackroot
User
 
Join Date: Apr 2006
Posts: 260

Blackroot will become famous soon enough (40)Blackroot will become famous soon enough (40)

Spell Making Session 14 Winner

Default

Very nice tool, could definantly go with a UI though, as line-by-line only goes so far :P. I was suprised at how accurately this caught my errors, the parser is definantly grade A .

Only one thing, your source is unreadable in notepad -,-. Not sure why, but it comes out as a block of code, almost like notepad just spikes all thoes '\n' characters :P. Well, looks like I'll be using microsoft word to poke around your code :P. (Thanks for realising the source by the way, I always wanted to know how theyse worked)
Blackroot is offline   Reply With Quote
Old 04-18-2006, 07:15 PM   #8
PitzerMike
Alcopops
 
PitzerMike's Avatar


Tools & Tutorials Moderator
 
Join Date: Jan 2003
Posts: 2,794

Submissions (12)

PitzerMike is a splendid one to behold (643)PitzerMike is a splendid one to behold (643)PitzerMike is a splendid one to behold (643)PitzerMike is a splendid one to behold (643)

Approved Map: Pitzer's Minesweeper

Default

Quote:
Originally Posted by Blackroot
Very nice tool, could definantly go with a UI though, as line-by-line only goes so far :P. I was suprised at how accurately this caught my errors, the parser is definantly grade A .

Only one thing, your source is unreadable in notepad -,-. Not sure why, but it comes out as a block of code, almost like notepad just spikes all thoes '\n' characters :P. Well, looks like I'll be using microsoft word to poke around your code :P. (Thanks for realising the source by the way, I always wanted to know how theyse worked)

Well, the missing linebreaks are just the difference between DOS and Windows encoding. If you get a decent text editor like UltraEdit it will automatically display it correctly.
Check out the Notes.txt file that I've added, in cause you want to play with the source code.
__________________
Zoom (requires log in)
PitzerMike is offline   Reply With Quote
Old 06-02-2006, 07:00 AM   #9
PipeDream
Moderator
 
PipeDream's Avatar


Code Moderator
 
Join Date: Feb 2006
Posts: 1,405

Submissions (6)

PipeDream is a glorious beacon of light (463)PipeDream is a glorious beacon of light (463)PipeDream is a glorious beacon of light (463)PipeDream is a glorious beacon of light (463)

Default

Two things in 0.97
PJASS -v reports version 0.93 (downloaded again just to be sure)
Local variables that take the same name as functions is not flagged as an error by PJASS.

Problem code:
Collapse JASS:
function Plus takes integer x, integer y returns integer
    //call BJDebugMsg(I2S(x)+" + "+I2S(y))
    return x + y
endfunction
//<snip>
function AddY takes integer y returns location
    local location Sx = MakePair_RI(S(),XSYM())
    local location Ny = MakePair_RI(N(),y)
    local location arglist = MakePair_OO(Sx,MakePair_OO(Ny,null))
    local location Plus = MakePair_OO(MakePair_RI(N(),ID_PLUS()),null)
    local location L3 = MakePair_OO(Plus,arglist)
    return MakePair_OO(MakePair_RO(C(),L3),null)
endfunction
__________________
PipeDream is offline   Reply With Quote
Old 06-02-2006, 11:26 AM   #10
Blade.dk
.
 
Blade.dk's Avatar


Respected User
 
Join Date: May 2005
Posts: 1,990

Submissions (15)

Blade.dk is a glorious beacon of light (418)Blade.dk is a glorious beacon of light (418)Blade.dk is a glorious beacon of light (418)Blade.dk is a glorious beacon of light (418)Blade.dk is a glorious beacon of light (418)Blade.dk is a glorious beacon of light (418)

Approved Map: Azeroth's Arcane ArenaSpell session 01 winner

Send a message via MSN to Blade.dk
Default

I said this before, but just to annoy you..

Collapse JASS:
local integer i = i + 1

Does not give an error in PJASS.
__________________
Spell Making Course: Part 1: Making a simple stomp spell.
I wonder if I'll ever finish part 2.
Blade.dk is offline   Reply With Quote
Old 06-02-2006, 10:14 PM   #11
PitzerMike
Alcopops
 
PitzerMike's Avatar


Tools & Tutorials Moderator
 
Join Date: Jan 2003
Posts: 2,794

Submissions (12)

PitzerMike is a splendid one to behold (643)PitzerMike is a splendid one to behold (643)PitzerMike is a splendid one to behold (643)PitzerMike is a splendid one to behold (643)

Approved Map: Pitzer's Minesweeper

Default

Fixed, fixed and fixed.
There were serious problems in the symbol lookups.
That was pretty tough but they should now all be gone.

Get version 0.98 via the link in my first post.
__________________
Zoom (requires log in)
PitzerMike is offline   Reply With Quote
Old 06-02-2006, 10:31 PM   #12
shadow1500
STARCRAFT II OMFG
 
shadow1500's Avatar
 
Join Date: Jul 2004
Posts: 1,004

Submissions (9)

shadow1500 is just really nice (306)shadow1500 is just really nice (306)shadow1500 is just really nice (306)

Send a message via ICQ to shadow1500 Send a message via AIM to shadow1500 Send a message via MSN to shadow1500
Default

This is for version 0.98:

Collapse JASS:
function AsciiCharToInteger_sub takes string u returns integer
 local string charMap = " !\"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_`abcdefghijklmnopqrstuvwxyz{|}~"
 local string c
 local integer i = 0
    if (u == "\b") then // Backspace?
        return 8
    elseif u == "\t" then // Horizontal Tab?
        return 9
    elseif u == "\n" then // Newline
        return 10
    elseif u == "\f" then // <<-- PJASS flags as syntax error
        return 12
    elseif u == "\r" then // Carriage return
        return 13
    endif
    loop
        set c = SubString(charMap, i, i + 1)
        exitwhen c == ""
        if c == u then
            return i + 32
        endif
        set i = i + 1
    endloop
 return 0
endfunction
shadow1500 is offline   Reply With Quote
Old 06-02-2006, 10:59 PM   #13
PitzerMike
Alcopops
 
PitzerMike's Avatar


Tools & Tutorials Moderator
 
Join Date: Jan 2003
Posts: 2,794

Submissions (12)

PitzerMike is a splendid one to behold (643)PitzerMike is a splendid one to behold (643)PitzerMike is a splendid one to behold (643)PitzerMike is a splendid one to behold (643)

Approved Map: Pitzer's Minesweeper

Default

Ok, fixed :)
I've not incremented the version number this time, considering 0.98 has only been online for a few minutes.
Whoever got it before this post should redownload it though.
__________________
Zoom (requires log in)
PitzerMike is offline   Reply With Quote
Old 06-04-2006, 02:49 PM   #14
Strategy Master
Great Sage
 
Strategy Master's Avatar


Project Leader: AMAI
 
Join Date: Jun 2003
Posts: 710

Submissions (1)

Strategy Master has a spectacular aura about (77)Strategy Master has a spectacular aura about (77)Strategy Master has a spectacular aura about (77)

Default

Hey

I tried your new version for AMAI and came accross a possible problem.
2 racial scripts brought up a "use of variable before its declaration issue".

Collapse JASS:
function guardBuild takes nothing returns nothing
  local integer cc_guard = 0

    set cc_guard = TownCount(ZIGGURAT_2)
    if cc_guard >= bn_guard then
      set strategy = chosen_strategy
    else
      call BuildUnit( bn_guard, ZIGGURAT_2, 90  )
    endif
endfunction

function cmdBuild takes nothing returns nothing
  if false then
  elseif strategy == 50 then
    call airairBuild()
  elseif strategy == 51 then
    call airgroundBuild()
  elseif strategy == 52 then
    call groundairBuild()
  elseif strategy == 53 then
    call groundgroundBuild()
  elseif strategy == 54 then
    call farmBuild()
  elseif strategy == 55 then
    call guardBuild()
  endif
endfunction

In the human script error occured in the first function for chosen_strategy variable. In undead it was for the strategy variable in cmdBuild.
It had no effect on Orc and Nightelf even though sections are exactly the same. Being the scripts are made generically a problem in one script should also happen in the other.

Unfortunatly it might not be easy to find the problem due to the amount of code we are talking about and the problem may not actually be in these sections highlighted, but just so you are aware there is a problem somewhere.

EDIT: These errors don't occur using the compile/optimize command of AMAI developer and of course the older pjass thats included with it.

Last edited by Strategy Master : 06-04-2006 at 02:54 PM.
Strategy Master is offline   Reply With Quote
Old 06-09-2006, 03:06 AM   #15
PipeDream
Moderator
 
PipeDream's Avatar


Code Moderator
 
Join Date: Feb 2006
Posts: 1,405

Submissions (6)

PipeDream is a glorious beacon of light (463)PipeDream is a glorious beacon of light (463)PipeDream is a glorious beacon of light (463)PipeDream is a glorious beacon of light (463)

Default

.98 minor bug: Variable declaration line numbers are used between files.
I like to stash globals in a header file. If I use a global in the source file with same line number or smaller as its declaration has in the header file, it complains "Use of variable udg_gc_fake_heap before its declaration"
edit:
Still just as minor, but seems to be a little more bizarre- the first use of a global variable must be above the first declared global.
__________________

Last edited by PipeDream : 06-09-2006 at 04:46 AM.
PipeDream 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 07:30 AM.


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

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