collapse

Author Topic: Detcting Winmugen or Mugen 1.0  (Read 1001 times)

0 Members and 2 Guests are viewing this topic.

Offline O Ilusionista

  • Since 1999 and kicking :)
  • IMT Content Architect
  • *
  • Posts: 12476
  • Country: Brazil br
  • Last Login:November 11, 2024, 12:35:15 PM
  • OpenBOR & Mugen addicted
    • BMT - Brazil Mugen Team
    • Email
Detcting Winmugen or Mugen 1.0
« on: September 25, 2010, 11:24:54 AM »
This is a tuto made by SonSon3000, and I think that this would help many people.

This will help to detect if the char is beeing played on winmugen or mugen 1.0

On Winmugen, the players have this IDs

Quote
P1 = 32
P2 = 33
P3 = 34
P4 = 35

But on Mugen 1.0, they have different IDs

Quote
P1 = 56
P2 = 57
P3 = 58
P4 = 59

So, we can use this code to detect which mugen we are using:

Quote
[State -2, VarSet]
type = NULL
triggerall = TeamMode = Single
trigger1 = TeamSide = 1
trigger1 = ID = 32
trigger1 = var(0):= 11
trigger2 = TeamSide = 2
trigger2 = ID = 33
trigger2 = var(0):= 12
trigger3 = TeamSide = 1
trigger3 = ID = 56
trigger3 = var(0):= 21
trigger4 = TeamSide = 2
trigger4 = ID = 57
trigger4 = var(0):= 22

[State -2, VarSet]
type = NULL
triggerall = TeamMode = Simul
trigger1 = TeamSide = 1
trigger1 = ID = 32 || ID = 33
trigger1 = var(0):= 11
trigger2 = TeamSide = 2
trigger2 = ID = 34 || ID = 35
trigger2 = var(0):= 12
trigger3 = TeamSide = 1
trigger3 = ID = 56 || ID = 57
trigger3 = var(0):= 21
trigger4 = TeamSide = 2
trigger4 = ID = 58 || ID = 59
trigger4 = var(0):= 22

[State -2, Which Mugen?]
type = DisplayToClipboard
trigger1 = var(0) = 11 || var(0) = 12
text = "WinMugenHack"

[State -2, Qual mugen é qual]
type = DisplayToClipboard
trigger1 = var(0) = 21 || var(0) = 22
text = "Mugen 1.X"


CODE UPDATED
-----------------------------

I try - with no success - to identify the screen resolution, using a code that could be used both in Winmugen and Mugen 1.0.

I noticed that even if you use 1280x720 resolution and use a helper to make a DisplayToClipboard of FrontEdgeDist, the result is ALWAYS 320.
« Last Edit: September 25, 2010, 04:07:19 PM by O Ilusionista »



Offline ClubSyN-X-TReME

  • Character and Interactive Stage Specialist
  • Club Syndicate Admin
  • *
  • Posts: 1641
  • Last Login:July 28, 2014, 06:54:54 AM
    • Club SyN -X-treme
Re: Detcting Winmugen or Mugen 1.0
« Reply #1 on: September 25, 2010, 11:58:43 AM »
O'illu, these ID's especially in winmugen are not always the same.
And I seen the 1.0 id's on winmugen also at times.

The only true way is to detect a 1.0 characters is through its def file "mugenversion" line

Post Merge: September 25, 2010, 12:06:17 PM
you said id 56 is a 1.0 character right?

well:




This is winmugen and you can see the ID is clearly 56.
So what you stated isn't always guaranteed.
« Last Edit: September 25, 2010, 12:06:17 PM by ClubSyN-X-Treme.net »

Offline O Ilusionista

  • Since 1999 and kicking :)
  • IMT Content Architect
  • *
  • Posts: 12476
  • Country: Brazil br
  • Last Login:November 11, 2024, 12:35:15 PM
  • OpenBOR & Mugen addicted
    • BMT - Brazil Mugen Team
    • Email
Re: Detcting Winmugen or Mugen 1.0
« Reply #2 on: September 25, 2010, 12:17:54 PM »
Quote
So what you stated isn't always guaranteed.

Quote
This is a tuto made by SonSon3000...

About the ID 56, this is weird. How you get that? in which mode?


Quote
O'illu, these ID's especially in winmugen are not always the same.

