YesNoOk
avatar

Couple of Ruby Heart fixes?.. (Read 330 times)

Started by Burning_Typhoon, January 11, 2013, 07:06:17 am
Share this topic:
Couple of Ruby Heart fixes?..
#1  January 11, 2013, 07:06:17 am
  • ***
I've looked around, and looked some more. Can't figure it out, but, since I've got a 100% success rate as far as things getting fixed, when I ask questions, I'm going to keep on asking.

Anyway, Ruby Heart's fireball super..  You pick a direction in mvc2, and she goes in that direction (You can't stop it, or cancel it, she goes to a direction for a set distance, and if you press another direction, she goes in that direction).

The problem with the Ruby Heart that I have is that you can stop her acceleration.  So, for example, if she's supposed to go 500 pixels, you can cancel for another direction before she finishes the animation.  Which leads to characters falling out of the combo.

Anyway.  What I want to do is disable player inputs until she's had enough time to travel, (say, 20 frames) then, give the player control again after she's gone in that direction.

And, while we're talking about Ruby, her HK sublimation, in mvc2 never spawns out of stage boundaries.  If she does it near a wall, in mvc2, it will spawn the same spot a LK sublimation would (which would also spawn near the wall and not past it if you're near one).  However, in mugen, this isn't the case and I would like to have her playing a little closer to how she does in MvC2.

Thanks a lot, you guys are really awesome.
Re: Couple of Ruby Heart fixes?..
#2  January 11, 2013, 08:35:13 am
  • ******
  • Legendary XIII
  • I am the eye of the storm to come!
    • New Zealand
    • network.mugenguild.com/cyanide/
We kinda need to see the code for how the direction changes are managed and whether they are changestates, or varsets, or something strange. Are you able to paste the relevant states here?

Depending on what it is we use either anim + animelemtime triggers or simple time > or we work out something odd if the code is abnormal. If you can manage it, strip out the hitdefs, playsnds, explods and afterimages, they have no purpose (probably)


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.
Re: Couple of Ruby Heart fixes?..
#3  January 11, 2013, 09:18:43 am
  • ***
You know, I think that after reading your post, all I would need to do is change the number in trigger all to a number greater than five...  But, I'll have to test it later, it's bed time, and I'm really pushing it.

;north east
[statedef 4011]
type    = a
movetype= a
physics = n
ctrl = 0
anim = 1004
sprpriority = 1
velset = 7,-7

[state 1003,1]
type = playerpush
trigger1 = hitcount = 3
value = 0

[state 820, 1]
type = varadd
trigger1 = time = 0
v = 10
value = 1

[state 1003]
type = varadd
trigger1 = movecontact
v = 11
value = 1

[state 1003]
type = movehitreset
trigger1 = movecontact

[state 1003]
type = changestate
triggerall = var(10) < 5
trigger1 = command = "n"
value = 4020

[state 1003]
type = changestate
triggerall = var(10) < 5
trigger1 = command = "ne"
value = 4021

etc. for sw, se, n; compass direction;blah
....

[state 1003]
type = changestate
trigger1 = time = 30
value = 4018

ETC, and so on, for each other possible direction, similar to above.


From the command def (just in case)
[command]
name = "e"
command = /F,a
time = 15
[command]
name = "e"
command = /F,b
time = 15
[command]
name = "e"
command = /F,c
time = 15

Forward+X, or Y, or Z for east, Up+any attack for north, and so on, for each compass direction.  I think you get the gist without me posting what is basically the same thing with one button change.  I just don't want the player to be able to cancel directions before the previous direction has reached maximum distance.
Spoiler, click to toggle visibilty

The spoiler is just the first two directions complete code.... just in case.  Should I post the code for the sublimation?
Last Edit: January 11, 2013, 09:30:33 am by Burning_Typhoon
Re: Couple of Ruby Heart fixes?..
#4  January 11, 2013, 09:31:27 am
  • ******
  • Legendary XIII
  • I am the eye of the storm to come!
    • New Zealand
    • network.mugenguild.com/cyanide/
Ok so they've used a variable to count hits and simply let you tap directions at ANY time provided that variable is still below 5.

That is thankfully pretty simple. Now i don't know how long it normally takes, but lets use the changestate for the finisher as an example time.

Add
Trigger1 = time > 15

To each changestate where it wants a direction. You will need to tweak that.


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.
Re: Couple of Ruby Heart fixes?..
#5  January 11, 2013, 06:48:31 pm
  • ***
I did it like this...

[state 1003]
type = changestate
triggerall = var(10) < 3
trigger1 = command = "n" && time>15
value = 1020

It works great.  But, one last thing about the super..  I increased the velocity, because in mvc2, it can catch any attack that's in recovery animation as long as there's a clear path.  But, as of now, she's going through enemies.  I want her velocity to be cut down when she hits someone.  Everything else is perfect (or, close enough for me).

