首页
学习
活动
专区
圈层
工具
发布
首页
学习
活动
专区
圈层
工具
MCP广场
社区首页 >问答首页 >HaxeFlixel无法编译为HTML5

HaxeFlixel无法编译为HTML5
EN

Stack Overflow用户
提问于 2021-03-27 06:03:59
回答 1查看 373关注 0票数 0

我刚刚完成了我的HaxeFlixel游戏,所以我自然而然地试着编译它。这将是一个HTML5网页游戏,但当我试图编译它时,它出现了这个。

代码语言:javascript
运行
复制
C:/HaxeToolkit/haxe/lib/polymod/git/polymod/format/XMLMerge.hx:189: characters 10-23 : Warning : This typedef is depreca
ted in favor of haxe.xml.Access
C:/HaxeToolkit/haxe/lib/polymod/git/polymod/format/XMLMerge.hx:189: characters 30-43 : Warning : This typedef is depreca
ted in favor of haxe.xml.Access
source/CoolUtil.hx:34: characters 30-34 : Type not found : File
source/DifficultyIcons.hx:38: characters 11-21 : Type not found : FileSystem
source/DifficultyIcons.hx:44: characters 11-21 : Type not found : FileSystem
source/HealthIcon.hx:86: characters 9-19 : Type not found : FileSystem
source/SortState.hx:147: characters 7-11 : Type not found : File
source/SortState.hx:155: characters 7-11 : Type not found : File
source/SortState.hx:167: characters 28-32 : Type not found : File
source/SortState.hx:168: characters 29-33 : Type not found : File
source/SortState.hx:176: characters 8-12 : Type not found : File
source/SortState.hx:177: characters 8-12 : Type not found : File
source/SortState.hx:179: characters 7-11 : Type not found : File
source/FreeplayState.hx:176: characters 9-19 : Type not found : FileSystem
source/ModifierState.hx:12: characters 8-19 : You cannot access the sys package while targeting js (for sys.io.File)
source/FreeplayState.hx:187: characters 4-17 :     referenced here

关于如何解决这个问题有什么建议吗?

EN

回答 1

Stack Overflow用户

发布于 2021-03-27 21:40:57

我假设您正在尝试编译FNF,但这只是基于错误消息的猜测。

关于您的第一个错误,您是否正在使用最新的Haxe版本,因为hxFixel还不支持它,我怀疑polymod正在使用较旧的Fast xml access而不是较新的版本。因此,请确保您安装了支持hxFixel和OpenFL的较早版本的haxe。

https://github.com/larsiusprime/polymod/blob/master/polymod/format/XMLMerge.hx#L189

注意,Polymod被设置为与任何haxe目标一起工作,只要它提供文件系统,而html5不提供文件系统,所以除非您的目标是nodejs (即使是),否则您不能使用sys包代码。你可以在html5中加载文件,但它不允许你做Polymod提供的一些东西,而且在OpenFl/hxFixel中的访问将是不同的。

我的猜测是你可以在没有'mod‘工具的情况下编译FNF,但你可能需要自己更深入地探索代码,它看起来是为haxe c++目标设置的。

如果我的猜测是错误的,我道歉-你真的需要提供更深层次的上下文(链接到一些来源)来获得任何适当的帮助,但也许我的评论是有用的?

票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/66824843

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档