Mugen主程序报错汇总

加载初始场景报错

blob.png

报错关键字:dojo.def 或 stage0.def

原因:程序以debug模式运行且调用了debug场景

解决方法:1、在mugen.cfg文件内找到[Debug]下的StartStage =,将场景改为一个存在的场景def文件名。2、或者将一个场景的def文件名改为报错时提示的场景名


人物版本过老

blob.png

报错关键字:Character mugenversion is older than this version of M.U.G.E.N.

原因:1、人物代码中使用了win版的代码,但使用了1.0或1.1以上的主程序运行。2、代码格式错误

解决方法:1、换个高版本的主程序。2、根据图中报错的详细信息,将人物代码修正,但前提是你懂代码。


SFF文件过大

blob.png

报错关键字:Can't load xxxxx.sff

某个角色对应的sff文件无法载入

原因:角色sff文件过大。程序读取过多大容量人物会导致内存过大,从而无法运行。详细见https://qxmugen.com/article/13138.html

解决方法:1、使用该人物之前重新启动主程序。2、将sff文件中的图片替换为小尺寸的图。3、下载并运行人物占用内存过大崩溃补丁,下载地址https://qxmugen.com/tools/10027


场景载入错误

image.png

报错关键字:BG error reading

原因:该战斗场景的def文件中,指定sff的路径用的是“/”,这会导致一些电脑载入该场景时报错。

解决方法:去场景文件夹里打开该场景的def文件,将指定sff的路径中所有的“/”改为“\”


凶恶代码版本不兼容

image.png

报错关键字:Invalid format specifier in "%n"

原因:人物代码中含%n、%f的都是作者利用win版主程序的漏洞而写的凶恶向代码,使人物拥有非常规的能力,1.0和1.1主程序修复了这个漏洞,因此这类人物不能在win版以上的主程序运行。

解决方法:使用win版程序运行该人物


非法控制器

blob.png

关键语句:not a valid elem type

表示所使用的控制器名称不对——"playsn"应改为"playsnd"


招式指令过多

blob.png

关键语句:Player has too many commands. Only 128 unique commands labels allowed.

表示角色在cmd中的招式指令超过了128个,128为一个角色的上限数量


数据类型错误

blob.png

关键语句:Type mismatch detected

表示使用了该字段不支持的类型,例如给整型变量赋予浮点值


系统文件读取错误

blob.png

报错关键字:Error loading system data

图中为读取data/mugen1下的system.def文件出错,出错原因是上一行的system.sff无法读取

原因:1、system.def中指向的system.sff文件不存在。2、system.sff文件的版本太高,但当前运行的主程序是老版(通常是win版)


特殊的错误信息

WinMugen代码中1行最多256个字符,超过这个上限的字符会被忽视或导致主程序报错

RCMugen(mugen1.0和mugen1.1)中这个限制被解除。


一个StateDef读取超过了2500次

blob.png

报错关键字:State machine stuck in loop (stopped after [StateNo] for [name])
Check your states for infinite ChangeState loops.

例图:statedef 200在循环读取2500次后停住了,请检查是否有ChangeState无限循环


某个StateDef的控制器超过了512个

blob.png

报错关键字:state [StateNo] can only have max of 512 controllers

Statedef 200最多只能拥有512个控制器,即最多只能写512个 type = ×××


异常表达式

blob.png

报错关键字:Player [name] ([PlayerID]) in state [StateNo]: malformed expression

与数据类型错误类似,不同点在于是出现在:=赋值中,亦或是计算中的数据类型错误

例1——var(20):=1.2——给整型变量赋予浮点数报错

例2——gamewidth%320——gamewidth默认为浮点数,直接参与取余运算报错


Assert failure簡易一覧

エラーメッセージ原因
Assert failure in array line 100animelemtime(0) >= 0 使用
Assert failure in array line 110指定了不存在的动画号码
Assert failure in spr-lib.c line 437詳細不明
Assert failure in array.c line 437[lunaの倉庫]
Assert failure in array.c line 437[虹格な海底宝物庫]
Assert failure in array.c line 437続き[lunaの倉庫]
Assert failure in spr-lib.c line 516詳細不明
Assert failure in spr-lib.c line 560