;north
[statedef 4010]
type    = a
movetype= a
physics = n
ctrl = 0
anim = 1005
sprpriority = 1
velset = 0,-30
Re: Couple of Ruby Heart fixes?..
#6  January 11, 2013, 11:24:41 pm
  • ******
  • Legendary XIII
  • I am the eye of the storm to come!
    • New Zealand
    • network.mugenguild.com/cyanide/
That's a LOT of velocity.
Change the following
[state 1003]
type = varadd
trigger1 = movecontact
v = 11
value = 1
persistent = 0

[state 1003]
type = null;movehitreset
trigger1 = movecontact

then add
[State Velmul]
type = velmul
trigger1 = movecontact
x = 0.8
y = 0.8

That will slow things down drastically after hit. We need to null the movehitreset so we can use movecontact as a trigger, otherwise we need a new variable to apply slowdown with. We use velmul just in case X or Y is 0, then we don't need to customise a veladd and you can simply copy paste this into each state.


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.
Re: Couple of Ruby Heart fixes?..
#7  January 12, 2013, 12:39:06 am
  • ***
Okay, I haven't gotten it added to every direction yet.  But, it feels great.  Maybe the velocity is cut too much because she's not landing but a single hit, then, the enemy falls.

But, it appears that after my system restore I did a few minutes ago, all my command files are either deleted, or reset.. -__________-  So discouraging... Is it because mugen was in my documents folder?  At least all the other changes I made to the characters are still in tact, so why was the cmd the only files messed around with?

EDIT: 

After more testing, and playing around with things, it appears that she's only going to hit once.  Even at the wall.  Since that's the case, the velocity slow-down is fine.  Just need to get her to hit 4 times.
Last Edit: January 12, 2013, 02:39:13 am by Burning_Typhoon
Re: Couple of Ruby Heart fixes?..
#8  January 12, 2013, 03:50:43 am
  • ******
  • Legendary XIII
  • I am the eye of the storm to come!
    • New Zealand
    • network.mugenguild.com/cyanide/
No. It's how windows treats the .cmd extension now. If you can be bothered, change it to something else that's not in use. Or zip mugen up before a restore.

If you need to keep the extension using letters from the word. .COD .CAN .CND are all mostly OK as few things make use of those. CAD and COM are both kinda taken. Com especially, don't use that one.


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.
Re: Couple of Ruby Heart fixes?..
#9  January 12, 2013, 06:06:18 am
  • ***
Thanks.  I wish I had known that sooner, though.  I gave ryu back his blue metsu hadouken, since i got rid of evil ryu, and fix up all the other characters back to how they were.  I'm going to rar it up next time.

Anyway, I tried adding things to Ruby's code, just to see what happens, but, as I've said before, it doesn't juggle.  It just hits a single time per direction.  If that was fixed, the super would be perfect, and all I'd be concerned with is the sublimation spawning horizontally off screen.
Re: Couple of Ruby Heart fixes?..
#10  January 12, 2013, 07:11:58 am
  • ******
  • Legendary XIII
  • I am the eye of the storm to come!
    • New Zealand
    • network.mugenguild.com/cyanide/
Show me your code now. I think you've missed something in what i said. Movehitpersist = 1 is not turned on so no movecontact triggers should be in play in the second state. So basically something is missing that's actually important.


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.
Re: Couple of Ruby Heart fixes?..
#11  January 12, 2013, 08:05:16 am
  • ***
I tried altering .8 to 2. but, it just made her fast all over again.  Put it back to .8, and she's slow on hit again.  It feels like she's completely stopping after the hit, though.

Spoiler, click to toggle visibilty
Re: Couple of Ruby Heart fixes?..
#12  January 12, 2013, 09:05:06 am
  • ******
  • Legendary XIII
  • I am the eye of the storm to come!
    • New Zealand
    • network.mugenguild.com/cyanide/
So at a guess it's simply the second hit doesn't reach? rather than it's not actually hitting (important to clarify yourself)

Velmul does EXACTLY what it sounds like, it multplies the current velocity by the value shown. There are a few things we can change to make her slow down less, but you're still going to have to play round a lot.

x = 0.95
y = 0.95
Slow down will decrease

Add
persistent = 4
to it and it will only decrease every 4 ticks after contact.


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.
Re: Couple of Ruby Heart fixes?..
#13  January 12, 2013, 06:28:07 pm
  • ***
You know.. I think I'm going to have to play mvc2 again, but, I cannot get to my PS3 to test that right now, and I haven't played it in over a week.  It's amazing how well you think you know these things until the finest details get blurry...

Anyway, she has a hard knock down on hit, and I'm not sure if she does in mvc2.  I just know it connects, I can OTG into launchers out of it, and do it again.  I'll mess around with this character some more after I've actually played mvc2 again.