User Tag List

Page 1 of 2 1 2 LastLast
Results 1 to 10 of 13

Thread: Richtext Object (or other text object) wildcard parsing? Still no luck.

  1. #1
    Clicker

    Fusion 2.5 MacFusion 2.5 DeveloperFusion 2.5+ DLCHTML5 Export ModuleiOS Export ModuleInstall Creator Pro
    Fusion 2.5 (Steam)Android Export Module (Steam)HTML5 Export Module (Steam)Universal Windows Platform Export Module (Steam)
    ratty's Avatar
    Join Date
    Apr 2012
    Posts
    1,165
    Mentioned
    5 Post(s)
    Tagged
    0 Thread(s)

    Richtext Object (or other text object) wildcard parsing? Still no luck.

    I've been trying to find a way to find/replace text from user-created tags within a text source. As of now, the only way I can pull this off is by having preset fields that can be used. Is it not possible to use any sort of wildcard for this?

    What I'm doing is having the user create a text document, inserting <tags> into it as they go. When the document is loaded again later, the <tags> are parsed out of it, presented to the user, then swapped with a new string which the user supplies. These are done one at a time.

    Example:
    "This is a <blank 1> of what I'm trying to <blank 2>"

    The user is then presented with: "Blank 1" and and asked to provide a new string, which is then inserted into the spot where <blank 1> is. The same then happens for <blanks 2>.


    If anyone has any input, I'd be grateful as all hell. I've scoured the forums and tried quite a few solutions. Nothing has worked .

  2. #2
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleiOS Export ModuleMac Export ModuleUnicode Add-on
    Fusion 2.5 (Steam)Fusion 2.5 Developer (Steam)Android Export Module (Steam)HTML5 Export Module (Steam)iOS Export Module (Steam)Universal Windows Platform Export Module (Steam)
    AyreGuitar's Avatar
    Join Date
    Jan 2011
    Location
    Wales, UK
    Posts
    1,113
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    ratty - I've done something similar in the past using String Parser to split up the string into tags and none tags, using the "<" and ">" as delimiters.
    Here's an example of what I think you want to do (requires String Parser and uses Edit Box for text and List objects for storing the tags and replacement words)

    Admittedly it will also do tags like >tag<, <tag< and >tag> but best I can do for now!
    Alternatively use something different for your tag delimiter in String Parser, eg @ for @tag@ or * for *tag*
    Attached files Attached files

  3. #3
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleHTML5 Export ModuleSWF Export ModuleUnicode Add-on

    Join Date
    Nov 2010
    Location
    Switzerland
    Posts
    301
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    The Scintilla-Object also has some nice "Find and Replace"-Functions that exceed the Functions of the RichText-Object. I' ve used Scintilla to create a "Graphic-Options"-GUI for an AAA-Game which (in original State) only allowed to make these changes through an INI-File. In my GUI the User just enters the Values for the different Options and then clicks "Save". Scintilla then replaces all the different Options in the INI-File with the Data the User entered. It works like a Charm. The other Method would perhaps be to use the "Regex"-Extension, but i' ve never used that one before and it looks "complicated"

    By the Way, i could upload the MFA of my Graphic-Options-GUI if anybody is interested how i did it with the Scintilla-Object.

    With Kind Regards,
    jahkri

  4. #4
    Forum Moderator

    Fusion 2.5 DeveloperFusion 2.5+ DLCAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleUniversal Windows Platform Export ModuleSWF Export ModuleXNA Export ModuleInstall Creator Pro
    nivram's Avatar
    Join Date
    Jul 2006
    Location
    Bandon, Oregon
    Posts
    6,773
    Mentioned
    12 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by Jahkri View Post
    The Scintilla-Object
    By the Way, i could upload the MFA of my Graphic-Options-GUI if anybody is interested how i did it with the Scintilla-Object.

    With Kind Regards,
    jahkri
    Yes, yes, please do.

    Thanks,
    Marv
    ​458 TGF to CTF 2.5+ Examples and games
    http://www.castles-of-britain.com/mmf2examples.htm

  5. #5
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleHTML5 Export ModuleSWF Export ModuleUnicode Add-on

    Join Date
    Nov 2010
    Location
    Switzerland
    Posts
    301
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Hi Marv,

    here You go with the MFA-File. I have to admit that it was created with the Unicode-Version though. I can try to recreate it as "normal" MMF2-File but it will take some Time.
    Sorry for not mentioning before.

    Anyway, in the present Version there are 2 Ini-Files needed. One Ini-File is the Original-Game-Settings Ini-File (from the DSFix for Dark Souls) and the other is neede because i' m not reading the Preset-Values for the GUI from the Original-Game-Ini-File but instead from the second Ini-File. But i' ve already found a way around that Problem and i already have a "limited" working Version with just the Original-Game-Ini-File. I' ll upload this "limited" Version in my next Reply. Important: Keep the 2 Ini-Files in the same Folder as the MFA-File.

    If Anybody has any Questions, just post here in this Topic.
    Attached files Attached files

  6. #6
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleHTML5 Export ModuleSWF Export ModuleUnicode Add-on

    Join Date
    Nov 2010
    Location
    Switzerland
    Posts
    301
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Here' s the Limited-Test-One that takes the Values directly from the Game-Ini-File and puts the Values into a List-Object.
    (this one also needs the Unicode-Version... sadly). I think i used the Unicode-Version because i wanted it to support all the
    Characters in the Game-Ini-File.

    Anyway, i' ll try to whip up a simple Example based on Version 2 (where only the One Original Ini-File is needed) for the Non-Unicode-
    Version.

    This is the Unicode-Version:
    Attached files Attached files

  7. #7
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleHTML5 Export ModuleSWF Export ModuleUnicode Add-on

    Join Date
    Nov 2010
    Location
    Switzerland
    Posts
    301
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Here' s finaly the Non-Unicode-Version that uses the Scintilla-Object and String-Tokenizer to select and manipulate Values and Strings in a Game-Ini-File.
    The Change of Settings could also have been done with just One Button and i didn' t include the "Save File"-Action in the Scintilla-Object so the Values in
    the Ini-File are actualy not saved when You quit the Application. To permanently save the Data to the Ini-File, just add a "Save File"-Action in the Scintilla-
    Object.
    This is also a very stripped down version of the Original-Version for the Dark-Souls-Fix just to show how i achieved the "Search and Replace"-Functionality
    through Scintilla and String Tokenizer.

    NON-Unicode-Version:
    Attached files Attached files

  8. #8
    Forum Moderator

    Fusion 2.5 DeveloperFusion 2.5+ DLCAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleUniversal Windows Platform Export ModuleSWF Export ModuleXNA Export ModuleInstall Creator Pro
    nivram's Avatar
    Join Date
    Jul 2006
    Location
    Bandon, Oregon
    Posts
    6,773
    Mentioned
    12 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by Jahkri View Post
    Here' s finaly the Non-Unicode-Version that uses the Scintilla-Object and String-Tokenizer to select and manipulate Values and Strings in a Game-Ini-File.
    The Change of Settings could also have been done with just One Button and i didn' t include the "Save File"-Action in the Scintilla-Object so the Values in
    the Ini-File are actualy not saved when You quit the Application. To permanently save the Data to the Ini-File, just add a "Save File"-Action in the Scintilla-
    Object.
    This is also a very stripped down version of the Original-Version for the Dark-Souls-Fix just to show how i achieved the "Search and Replace"-Functionality
    through Scintilla and String Tokenizer.

    NON-Unicode-Version:
    Thanks a bunch Jahkri. The mfa/zip is appreciated.

    Marv
    ​458 TGF to CTF 2.5+ Examples and games
    http://www.castles-of-britain.com/mmf2examples.htm

  9. #9
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleHTML5 Export ModuleSWF Export ModuleUnicode Add-on

    Join Date
    Nov 2010
    Location
    Switzerland
    Posts
    301
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    My Pleasure. I hope it' s of Use for some People.

    With kind regards,

    jahkri

  10. #10
    Clicker

    Fusion 2.5 MacFusion 2.5 DeveloperFusion 2.5+ DLCHTML5 Export ModuleiOS Export ModuleInstall Creator Pro
    Fusion 2.5 (Steam)Android Export Module (Steam)HTML5 Export Module (Steam)Universal Windows Platform Export Module (Steam)
    ratty's Avatar
    Join Date
    Apr 2012
    Posts
    1,165
    Mentioned
    5 Post(s)
    Tagged
    0 Thread(s)
    Oh wow, I hadn't seen these before. Thanks for sharing!

Page 1 of 2 1 2 LastLast

Similar Threads

  1. Parsing text by whole words onto lines with character limits?
    By ratty in forum Multimedia Fusion 2 - Technical Support
    Replies: 7
    Last Post: 14th May 2013, 03:36 AM
  2. Wildcard possible with - Rich Text Object: Controls > Find > Find and Select Text ??
    By ratty in forum Multimedia Fusion 2 - Technical Support
    Replies: 2
    Last Post: 22nd March 2013, 01:28 PM
  3. EasyXML object - parsing stupidly huge files
    By JIMJ316 in forum Multimedia Fusion 2 - Technical Support
    Replies: 4
    Last Post: 10th June 2012, 10:18 PM
  4. RPG Dialog: Parsing Text through Subapp Issue.
    By JimmyT in forum Multimedia Fusion 2 - Technical Support
    Replies: 0
    Last Post: 22nd January 2012, 06:16 PM
  5. Parsing text in TGF2?
    By Blizna in forum The Games Factory 2 - Technical Support
    Replies: 1
    Last Post: 11th September 2007, 04:56 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
  •