Infinity MUGEN Team

IMT Main => M.U.G.E.N Help => Mugen 1.0 Upgrade => Topic started by: cl_conn1988 on September 18, 2014, 07:47:20 PM

Title: KAZ's characters: BEW Karin & Master Sakura 1.0 conversion request
Post by: cl_conn1988 on September 18, 2014, 07:47:20 PM
I'm still very new to mugen. All I know is how to add characters and stages, but not converting them to Mugen 1.0. Can anyone please show me a link to a tutorial on how to do so. The characters mentioned above are Blue Eyes White Karin & Master Sakura by Kaz. These characters look great but every time I try to use them I get a series of errors. I have tried looking for a post patched version of them but have had no luck, I tried converting them myself but I just can't read it completely due it being partly in Japanese. Maybe I'm just stupid, but I would really appreciate it if someone would show me how to convert them or any character for that matter, or just send a link to a version of these characters already patched for 1.0. Thanks.
Title: Re: KAZ's characters: BEW Karin & Master Sakura 1.0 conversion request
Post by: Cyanide on September 19, 2014, 06:20:38 AM
The debug text you get when they fail won't be in japanese. You read what it says and follow it into the character files. A few common ones are people who have

velset = 0,0,0
in there. Should just be velset = 0,0
If you want i can walk you through each error you receive as long as you post it in full. Remember, if i ask for a state you search for [statedef number], and post everything below that line up to the next [statedef number] If it's something a bit odd, i'll be more specific about what to look for.
Title: Re: KAZ's characters: BEW Karin & Master Sakura 1.0 conversion request
Post by: cl_conn1988 on September 19, 2014, 09:54:58 PM
Here is what the error reads:
Error message: Invalid format specifier in "?n" (question mark is a symbol in the file)
Error parsing [State 100199, 12]
Error in [StateDef 100199]
Error in Cns/BEW_Karin.st
Character mugenversion is older than this version of M.U.G.E.N.
Error loading chars/BEW_Karin/BEW_Karin.def
Error Loading p1
Title: Re: KAZ's characters: BEW Karin & Master Sakura 1.0 conversion request
Post by: Cyanide on September 19, 2014, 10:40:55 PM
Ok that's actually a pretty good description for what we're looking for.

Find [StateDef 100199] in BEW_Karin.st. Post the whole state down to the next line with [Statedef in it. Most likely our fault is in the  [State 100199, 12] block, but it's possible there is more than one of those so post the lot please. It actually sounds like there is a comment, but it's not commented with ;
Title: Re: KAZ's characters: BEW Karin & Master Sakura 1.0 conversion request
Post by: cl_conn1988 on September 20, 2014, 06:44:27 PM
Here's what I've found in [State 100199, 12]
Type = DisplayToClipBoard
TriggerAll = IsHelper(10199)
TriggerAll = !(Root,Win)
TriggerAll = RoundState <= 3
TriggerAll = Root,var(25) = 3
TriggerAll = Root,var(22) = 2
TriggerAll = Root,sysfvar(1) >= 3
TriggerAll = Root,var(2) = 0
Trigger1 = Root,fvar(27) = 0 && Root,fvar(28) = 0
Trigger2 = Root,fvar(27) = 1 && Root,fvar(28) = 0
Trigger3 = Root,fvar(27) = 0 && Root,fvar(28) = 1
Text = "%n"
Params = 4938056
SuperMoveTime = 2147483647
PauseMoveTime = 2147483647
IgnoreHitPause = 1

This is the only block I found with [State 100199, 12], Thanks for alerting me about their being more than one as their was more than one of another block in [StateDef 100199], of course the error mentioned nothing about those so no worries.  So what needs to be adjusted here? Thanks again.
Title: Re: KAZ's characters: BEW Karin & Master Sakura 1.0 conversion request
Post by: Cyanide on September 20, 2014, 08:14:06 PM
Ok, so the person is kinda dumb. I have no idea if %n has ever been a valid parameter for displaytoclipboard.

2 choices. Delete the whole thing. Or change the %n to %d. Either will fix.

You will probably get another error after this, it may even be the same sort and you'll know the fix for it.
Title: Re: KAZ's characters: BEW Karin & Master Sakura 1.0 conversion request
Post by: cl_conn1988 on September 20, 2014, 11:06:13 PM
This did the trick, I even found more StateDef blocks with the same issue. I now have a new error, its still in [StateDef 100199] but no biggie. [State 100199, 14] and maybe others have this: Text = "%*d%n%d". Do I also change these to Text = "%*d%d%d" or is something else required?
Title: Re: KAZ's characters: BEW Karin & Master Sakura 1.0 conversion request
Post by: Cyanide on September 21, 2014, 12:46:43 AM
If it's not %d or %f, it's going to break. Those are the changes to be applied. Go for %d. %f won't actually cause a crash but no point shoving stuff in that's not needed.
Title: Re: KAZ's characters: BEW Karin & Master Sakura 1.0 conversion request
Post by: cl_conn1988 on September 21, 2014, 02:06:29 AM
Sorry for not asking earlier, but can I please see an example for this type of fix? Here is what it can't read in [State 100199, 14]:
Text = "%*d%n%d"
On a side note [State 100199, 15] has this:
Text = "%.*d%n%d"
[State 100199, 18] has: Text = "%*d%n%d"
And finally [State 100199, 19] has: Text ="%.*d%n%d"
I tried changing the n's to d's, which unfortunately caused more errors, so I changed the n's to f's and the same error from before is still displayed. What is the purpose of putting * or . in that area actually? Thanks.
Title: Re: KAZ's characters: BEW Karin & Master Sakura 1.0 conversion request
Post by: Cyanide on September 21, 2014, 03:44:57 AM
None of that is valid at all, or should be displaying exactly what's written. Displaytoclipboard takes a number of params in a couple of formats. Integers, or whole numbers and Floats, or decimals
An integer is called in the text string with %d. A float is called with %f. Each one calls the next in sequence so you would have
params = 1,2,3.123,4,5
text = "%d %d %f %d %d"
Which in game would display as 1 2 3.123 4 5
If you want to use math as they're apparently doing it needs to be in the params part, not in the text.

Basically if it does not say %d or %f mugen will throw a wobbly. You could also swap them for %g which i think means global and it doesn't care if it's an integer or not. The only difference is if you want to actually display a % symbol in the text, for which you write %%

All of this is explained in mugen\docs\sctrls.html, worth having a look at.
Title: Re: KAZ's characters: BEW Karin & Master Sakura 1.0 conversion request
Post by: cl_conn1988 on September 21, 2014, 02:34:10 PM
It worked!!! The character works perfectly now.  This is just for blue eyes white karin however. I haven't made any changes to Master Sakura yet but she will most likely have same issue as BEW_Karin beforehand. I may post again later if I experience anything different.
SimplePortal 2.3.5 © 2008-2012, SimplePortal