User Tag List

Results 1 to 3 of 3

Thread: XNA Edit box object error code 4

  1. #1
    Clicker Fusion 2.5 MacFusion 2.5 DeveloperFusion 2.5 DeveloperAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleMac Export ModuleUniversal Windows Platform Export ModuleSWF Export ModuleXNA Export Module
    Sloxone's Avatar
    Join Date
    Nov 2011
    Location
    France
    Posts
    559
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)

    XNA Edit box object error code 4

    Hi,
    When entering unsupported characters into the text box causes a crash with error 4.I'm using standart font(Arial).

    Try my game Pablo's fruit on App hub
    Here is the soluce from a tester
    Use "Font.DefaultCharacter" to have the game automatically replace unsupported characters with a chosen char.
    Font.DefaultCharacter = '*'; (for example) will replace any unsupported characters with *.

    Where i put this command into Visual studio ?

    Thanks..

    If don't work.I must remove XNA edit box.(i use it to insert password in my game)

    Sloxone

  2. #2
    Clicker Fusion 2.5 DeveloperFusion 2.5+ DLCAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleUniversal Windows Platform Export ModuleXNA Export Module
    Dobermann's Avatar
    Join Date
    Feb 2009
    Location
    France
    Posts
    841
    Mentioned
    38 Post(s)
    Tagged
    0 Thread(s)
    You can replace the characters that aren't supported by the font in VisualStudio. Just open in your game's content the "yourfontname.spritefont" file and go to line #44. Remove the commentary things (<!-- and -->) and the unsupported characters will be replaced by *. You can change it by anything you want (but it must be available in your font or it will crash again!)

    This should be automatic, i don't understand why MMF2 create this line as a commentary. It is really needed to make the game works without crashing while using the XNA Edit Box as we can't restrict the use of the special characters.

  3. #3
    Clicker Fusion 2.5 MacFusion 2.5 DeveloperFusion 2.5 DeveloperAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleMac Export ModuleUniversal Windows Platform Export ModuleSWF Export ModuleXNA Export Module
    Sloxone's Avatar
    Join Date
    Nov 2011
    Location
    France
    Posts
    559
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    Hi Dobermann

    Thanks for your help,work fine.Now I'll stop my game review ,and wait for post it.

Similar Threads

  1. Coupon code error?
    By dnlhern in forum The Games Factory 2 - Technical Support
    Replies: 1
    Last Post: 26th October 2013, 04:11 PM
  2. Registration code error
    By Ls2 in forum Multimedia Fusion 2 - Technical Support
    Replies: 12
    Last Post: 22nd November 2011, 07:35 AM
  3. KCInput Object Code error
    By BHGames in forum iOS Export Module Version 2.0
    Replies: 1
    Last Post: 14th November 2011, 01:08 PM
  4. Code Sign error
    By Ribrob in forum iOS Export Module Version 2.0
    Replies: 2
    Last Post: 22nd July 2011, 02:55 PM
  5. MMF 2 - Edit Mask Object Tabbing Error
    By droberson in forum Multimedia Fusion 2 - Technical Support
    Replies: 0
    Last Post: 15th March 2007, 09:58 PM

Posting Permissions

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