Editors Depot - Mission Editing and Scripting > OFP - Editing/Scripting General

SQF debugging

(1/1)

SoldierEPilot:
Scripters of OFPEC, how do you think, what the OFP debugger
wants to tell me with these strange symbols in the start of error message ???

h-:
Ah, the awesome one-liner error printout..  :clap:

Have you checked the script file isn't .rtf (or any other non-txt file)?

Also, if you're running CWA it has it's own .rpt file so that might show the full error message (non-steam installed version has it in it's root folder)..

Wiineri:
Well, I think that the error message seems to imply that there are unknown characters in the beginning of the file. Could you upload the whole sqf-file? Without seeing the file itself, it's hard to figure out what's wrong with it.

SoldierEPilot:

--- Quote ---unknown characters in the beginning of the file
--- End quote ---

@Wiineri, @h-, thx 4 ideas and fast response.
I thought that can be the reason of such a start sequence in file,
checked encoding and (yesss!) it was UTF-8 encoding feature.
I just decoded source file  into ANSI, now all works just fine.

P.S. Source file is not worth to see - fat, indigestible, spaghetti-code :D

Wiineri:
You're welcome.


--- Quote ---Source file is not worth to see
--- End quote ---

Yeah, not necessary to see it now that the problem is solved. But it usually is a lot easier to find the problem, when one is able to actually run the code.

Navigation

[0] Message Index

Go to full version