Jump to content

This site uses cookies. By continuing to browse the site you are agreeing to our use of cookies. Find out more here. X
X


Photo

AutoIt Flash Variable Editing.


  • Please log in to reply
36 replies to this topic

#1 AlmarM

AlmarM

    Programming my way.

  • Active Members
  • PipPipPipPipPipPip
  • 1,694 posts

Posted 17 October 2008 - 07:21 AM

Hi!

I dont know if this is ever dont. Else I found a way to edit the variables in a Flash Game.

AutoIt         
$GUI = GUICreate("Age of War [AutoIt Var Editing]", 670, 560, -1, -1) $oGame = ObjCreate("ShockwaveFlash.ShockwaveFlash.1") $oGameGUI = GUICtrlCreateObj($oGame, 10, 10, 650, 450) With $oGame     .bgcolor = "#000000"     .Movie = "<a href='http://207.218.234.34/ageofwarupdate1MzYx.swf' class='bbc_url' title='External link' rel='nofollow external'>http://207.218.234.34/ageofwarupdate1MzYx.swf"</a>     .Loop = True     .ScaleMode = 2     .wmode = "Opaque" EndWith $Money = GUICtrlCreateInput("Money", 10, 470, 100, 20) $SetMoney = GUICtrlCreateButton("Set Money", 120, 468, 100) $TechLevel = GUICtrlCreateInput("Tech Level (1 - 5)", 10, 500, 100, 20) $SetTechLevel = GUICtrlCreateButton("Set Tech Level", 120, 498, 100) $XP = GUICtrlCreateInput("XP", 10, 530, 100, 20) $SetXP = GUICtrlCreateButton("Set XP", 120, 528, 100) GUISetState() While 1     $nMsg = GUIGetMsg()     Select     Case $nMsg = -3         Exit     Case $nMsg = $SetMoney         $Read_Money = GUICtrlRead($Money)         $oGame.SetVariable("cash", $Read_Money)     Case $nMsg = $SetTechLevel         $Read_TechLevel = GUICtrlRead($TechLevel)         $oGame.SetVariable("tech_level", $Read_TechLevel)     Case $nMsg = $SetXP         $Read_XP = GUICtrlRead($XP)         $oGame.SetVariable("xp", $Read_XP)     EndSelect WEnd


Lemme know what you think ^^,

AlmarM

Minesweeper

A minesweeper game created in autoit, source available.

 

_Mouse_UDF

An UDF for registering functions to mouse events, made in pure autoit.

 

2D Hitbox Editor

A 2D hitbox editor for quick creation of 2D sphere and rectangle hitboxes.








#2 jokke

jokke

    Universalist

  • Active Members
  • PipPipPipPipPipPip
  • 393 posts

Posted 17 October 2008 - 07:33 AM

Thats awesome :P
UDF:Crypter a file encrypt / decrypt tool with no need to remember a password again. Based on Caesar cipher using entire ASCII Table.Script's: PixelSearch Helper, quick and simple way to create a PixelSeach.Chatserver - simplified, not so complicated multi-socket server.AutoIT - Firewall, simple example on howto create a firewall with AutoIt.Posted Image

#3 torels

torels

    I Hacked 127.0.0.1! :D

  • Active Members
  • PipPipPipPipPipPip
  • 676 posts

Posted 17 October 2008 - 09:09 AM

yes, I agreee :P

I'm wondering why I won the game immediately XD
Some Projects:indifference will ruin the world, but in the end... WHO CARES :P---------------http://torels.altervista.org

#4 AlmarM

AlmarM

    Programming my way.

  • Active Members
  • PipPipPipPipPipPip
  • 1,694 posts

Posted 17 October 2008 - 09:41 AM

