common.j file missing

General talk about editing, cheating, and deprotecting maps.

Moderator: Cheaters

MrEw0k
Member
Posts: 71
Joined: June 18th, 2010, 7:10 pm
Title: W4NN4B3

common.j file missing

Post by MrEw0k »

Everytime I open a war3map.j in JASScraft it says "Did not find the WARCRAFT MPQ FILE! Please put Common.j in this folder too". But I can't find the warcraft MPQ nor the common.j file, sooo, what to do? Since it really bugs my syntax checks out :(.
Kyoshiro
Forum Staff
Posts: 762
Joined: October 27th, 2009, 12:18 pm
Location: Australia, GMT+8

Re: common.j file missing

Post by Kyoshiro »

redownload jasscraft
If you have any questions drop in by chat sometime, chances are there'll be someone who can help you that's afking there, so the next best thing is to click the link on UndeadxAssassin's Sig and ask your question there.
MrEw0k
Member
Posts: 71
Joined: June 18th, 2010, 7:10 pm
Title: W4NN4B3

Re: common.j file missing

Post by MrEw0k »

Didn't help. Trying to download an older version than 1.1.3

UPDATE:
Downloading an older version worked. Simply need to find out what's troubling me with the last 2 lines.

Can you help with that Kyo?

It says:
"Line 6475: Symbol R multiple defined"

Code: Select all

local location l=GetSpellTargetLoc()
^That's line 6475, what "R" isn't defined?

Added war3map.j in case you need to look at that :).
You do not have the required permissions to view the files attached to this post.
naturesfury
Forum Spammer
Posts: 610
Joined: March 30th, 2009, 9:02 pm

Re: common.j file missing

Post by naturesfury »

says its on line 6480 to me
and....

6477 local real y=GetLocationY(l)
6478 local rect r=Rect(x-300,y-300,x+300,y+300)
6479 local group g
6480 local rect r
6481 set BX=1

look at line 6478... already has a rect local defined as r
cant declare it again at line 6480 with same name

sometimes, with those, the error is on the line before/after
just look around it to see whats wrong
MrEw0k
Member
Posts: 71
Joined: June 18th, 2010, 7:10 pm
Title: W4NN4B3

Re: common.j file missing

Post by MrEw0k »

Fixed the thing, thank you natures :).
Also, can you tell me the thing about line 3740? It says "return types not correct or nonexistant returns" but if I try to delete it, it simply states that OMW is undeclared another place.
naturesfury
Forum Spammer
Posts: 610
Joined: March 30th, 2009, 9:02 pm

Re: common.j file missing

Post by naturesfury »

was something in that function before you edited it?
its supposed to have return(something)
if you just delete the function, since it's declared somewhere else, you have another error

just make it return something o.o
(true, false, etc)

ex:

function OMV takes nothing returns boolean
return true
endfunction
MrEw0k
Member
Posts: 71
Joined: June 18th, 2010, 7:10 pm
Title: W4NN4B3

Re: common.j file missing

Post by MrEw0k »

Thanking you deeply :D