Page 1 of 1

[Help] Get error "Cannot load map data." after insert JJCP

Posted: November 7th, 2017, 8:37 am
by lolisrcute
I used tool Ladik's MPQ Editor 32-bit version 3.5.1.832 uses StormLib v 9.21.
ListFiles obtained from their homepage http://zezula.net/en/mpq/download.html
When open MPQ used additional ListFile "Warcraft III Maps.txt", no other additional options selected.

JJCP used from deprotection-cheating-f64/jjcp-1-24b-e-t13526.html

There are 2 war3map.j inside the map, one inside the root and another inside "Scripts", I only added JJCP into the root's war3map.j and left the war3map.j in "Scripts" untouched.

Getting error "Cannot load map data." after inserting JJCP, I don't know what is the next step to take on how to resolve the error, please advice, thank you.
SARO Eng Trans 0.02.w3x


This is the map not inserted JJCP yet and is able to play normally.
SARO Eng Trans 0.02.w3x

Re: [Help] Get error "Cannot load map data." after insert JJ

Posted: November 7th, 2017, 2:07 pm
by devoltz
U probably fucked up with map script, because i didn't found a cheatpack there.

Re: [Help] Get error "Cannot load map data." after insert JJ

Posted: November 7th, 2017, 5:17 pm
by lolisrcute
There are 2 war3map.j inside the map, one inside the root and another inside "Scripts", I only added JJCP into the root's war3map.j and left the war3map.j in "Scripts" untouched.

I will edit my first post to tell there are 2 war3map.j inside the map.

Re: [Help] Get error "Cannot load map data." after insert JJ

Posted: November 7th, 2017, 9:41 pm
by devoltz
lolisrcute wrote:There are 2 war3map.j inside the map, one inside the root and another inside "Scripts", I only added JJCP into the root's war3map.j and left the war3map.j in "Scripts" untouched.

I will edit my first post to tell there are 2 war3map.j inside the map.

So add the cheats to both scripts

Re: [Help] Get error "Cannot load map data." after insert JJ

Posted: November 8th, 2017, 2:59 am
by lolisrcute
Still get error "Cannot load map data." after inserting JJCP into root's war3map.j and "Scripts" war3map.j.

I attached the files below.

SARO Eng Trans 0.02.w3x


War3map.j


war3map.j

Re: [Help] Get error "Cannot load map data." after insert JJ

Posted: November 10th, 2017, 10:25 pm
by devoltz
Deleted one of the script.j and normally inserted the cheated, working fine.

Image

Re: [Help] Get error "Cannot load map data." after insert JJ

Posted: November 11th, 2017, 4:50 am
by lolisrcute
Yes, I don't get any error and CP is working fine in your map version, but I don't understand where my error is, because I only extract war3map.j and inserted JJCP, CP globals below globals, CP endglobals below endglobals and CP function main below function main below last local, can you attach your war3map.j without inserting CP so I can compare with my war3map.j to check if the code in war3map.j was mess up during war3map.j extraction from the map?

Re: [Help] Get error "Cannot load map data." after insert JJ

Posted: November 30th, 2017, 7:33 pm
by lolisrcute
I found out what my mistake was.

Thank you Aero for your guide and to devoltz for the hints.

Re: [Help] Get error "Cannot load map data." after insert JJ

Posted: December 1st, 2017, 4:45 am
by haxorico
devoltz wrote:
lolisrcute wrote:There are 2 war3map.j inside the map, one inside the root and another inside "Scripts", I only added JJCP into the root's war3map.j and left the war3map.j in "Scripts" untouched.

I will edit my first post to tell there are 2 war3map.j inside the map.

So add the cheats to both scripts

IIRC the script at the maid header takes prefrence over the script at the scripts folder.
As in it looks for war3map.j
if it doesn't find it, it will look for scripts\war3map.j.
You can test it by deleting the scripts folder and see how it goes...