yes, I agreee :(

I'm wondering why I won the game immediately XD


Whahah, hmm lemme guess, you used my script :P?

AlmarM

Minesweeper

A minesweeper game created in autoit, source available.

 

_Mouse_UDF

An UDF for registering functions to mouse events, made in pure autoit.

 

2D Hitbox Editor

A 2D hitbox editor for quick creation of 2D sphere and rectangle hitboxes.


#5 Pain

Pain

    Universalist

  • Active Members
  • PipPipPipPipPipPip
  • 627 posts

Posted 17 October 2008 - 10:08 AM

Nice to see it can be done without NomadMemory.

#6 jokke

jokke

    Universalist

  • Active Members
  • PipPipPipPipPipPip
  • 393 posts

Posted 17 October 2008 - 10:10 AM

Nice to see it can be done without NomadMemory.


Well some time you still have to use memory reading / writing to do this, but inn this example its actual object interference, witch is damn cool!
UDF:Crypter a file encrypt / decrypt tool with no need to remember a password again. Based on Caesar cipher using entire ASCII Table.Script's: PixelSearch Helper, quick and simple way to create a PixelSeach.Chatserver - simplified, not so complicated multi-socket server.AutoIT - Firewall, simple example on howto create a firewall with AutoIt.Posted Image

#7 jokke

jokke

    Universalist

  • Active Members
  • PipPipPipPipPipPip
  • 393 posts

Posted 17 October 2008 - 10:16 AM

Another thing, AlmarM how did you go forth to find the variables ? (Never seen on flash scripts.)
UDF:Crypter a file encrypt / decrypt tool with no need to remember a password again. Based on Caesar cipher using entire ASCII Table.Script's: PixelSearch Helper, quick and simple way to create a PixelSeach.Chatserver - simplified, not so complicated multi-socket server.AutoIT - Firewall, simple example on howto create a firewall with AutoIt.Posted Image

#8 AlmarM

AlmarM

    Programming my way.

  • Active Members
  • PipPipPipPipPipPip
  • 1,694 posts

Posted 17 October 2008 - 11:41 AM

Ah, good question!
Ive got this program 'So think SWF Decompiler'. If you know how to use it you can find the variables.
Not in every flash game are the variables foundable.

AlmarM

Minesweeper

A minesweeper game created in autoit, source available.

 

_Mouse_UDF

An UDF for registering functions to mouse events, made in pure autoit.

 

2D Hitbox Editor

A 2D hitbox editor for quick creation of 2D sphere and rectangle hitboxes.


#9 TehWhale

TehWhale

    Whalee..

  • Banned (NOT IN USE)
  • 1,482 posts

Posted 17 October 2008 - 11:42 AM

Thats like...Really awesome... :Stunned:

#10 MerkurAlex

MerkurAlex

    I live on cookies and AutoIt.

  • Active Members
  • PipPipPipPipPipPip
  • 639 posts

Posted 17 October 2008 - 01:28 PM

Yea i used to make trainers like this though i never posted here good example!

Also if anyone wants a program that can find variables from a flash file PM me.

Larry is a mass murderer?! Posted ImageIt's always the quiet, clean cut, bald guys... Posted Image


#11 AlmarM

AlmarM

    Programming my way.

  • Active Members
  • PipPipPipPipPipPip
  • 1,694 posts

Posted 17 October 2008 - 01:41 PM

Yea i used to make trainers like this though i never posted here good example!

Also if anyone wants a program that can find variables from a flash file PM me.

As I already said, you could use 'Sothink SWF Decompiler' or 'flasm'.

AlmarM

Minesweeper

A minesweeper game created in autoit, source available.

 

_Mouse_UDF

An UDF for registering functions to mouse events, made in pure autoit.

 

2D Hitbox Editor

A 2D hitbox editor for quick creation of 2D sphere and rectangle hitboxes.


#12 MerkurAlex

MerkurAlex

    I live on cookies and AutoIt.

  • Active Members
  • PipPipPipPipPipPip
  • 639 posts

Posted 17 October 2008 - 01:56 PM

As I already said, you could use 'Sothink SWF Decompiler' or 'flasm'.

AlmarM

Oh sorry i missed that but i know a program that will list the variables with a treeview from ._root and everything without decompile.

Larry is a mass murderer?! Posted ImageIt's always the quiet, clean cut, bald guys... Posted Image


#13 AlmarM

AlmarM

    Programming my way.

  • Active Members
  • PipPipPipPipPipPip
  • 1,694 posts

Posted 17 October 2008 - 02:15 PM

Oeh, can you PM the name?

AlmarM

Minesweeper

A minesweeper game created in autoit, source available.

 

_Mouse_UDF

An UDF for registering functions to mouse events, made in pure autoit.

 

2D Hitbox Editor

A 2D hitbox editor for quick creation of 2D sphere and rectangle hitboxes.


#14 darkjohn20

darkjohn20

    Universalist

  • Active Members
  • PipPipPipPipPipPip
  • 347 posts

Posted 10 November 2009 - 12:17 AM

In the back of my mind I knew how to do this, but I never did.

Thanks AlmarM, already reproduced your example with more features.

#15 darkjohn20

darkjohn20

    Universalist

  • Active Members
  • PipPipPipPipPipPip
  • 347 posts

Posted 05 December 2009 - 11:42 PM

Hey, I have been using your example on many different games now, but I wanted to go further. Is there a list of commands somewhere that I can use?

I already know SetVariable and GetVariable. Why does GetVariable not work?

I was thinking more along the lines of pushing or editing values in an array.

var msgs = new Array();
msgs.push("Hello")

would be the AS code.

Would there be a way to change Hello, or even add new messages?

If you could point me to a list that would be great. If not, thanks anyway, and hopefully I can at least change this example?

Edited by darkjohn20, 06 December 2009 - 11:59 PM.


#16 jaenster

jaenster

    There is no spoon.

  • Active Members
  • PipPipPipPipPipPip
  • 670 posts

Posted 06 December 2009 - 04:36 PM

Neat!

Nice jobs, Can i ask.. how you came on the idea?
-jaenster

#17 darkjohn20

darkjohn20

    Universalist

  • Active Members
  • PipPipPipPipPipPip
  • 347 posts

Posted 06 December 2009 - 05:29 PM

MerkurAlex, would this be the idea used behind that program to list variables?

http://livedocs.adobe.com/flash/9.0/UsingFlash/help.html?content=WSADD4C013-B535-48ff-B902-52FE29FFC672.html

#18 darkjohn20

darkjohn20

    Universalist

  • Active Members
  • PipPipPipPipPipPip
  • 347 posts

Posted 06 December 2009 - 05:37 PM

AlmarM, I have run across a game which I cannot edit variables in. It's Storm the House 2 off of AddictingGames.com.

I know the global variables, but I cannot set them. Is there anything special you must do for globals?

A few examples would be _global.maxammo, _global.craftsmen...

Thanks, John

#19 AlmarM

AlmarM

    Programming my way.

  • Active Members
  • PipPipPipPipPipPip
  • 1,694 posts

Posted 06 December 2009 - 10:23 PM

@ All
Wow, cool, bringing up the topic again ^^,

@darkjohn20
Yeah, I think it should be something like .SetVariable("_global.maxammo", 999)
Im not sure, I just figured out the .SetVariable.

@jaenster
Eeehmmm... Good question >.<'

Minesweeper

A minesweeper game created in autoit, source available.

 

_Mouse_UDF

An UDF for registering functions to mouse events, made in pure autoit.

 

2D Hitbox Editor

A 2D hitbox editor for quick creation of 2D sphere and rectangle hitboxes.


#20 darkjohn20

darkjohn20

    Universalist

  • Active Members
  • PipPipPipPipPipPip
  • 347 posts

Posted 06 December 2009 - 11:50 PM

I tried that, but it didn't work.




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users