assert failure in spr-lib.c line 560の正体[lunaの倉庫]

win版特有bug,貌似和跟暂停和helper啥的有关系

Assert failure in spr-lib.c line 601詳細不明
Assert failure in charsel.c line 3162

在mugen.cfg设置了AI.RandomColor = 1

但角色的def中没有写上Pal.Defaults

这个错误一般出现在街机模式(arcades)和生存模式(survival)


主程序死机


同时取得多个target后的重定向使用死机(TargetFacing、TargetDrop除外)

方案1:target重定向值使用特定的变量存储

方案2:trigger中写上NumTarget = 1的条件,当同时取得多个target时不运行

方案3:当同时取得多个target时使用TargetDrop丢弃其余目标,保存特定目标


helper自毁后,helper或Explod导致的死机。

原因:DestroySelf实行后,写在它之后的代码也继续实行。

方案1:尽量将DestroySelf写在一个状态组StateDef的最下面。

方案2:DestroySelf以后的代码使用PlayerIDExist(ID)或其他重定向的条件来区分运行的对象。


使用HitDef的snap参数时,Shift + F4重新载入对战时死机。

方案:不推荐使用该参数,建议使用TargetBind


[StateDef 52] [StateDef 140]等样式的2500循环的死机。

自動ステート移動(読み込み)の条件読み込み先StateDefESC
F12
ループ中の
PrevStateNo
timeが
リセット
Physics = A && Pos y >= 0 && Vel y >= 052無効52
StateNo = 140 && StateType = S,C,A &&
経過Time >= 「その時点でのAnimの総表示時間」以上
StateTypeに応じて0,11,51有効140される
StateNo = 140 && StateType=L &&
経過Time >= 「その時点でのAnimの総表示時間」以上
140無効140に来る前の
StateNo
されない

方案1:角色物理状态为空中(Physics = A)且竖直位置在地面及以下(pos y >= 0)且下落速度大于等于零(vel y >= 0)满足的时候,转入[statedef 52]

方案2:先从读取140移动时的StateType决定的,为站立S转入[statedef 0],为下蹲C转入[statedef 11],为空中A转入[statedef 51],条件中还要写上time>=当时显示的anim时间及以上

方案3:与方案2比较相似,不同点在于上一个状态号不为140


评论区部分报错解答


Library error message: Died parsing ifelse(Stagevar(Info.name)!="Boss",1,7) 

Error detected. 

Trigger not valid for mugenversion of character: Stagevar 
Error parsing PlaySnd 
Error parsing [State 5000, PlaySnd] 
Error in [Statedef 5105] 

Error in data/common1.cns:1538 

方案:将【官方】主程序data中的common1.cns文件复制粘贴进人物包中


OxO...failed. 

方案:打开mugen.cfg,改变渲染模式RenderMode,不使用OpenGL


Error detected.

Can't access [Info]
Error loading chars/ff3_0/ff3_0.def

Error loading p1

方案:勿使用FF3启动主程序

音梦兰凌 评论于

场景报错,在文件里改stage的sff文件,,怎么改啊,,我用记事本打开的,都是乱码啊,我就直接用替换把/都改成了\结果现在依旧进不去啊,

一只黑圆儿 评论于
歪比巴卜

Error message: Can't open config file data/mugen.cfg.
Error reading data/mugen.cfg
怎么修复求大佬解答  搞了一天还是出问题

@歪比巴卜 mugen.cfg文件有问题

黑暗天魔 评论于

Error message: Can't create projectile array
 Can't create helper characters

xwcwjh 评论于

没说明白怎么修复啊

3267731784 评论于

我的进不去,下载了千寻整合包,解压不了

xuexmxj 评论于

Giant_D!这个人物在1.0可以运行,但放到1.1就报错,这是怎么回事?
Error detected.

Not a valid elem type: tagout
Error parsing [state ]
Error in [statedef -3]
Error in Cns/ai.cns:9
Error loading chars/Giant_D!/Giant_D!.def
Error loading p1
求大佬解决

銀狐 评论于

Error detected.

State 330330 can only have max of 512 controllers

