GMlive 应该很多人都知道吧,可以让 GMS2 实现实时编辑热更新的神插件,好久没用了今晚在用的时候遇到一个小问题,其实之前也遇到过所以很快想起了需要处理一下,这大概是 Mac 独有的问题(Linux 也许也会遇到但我没用过不好说死),记录一下
使用 GMlive 需要启一个 server
服务,在 windows 上这很简单直接双击.exe
文件即可,不过在 mac 和 linux 上需要去到 include 文件对应的 datafiles ➜ GMLive
目录下使用命令行执行
neko gmlive-server.n
但如果直接执行大概率会看到如下错误
Called from Date::int32_to_float line 134
Uncaught exception - load.c(237) : Failed to load library : ./std.ndll (dlopen(./std.ndll, 0x0001): tried: './std.ndll' (not a mach-o file), '/Users/xxx/GameMakerStudio2/testProject/datafiles/GMLive/std.ndll' (not a mach-o file))
以及
Called from EReg::regexp_new_options line 205
Uncaught exception - load.c(237) : Failed to load library : ./regexp.ndll (dlopen(./regexp.ndll, 0x0001): tried: './regexp.ndll' (not a mach-o file), '/Users/xxx/GameMakerStudio2/testProject/datafiles/GMLive/regexp.ndll' (not a mach-o file))
解决方法也简单,直接把目录下的std.ndll
和regexp.ndll
删掉再执行就行了