HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Odd Error when trying to save my map

03-16-2005, 11:39 AM#1
Guest
Ok I've been working on my map for quite a while now. It has worked fine and I've only been balancing damage/life as well as adding a few new units. I didn't touch any of the triggers.

One day I get an error as I try to save it o_O ... it shows me:
"\war3map.j
1 compile error"

"Line 2429: Expected end of line"










below is the code that they give me
#### Line 2429 ### is what i put in to signify which line is 2429




" call CameraSetupSetDestPosition( gg_cam_5, -1335.1, 1069.0, 0.0 )

endfunction

//***************************************************************************
//*
//* Custom Script Code
//*
//***************************************************************************

#### Line 2429 ###
r
//***************************************************************************
//*
//* Triggers
//*
//***************************************************************************
"





I thought that I might of had to open the damn thing with MPQ viewer->text editor and delete the r.

Maybe something screwed up, and a little "r" got lost somewhere and it can't compile. When I try to resave I get different letters. Sometimes i'll get a "e. |r"

I find that the map does infact save... it just wont run in Warcraft.

I resort to deProtecting my own map and it works now ^_^ , but I'd like to know what happened to cause this error. I did a search on google and came up with nothing. :\
03-17-2005, 01:19 AM#2
johnfn
Looks like somehow a letter got in there. I cant really explain it, I am assuming that it is a bug in WE and probably is something you'll never experiance again. Very odd indeed.

The deprotection was a pretty good idea.

Well, I've never seen anything like it, and never heard of anything like it either, so its probably just an isolated incident.
01-01-2006, 05:41 PM#3
super_pole
Sorry to revive this thread, but I'm getting this same exact error and I don't know how it happened or how to fix it. I'll mess around with map protection and such but so far everything I have done hasn't worked.

1 Compile error
Line 1565:Expected End of line

//***************************************************************************
//*
//* Custom Script Code
//*
//***************************************************************************




(**This is line 1565** That means endfuction should be right here?)
onus
//***************************************************************************
//*
//* Triggers
//*
//***************************************************************************


And I have tried restarting weu and resaving and the word(s) change under line 1565.

*Edit: Ok map protection worked for anyone who gets this error.*
01-01-2006, 07:12 PM#4
Vexorian
when you are in trigger editor go to the first part of the tree - the one with the map's name - then make sure the big text box is empty / doesn't have any funny word, like onus