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启动主程序

冰雪凌风 评论于

这个怎么办:
Error message: Invalid trigger: ailevel Error parsing trigger1, 1
Error parsing [State-3,AI ON] 
Error in [Statedef-3] 
Error in Config.txt
Character needs to be updated.See docs/incompt*.txt. 
Error loading chars/ex-aid/ex-aid.def 
Error loading p1


Library error message:Died parsing ailevel

冰雪凌风 评论于

这个怎么办:
Error message: Invalid trigger: ailevel Error parsing trigger1, 1
Error parsing [State-3,AI ON] 
Error in [Statedef-3] 
Error in Config.txt
Character needs to be updated.See docs/incompt*.txt. 
Error loading chars/ex-aid/ex-aid.def 
Error loading p1


Library error message:Died parsing ailevel

大爱真女神天子 评论于

求大佬告诉这个怎么办
Character mugenversion is older than this version of M.U.G.E.N.
Error loading chars/Gensoukyou-no-koi\Gensoukyou-no-koi.def
Error loading p1

Clipboard tail:
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...OK
Stage loaded OK
  Allocating helpers...OK
Match RNG seed: 379330301
Reset persist vars team 1
Loading character chars/Gensoukyou-no-koi\Gensoukyou-no-koi.def...
  Loading info...Info: Gensoukyou-no-koi loading in pre-1.0 compatible mode
OK
  Loading cmd command set Kazega-Naku.txt...OK
  Loading cns Kazega-Naku.txt...Freeing player RC Gensoukyou-no-koi...CMD...CNS...SFF...AIR...SND...Misc...OK

新手上路 评论于

我只知道第一个装补丁就行了
Error detected.

Can't load Polnareff.sff
Error loading chars/Polnareff/Polnareff.def
Error loading p2

新手上路 评论于

怎么办
Error detected.

Can't load Shizuka.sff
Error loading chars/Shizuka Joestar/Shizuka.def
Error loading p2

Clipboard tail:
  SFF v1.01 palette hack engaged.
  26826 expressions (4197 on trigger lines)
Character Johnny_Joestar.def loaded OK
New char Johnny Joestar loaded into cache: (2/4 cached) Load time: 4410.000ms
Dio Brando (56) missing required sprites:
5002,0, 5000,10, 5002,10, 5001,20, 5002,20, 5010,0, 5011,0, 5012,0 (more)
Johnny Joestar (57) missing required sprites:
5001,0, 5002,0, 5000,10, 5001,10, 5002,10, 5000,20, 5001,20, 5002,20 (more)
Johnny Joestar (57) missing required animation actions:
105
Loading character chars/Shizuka Joestar/Shizuka.def...
  Loading info...OK
  Loading cmd command set Shizuka.cmd...OK
  Loading cns Shizuka.cns...OK
  Loading cns IA.cns...OK
  Loading cns Speciales.cns...OK
  Loading cns Supers.cns...OK
  Loading cmd state entry Shizuka.cmd...OK
  Loading common states common1.cns...OK
  Loading sff Shizuka.sff...Character Shizuka.def failed to load

Jame 评论于

这怎么办啊大大

Error detected.

Can't open config file data/mugen.cfg.
Error reading data/mugen.cfg

Clipboard tail:
---------------------------------------------------
M.U.G.E.N ver 1.1.0 Beta 1 P1 (2013.08.11) status log
---------------------------------------------------
Parsing command line...
Command line: E:\Jump Force Mugen V10\Jump force mugen.exe
Parse command line OK
Initializing...
Allocating game variables
Reading configuration file...

懒汤姆 评论于

这怎么办啊
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: C:\Users\Administrator\AppData\Local\Temp\Rar$EXa8724.48135\mugen1.1\mugen.exe
Parse command line OK
Initializing...
Allocating game variables
Reading configuration file...Setting language "ja".
OK
Initializing timer...performance timer enabled...frequency 2728261...OK
Initializing keyboard...configuring...OK
Initializing input engine...OK
Initializing sound...OK
Initializing BGM...  OK
Initializing graphics...gameCoord 1280x960...render mode 2_20...trying 800x600x32 mode 0x0...failed. 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: C:\Users\Administrator\AppData\Local\Temp\Rar$EXa8724.48135\mugen1.1\mugen.exe
Parse command line OK
Initializing...
Allocating game variables
Reading configuration file...Setting language "ja".
OK
Initializing timer...performance timer enabled...frequency 2728261...OK
Initializing keyboard...configuring...OK
Initializing input engine...OK
Initializing sound...OK
Initializing BGM...  OK
Initializing graphics...gameCoord 1280x960...render mode 2_20...trying 800x600x32 mode 0x0...failed. 

