我正在研究我的遊戲,當我注意到新版本的OpenFL,石灰(如果我記得正確的)和swf已經發布。我更新了庫,再次打開FlashDevelop,並繼續製作我的遊戲。過了一段時間,我的IDE沒有在Flash上成功編譯,而是在控制檯上打印了這條錯誤消息;Haxe項目不編譯
Running process: C:\Program Files (x86)\FlashDevelop\Tools\fdbuild\fdbuild.exe "C:\Users\Juha\Documents\Haxe Programs\Time4You\Time4You.hxproj" -ipc 1192a496-8b1d-4775-a939-9caf24483487 -version "3.1.3" -compiler "C:\HaxeToolkit\haxe" -library "C:\Program Files (x86)\FlashDevelop\Library" -target "flash"
Building Time4You
Running Pre-Build Command Line...
cmd: "C:\HaxeToolkit\haxe/haxelib" run lime build "project.xml" flash -debug -Dfdb
Called from ? line 1
Called from CommandLineTools.hx line 1359
Called from CommandLineTools.hx line 25
Called from CommandLineTools.hx line 126
Called from CommandLineTools.hx line 579
Called from lime/project/PlatformTarget.hx line 70
Called from lime/tools/platforms/FlashPlatform.hx line 224
Called from lime/tools/helpers/FlashHelper.hx line 816
Called from lime/tools/helpers/FlashHelper.hx line 629
Called from format/swf/Writer.hx line 59
Called from format/swf/Writer.hx line 1255
Called from format/swf/Writer.hx line 1163
Called from format/swf/Writer.hx line 1121
Called from /usr/lib/haxe/std/haxe/io/Output.hx line 168
Uncaught exception - Overflow
Build halted with errors.
任何想法什麼可能會導致這種情況,或者我該如何解決這個問題?
嗨,感謝您的評論。我用'haxelib upgrade'命令更新了這些庫,而且我沒有使用任何引擎。使用-Dlegacy編譯器標誌不幸沒有幫助。我也嘗試將我的庫版本設置爲之前版本,但它也沒有幫助。我的其他項目仍然有一些原因,所以也許我可以創建一個新項目,然後在那裏複製資產和類? – Kalakuh
嗯,它在發佈模式下工作?或者對於其他目標(例如neko) - 認爲它可能與fdb/Java堆大小相關,如http://www.flashdevelop.org/community/viewtopic.php?f=13&t=6006 – Oliver
它適用於HTML5和Neko (我沒有嘗試過其他的),但它在調試或發佈模式下無法使用Flash。 – Kalakuh