User Tag List

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

Thread: Internal List Object

  1. #1
    Clickteam Clickteam
    LB's Avatar
    Join Date
    Jun 2007
    Location
    Richardson, Texas, North America
    Posts
    8,937
    Mentioned
    4 Post(s)
    Tagged
    0 Thread(s)

    Internal List Object

    The Internal List Object lets you keep an internal list similar to the list object, but with immense speed advantages compared to the regular List object. Even a hidden List object can be 100 to 1000 times slower than the Internal List object, mainly because the regular List Object is a Windows control. The Internal List Object also allows some more advanced features, such as sorting portions of the list at runtime, and saving/loading the list in a string format.
    Attached files Attached files
    Working as fast as I can on Fusion 3

  2. #2
    Clicker Fusion 2.5 DeveloperFusion 2.5+ DLCAndroid Export ModuleiOS Export Module
    conceptgame's Avatar
    Join Date
    Apr 2011
    Location
    Switzerland
    Posts
    791
    Mentioned
    16 Post(s)
    Tagged
    0 Thread(s)
    Hi LB,

    Would it be possible to make this extension unicode compatible or get the source code on github.com/clickteam-plugin?

    I could create a new extension but I would prefer just to fix what it is missing in yours.

  3. #3
    Forum Moderator Fusion 2.5 DeveloperAndroid Export ModuleiOS Export ModuleSWF Export ModuleInstall Creator Pro
    Fusion 2.5 (Steam)Fusion 2.5 Developer (Steam)Fusion 2.5+ DLC (Steam)Android Export Module (Steam)HTML5 Export Module (Steam)iOS Export Module (Steam)Universal Windows Platform Export Module (Steam)

    Join Date
    Jun 2006
    Location
    England
    Posts
    3,581
    Mentioned
    4 Post(s)
    Tagged
    1 Thread(s)
    I don't know about the license, but the source code is available from https://github.com/LB--/InternalList-Object#readme
    .:::.Joshtek.:::.

  4. #4
    Clicker Fusion 2.5 MacFusion 2.5 DeveloperFusion 2.5+ DLCAndroid Export ModuleiOS Export ModuleInstall Creator Pro
    wuxuechen's Avatar
    Join Date
    Nov 2006
    Posts
    376
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    It's a good start

  5. #5
    Clicker Fusion 2.5 DeveloperFusion 2.5+ DLCAndroid Export ModuleiOS Export Module
    conceptgame's Avatar
    Join Date
    Apr 2011
    Location
    Switzerland
    Posts
    791
    Mentioned
    16 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by Joshtek View Post
    I don't know about the license, but the source code is available from https://github.com/LB--/InternalList-Object#readme
    Thanks Joshtek, I will look at it.

  6. #6
    Clicker Fusion 2.5 DeveloperFusion 2.5+ DLCAndroid Export ModuleiOS Export Module
    conceptgame's Avatar
    Join Date
    Apr 2011
    Location
    Switzerland
    Posts
    791
    Mentioned
    16 Post(s)
    Tagged
    0 Thread(s)
    Hi LB,

    I tried the version 2.0.0 that you pre release on your github. Thank you very much for your work.
    It will save me time and increase performance of my game runtime. And it is a "must-have" extension for any project from my point of view

    I have encountered 1 issue though with copy from another list action. With the following code:

    * Lors de l'événement timer "check_next_event"
    + listGetAt$( "EventParser", 1 ) = "LoadSubEvent"
    EventList : Change current list to "SubEvents"
    EventList : Clear list
    EventList : Load list from file Apppath$ + "subevent.list", delimiter = NewLine$, escape = ""; and insert before 0
    EventList : Save list to file Apppath$ + "test.list", delimiter = NewLine$, escape = ""
    EventList : Change current list to "Main"
    EventList : Delete range [0, 1)
    EventList : From "SubEvents" to current list, copy range [0, 10) to 0, overwrite = 0
    EventList : Save list to file Apppath$ + "test2.list", delimiter = NewLine$, escape = ""

    The test.list file contains the subevent.list items and the test2.list contains "Main" list items so the files were saved correctly.
    But the main list does not contain the "SubEvents" items.

    I checked your code and I do not see any issue.

    Do you have any idea where it is coming from: my MMF code or the extension?

  7. #7
    Clicker Fusion 2.5 DeveloperFusion 2.5+ DLCAndroid Export ModuleiOS Export Module
    conceptgame's Avatar
    Join Date
    Apr 2011
    Location
    Switzerland
    Posts
    791
    Mentioned
    16 Post(s)
    Tagged
    0 Thread(s)
    Actually, there is an issue in code:

    [COLOR=var(--color-prettylights-syntax-constant)]string_view_t[/COLOR] [COLOR=var(--color-prettylights-syntax-keyword)]const[/COLOR] list_from_name = [COLOR=var(--color-prettylights-syntax-keyword)]reinterpret_cast[/COLOR]<[COLOR=var(--color-prettylights-syntax-constant)]char_t[/COLOR] [COLOR=var(--color-prettylights-syntax-keyword)]const[/COLOR] *>([COLOR=var(--color-prettylights-syntax-constant)]CNC_GetStringParameter[/COLOR](run_data));
    ...
    auto [COLOR=var(--color-prettylights-syntax-keyword)]const[/COLOR] *[COLOR=var(--color-prettylights-syntax-keyword)]const[/COLOR] list_from_ptr = run_data->[COLOR=var(--color-prettylights-syntax-constant)]current_optional[/COLOR]();

    current_optional is not set to the list with the "list_from_name" name.

    Do you have time to fix? Otherwise I need to download your RSDK and compile it myself?



  8. #8
    Clicker Fusion 2.5 DeveloperFusion 2.5+ DLCAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleUniversal Windows Platform Export ModuleSWF Export ModuleFirefly 3D ModuleInstall Creator Pro
    aenever's Avatar
    Join Date
    Jun 2013
    Posts
    1,693
    Mentioned
    34 Post(s)
    Tagged
    0 Thread(s)
    The increased speed sounds ideal. Does the internal list object also have a larger maximum line capacity compared to the original list object?

  9. #9
    Clicker Fusion 2.5 DeveloperFusion 2.5+ DLCAndroid Export ModuleiOS Export Module
    conceptgame's Avatar
    Join Date
    Apr 2011
    Location
    Switzerland
    Posts
    791
    Mentioned
    16 Post(s)
    Tagged
    0 Thread(s)
    Hi all,

    LB released a version 2.0.1 which is really working well:
    Release v2.0.1 · LB--/InternalList-Object (github.com)

    In order to replace the traditional list object, there is still something I am wondering: handling of binary files.
    It seems that Internal List Object does not have this trick to handle directly binary data without extracting and release actions (list or array objects have this feature for example).
    It is a time saving feature that I want to add in Internal List Object.

    Do some of you have a link to some existing c++ code or know how this is handled in array or list objects?

  10. #10
    Clicker Fusion 2.5 MacFusion 2.5 DeveloperAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleSWF Export ModuleXNA Export ModuleUnicode Add-on
    Fusion 2.5 (Steam)Fusion 2.5 Developer (Steam)Fusion 2.5+ DLC (Steam)Android Export Module (Steam)HTML5 Export Module (Steam)iOS Export Module (Steam)Mac Export Module (Steam)Universal Windows Platform Export Module (Steam)Firefly 3D Module (Steam)
    Phi's Avatar
    Join Date
    Jan 2010
    Location
    England
    Posts
    2,080
    Mentioned
    25 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by conceptgame View Post
    Do some of you have a link to some existing c++ code or know how this is handled in array or list objects?
    You can use the mV->GetFile(), ReleaseFile() etc functions. There are ANSI and Unicode variants.

Page 1 of 2 1 2 LastLast

Similar Threads

  1. Internal List Object Beta
    By LB in forum Extension Development
    Replies: 66
    Last Post: 9th February 2012, 09:35 PM
  2. Please help of Internal List Object
    By ASD in forum Extension Development
    Replies: 4
    Last Post: 28th August 2011, 11:04 PM
  3. Internal List Object Beta
    By Ham in forum File Archive
    Replies: 1
    Last Post: 3rd January 2011, 07:53 PM
  4. MMF internal object selection magic
    By Random in forum File Archive
    Replies: 11
    Last Post: 22nd January 2008, 04:47 PM
  5. MMFs internal list of objects bug?
    By Blizna in forum File Archive
    Replies: 7
    Last Post: 27th January 2007, 01:38 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
  •