Trinity MUGEN

MUGEN => Tips, Tricks, and Tutorials. => Topic started by: devilgenemugen on January 26, 2013, 11:13:08 PM

Title: Some Constants Issue
Post by: devilgenemugen on January 26, 2013, 11:13:08 PM
Hi, I am not sure about some of the constants on setting them. The constants are head.pos, mid.pos and run.back.

For head.pos and mid.pos, I was reading pots's constants tutorial but I am not sure about some part:
Quote
Some people set this according to sprite 5000,0, others (including myself) according to the stance, and most don't
set it at all (the shame).
Either way, you get this position like you would for say an explod. You open the SFF and AIR with an adequate
program (like MCM or Fighter Factory) and make an anim with the sprite you want to use to get the position. Then
click and drag the anim axis (crosshair) until it's on the character's head and check the X and Y position, that's
your head.pos.
Let say I want to use my sample character's stance to find the head.pos and I build up the stance anim in the air
file, I click on the anim axis and drag it to the character's head to find the x and y position which is 10 and -
88:

(http://img27.imageshack.us/img27/4113/headpos1.jpg)
I apply it to my sample character, my sample character get this:
(http://img580.imageshack.us/img580/1272/1088.png)
For sprite 5000,0, the x and y position is -13 and -103:.
(http://img15.imageshack.us/img15/7507/headpos2.jpg)
and I get this:
(http://img23.imageshack.us/img23/8977/13103.png)

Which looks wrong. When I check van's Iori, it is -10,-90 and kfm's it is -5,-90, they look quite the same but a few (5 pixels) distance upward:
Original:
(http://img843.imageshack.us/img843/9969/1090xr.png)
Kfm's
(http://img825.imageshack.us/img825/9788/590e.png)

I am not sure how does he manage to get Iori's head.pos -10,-90

Another one is the run.back velocity, I can't get the velocity as I manage to get the run.fwd velocity which is 6.5
and it is correct but I notice in the run.back, the velocity has two axis, -10.75360107421875 and -6.5. -6.5 is
self-explanatory but I can't get -10.75360107421875, here are the 3 vel sample of run.back velocity
artmoney data:

(http://img259.imageshack.us/img259/619/vel1b.jpg)
(http://img26.imageshack.us/img26/8711/vel2t.jpg)
(http://img607.imageshack.us/img607/85/vel3u.jpg)

So converting them, I got the Y vel:
Tick 1: 4.6875
Tick 2: 4.875
Tick 3: 4.0625

but for the x vel as shown, the first three samples are:
Tick 1: 65525,16148
Tick 2: 65526,23812
Tick 3: 65527,23873

and if I convert it to decimal value, I get:
Tick 1: 65525.246398925
Tick 2: 65526.363342285
Tick 3: 65527.364273071

which looks odd and I can't get the value -10.75360107421875. I am not sure how do I get the value -10.75360107421875?
Title: Re: Some Constants Issue
Post by: Jesuszilla on January 26, 2013, 11:14:38 PM
For head.pos, align it with the sprite used in Clark's Frankensteiner. That's pretty much the standard. The head.pos and mid.pos are pretty much done by eye (and testing).

For mid.pos, you'll want to try to get it in a position where the middle of the body will be most of the time during standing gethits. Use Training by what's-his-face to check this most easily since one of his moves places an axis on the head.pos and the mid.pos.
Title: Re: Some Constants Issue
Post by: devilgenemugen on January 29, 2013, 03:27:08 AM
Hi, I think I manage to get his head.pos and I get -6, -88 which is very different from Vans's iori which is -10, -90 and it is quite accurate when compare it to King of Fighters 2002:

King of Fighters 2002:
(http://img543.imageshack.us/img543/4683/kof2002.png)

My Modification:
(http://img716.imageshack.us/img716/2408/mymodify.png)

vans's Iori:
(http://img849.imageshack.us/img849/9067/vansf.png)

Using Training by Stupia:
My Modification:
(http://img547.imageshack.us/img547/63/mymodifytraining.png)

Vans's Iori:
(http://imageshack.us/a/img24/9173/vanstraining.png)

:-\ but what about the run.back Velocity? I am stuck with it:
Quote
Another one is the run.back velocity, I can't get the velocity as I manage to get the run.fwd velocity which is 6.5
and it is correct but I notice in the run.back, the velocity has two axis, -10.75360107421875 and -6.5. -6.5 is
self-explanatory but I can't get -10.75360107421875, here are the 3 vel sample of run.back velocity
artmoney data:

(http://img259.imageshack.us/img259/619/vel1b.jpg)
(http://img26.imageshack.us/img26/8711/vel2t.jpg)
(http://img607.imageshack.us/img607/85/vel3u.jpg)

So converting them, I got the Y vel:
Tick 1: 4.6875
Tick 2: 4.875
Tick 3: 4.0625

but for the x vel as shown, the first three samples are:
Tick 1: 65525,16148
Tick 2: 65526,23812
Tick 3: 65527,23873

and if I convert it to decimal value, I get:
Tick 1: 65525.246398925
Tick 2: 65526.363342285
Tick 3: 65527.364273071

which looks odd and I can't get the value -10.75360107421875. I am not sure how do I get the value -10.75360107421875?
Title: Re: Some Constants Issue
Post by: devilgenemugen on February 01, 2013, 10:26:27 PM
Now I get it, I always wonder what does the value 65536 means :P thanks for your help ;)
Title: Re: Some Constants Issue
Post by: devilgenemugen on February 07, 2013, 08:56:37 AM
Yeah, you did change, a few pixels away :P:
(http://img594.imageshack.us/img594/2481/headposlb.png)(http://img18.imageshack.us/img18/7024/headposwls.png)