News:

MFG's Character of the Month: October 2026 Nominations

Main Menu

My Groove checking code doesn't work...

Started by TrinitroRoy, February 21, 2013, 05:06:34 PM

Previous topic - Next topic

Rajaa Retired

Make sure you're not setting var(59) anywhere else. You're gonna have to learn to troubleshoot for yourself. =p

TrinitroRoy

Hmm, I check the code now...
...there is no code, that would modify var(59)...
===My discord servers===
Unlimited Force HQ: https://discord.gg/hnyK7JZ
Mega Man Megamix Engine Help Server: https://discord.gg/Wjm9GYU

Touhou database (by Ryouchi):
http://mugenfreeforall.com/index.php?/topic/8257-touhou-project/
Quote from: bitter nothings on April 30, 2010, 09:35:51 PM
you are all small and can't grow manly sideburns

Cyanide

var(59) is extremely commonly used as AI. Most common use for it ever. It may live in the .cmd file and be set to 0 if ailevel = 0.

If it's locked at 0 it IS being set somewhere and you need to find said somewhere.


In M.U.G.E.N there is no magic button

They say a little knowledge is a dangerous thing, but it's not one half so bad as a lot of ignorance.

TrinitroRoy

Okay, I changed all var(59) to fvar(59) just for fun,
Now, the variable is set to "bottom".
Does that means, that every variable is set then?
I also wanted to change all var(59) to var(58), until I found out that var(58) is already used...
...and even in the CMD, I couldn't find a place, where var(59) would be set to 0...
===My discord servers===
Unlimited Force HQ: https://discord.gg/hnyK7JZ
Mega Man Megamix Engine Help Server: https://discord.gg/Wjm9GYU

Touhou database (by Ryouchi):
http://mugenfreeforall.com/index.php?/topic/8257-touhou-project/
Quote from: bitter nothings on April 30, 2010, 09:35:51 PM
you are all small and can't grow manly sideburns

Ricepigeon

Quote from: Trinitronity on February 22, 2013, 04:38:37 PM
Okay, I changed all var(59) to fvar(59) just for fun,
Now, the variable is set to "bottom".
Does that means, that every variable is set then?
I also wanted to change all var(59) to var(58), until I found out that var(58) is already used...
...and even in the CMD, I couldn't find a place, where var(59) would be set to 0...

If the variable is being set to bottom then that means that not only is something setting it, but its setting it to a value that is only generated as an error (such as division by 0).

If you're using fighter factory, there should be an option that generates a variable useage log. This will print plaintext of which variables are currently being used and which statenos they're being used in. Either use an unused variable that doesn't show in this list or check each state that your desired variable number appears in for any controllers that are interfering with your groove setting.

TrinitroRoy

Quote from: RicePidove on February 22, 2013, 05:31:13 PM
Quote from: Trinitronity on February 22, 2013, 04:38:37 PM
Okay, I changed all var(59) to fvar(59) just for fun,
Now, the variable is set to "bottom".
Does that means, that every variable is set then?
I also wanted to change all var(59) to var(58), until I found out that var(58) is already used...
...and even in the CMD, I couldn't find a place, where var(59) would be set to 0...

If the variable is being set to bottom then that means that not only is something setting it, but its setting it to a value that is only generated as an error (such as division by 0).

If you're using fighter factory, there should be an option that generates a variable useage log. This will print plaintext of which variables are currently being used and which statenos they're being used in. Either use an unused variable that doesn't show in this list or check each state that your desired variable number appears in for any controllers that are interfering with your groove setting.
1. Method: integers 0-59 and floats 0-39 are used...
2. Method: Well, it doesn't look like there is a state that interferes with my groove setting...
I really don't know, what I should do now... :S
===My discord servers===
Unlimited Force HQ: https://discord.gg/hnyK7JZ
Mega Man Megamix Engine Help Server: https://discord.gg/Wjm9GYU

Touhou database (by Ryouchi):
http://mugenfreeforall.com/index.php?/topic/8257-touhou-project/
Quote from: bitter nothings on April 30, 2010, 09:35:51 PM
you are all small and can't grow manly sideburns

Ricepigeon

D'oh, stupid me.

Just looked over what you did again. Fvar(59) isnt valid. Only Var(0)-Var(59) and fvar(0)-fvar(39) are valid variable numbers. Thats probably why it was returning value of bottom.

TrinitroRoy

Hmm, can I make a groove selection without variables, too?
Or do I really have to overwrite an existing variable?
===My discord servers===
Unlimited Force HQ: https://discord.gg/hnyK7JZ
Mega Man Megamix Engine Help Server: https://discord.gg/Wjm9GYU

Touhou database (by Ryouchi):
http://mugenfreeforall.com/index.php?/topic/8257-touhou-project/
Quote from: bitter nothings on April 30, 2010, 09:35:51 PM
you are all small and can't grow manly sideburns

TrinitroRoy

Okay, I've overwriten a variable annd made sure, that it wasn't getting set to zero anywhere.
The problem is still there, so I undid my changes. I really need help.
===My discord servers===
Unlimited Force HQ: https://discord.gg/hnyK7JZ
Mega Man Megamix Engine Help Server: https://discord.gg/Wjm9GYU

Touhou database (by Ryouchi):
http://mugenfreeforall.com/index.php?/topic/8257-touhou-project/
Quote from: bitter nothings on April 30, 2010, 09:35:51 PM
you are all small and can't grow manly sideburns

Rajaa Retired

If your variable isn't being set anywhere else, then when you set it, it should be the value you set it to.

CTRL+F through all of your character's files and make sure the variable is not being set anywhere else. If yur variable is still set to zero, then your variable is being reset somewhere.

TrinitroRoy

Okay, I searched again, and this time, no excuses. However, I still couldn't find a place, where the variable could be set to zero.
If my variable gets reseted somewhere, how can I prevent that then?
===My discord servers===
Unlimited Force HQ: https://discord.gg/hnyK7JZ
Mega Man Megamix Engine Help Server: https://discord.gg/Wjm9GYU

Touhou database (by Ryouchi):
http://mugenfreeforall.com/index.php?/topic/8257-touhou-project/
Quote from: bitter nothings on April 30, 2010, 09:35:51 PM
you are all small and can't grow manly sideburns

Rajaa Retired

I don't really know what to tell you at this point.

TrinitroRoy

Damn, I was so stupid.
I haven't noticed, that there already was a state 7650.
I could fix that problem now.
It may be just temporary, but I needed at least SOMETHING to test out the grooves.
Now I can continue my work.
===My discord servers===
Unlimited Force HQ: https://discord.gg/hnyK7JZ
Mega Man Megamix Engine Help Server: https://discord.gg/Wjm9GYU

Touhou database (by Ryouchi):
http://mugenfreeforall.com/index.php?/topic/8257-touhou-project/
Quote from: bitter nothings on April 30, 2010, 09:35:51 PM
you are all small and can't grow manly sideburns