collapse

Author Topic: Prevent users from changing the constants?  (Read 480 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

Street Fighter 1 Ultimate Ryu by ELECTRO
[May 22, 2024, 03:58:25 PM]


China Town (Revenge of Shinobi) by Lord_Enemil
[May 22, 2024, 03:02:10 PM]


Neon Light Force Demo by Uche_of_IMT
[May 22, 2024, 10:21:37 AM]


Marvel vs. Capcom: Eternity of Heroes REMAKE Game Update 1.3.0 - N.A.O.H. by Uche_of_IMT
[May 21, 2024, 11:50:20 PM]


The Spider release + Spider-Man game by kobun
[May 21, 2024, 02:05:24 AM]


Let's all try it together! Yazawanainn gose breakdancing in MUGEN! by GTFoxN6Y
[May 18, 2024, 05:00:14 PM]


[WIP] Pocket Dimensional Clash 2 by O Ilusionista
[May 18, 2024, 11:17:34 AM]


Classic VS : Athena by ELECTRO
[May 15, 2024, 01:25:51 PM]


D2TD VS Showcase Thread by D2TD
[May 12, 2024, 10:20:11 AM]


Ballroom Hallway (1.1 Only/AIGS) by Vegaz by LightFlare
[May 09, 2024, 11:53:48 AM]

* IMT Calendar

May 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 31

SimplePortal 2.3.5 © 2008-2012, SimplePortal