YesNoOk
avatar

Sorry, Just Need Some Quick Help With a Character Error (Read 2396 times)

Started by oscarlin814, January 14, 2021, 05:49:57 PM
Share this topic:
Sorry, Just Need Some Quick Help With a Character Error
#1  January 14, 2021, 05:49:57 PM
Hey, new to this forum so I have no idea if this fits here, but I'll toss this in and hope I don't get banned or something lol.
My current MUGEN version is 1.1. I've been trying to use a character called Wicked Yagami, or Yagwick for short (Yes I know there's a private version, I'm using the public released one). When I boot up the character, this happens:
Error detected.

Can't access [Statedef ëYby:C Yagewick                                    No:8F2C Yagewick                                    No:8F21
Character mugenversion is older than this version of M.U.G.E.N.
Error loading chars/WickedYagami-1.0\WickedYagami.def
Error while precaching
Can't access [Statedef ëYby:C Yagewick                                    No:8F2C Yagewick                                    No:8F21
Character mugenversion is older than this version of M.U.G.E.N.
Error loading chars/WickedYagami-1.0\WickedYagami.def
Error loading p2

Clipboard tail:
Info: stage Daisu's Stage loading in pre-1.0 compatible mode
  Loading BG...OK
Stage loaded OK
  Allocating helpers...OK
Match RNG seed: 226926430
Reset persist vars team 0
Reset persist vars team 1
Player BLAKE cache count increased: 1
Loading character chars/WickedYagami-1.0\WickedYagami.def...
  Loading info...Info: Yagwick loading in pre-1.0 compatible mode
OK
  Loading cmd command set others\Cmd.txt...OK
  Loading cns sys\Yagwick.cns...OK
  Loading cns sys\Common.cns...OK
  Loading cns sys\Helper.cns...OK
  Loading cns sys\-2.cns...OK
  Loading cns sys\S.cns...OK
  Loading cns sys\H.cns...OK
  Loading cns sys\Enemy.cns...OK
  Loading cns sys\D.cns...Character WickedYagami.def failed to load