凌道末炎 评论于

Error detected.

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

Clipboard tail:
Initializing character info...OK
Gameflow 3
Gameflow 6
Reset persist vars team 0
Reset persist vars team 1
Gameflow 8
Gameflow 9
Gameflow 10
Gameflow 11
Unloading system background data...sprite data...OK
Loading match assets...
Loading stage...
  Loading BG...OK
Stage loaded OK
  Allocating helpers...OK
Match RNG seed: 1979465045
Reset persist vars team 0
Reset persist vars team 1
Loading character chars/ff3_0/ff3_0.def...
  Loading info...Character ff3_0.def failed to load

这报错原因是什么?

@123456@ 评论于

Error detected.

Invalid format specifier in "%.*d%n%d"
Error parsing [state ¹黹¼üÅ̲Ù×÷Ȩ]
Error in [statedef 18010]
Error in st/Yagami-evil.txt:1392
Character mugenversion is older than this version of M.U.G.E.N.
Error loading chars/Yagevil-Winmugen_ver0.76\Yagami-evil\Yagami-evil.def
Error loading p1

Clipboard tail:
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...OK
Stage loaded OK
  Allocating helpers...OK
Match RNG seed: 1183273755
Reset persist vars team 1
Loading character chars/Yagevil-Winmugen_ver0.76\Yagami-evil\Yagami-evil.def...
  Loading info...Info:  Yagevil  loading in pre-1.0 compatible mode
OK
  Loading cmd command set cmd/Yagami-evil.cmd...OK
  Loading cns st/Yagami-evil.txt...Freeing player RC Yagami-evil...CMD...CNS...SFF...AIR...SND...Misc...OK
Character Yagami-evil.def failed to load
大佬们这个报错怎么解决

海之男儿长谷川 评论于

Error message: Can't open stage: music=1 请问这个怎么办

1075445898 评论于

Error detected.

Can't access [Statedef ë:                  by:Rin                            7F2@]
Error in [Statedef ë:                  by:Rin                            7F2@]
Error in Statedef1.txt:1
Character mugenversion is older than this version of M.U.G.E.N.
Error loading chars/D.Yashiro.Rhythm(Dusk)\D.Yashiro.Rhythm(Dusk).def
Error loading p1

Clipboard tail:
Gameflow 11
Unloading system background data...sprite data...OK
Loading match assets...
Loading stage...
  Loading BG...OK
Stage loaded OK
  Allocating helpers...OK
Match RNG seed: 1282741264
Reset persist vars team 0
Reset persist vars team 1
Loading character chars/D.Yashiro.Rhythm(Dusk)\D.Yashiro.Rhythm(Dusk).def...
  Loading info...Info: D.Yashiro.Rhythm loading in pre-1.0 compatible mode
OK
  Loading cmd command set D.Yashiro.Rhythm.cmd...OK
  Loading cns D.Yashiro.Rhythm.cns...OK
  Loading cns D.Yashiro.Rhythm2.cns...OK
  Loading cns helper.cns...OK
  Loading cns A2.cns...OK
  Loading cns AH.cns...OK
  Loading cns Statedef1.txt...Character D.Yashiro.Rhythm(Dusk).def failed to load
我是个新手,下载了荒大地的人物包选择大地后,就要开打的时候就这样了,哭死,哪位大佬帮忙看看怎么弄,其他人物都正常,一选大地就这样。

asdasdasdsad 评论于

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
Error loading chars/BOSS-302-Zeroko/BOSS-302-Zeroko.def
Error while precaching
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
Error loading chars/BOSS-302-Zeroko/BOSS-302-Zeroko.def
Error while precaching
Can't open stage: stages/GirlsWork.def

Clipboard tail:
Unloading match assets
Freeing players
Game loop init
Versus screen init
Loading character chars/BOSS-302-Zeroko/BOSS-302-Zeroko.def...
  Loading info...Info: Boss Zeroko loading in pre-1.0 compatible mode
OK
  Loading cmd command set Zeroko.cmd...OK
  Loading cns Zeroko.cns...OK
  Loading cns Zeroko-N.cns...OK
  Loading cns Zeroko-H.cns...OK
  Loading cns Zeroko-2.cns...OK
  Loading cns Zeroko-3.cns...OK
  Loading cmd state entry Zeroko.cmd...OK
  Loading common states common1.cns...Character BOSS-302-Zeroko.def failed to load
End of versus screen loop
Game loop deinit
Gameflow 11
Loading match assets...
求大佬,怎么解决

快乐 评论于

会了 人物报错,场景报错已经会了弄啦三天才会的要是你这个教学再简单一点 我早就会了 

Game 评论于

OxO...failed.


