User Tag List

Results 1 to 5 of 5

Thread: Binary object encode to hex crash

  1. #1
    Clicker Multimedia Fusion 2

    Join Date
    May 2007
    Location
    NJ
    Posts
    156
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Binary object encode to hex crash

    Whenever I try to encode to hex with the binary object it just crashes. I have no idea why. And the help file for the object doesnt help at all, it just says what it does, not how to use it.

    Should I be encoding before I load my file or something?!?

    Im trying to do this because Hex$() doesnt work right for some reason. The byte reads 8E in a regular hex editor but Hex$() spits it out as FFFFFFFFFFFFFF8E and its starting to really tick me off. I thin kits because Hex$() is in Qword or something (got this from playing with hex calculator) and I need it to just be in byte.

  2. #2
    Clicker Multimedia Fusion 2 DeveloperSWF Export Module

    Join Date
    Jun 2006
    Posts
    6,773
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)

    Re: Binary object encode to hex crash

    Right$(Hex$(142), 2) = 8E

  3. #3
    No Products Registered

    Join Date
    Oct 2006
    Location
    Sweden
    Posts
    1,141
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Binary object encode to hex crash

    The problem is that some extensions read bytes as signed numbers and as a result you get -114 when you read 8E. As negative numbers cannot be displayed as a hexadecimal value (atleast Hex$() can't) the result gets wrapped around to FFFF FFFF FFFF FF8E. To solve the problem you can turn the number into an unsigned byte by using (value + 256) mod 256.

  4. #4
    Clicker Multimedia Fusion 2

    Join Date
    May 2007
    Location
    NJ
    Posts
    156
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Binary object encode to hex crash

    Not what I need..

    Right$(Hex$(byte( "Binary object", 12723396+(6*List Select( "List" )))), 2)

    Is what Im using. Works great, but when I have a single digit value such as 1 it returns "x1". So I tried doing:

    Right$(Hex$(byte( "Binary object", 12723396+(6*List Select( "List" )))), Len(Hex$(byte( "Binary object", 12723396+(6*List Select( "List" )))))-2)

    which works great but it returns it in Qword (whatever that is) which means I get FFFFFFFFFFFFFF8E for that value.

    EDIT: Didnt see above post. That was directed to jamie. Reading it now..

    EDIT2: Ok, so Id do Hex((value + 256) mod 256) ?

    EDIT3: Ah, dude. thanks so much. Got it to work with

    Right$(Hex$((byte( "Binary object", 12723396+(6*List Select( "List" )))+256) mod 256), Len(Hex$((byte( "Binary object", 12723396+(6*List Select( "List" )))+256) mod 256))-2)

  5. #5
    Clicker Multimedia Fusion 2

    Join Date
    May 2007
    Location
    NJ
    Posts
    156
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Binary object encode to hex crash

    One more question. Can I reverse the process? Like go from 8E back to FFFF FFFF FFFF FF8E?

Similar Threads

  1. URL encode Problem
    By StingRay in forum iOS Export Module Version 2.0
    Replies: 1
    Last Post: 7th October 2013, 10:49 AM
  2. Binary Object Compression Crash
    By Ryan in forum Multimedia Fusion 2 - Technical Support
    Replies: 7
    Last Post: 4th August 2013, 04:23 AM
  3. Encode URL
    By kiko in forum iOS Export Module Version 2.0
    Replies: 4
    Last Post: 22nd July 2013, 08:20 PM
  4. URL encode
    By ASD in forum Extension Development
    Replies: 0
    Last Post: 26th February 2011, 09:51 PM
  5. Binary object - Hex encode
    By Ross in forum Multimedia Fusion 2 - Technical Support
    Replies: 4
    Last Post: 26th January 2007, 12:24 AM

Posting Permissions

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