Pardon my intrusion... but i need .jfile/cp help

General talk about editing, cheating, and deprotecting maps.

Moderator: Cheaters

User avatar
IntensityRising
Junior Member
Posts: 31
Joined: July 31st, 2007, 6:04 am
Title: Monkey
Location: Canada

Pardon my intrusion... but i need .jfile/cp help

Post by IntensityRising »

Ummm hello, I tried inserting a JJ'sCP2197 into a map, and all went well, i placed everything into the correct positions, however when i tried hosting it, it said that the game could not be found. When i did a syntax check on the .j file it appeared as such

Code: Select all

Line 2025: syntax error
Line 2025: Statement outside of function
Line 2025: Statement outside of function
Line 2025: Statement outside of function
Line 2025: Statement outside of function
Line 2025: Statement outside of function
Line 2025: Statement outside of function
Line 2025: Statement outside of function
Line 2025: Statement outside of function
Line 7451: Undeclared function UnitAlive
Line 7468: Undeclared function UnitAlive
Line 7485: Undeclared function UnitAlive
Line 7502: Undeclared function UnitAlive
Line 7534: Undeclared function UnitAlive
The lines facing issues are as follows:
Line 2025

Code: Select all

native UnitAlive takes unit id returns boolean
Line 7451

Code: Select all

if UnitAlive(s__Status_updateUnit)then
Line 7468

Code: Select all

if UnitAlive(s__Status_updateUnit)then
Line 7485

Code: Select all

if UnitAlive(s__Status_updateUnit)then
Line 7502

Code: Select all

if UnitAlive(s__Status_updateUnit)then
Line 7534

Code: Select all

if UnitAlive(s__Status_updateUnit)and s__Status_disableLevel[this]<=0 and s__Status_stunLevel[this]<=0 and s__Status_pauseLevel[this]<=0 and s__Status_immoboliseLevel[this]<=0 and GetUnitMoveSpeed(s__Status_updateUnit)>0 then
User avatar
haxorico
Super Moderator
Posts: 3191
Joined: February 24th, 2009, 1:31 pm
Location: JEW LAND

Re: Pardon my intrusion... but i need .jfile/cp help

Post by haxorico »

1) are you sure your using the updated version of JJ's CP?
2) before cheating the map. does it have those errors?
3) are you sure there are no more errors?
Image
Spoiler:
(02:24:09)

Code: Select all

ChatBot: FatherSpace logs into the Chat.
(02:24:28) Lanaya: Gtfo ken.
(02:24:33) ChatBot: FatherSpace logs out of the Chat.
(02:24:40) Lanaya: Thought so. bitch.
(02:24:44) ChatBot: FatherSpace logs into the Chat.
(02:24:48) FatherSpace: Can I come back yet?
(02:24:51) Lanaya: What'd i say earlier.
(02:24:51) Lanaya: No.
(02:24:58) FatherSpace: Let's try this...
(02:25:01) ChatBot: Lanaya has been logged out (Kicked).

Code: Select all


(14:33:51) 2Pac: Do you know what'S so funny?
(14:34:01) Lanaya: No, please show me.
(14:34:07) 2Pac: This.
(14:34:09) ChatBot: Lanaya has been logged out (Kicked).
(14:34:10) 2Pac: 

Code: Select all

(14:35:59) haxorico: No one will belive me if I say "I got this song from 2pac on MSN" lolz ^^
(14:36:02) Lanaya: lolz.
(14:36:16) 2Pac: I AIN'T DEAD FFS.
(14:36:26) 2Pac: I'm a living legend, y'now.
(14:37:17) haxorico: why is 2Pac a legend?
(14:37:28) Lanaya: He's the worse rapper evar.

Code: Select all

(15:42:51) Lanaya: can i suck , . . .

Code: Select all

(13:55:21) ChatBot: 2Pac rolls 1d100 and gets 1.
(13:55:21) ChatBot: haxorico rolls 1d2 and gets 2.
(13:55:27) haxorico: owned?

Code: Select all

GeorgeMots: xplain what happens in SP. Why cant you save?
dast.-:i need play with 2 players

Code: Select all

(21:53:08) (673237): plzplzplz, im sorry about before.
(21:53:26) FatherSpace: I'm sorry you were born.
(21:53:31) ChatBot: (673237) has been logged out (Kicked).

Code: Select all

(10:08:02) Bartimaeus: you do know run I youtube channel for my favorite music, right?
User avatar
IntensityRising
Junior Member
Posts: 31
Joined: July 31st, 2007, 6:04 am
Title: Monkey
Location: Canada

Re: Pardon my intrusion... but i need .jfile/cp help

Post by IntensityRising »

Uhhhh the version im using is from FatherSpace's topic, it didnt have those errors prior to the insertion, and no not that i'm aware of
User avatar
haxorico
Super Moderator
Posts: 3191
Joined: February 24th, 2009, 1:31 pm
Location: JEW LAND

Re: Pardon my intrusion... but i need .jfile/cp help

Post by haxorico »

upload the war3map.j please. Ill have a look.
Image
Spoiler:
(02:24:09)

Code: Select all

ChatBot: FatherSpace logs into the Chat.
(02:24:28) Lanaya: Gtfo ken.
(02:24:33) ChatBot: FatherSpace logs out of the Chat.
(02:24:40) Lanaya: Thought so. bitch.
(02:24:44) ChatBot: FatherSpace logs into the Chat.
(02:24:48) FatherSpace: Can I come back yet?
(02:24:51) Lanaya: What'd i say earlier.
(02:24:51) Lanaya: No.
(02:24:58) FatherSpace: Let's try this...
(02:25:01) ChatBot: Lanaya has been logged out (Kicked).