求大佬告诉这是什么情况

牛子君 评论于

想知道meed at least 1 command怎么改

AI nasr-I'tair 评论于

Error detected.

Can't open stage: stages/stage0-720.def

Clipboard tail:
Selected char 1 on teamslot 0.0
Char WickedYagami-1.0.def (1) request pal 0 1 (0) -> reserved 0 (0)
Selected char 51 on teamslot 1.0
Char Orochi-EV1.55.def (51) 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...
能帮忙看看吗  大佬

叶xxx子 评论于

Unhandled exception: assertion failed in 32-bit code (0x9efff402).
Register dump:
 CS:0073 SS:007b DS:007b ES:007b FS:0033 GS:003b
 EIP:9efff402 ESP:0033cd40 EBP:0033cf68 EFLAGS:00200206(   - --  I   - -P- )
 EAX:00000000 EBX:00007228 ECX:00007228 EDX:00000006
 ESI:001bd2c0 EDI:9edfc000
Stack dump:
0x0033cd40:  9ec7f827 9edfc000 0033cde4 9ec82c53
0x0033cd50:  00000006 0033cd64 00000000 7bc507b6
0x0033cd60:  00110000 00000020 00000000 00000000
0x0033cd70:  00000000 00000000 00000000 00000000
0x0033cd80:  00000000 00000000 00000000 00000000
0x0033cd90:  00000000 00000000 00000000 00000000
Backtrace:
=>0 0x9efff402 (0x0033cf68)
  1 0x7e21d5f4 (0x0033d048)
0x9efff402: ret
Modules:
Module Address Debug info Name (33 modules)
PE   340000-  353000 Deferred        zlib
PE   400000-  4c5000 Deferred        mugen
PE 10000000-100a4000 Export          alleg40
PE 601c0000-601fb000 Deferred        in_mad
PE 7a820000-7a824000 Deferred        opengl32
PE 7b410000-7b5ad000 Deferred        kernel32
PE 7bc10000-7bc14000 Deferred        ntdll
PE 7c470000-7c474000 Deferred        ws2_32
PE 7c4c0000-7c61d000 Deferred        shell32
PE 7c720000-7c728000 Deferred        shlwapi
PE 7c790000-7c7a8000 Deferred        wininet
PE 7c990000-7c99a000 Deferred        mpr
PE 7cb00000-7cb03000 Deferred        midimap
PE 7ced0000-7ced8000 Deferred        oleaut32
PE 7dd40000-7dd43000 Deferred        msacm32
PE 7dd60000-7dd64000 Deferred        mmdevapi
PE 7dd80000-7dd84000 Deferred        uxtheme
PE 7df70000-7df74000 Deferred        winex11
PE 7dff0000-7dff4000 Deferred        imm32
PE 7e160000-7e164000 Deferred        msvcrt
PE 7e210000-7e214000 Deferred        dsound
PE 7e250000-7e259000 Deferred        msacm32
PE 7e280000-7e2f7000 Deferred        winmm
PE 7e340000-7e344000 Deferred        wined3d
PE 7e490000-7e494000 Deferred        ddraw
PE 7e510000-7e53f000 Deferred        comctl32
PE 7e640000-7e64b000 Deferred        dinput
PE 7e690000-7e694000 Deferred        rpcrt4
PE 7e720000-7e728000 Deferred        ole32
PE 7e870000-7e874000 Deferred        version
PE 7e890000-7e894000 Deferred        advapi32
PE 7e910000-7e917000 Deferred        gdi32
PE 7ea50000-7ea8b000 Deferred        user32
Threads:
process  tid      prio (all id:s are in hex)
00000008 explorer.exe
0000002c    0
0000002b    0
00000028    0
00000027    0
00000009    0
0000000e services.exe
00000020    0
00000018    0
00000013    0
00000010    0
0000000f    0
00000011 winedevice.exe
00000017    0
00000016    0
00000012    0
0000001b plugplay.exe
00000022    0
00000021    0
0000001c    0
00000029 exec_wrapper.exe
0000002a    0
0000002d TFM.exe
0000002f    0
0000002e    0
00000030 (D) D:\win��\mugen.exe
0000003d    0
00000038   15
00000037    0
00000036    0
00000035    0
00000034    1
00000033   15
00000032    0
00000031    0 <==
System information:
    Wine build: wine-3.0-eltechs
    Platform: i386
    Version: Windows XP
    Host system: Linux
    Host version: 4.14.116
大佬,这个怎么解决?

Qx001 评论于

can only have max of 512 controllers。
大师,求解...

斯凯 评论于
音梦兰凌

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

@音梦兰凌 sff文件必须用ff工具改,另外报错一般不会是sff文件本身问题

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