Clipboard tail:
132651: Warning: Player RSP (56) in state 300: has no root
132651: Warning: Player Toki Hakurei (712) in state 610: has no helper 6040
132652: Warning: Player RSP (56) in state 300: has no root
132652: Warning: Player RSP (56) in state 300: has no root
132652: Warning: Player RSP (56) in state 300: has no root
132652: Warning: Player Toki Hakurei (712) in state 610: has no helper 6040
132653: Warning: Player RSP (56) in state 300: has no root
132653: Warning: Player RSP (56) in state 300: has no root
132653: Warning: Player RSP (56) in state 300: has no root
132653: Warning: Player Toki Hakurei (712) in state 610: has no helper 6040
132654: Warning: Player RSP (56) in state 300: has no root
132654: Warning: Player RSP (56) in state 300: has no root
132654: Warning: Player RSP (56) in state 300: has no root
132654: Warning: Player Toki Hakurei (712) in state 610: has no helper 6040
132655: Warning: Player RSP (56) in state 300: has no root
132655: Warning: Player RSP (56) in state 300: has no root
132655: Warning: Player RSP (56) in state 300: has no root
132656: Warning: Player RSP (56) in state 300: has no root
132656: Warning: Player RSP (56) in state 300: has no root
132656: Warning: Player RSP (56) in state 300: has no root
??????

吃饱了撑的 评论于

Error detected.

Cannot find parameter: nameBG error reading stages\Fading SNights x 54thAve\Fading SNights x 54thAve\Fading Summer Night.def

Clipboard tail:
Selected char 0 on teamslot 0.0
Char Orochi Iori-WF XIII BETA-KOFM.def (0) request pal 0 1 (1) -> reserved 0 (0)
Selected char 12 on teamslot 1.0
Char Kyo-213.def (12) request pal 0 FFF (FFF) -> reserved 0 (FFE)
End of charsel loop
Game loop deinit
Gameflow 8
Gameflow 9
Gameflow 10
Entering versus screen.
Unloading match assets
Freeing players
Game loop init
Versus screen init
End of versus screen loop
Game loop deinit
Gameflow 11
Unloading system background data...sprite data...OK
Loading match assets...
Loading stage...
  Loading BG...
怎么回事,求大佬解答

MAID 评论于

界面正常加载,但选择模式就闪退

asdvsdsdfsdv 评论于

Error loading chars/Orochi-EV1.55 stronger by Lian\Orochi-EV1.55 by Lian.def
Error loading p1

Clipboard tail:
Info: stage % loading in pre-1.0 compatible mode
  Loading BG...OK
Stage loaded OK
  Allocating helpers...OK
Match RNG seed: 1711654418
Reset persist vars team 0
Reset persist vars team 1
Player MARS PEOPLE purged from cache: 4
Freeing player RC MARS PEOPLE...CMD...CNS...SFF...AIR...SND...Misc...OK
Loading character chars/Orochi-EV1.55 stronger by Lian\Orochi-EV1.55 by Lian.def...
  Loading info...Info: Orochi-EV loading in pre-1.0 compatible mode
OK
  Loading cmd command set Orochi-EV.cmd...OK
  Loading cns Orochi-EV.cns...OK
  Loading cns States/Orochi-EV-Override.cns...OK
  Loading cns States/Orochi-EV-N.cns...OK
  Loading cns States/Orochi-EV-S.cns...OK
  Loading cns States/Orochi-EV-H.cns...OK
  Loading cns States/Orochi-EV-Helpers.cns...OK
  Loading cns States/Orochi-EV-2.cns...Character Orochi-EV1.55 by Lian.def failed to load
这怎么解决?

ml 022565 评论于

