YesNoOk
avatar

PlayerID 56 (Read 10532 times)

Started by Алексей, July 29, 2013, 06:28:35 pm
Share this topic:
PlayerID 56
#1  July 29, 2013, 06:28:35 pm
  • ****
  • Hey.
    • Ukraine
    • mugencoder.com
Hey Guys,

I'm currently implementing various full game elements into my NZCR full game and have a question in one regard. In order to keep my helper count as low as I can, I only want p1 to spawn needed helpers for platforms and obtainable items with effects. To do this, I'm relying on the fact that P1's ID is always 56. Like this:
Code:
; Code within NZCR Assets Helper that gets spawned per character.
; This would be used to trigger elements from P1 that the other players are coded to react to appropriately. To minimize the number of helpers spawned.
triggerall = IsHomeTeam && (root,ID || !numpartner)
I noticed that if I don't do this limiting of some kind, that each player spawns 4-5 extra helpers, which could be very bad on a simul match of 2-2. XD

Now, I'm not having any issues. It proves to be pretty stable and always working, but I need to know: from your experience and knowledge of MUGEN, can player1's ID ever change from 56? Does it ever?

Thanks. :)

-[Все слова это только слова.]-
Re: PlayerID 56
#2  July 29, 2013, 07:09:22 pm
  • **
can player1's ID ever change from 56? Does it ever?
As far as I know, P1's ID is set by default to the same value as the HelperMax parameter in your mugen.cfg.

I'm not sure whether it ever changes in-game. Despawning/respawning P1 doesn't do the trick, and I can't think of anything else that might...
Re: PlayerID 56
#3  July 29, 2013, 07:12:05 pm
  • ****
  • Hey.
    • Ukraine
    • mugencoder.com
can player1's ID ever change from 56? Does it ever?
As far as I know, P1's ID is set by default to the same value as the HelperMax parameter in your mugen.cfg.

I'm not sure whether it ever changes in-game. Despawning/respawning P1 doesn't do the trick, and I can't think of anything else that might...

Yeah, I figured it was safe, because nothing has failed so far with me relying on it. Also, since it's a full game environment, I do have more control than normal. :) It's just one of those things that makes you wonder, you know? Thanks for the info.))

-[Все слова это только слова.]-
Re: PlayerID 56
#4  August 04, 2013, 03:51:46 am
  • *****
  • 11 years of MFG and counting :)
    • Brazil
    • www.brazilmugenteam.com
if I am not wrong, the ID change when you are in a Simuls fight, I don't remember
Re: PlayerID 56
#5  August 04, 2013, 03:55:10 am
  • ****
  • Hey.
    • Ukraine
    • mugencoder.com
if I am not wrong, the ID change when you are in a Simuls fight, I don't remember

I don't think it does. I just did a quick test and it remained the same, at 56. As long as that ID is constant, my logic will work. So far so good. :D

-[Все слова это только слова.]-
Re: PlayerID 56
#6  August 04, 2013, 04:02:53 am
  • *****
  • 11 years of MFG and counting :)
    • Brazil
    • www.brazilmugenteam.com
Re: PlayerID 56
#7  August 04, 2013, 04:04:37 am
  • ****
  • Hey.
    • Ukraine
    • mugencoder.com

-[Все слова это только слова.]-
Re: PlayerID 56
#8  August 04, 2013, 04:08:28 am
  • *****
  • 11 years of MFG and counting :)
    • Brazil
    • www.brazilmugenteam.com
you are welcome. But I don't know if the ID won't change too in Mugen 1.0
Re: PlayerID 56
#9  August 04, 2013, 04:11:01 am
  • ****
  • Hey.
    • Ukraine
    • mugencoder.com
you are welcome. But I don't know if the ID won't change too in Mugen 1.0

Me neither to be honest. It's one of those things that I'll have to find out the hard way through rigorous testing in the different modes, with different people. In that thread you posted, it seems that in survival, the other player ID's change, but I read nothing about P1's ID changing from 56. We'll see, I guess.)

-[Все слова это только слова.]-

2OS

Re: PlayerID 56
#10  August 04, 2013, 06:28:03 am
  • ****
  • Ich schicke dich zur HOELLE ! ¡ ! ¡
    • Egypt
    • deuceovspadez.webs.com/
p1=helpermax
p3=helpermax+1
p2=helpermax+1+(enemy,teammode=simul)
p4=helpermax+1+(teammode=simul)+(enemy,teammode=simul)

besides survival mode this never changes. ever. mugenversion is immaterial.

p1's id can indirectly serve as a helpermax trigger.


winmugen defaults helpermax=32. 1.0 defaults helpermax=56. if you modify helpermax (most people do) that mugenversion detector does absolutely nothing.

i set both mugen versions helpermax to 56.


[ 052012 ] Inazumachi 181/256  /  deviantART   /  2OS Grafphicsxz  Dead Anims ( Orochi/Mizuchi )  /  608's FX Volume 3
Re: PlayerID 56
#11  August 04, 2013, 06:34:27 am
  • ****
  • Hey.
    • Ukraine
    • mugencoder.com
That clears things up a lot. So, looks like everyone was right in sort of way. :)

Hmm, so I guess that means also, that all this time I've been limiting helpers in attacks: instead of using numhelper<28, I should have been using numhelper<floor(helpermax/2)...
A different issue in itself, I know. :P

Personally, If I could, I'd set that sucker way past 56, but sadly you can't. Thanks for the info 2OS. :)

-[Все слова это только слова.]-

2OS

Re: PlayerID 56
#12  August 04, 2013, 09:00:47 am
  • ****
  • Ich schicke dich zur HOELLE ! ¡ ! ¡
    • Egypt
    • deuceovspadez.webs.com/
helpermax isn't really a trigger. just an example.

but like i said p1's id can substitute it since it's not a trigger.

[State HelperMax]
type=null
trigger1=!ishelper
trigger1=!playeridexist(id-1)
trigger1=var(0):=id
trigger1=playeridexist(id-1)
trigger1=var(0):=id-1
trigger1=playeridexist(id-2)
trigger1=var(0):=id-2
trigger1=playeridexist(id-3)
trigger1=var(0):=id-3


numhelper<floor(var(0)/2)


[ 052012 ] Inazumachi 181/256  /  deviantART   /  2OS Grafphicsxz  Dead Anims ( Orochi/Mizuchi )  /  608's FX Volume 3
Re: PlayerID 56
#13  August 04, 2013, 02:38:07 pm
  • ****
  • Hey.
    • Ukraine
    • mugencoder.com
Yeeeeah, I should have read what you wrote before a little more. You'd think there would be a helpermax trigger. How the hell did you come to learn all of these little details about mugen? I feel like there's not one topic (coding-related) that you don't know about it. :D Thanks once more.))

-[Все слова это только слова.]-