PSA: Multiple forward slashes () prevent script compilation

Post » Thu Jan 17, 2013 5:43 am

;/////////DEBUGfTimeDeltaSec = 25.0;/////////DEBUG

Result:
C:\SteamGamesSSD\skyrim\Data\Scripts\Source\_de_epmonitor_1_6.psc(2609,0): mismatched character '' expecting '/'C:\SteamGamesSSD\skyrim\Data\Scripts\Source\_de_epmonitor_1_6.psc(0,-1): mismatched input '' expecting ENDFUNCTIONNo output generated for _de_epmonitor_1_6.psc, compilation failed.Batch compile of 1 files finished. 0 succeeded, 1 failed.Failed on _de_epmonitor_1_6.pscC:\Program Files (x86)\Notepad++>pausePress any key to continue . . .

Conversely,
;DEBUGfTimeDeltaSec = 25.0;DEBUG

Compiling "_de_epmonitor_1_6"...Starting assembly of _de_epmonitor_1_60 error(s), 0 warning(s)Assembly succeededCompilation succeeded.Batch compile of 1 files finished. 1 succeeded, 0 failed.C:\Program Files (x86)\Notepad++>pause

Boy that was fun to troubleshoot. :wallbash: Just figure I'd broadcast this in case it wasn't common knowledge.
User avatar
Zosia Cetnar
 
Posts: 3476
Joined: Thu Aug 03, 2006 6:35 am

Post » Thu Jan 17, 2013 5:01 am

It's 'cause
;/ Block Comment /;
I'd imagine.

Function DoSomething()	;/ Commented out stuff	across multiple linesEndFunction
Won't compile as 'EndFunction' is commented (though the syntax highlighting here doesn't indicate it) while
Function DoSomething()	;/ Commented out stuff	across multiple lines ;/EndFunction
will 'cause it isn't.
User avatar
kelly thomson
 
Posts: 3380
Joined: Thu Jun 22, 2006 12:18 pm

Post » Thu Jan 17, 2013 3:28 am

Don't nearly all scripting languages from runtime libraries to web code all ignore semi colons? Thought that was common knowledge.
User avatar
adam holden
 
Posts: 3339
Joined: Tue Jun 19, 2007 9:34 pm


Return to V - Skyrim