M.V.G.L.1Error x[Errordetected.Clipboardtail:M.U.GENver1.1.0Beta1P1(2013.08.11)sta tus logParsing commandline...Commandline:D:\MUGENBatteClimax\mugen.exeParsecommand lineOKInibalizing...Allocatinggame variablesReading configuratonfile..Settinglanguage”en".OKInitalizingtmer..performancetimerenabled...requency100000..KInitializingkeyboard..configuring..OKInitializinginoutengine..OKInibalizingsound...OKInitializinoBGM..OKInitializinggraphics..gameCoord1280x720..rendermode2_20...rying12OK
这怎么办?

星之白 评论于

Error message:Can't create projectile array.
Can't create helper characters

Library error massage:Died parsing command!="holds"

萌新刚接触求大佬解答

歪比巴卜 评论于

Error message: Can't open config file data/mugen.cfg.
Error reading data/mugen.cfg
怎么修复求大佬解答  搞了一天还是出问题

zzzzyan 评论于

?

Eror message: State type "null" not valid

Bror in srclT.cns

Character mugenversion is older than this version of M.U.GEN.Eror loading chars WickedYagami/WickedYagami .def

Brror loading p1

Brror in [Sta tedef Yby:C Yagewick

No:8F2@]是什么问题

强袭 评论于

Error detected.

Need at least 1 command
Error in cmd.cns:1
Error loading chars/Reisen_U_Inaba_14.5/Reisen_U_Inaba_14.5.def
Error while precaching
Need at least 1 command
Error in cmd.cns:1
Error loading chars/Reisen_U_Inaba_14.5/Reisen_U_Inaba_14.5.def
Error while precaching
Need at least 1 command
Error in cmd.cns:1
Error loading chars/Reisen_U_Inaba_14.5/Reisen_U_Inaba_14.5.def
Error loading p1

Clipboard tail:
New char Sakuya loaded into cache: (1/4 cached) Load time: 1960.000ms
Loading character chars/Reisen_U_Inaba_14.5/Reisen_U_Inaba_14.5.def...
  Loading info...Info: Reisen U Inaba loading in pre-1.0 compatible mode
OK
  Loading cmd command set cmd.cns...Character Reisen_U_Inaba_14.5.def failed to load
Player Sakuya cache count reduced: 0
Gameflow 11
Unloading system background data...sprite data...OK
Loading match assets...
Loading stage...
Info: stage Juuban High School loading in pre-1.0 compatible mode
  Loading BG...OK
Stage loaded OK
  Allocating helpers...OK
Match RNG seed: 738131398
Reset persist vars team 1
Loading character chars/Reisen_U_Inaba_14.5/Reisen_U_Inaba_14.5.def...
  Loading info...Info: Reisen U Inaba loading in pre-1.0 compatible mode
OK
  Loading cmd command set cmd.cns...Character Reisen_U_Inaba_14.5.def failed to load
这个怎么搞

omegazeroLOL 评论于

Error message:Can't open file:Original
Error loading chars/original zero/original zero.def
Error loading p2
大佬这咋整

18GGGG 评论于

Error message: 
BG error reading stages\18H\TK3_NYC_UNLEASHED.def

Library error message: Error reading sprite stages/TK3_NYC_UNLEASHED.sff
这个是什么意思啊,看不懂

孟子 评论于

Error detected.


Clipboard tail:
---------------------------------------------------
M.U.G.E.N ver 1.1.0 Beta 1 P1 (2013.08.11) status log
---------------------------------------------------
Parsing command line...
Command line: F:\Ð޸ÄMUGEN\mugen.exe
Parse command line OK
Initializing...
Allocating game variables
Reading configuration file...Setting language "en".
OK
Initializing timer...performance timer enabled...frequency 2338378...OK
Initializing keyboard...configuring...OK
Initializing input engine...OK
Initializing sound...OK
Initializing BGM...  OK
Initializing graphics...gameCoord 1280x720...render mode 2_20...trying 1280x720x32 mode 0x0...failed. 
大家,这个怎么办

csxpgege 评论于

关于报错信息【Trigger not valid for mugenversion of character: Stagevar】
由于报错人物包def文件设置人物版本为win版本,且该人物文件夹里无common1.cns文件,
那么会自动使用主程序data文件夹里的文件common1.cns,
但是该文件内含1.0/1.1版本人物才可以使用的stagevar触发器导致不兼容而报错。

【解决方法】
从win版本的MUGEN主程序data文件夹里复制common1.cns到你那个出错人物的文件夹里。
winmugen主程序下载https://qxmugen.com/tools/10002

斯凯 评论于
布洛尼亚

@csxpgege 大佬 我stages文件夹什么都没有怎么办

@布洛尼亚 那就去加场景吧,没场景跑不起来的

根据相关规定,发布评论前必须绑定手机前往绑定
你,确定要这么做吗?
正在处理中...