Infinity MUGEN Team
IMT Main => M.U.G.E.N Help => Mugen 1.0 Upgrade => Topic started by: Tazwomante on May 17, 2014, 02:50:32 PM
-
Hi everyone i'm new here ^^
I want use the character M-Reimu in Mugen 1.0 and that not work and that show me this message :
Error message: Invalid format specifier in "%n %n"
Error parsing [State D]
Error in [Statedef-2]
Error in OPTION.txt
Error lading chars/M-Reimu/M-Reimu.def
Error loading p1
Please help me
-
Looking at that, someone has stuffed up a text string in a displaytoclipboard.
Open up options.txt. If it's not too long, post here, otherwise please post the whole %n %n portion of it, i'd like to see if they were trying for new lines or just using utterly incorrect code.
-
Hey, I literally just stumbled upon this thread because I had the exact same problem as OP.
Searching for "%n %n" in OPTION.txt leads to the following states:
[State ‰Ð]
Type=DisplayToClipboard
trigger1=ishelper
trigger1=!PlayerIDExist(Root,ID)
text="%n %n"
params=4938056,4938060
ignorehitpause=1
-lower down the file-
[State ‰Ð]
type=displaytoclipboard
triggerall=roundstate>2
trigger1=!ishelper&&(floor(fvar(2))&4096)&&fvar(6)<60
trigger1=(((floor(fvar(39))&960)/64)!=[1,9])
trigger2=ishelper
trigger2=root,fvar(6)<60
trigger2=((floor(root,fvar(39))&960)/64)!=[1,9]
trigger2=root,numprojid(461349000+helper,id)
text="%n %n"
params=4938056,4938060
-lower down the file-
[State ‰Ð]
type=DisplayToClipboard
triggerall=roundstate=4
trigger1=!ishelper&&((sysvar(0)&2047)<2||fvar(6)=60)
trigger2=ishelper
trigger2=(root,sysvar(0)&2047)<2||root,fvar(6)=60
text="%n %n"
params=4938056,4938060
ignorehitpause=1
Here's a link to the full file: https://www.dropbox.com/s/6spiw333nn7dh8m/OPTION.txt (https://www.dropbox.com/s/6spiw333nn7dh8m/OPTION.txt)
-
OK, every single one of those is totally useless, you can actually delete the lot.
If you don't feel comfortable deleting them make the %n into %d everywhere. %n is not valid.
You may have more bugs after this too if that's an example of coding.
-
I did what you've advised and it gives me further errors with similar states, just different parameters ("%*d%n%d"). Fixing those, it gives more afterwards, with "%.*d%n%d"...
-
%n
Is invalid completely within mugen. It is used nowhere
%d
is valid. But it's not the correct option at all times. Sometimes you should use %f if the number is a float.
I need a completely accurate description of the error (what you've written is too broad as mugen doesn't error exactly like that) and examples of code when and as the errors occur.
-
is error sexual XD
(http://www.infinitymugenteam.com/Forum_345/Smileys/classic/F1.gif) in 3..2..1
-
%n
Is invalid completely within mugen. It is used nowhere
%d
is valid. But it's not the correct option at all times. Sometimes you should use %f if the number is a float.
I need a completely accurate description of the error (what you've written is too broad as mugen doesn't error exactly like that) and examples of code when and as the errors occur.
The error is always, unless I'm mistaken, the one in the original post.
For example:
Error message: Invalid format specifier in "%.*d%n%d"
Error parsing [State Ð]
Error in [Statedef -2]
Error in OPTION.txt
Character mugenversion is older than this version of M.U.G.E.N.
Error loading chars/M-Reimu/M-Reimu.def
Error loading p1
-
That's not QUITE the same as the one in the original post
Original which we've fixed
Error message: Invalid format specifier in "%n %n"
New one
Error message: Invalid format specifier in "%.*d%n%d"
As you can see, removing %n from this won't fix anything because they've stuffed up the other one, the next should be %d. %.*d is not valid. These are still all displaytoclipboards though and you could honestly just delete them. Post the contents of option.txt here or upload it to pastebin, i can look at the lot and tell you what you can delete.