I think that is missing a TeamMode trigger there, but you will get the right numbers using that.

Offline ClubSyN-X-TReME

  • Character and Interactive Stage Specialist
  • Club Syndicate Admin
  • *
  • Posts: 1641
  • Last Login:July 28, 2014, 06:54:54 AM
    • Club SyN -X-treme
Re: Detcting Winmugen or Mugen 1.0
« Reply #3 on: September 25, 2010, 12:32:39 PM »



Winmugen team mode

And in my earlier post, it was arcade "single" mode

Offline O Ilusionista

  • Since 1999 and kicking :)
  • IMT Content Architect
  • *
  • Posts: 12476
  • Country: Brazil br
  • Last Login:November 11, 2024, 12:35:15 PM
  • OpenBOR & Mugen addicted
    • BMT - Brazil Mugen Team
    • Email
Re: Detcting Winmugen or Mugen 1.0
« Reply #4 on: September 25, 2010, 12:54:04 PM »
that is weird. I nevet got an ID 56.

Post Merge: September 25, 2010, 04:08:20 PM
CODE UPDATED

Quote
[State -2, VarSet]
type = NULL
triggerall = TeamMode = Single
trigger1 = TeamSide = 1
trigger1 = ID = 32
trigger1 = var(0):= 11
trigger2 = TeamSide = 2
trigger2 = ID = 33
trigger2 = var(0):= 12
trigger3 = TeamSide = 1
trigger3 = ID = 56
trigger3 = var(0):= 21
trigger4 = TeamSide = 2
trigger4 = ID = 57
trigger4 = var(0):= 22

[State -2, VarSet]
type = NULL
triggerall = TeamMode = Simul
trigger1 = TeamSide = 1
trigger1 = ID = 32 || ID = 33
trigger1 = var(0):= 11
trigger2 = TeamSide = 2
trigger2 = ID = 34 || ID = 35
trigger2 = var(0):= 12
trigger3 = TeamSide = 1
trigger3 = ID = 56 || ID = 57
trigger3 = var(0):= 21
trigger4 = TeamSide = 2
trigger4 = ID = 58 || ID = 59
trigger4 = var(0):= 22

[State -2, Which Mugen?]
type = DisplayToClipboard
trigger1 = var(0) = 11 || var(0) = 12
text = "WinMugenHack"

[State -2, Qual mugen é qual]
type = DisplayToClipboard
trigger1 = var(0) = 21 || var(0) = 22
text = "Mugen 1.X"
« Last Edit: September 25, 2010, 04:08:20 PM by O Ilusionista »

Tags:
 


* IMT Facebook

Help us by Donating!

IMT Discord

Join us at our Discord! Click the image below!

* IMT Shoutbox

Sorry, this shoutbox does not exist.

* Recent Posts

D2TD VS Showcase Thread by D2TD
[Today at 09:12:03 AM]


Marvel vs. Capcom: Eternity of Heroes REMAKE Game Update 1.3.0 - N.A.O.H. by LightFlare
[November 21, 2024, 09:44:09 PM]


Terrordrome: Rise of the Boogeymen Extended Version ( jeepers creepers) version by leonardo
[November 19, 2024, 10:22:47 PM]


Hill of the Nameless(1.1 Only) by Vegaz by LightFlare
[November 19, 2024, 10:50:39 AM]


Golden Axe Returns by gokudo99
[November 19, 2024, 03:59:31 AM]


Barkley Shut Up and Jam! Stages by Vegaz by LightFlare
[November 12, 2024, 11:26:21 AM]


[BOR] _Avengers United Battle Force_ by O Ilusionista
[November 11, 2024, 12:35:24 PM]


Eternal Lament Stage 1.1 & 1.0 by O Ilusionista
[November 11, 2024, 12:34:54 PM]


MatreroG's Stages W.I.P. Concepts by MatreroG
[November 11, 2024, 07:00:56 AM]


Spooky House(1.1 Only/AIGS) by Vegaz by LightFlare
[October 31, 2024, 11:31:36 AM]

* IMT Calendar

November 2024
Sun Mon Tue Wed Thu Fri Sat
1 2
3 4 5 6 7 8 9
10 11 12 13 14 15 16
17 18 19 20 21 22 23
[24] 25 26 27 28 29 30

SimplePortal 2.3.5 © 2008-2012, SimplePortal