The game does not compile if I edit an extension

QkyGames

  • Posts: 125
Hi,

I edit the extension test-native (I changed the name to a function), compile the extension, when I want to use a block, the game does not compile.

Quote
[LOG] Haxe simulator build CONFIG : Release-iphonesim
[LOG] haxe Build.hxml -D simulator -cpp build/Release-iphonesim
[LOG] /Users/user3900/stencylworks/engine-extensions/test-native-two/NativeTest.hx:30: character 10 : Invalid character 0x10
[LOG] make: *** [build-haxe-i386] Error 1
[LOG] Finished building for iOS (or errored out): 1
[LOG] ** BUILD FAILED **
[LOG] The following build commands failed:
[LOG]  ExternalBuildToolExecution Build\ Haxe
[LOG] (1 failure)


mdotedot

  • Posts: 1608
Hello QkyGames,

Changing a function name in the .hx could mean that the accompanied blocks.xml can't find it.

But the error message indicates an invalid character (linefeed)

Invalid character 0x10

So my guess is that you are using an editor that isn't capable of writing correct text format.

Hope this helps.

Best regards from
M.E.

Hanging out in the Chat:  http://www.stencyl.com/chat/

Proud member of the League of Idiotic Stencylers! Doing things in Stencyl that probably shouldn't be done.

QkyGames

  • Posts: 125
hi M.E

my problem is when I edit the cpp, use Xcode and use TextEdit to edit it and I always get the same problem.

regards.
Maxi.

mdotedot

  • Posts: 1608
Hello QkyGames,

You don't edit the cpp, you edit the hx:
NativeTest.hx

Please use another editor then TextEdit since that propably did make the 0x10 character!
(I use vi on Mac and Notepad++ on Windows)

Best regards from
M.E.
Hanging out in the Chat:  http://www.stencyl.com/chat/

Proud member of the League of Idiotic Stencylers! Doing things in Stencyl that probably shouldn't be done.

QkyGames

  • Posts: 125
Hi M.E,

the problem was solved, many thanks, you're the best.
sorry for my English.

Maxi.