The error message says that there's an error in D.cns, so I looked in there using Fighter Factory and this is what I saw:
[Statedef Yby:C Yagewick                                    No:8F2@]
[State C]
type=null
trigger1=1
%
@K
d$%@K
%
@K
`1dYK
5@K
|S1Vt111(1\Vt
,*B\V
tF\VtFlL ,     \\l \L L | <<<L<< L| <L\L<< L| < << L| < << L| <L << L| < <l<< L| << << L| < l<< L| < ,<< L| < \|l<< L| <l<l|\<< L| < << L| < , l\<< L| <lL\l|\<< L| < << L| <L , << L| <l|lll<< L| <|\ , << L| <Ll<|,<< L| <\ << L| < L\<< L| <L << L| < << L| << << L| < l<< L| <|L << L| < , \|<< L| <ll<l|<< L| <L ,<< L| < l\lL<< L| <\l|L<< L| <L , << L| < l|ll<< L| <l|L<< L| < , << L| <,lLl\ll<< L| <|L<< L| < , << L| < |<< L| <L, L<< L| < \|l<< L| <l<l|L<< L| <l L << L| < l\lL\<< L| <l|L<< L| < L << L| <l|lll<< L| <|L<< L| < L ,<< L| < <<< L| <| << L| <|,<\L<< L| < ,<< L| <L < << L| << |\<< L| < < << L| <|L << L| <<< L| <|| \<<< L| < | << L| <\<< L| < < << L| <|\,, << L| < << L| <L LL<< L| <l|<<< L| < << L| < <<< L| << L<< L| < l << L| <|, << L| <<\ Ll<< L| <L <<< L| < lL << L| <,\ l<< L| <L << L| <L\L<< L| < <L<<< L| <\ << L| <| <<< L| < L<< L| <, << L| < << L| < << L| << << L| < l<<< L| <| << L| < , << L| < \L<< L| < | ,<< L| <\ll|||<< L| <|L, <||<< L| <ll<l|<< L| <L,< \l<< L| <l||||L,<< L| <<<||ll<<< L| <l|L,l << L| <L< << L| < |, << L| <\ll|||<< L| <|\||<< L| <,<||ll<<< L| <l|\l<< L| < << L| < < << L| <|LlL<< L| <<< L| <||\<<< L| <\| << L| << ,<< L| < L<, << L| <|L <,<< L| < < L<< L| << l << L| < |, << L| < L\<< L| <L <<< L| <\ << L| < << L| < << L| <|lL << L| < <<< L| < l<< L| < <\ << L| < << L| <|LL<<< L| <\L << L| <|l << L| <\ << L| <\L<< L| < | \<< L| <lL << L| < << L| <| \L<< L| <L \ll<< L| <L L<< L| <\L <<< L| < L ,<< L| < << L| <<\L|<< L| < << L| <\|<< L| <<\<< L| <| << L| < \<< L| <<<< L| <\| << L| < \<< L| <<<< L| <l | << L| < \<< L| < << L| <<<< L| < << L \ lL | \ L L L<|,l\l| \ L |Ll\\Ll| \ L |,l\llLl LlL \ L \ |Ll L L \ \< L l l l \<l l | \lL\L  l<| L,L<L| <

Yeah, spaghetti code. FF tells me that there's ten syntax errors, but I'm not sure what they are. Can anyone help me?
Re: Sorry, Just Need Some Quick Help With a Character Error
#2  January 14, 2021, 06:32:23 PM
  • *****
  • Resident Tosspot
  • Pftheh
    • UK
    • plasmoidthunder.neocities.org
This sorta thing usually goes in M.U.G.E.N Configuration Help.

Nah, that's trying to do something dubious. Normally one would associate Null code with WinMUGEN and that it won't work outside of it, but this was reported to work in 1.0? Might be one of those workaround methods that works in newer versions of the engine, but try running it in WinMUGEN anyway just to see. Bottom line is that the code implies it's messing with things it's not supposed to be.
3DS FC: 0516 - 7483 - 3564
Oh, I want a diagram. I fucking love diagrams.
Re: Sorry, Just Need Some Quick Help With a Character Error
#3  January 14, 2021, 06:47:37 PM
A little bit new to the whole MUGEN community as a whole; what is WinMUGEN? Is it like a different build or version of MUGEN?
Re: Sorry, Just Need Some Quick Help With a Character Error
#4  January 14, 2021, 06:56:52 PM
Okay so it's spitting out another error message in WinMUGEN, I can't copy and paste it so I'll try my best to just transcribe it here:

Error message:
Error parsing trigger1, 1
Error parsing [State C]
Error in [Statedef 150]
Error in sys\Helper.cns
Character needs to be updated. See docs/incompt*.txt
Error loading chars/WickedYagami-1.0/WickedYagami.def
Error while precaching

This repeats three times before saying:

Error loading p1

Library error message: Died parsing ishelper(2000)|| ishelper(2002)|| ishelper(2004)|| ishelper(2006) || is helper(2008) || ishelper(2010) || ishelper(2012) || ishelper(2014) || ishelper(2016) || ishelper(2018) || ishelper(2020) || ishelper(2022) || ishelper(2024) || ishelper(2026

What happened? It's a completely different error.
Re: Sorry, Just Need Some Quick Help With a Character Error
#5  January 14, 2021, 08:26:43 PM
  • *****
  • Resident Tosspot
  • Pftheh
    • UK
    • plasmoidthunder.neocities.org
Well that's something. The error is is helper(2008), as that's not a valid trigger; find it in sys\Helper.cns and remove the space so it reads ishelper(2008), then save the file and try loading the character again.
3DS FC: 0516 - 7483 - 3564
Oh, I want a diagram. I fucking love diagrams.
Re: Sorry, Just Need Some Quick Help With a Character Error
#6  January 15, 2021, 12:55:55 AM
Looked through the file and that doesn't seem to be the problem, as the file itself has it correctly. But it spits out the same error regardless.
Re: Sorry, Just Need Some Quick Help With a Character Error
#7  January 15, 2021, 03:31:10 PM
So I just tried something. I figured out after some research that null states aren't typically needed after MUGEN 1.0, so I tried to stop the character from reading those states, and got this error message:

Error detected.

State machine stuck in loop (stopped after 2500 loops): 5900 for Yagwick
Check your states for infinite ChangeState loops.

Clipboard tail:
506 : Warning: Player Yagami-evil (56) in state 5900: has no target with hit ID -1
506 : Warning: Player Yagami-evil (56) in state 5900: has no target with hit ID -1
506 : Warning: Player Yagami-evil (56) in state 5900: has no target with hit ID -1
506 : Warning: Player Yagami-evil (56) in state 5900: has no target with hit ID -1
506 : Warning: Player Yagami-evil (56) in state 5900: has no target with hit ID -1
506 : Warning: Player Yagami-evil (56) in state 5900: has no target with hit ID -1
506 : Warning: Player Yagami-evil (56) in state 5900: has no target with hit ID -1
506 : Warning: Player Yagami-evil (56) in state 5900: has no target with hit ID -1
506 : Warning: Player Yagami-evil (56) in state 5900: has no target with hit ID -1
506 : Warning: Player Yagami-evil (56) in state 5900: has no target with hit ID -1
506 : Warning: Player Yagami-evil (56) in state 5900: has no target with hit ID -1
506 : Warning: Player Yagami-evil (56) in state 5900: has no target with hit ID -1
506 : Warning: Player Yagami-evil (56) in state 5900: has no target with hit ID -1
506 : Warning: Player Yagami-evil (56) in state 5900: has no target with hit ID -1
506 : Warning: Player Yagami-evil (56) in state 5900: has no target with hit ID -1
506 : Warning: Player Yagami-evil (56) in state 5900: has no target with hit ID -1
506 : Warning: Player Yagami-evil (56) in state 5900: has no target with hit ID -1
506 Warning: expression truncated to integer:
player Yagami-evil (56) in state 5900: 0.000000506 Warning: expression truncated to integer:
player Yagwick (57) in state 5900: 0.000000506 Warning: expression truncated to integer:
player Yagwick (57) in state 5900: 450.000000
Re: Sorry, Just Need Some Quick Help With a Character Error
#8  January 16, 2021, 06:43:36 AM
  • **
  • 超高校級の「絶望」
  • “Just like a single bullet setting off a world war
    • Japan
    • gamersnatales.wordpress.com/
had a similar error in the past was kinda the same after reading some info and learning more it was due to some simple problems
First problem number of explods
Since people use default config they tend to run into those problems after checking the txt on the char i learned that was due to explods and needed a higher ammount then the one i used so i changed to this
 ;Maximum number of explods allowed in total. Note that hitsparks
 ;also count as explods.
 ;Set to a lower number to save memory (minimum 8).
ExplodMax = 5800
after that no errors.
Second problem that gives the same error SpriteDecompressionBufferSize
This is an error from modern mugen only and is the amount of ram used to decompression some characters need higher then default and give a similar error,this is the ammount i use
 ;Size of sprite decompression buffer in KB. Increasing this number may help
 ;if you experience slow performance when there are many sprites and/or large
 ;sprites shown over a short period of time.
 ;Minimum 256 for acceptable performance.
 ;If you set this too large you may also experience performance degredation.
SpriteDecompressionBufferSize = 262144
It will use 256 Mb of ram so everything will work better and no errors
The third problem
 using a 1.1 char on 1.0 sadly most of those chars take advantages of certain stuff undocumented but the error is similar,the features are normally more wavchannels and increased helpermax
This was required for a touhou character exclusive for 1.1
 ;Maximum number of helpers allowed in total.
 ;Set to a lower number to save memory (minimum 4, maximum 56).
HelperMax = 300
  ;Number of voice channels to use.
WavChannels = 128
normally you need less but that character used more wavchannels and more helpermax so was kinda forced
Using all those settings is safe normally requirements will increase but aren't something outside of this world (i use them on my projects and are more stable then normal mugen games that crash afetr some minutes)
“Thousands of humans falling over like dominoes... ahhh... that sight was so beautiful! I thought my brain was gonna melt..!”
Re: Sorry, Just Need Some Quick Help With a Character Error
#9  January 16, 2021, 01:27:53 PM
  • *****
  • Resident Tosspot
  • Pftheh
    • UK
    • plasmoidthunder.neocities.org
The implication is that the character is looping state 5900 (the initialisation state) instead of going to the intro/idle state. Check the character's state 5900 and post what's in there.
3DS FC: 0516 - 7483 - 3564
Oh, I want a diagram. I fucking love diagrams.
Re: Sorry, Just Need Some Quick Help With a Character Error
#10  January 20, 2021, 12:03:50 AM
Sorry, had work over the weekend. Let me paste it here.

; Initialize (at the start of the round)
[Statedef 5900]
type = S

[State C]
type = ReversalDef
trigger1 = !ishelper
trigger1 = sysfvar(2)>=2
reversal.attr = SCA,AA,AT,AP
sparkxy = -1
numhits = 0
sparkno = -1
pausetime = 0,13
hitsound = -1
ignorehitpause = 1

[State C]
type = selfstate
triggerall = authorname = "C"
trigger1 = ishelper(155)
trigger2 = ishelper(160)
trigger3 = ishelper(165)
trigger4 = ishelper(170)
trigger5 = ishelper(2100)
trigger6 = ishelper(2450)
value = 5150
persistent = 256
ignorehitpause = 1

[State C]
type = selfstate           
trigger1 = ishelper
trigger1 = authorname = "C"
value = 150
persistent = 256
ignorehitpause = 1

[State C]
type = selfstate
trigger1 = !ishelper
trigger1 = (enemy(0),name = "Yagami-evil")||(enemy(numenemy>1),name = "Yagami-evil")
trigger2 = name != "Yagwick"
trigger3 = !(authorname = "C")
trigger4 = numpartner&&partner,name = "C.Madoka"
value = 5900
ignorehitpause = 1

[State 5900, 1] ;Clear all int variables
type = VarRangeSet
trigger1 = roundsexisted = 0
value = 0

[State 5900, 2] ;Clear all float variables
type = VarRangeSet
trigger1 = roundsexisted = 0
fvalue = 0

[State 5900, 3] ;Intro for round 1
type = ChangeState
trigger1 = roundno = 1
value = 190
Re: Sorry, Just Need Some Quick Help With a Character Error
#11  January 20, 2021, 10:55:34 AM
  • *****
  • Resident Tosspot
  • Pftheh
    • UK
    • plasmoidthunder.neocities.org
Yeah so it constantly SelfStates into 5900 if it's fighting itself. Will also do this if either the name or author are changed, or if it has a certain partner in simul.
3DS FC: 0516 - 7483 - 3564
Oh, I want a diagram. I fucking love diagrams.
Re: Sorry, Just Need Some Quick Help With a Character Error
#12  January 20, 2021, 07:31:25 PM
Okay, so I got an updated version of the character and it seems to have fixed the issue. I just got common1.cns and pasted it into the character folder and it worked just fine. The only "problem" left is that I can't change his stats in the .cns file because it's read only or something like that. Other than that the character works just fine. Thanks for the help.