• Amused
  • Angry
  • Annoyed
  • Awesome
  • Bemused
  • Cocky
  • Cool
  • Crazy
  • Crying
  • Down
  • Drunk
  • Embarrased
  • Enraged
  • Friendly
  • Geeky
  • Godly
  • Happy
  • Hateful
  • Hungry
  • Innocent
  • Meh
  • Piratey
  • Poorly
  • Sad
  • Secret
  • Shy
  • Sneaky
  • Tired
  • Wtf
  • At Work
  • CodenzHub
  • Coding
  • Deejaying
  • Donating
  • Drinking
  • Eating
  • Editing
  • Hacking
  • Hate Mailing
  • Jamin'
  • Lagging
  • Live Streaming
  • Lurking
  • No Status
  • Pawning
  • PC Gaming
  • PS Gaming
  • Raging
  • Reversing
  • Sleeping
  • Steam Gaming
  • Trolling
  • TwitchStreamer
  • Vodka!
  • Watching TV/Movie
  • Xbox Gaming
  • Youtuber
  • Zombies
  • Results 1 to 3 of 3
    1. #1
      Newbie
      Learning to hack games!
       
      Feeling Normal
       
      hallen's Avatar
      Join Date
      Nov 2013
      Posts
      2
      Thanks (-->)
      0
      Thanks (<--)
      0

      Floats from assembly

      John Kittz
      So I followed fleeps tutorial on codecaving and patternscanning. I can write to a float that I got from the codecaving.

      This is how I write to the address and it works.
      [PHP] *(float*)MaxTimePt = 10.0f; [/PHP]

      Now, how would I go about reading the value from MaxTimePt?
      MaxTimePt is a DWORD.

      I tried casting to float, but that doesn't give me the correct value.

      Thanks

    2. #2
      Kim Kong Trasher
      I don't have status.
       
      Raging
       
      c5's Avatar
      Join Date
      Jul 2012
      Location
      Mankei Iland
      Posts
      1,221
      Thanks (-->)
      97
      Thanks (<--)
      491
      Code:
      float fReadValue = *(float*)MaxTimePt;
      Floats from assembly

    3. #3
      Newbie
      Learning to hack games!
       
      Feeling Normal
       
      hallen's Avatar
      Join Date
      Nov 2013
      Posts
      2
      Thanks (-->)
      0
      Thanks (<--)
      0
      Cheats'n'Trainers
      That's the thing, if I do that the game crashes for some reason.

      EDIT:
      The address was wrong, your solution worked, thanks
      Last edited by hallen; 04-12-2014 at 03:16 AM.

    Similar Game Hacker Threads

    1. [Discuss] Hooking function to grab register in assembly and save it for use
      By Rekker in forum Hacking Help
      Replies: 5
      Last Post: 05-15-2016, 03:14 PM
    2. Replies: 8
      Last Post: 07-01-2015, 01:10 PM
    3. [Release] Assembly Language
      By Syntax Error in forum Misc Coding
      Replies: 5
      Last Post: 12-14-2014, 10:14 PM
    4. [Help] Small Assembly question
      By NTvalk in forum Misc Coding
      Replies: 3
      Last Post: 12-23-2013, 02:33 PM
    5. [Info] Intro to Assembly Language
      By saebur in forum ASM
      Replies: 0
      Last Post: 09-15-2012, 10:49 AM

    Tags for this Thread