Code: Select all


(14:33:51) 2Pac: Do you know what'S so funny?
(14:34:01) Lanaya: No, please show me.
(14:34:07) 2Pac: This.
(14:34:09) ChatBot: Lanaya has been logged out (Kicked).
(14:34:10) 2Pac: 

Code: Select all

(14:35:59) haxorico: No one will belive me if I say "I got this song from 2pac on MSN" lolz ^^
(14:36:02) Lanaya: lolz.
(14:36:16) 2Pac: I AIN'T DEAD FFS.
(14:36:26) 2Pac: I'm a living legend, y'now.
(14:37:17) haxorico: why is 2Pac a legend?
(14:37:28) Lanaya: He's the worse rapper evar.

Code: Select all

(15:42:51) Lanaya: can i suck , . . .

Code: Select all

(13:55:21) ChatBot: 2Pac rolls 1d100 and gets 1.
(13:55:21) ChatBot: haxorico rolls 1d2 and gets 2.
(13:55:27) haxorico: owned?

Code: Select all

GeorgeMots: xplain what happens in SP. Why cant you save?
dast.-:i need play with 2 players

Code: Select all

(21:53:08) (673237): plzplzplz, im sorry about before.
(21:53:26) FatherSpace: I'm sorry you were born.
(21:53:31) ChatBot: (673237) has been logged out (Kicked).

Code: Select all

(10:08:02) Bartimaeus: you do know run I youtube channel for my favorite music, right?
User avatar
Senethior459
Forum Staff
Posts: 2619
Joined: June 2nd, 2007, 6:53 pm
Title: I Just Lost the Game

Re: Pardon my intrusion... but i need .jfile/cp help

Post by Senethior459 »

Maybe I'm way off base, but I don't think you need to look at the war3map.j, haxorico. IntensityRising, change "native" at the beginning of line 2025 to "function". The rest of the problems are because UnitAlive didn't exist to WC3 as it was not declared properly, and the first error is because Jass doesn't allow you to make native functions; you just make a function and you can call it. Native is unnecessary.
My Warcraft III Tool Collection
If you want to chat/game with me:
Blizzard: Senethior459#1962
Discord: Kyle#7409
Steam: Spacekidkyle
User avatar
haxorico
Super Moderator
Posts: 3191
Joined: February 24th, 2009, 1:31 pm
Location: JEW LAND

Re: Pardon my intrusion... but i need .jfile/cp help

Post by haxorico »

problem was solved at PM :D forgot to mention that.
Thanks for the tip about native Sene.
Image
Spoiler:
(02:24:09)

Code: Select all

ChatBot: FatherSpace logs into the Chat.
(02:24:28) Lanaya: Gtfo ken.
(02:24:33) ChatBot: FatherSpace logs out of the Chat.
(02:24:40) Lanaya: Thought so. bitch.
(02:24:44) ChatBot: FatherSpace logs into the Chat.
(02:24:48) FatherSpace: Can I come back yet?
(02:24:51) Lanaya: What'd i say earlier.
(02:24:51) Lanaya: No.
(02:24:58) FatherSpace: Let's try this...
(02:25:01) ChatBot: Lanaya has been logged out (Kicked).

Code: Select all


(14:33:51) 2Pac: Do you know what'S so funny?
(14:34:01) Lanaya: No, please show me.
(14:34:07) 2Pac: This.
(14:34:09) ChatBot: Lanaya has been logged out (Kicked).
(14:34:10) 2Pac: 

Code: Select all

(14:35:59) haxorico: No one will belive me if I say "I got this song from 2pac on MSN" lolz ^^
(14:36:02) Lanaya: lolz.
(14:36:16) 2Pac: I AIN'T DEAD FFS.
(14:36:26) 2Pac: I'm a living legend, y'now.
(14:37:17) haxorico: why is 2Pac a legend?
(14:37:28) Lanaya: He's the worse rapper evar.

Code: Select all

(15:42:51) Lanaya: can i suck , . . .

Code: Select all

(13:55:21) ChatBot: 2Pac rolls 1d100 and gets 1.
(13:55:21) ChatBot: haxorico rolls 1d2 and gets 2.
(13:55:27) haxorico: owned?

Code: Select all

GeorgeMots: xplain what happens in SP. Why cant you save?
dast.-:i need play with 2 players

Code: Select all

(21:53:08) (673237): plzplzplz, im sorry about before.
(21:53:26) FatherSpace: I'm sorry you were born.
(21:53:31) ChatBot: (673237) has been logged out (Kicked).

Code: Select all

(10:08:02) Bartimaeus: you do know run I youtube channel for my favorite music, right?
User avatar
IntensityRising
Junior Member
Posts: 31
Joined: July 31st, 2007, 6:04 am
Title: Monkey
Location: Canada

Re: Pardon my intrusion... but i need .jfile/cp help

Post by IntensityRising »

Okay... so the native should've been a function... and if that native were a function the other lines would not have conflictions?

Hmmm... okay... Thank you Senethior and Haxorico for your help.
User avatar
Senethior459
Forum Staff
Posts: 2619
Joined: June 2nd, 2007, 6:53 pm
Title: I Just Lost the Game

Re: Pardon my intrusion... but i need .jfile/cp help

Post by Senethior459 »

Yep. If you change native to function, the rest of them will work, since they were trying to reference a function that wasn't properly declared.
My Warcraft III Tool Collection
If you want to chat/game with me:
Blizzard: Senethior459#1962
Discord: Kyle#7409
Steam: Spacekidkyle