User Tag List

Results 1 to 3 of 3

Thread: [Request / Idea] Custom Base Object

  1. #1
    Clicker Multimedia Fusion 2

    Join Date
    Sep 2006
    Location
    Britain, South Coast
    Posts
    1,030
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    [Request / Idea] Custom Base Object

    This isn't really really important, but it's a nice idea, and seems fairly simple, so I thought I'd mention it if any coders out there were looking for a simple idea they could implement.


    The object's purpose is to convert numbers from one base to another. But it's not like Base Converter. It can actually be used to create your own number systems (making a more byte-efficient system than decimal or Hex, but without the ASCII conflicts you get using binary numbers).

    The object contains an array called the Character List Array.

    This is a text array (0-based) containing the textual representation of every digit in the number system. So for decimal, it would contain the ASCII codes for numbers 0 thru 9. For Hex, it would also contain A thru F.

    The ID of each element corresponds with the value of that digit (so 9 will be in element number nine, F will be in element number fifteen).

    This array can be altered by the user, so he could add, remove or replace characters. So I might change 'F' to 'G', so 255 becomes GG instead of FF.

    Or I might add G to the end, so I now have a base 17 number system rather than base 16 (so 255 is now 'F0' instead of 'FF').

    Since you can choose exactly which characters are used by the system, not only can you have more than 16 (so it's more efficient than hex), but you can also choose not to include certain control characters. So if you're using a comma to separate your data, you could design a number system that uses all letters of the alphabet, upper and lowercase, all numbers and all special characters except for the comma. That way you could have a number system which goes all the way up over a hundred before it breaks into double figures - and still not mess up your delimited list.

    The result is a number system that can hold a value of about 2,136,750,625 in just four digits, LOL.

  2. #2
    Forum Moderator Fusion 2.5 DeveloperFusion 2.5+ DLCAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleSWF Export ModuleXNA Export Module
    Sphax's Avatar
    Join Date
    Jun 2006
    Location
    Paris, France
    Posts
    4,454
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: [Request / Idea] Custom Base Object

    Try using "Sphax Formatted object". With it you'll be able to convert any base in any base. I'll maybe add the possibility to set the characters set in the futur.

  3. #3
    Clicker Multimedia Fusion 2 Developer
    Jax's Avatar
    Join Date
    Jul 2006
    Location
    UK
    Posts
    702
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)

    Re: [Request / Idea] Custom Base Object

    If you are clever PackX can do this. But I haven't (and won't) convert it to MMF2.

Similar Threads

  1. [Request / Idea] Expression Object
    By Dines in forum Extension Development
    Replies: 7
    Last Post: 29th October 2009, 11:43 PM
  2. Mouvement plateforme custom basé sur le timer
    By Olivier in forum Multimedia Fusion 2 - Technical Support
    Replies: 23
    Last Post: 27th October 2008, 01:33 PM
  3. Mouvement plateforme custom basé sur le timer
    By Olivier in forum File Archive
    Replies: 0
    Last Post: 26th October 2008, 03:26 PM
  4. [Idea/Request] Bit Mask Object
    By Dines in forum Extension Development
    Replies: 10
    Last Post: 18th November 2007, 01:24 PM
  5. [Request/Idea] Icon Object
    By LIJI in forum Extension Development
    Replies: 5
    Last Post: 15th July 2007, 09:35 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
  •