collapse

Author Topic: Prevent users from changing the constants?  (Read 506 times)

0 Members and 1 Guest are viewing this topic.

Offline atk402

  • New Member
  • *
  • Posts: 5
  • Last Login:September 25, 2013, 04:31:12 AM
  • Hi! I'm new!!
Prevent users from changing the constants?
« on: September 18, 2013, 01:43:01 AM »
I was looking into the character "Dark Donald" to learn some more about Advanced AI character's codes.. and I found out that if you fiddle around with the constant, it will show you a screamer picture at roundstate >=2

So I wanted to dig in and find out how this works, and found this :

[State -2]
Type=ChangeState
Value=ifelse(random<500,5998,5999)
triggerall=ctrl
triggerall=roundstate>=2
triggerall=!ishelper
trigger1=Const(Data.Life)<=999
trigger2=Const(Data.attack)<=99
trigger3=Const(Data.defence)<=99
trigger4=Const(Data.power)<=2999

This seems to change the state into 5998, 5999 (which is the screamer) when const are under the data for what it's told.

I've deleted this -2 state to see if it fixes the problem, but now the 2 characters are just frozen forever when the round starts : http://i.imgur.com/ggeOzBo.jpg

I looked everywhere that contains the number 5999. 5998 but I couldn't find it anywhere in the codes.. Does anyone else know what this could be?

http://www.mediafire.com/download/z5grhexudxlg85d/D-Donald.rar this is the character I've downloaded

Thanks!



Offline Cyanide

  • MUGEN Content Architect
  • *****
  • Posts: 813
  • Last Login:March 29, 2019, 06:52:34 AM
    • Mugen Obscurity
Re: Prevent users from changing the constants?
« Reply #1 on: September 18, 2013, 01:48:40 AM »
55mb? Holy hell, do they not know how to edit sounds or crop sff files??! Nothing with that name should be that big.

A quick way to continue is to search round for const(data.life) and see where else it makes use of that trigger. Sounds like they have some sort of check in place to freeze the anim/state. To double check that's not the case, hit ctrl+d and see what state he's in. Also hit ctrl+I to see if it breaks it and he behaves normally afterwards. It may be based in the intro if ctrl+i breaks it out.

Offline atk402

  • New Member
  • *
  • Posts: 5
  • Last Login:September 25, 2013, 04:31:12 AM
  • Hi! I'm new!!
Re: Prevent users from changing the constants?
« Reply #2 on: September 18, 2013, 01:59:23 AM »
Cool! Ctrl+i didn't help but I certainly didn't know that existed. Thanks :D

Offline Cyanide

  • MUGEN Content Architect
  • *****
  • Posts: 813
  • Last Login:March 29, 2019, 06:52:34 AM
    • Mugen Obscurity
Re: Prevent users from changing the constants?
« Reply #3 on: September 18, 2013, 06:03:51 AM »
Ok, so either there's another const check in state -2 or -1, or in possibly state 0

What state is he in while frozen? I'm not downloading 55mb to search out terribad code.

Offline atk402

  • New Member
  • *
  • Posts: 5
  • Last Login:September 25, 2013, 04:31:12 AM
  • Hi! I'm new!!
Re: Prevent users from changing the constants?
« Reply #4 on: September 18, 2013, 06:59:58 AM »
haha, that's fine. it is quite big from all the useless images

It sends every single state into state 5998, 5999 which is the said screamer. I believe the creator put it in so people don't play around with the character's constant to make him weaker.

I deleted the state -2 I posted originally, but I can't find anything else that has similar values etc (on both -1, 0 etc)

so I was just curious how would it be possible to do this

Offline Cyanide

  • MUGEN Content Architect
  • *****
  • Posts: 813
  • Last Login:March 29, 2019, 06:52:34 AM
    • Mugen Obscurity
Re: Prevent users from changing the constants?
« Reply #5 on: September 18, 2013, 07:32:05 PM »
Well if he IS in that state and you've deleted the -2. There is another instance of it somewhere.

Press ctrl+d and tell me what state he is in while frozen, Then we can look that up, or at least do a general search for anything that might send us there.

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

Virtual Bart Science Fair by Lord_Enemil
[Today at 08:23:51 PM]


Classic VS : Cheng / Athena by ELECTRO
[June 13, 2024, 03:03:58 PM]


Marvel vs. Capcom: Eternity of Heroes REMAKE Game Update 1.3.0 - N.A.O.H. by Uche_of_IMT
[June 10, 2024, 11:25:24 PM]


Street Fighter Spec Ops 2021 by O Ilusionista
[June 08, 2024, 01:36:06 PM]


Lasombra's IKEMEN Go Interactive Stages' WIP Topic and Releases by Lasombra Demon
[June 06, 2024, 07:34:10 PM]


Kirby the Dream Battle by O Ilusionista
[June 06, 2024, 01:04:12 PM]


Neo Geo Pocket by malevka2
[June 05, 2024, 10:53:57 AM]


[WIP] Pocket Dimensional Clash 2 by O Ilusionista
[June 03, 2024, 03:18:12 PM]


[BOR] _Avengers United Battle Force_ by O Ilusionista
[June 03, 2024, 03:13:51 PM]


Mega Man & Bass - Dynamo Man by Sir Rousseau by O Ilusionista
[June 03, 2024, 03:09:50 PM]

* IMT Calendar

June 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

No calendar events were found.
SimplePortal 2.3.5 © 2008-2012, SimplePortal