Results 1 to 3 of 3

Thread: A strange question (bytes)

  1. #1

    A strange question (bytes)

    Let's say you know that a certain value in a game can only be a '1 byte' value (0-255). How would you change the code so that this value can become a 2 byte value?

    Sometimes you want to set a value higher than 255 but you can't because when the programmer made the game he declared that variable to be a 1 byte value. It would be nice to find a way around this.

  2. #2
    FoolFox
    Guest
    Hello,

    I think you may face a big problem, rewriting
    nearly all the code.

    If the code handle the var the way it's declared (working
    on 1 byte), even if you extend the var(storage) to two
    bytes, you'll have to goes through all parts where the prog
    access the data in order to be sure that the prog handle
    correctly (if the prog use al to read the var, you 'll have
    some trouble to take your 2nd byte in account)....

    I'm not able to think of 'a way around this' right now...

    Regards
    FoolFox
    I promise that I have read the FAQ and tried to use the Search to answer my question.

  3. #3
    Administrator dELTA's Avatar
    Join Date
    Oct 2000
    Location
    Ring -1
    Posts
    4,206
    Blog Entries
    5
    Just as FoolFox says, this will most likely be a quite hard and most of all tedious task, due to several reasons. But there might be much easier ways to achieve your goal. Please be a little more specific about your current project, and we might be able to give some other good tips and solutions.

    dELTA

Similar Threads

  1. strange ollydbg question
    By Hero in forum OllyDbg Support Forums
    Replies: 5
    Last Post: August 21st, 2010, 10:16
  2. Themida - VirtualAllocMemory of four bytes
    By OHPen in forum Malware Analysis and Unpacking Forum
    Replies: 5
    Last Post: August 16th, 2006, 17:51
  3. ASProtect 1.23 RC4 (again) - Stolen bytes
    By Strangerke in forum OllyDbg Support Forums
    Replies: 5
    Last Post: May 6th, 2004, 07:13
  4. damaged stolen bytes ??
    By johndoe1 in forum Malware Analysis and Unpacking Forum
    Replies: 9
    Last Post: March 14th, 2004, 15:02
  5. Reversing a algorithm: 4 bytes read - 8 bytes written
    By DakienDX in forum Advanced Reversing and Programming
    Replies: 9
    Last Post: September 20th, 2001, 13:27

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •