Page 3 of 3 FirstFirst 123
Results 21 to 29 of 29

Thread: files2pas data 'resource' creator

  1. #21
    hmm...I might try upgrading it to make a version that can create Oxygene for Java 'pascal' output too
    Games:
    Seafox


    Pages:
    Syntax Error Software itch.io page

    Online Chess
    http://gameknot.com/#paul_nicholls

  2. #22
    Hi Paul, does this tool still work as described in the first post? Very useful tool it seems ... Maybe I can use this with my interpreter?
    Best regards,
    Cybermonkey

  3. #23
    thank you Paul.

  4. #24
    Quote Originally Posted by Cybermonkey View Post
    Hi Paul, does this tool still work as described in the first post? Very useful tool it seems ... Maybe I can use this with my interpreter?
    Hi Cybermonkey, it still works as described in post #11
    Fee free to use it as you will, just don't say that you wrote it
    Games:
    Seafox


    Pages:
    Syntax Error Software itch.io page

    Online Chess
    http://gameknot.com/#paul_nicholls

  5. #25
    Quote Originally Posted by hwnd View Post
    thank you Paul.
    You're welcome mate
    Games:
    Seafox


    Pages:
    Syntax Error Software itch.io page

    Online Chess
    http://gameknot.com/#paul_nicholls

  6. #26
    PGD Staff / News Reporter phibermon's Avatar
    Join Date
    Sep 2009
    Location
    England
    Posts
    524
    Paul, this is actually genius! yes resources can be included in an executable in other ways, but this is a very versatile method that allows for fine grain control of platform specific data with {$IFDEF} etc. Platform situations where you have no file system or hiding your executables resources from conventional eyes spring to mind.

    An idea (if you've not already thought of it) :

    For each file that is generated you could create an initialization section in which the data pointer/name etc is added to the global list/accessor.

    The tool could also generate a 'files.inc' file that contained the main unit and any number of files :

    VirtualFileSystem, {contains global instance of a list of data pointers}
    image1_bmp, sound_wav, music_mp3

    then to make use of it in a project, all the user needs do is :

    uses
    {$i files.inc};

    So then no changes are needed to program code when your tool added new files (updating the .inc) and they would be automatically registered in a global list, accessible at run time.
    Last edited by phibermon; 13-09-2012 at 07:48 PM.
    When the moon hits your eye like a big pizza pie - that's an extinction level impact event.

  7. #27
    The idea of putting binary data into source code is well-known and widely used. For instance, Asphyre uses DirectX 10, DirectX 11 and GLSL shader binaries/source code embedded in the source code very similarly to this tool, except that in some cases the data is also compressed to reduce resulting source code size. Also, if you look at Delphi XE 2 source code included with installation, you'll see that they're putting some shaders in similar fashion.

    By the way, why are you putting $mode delphi command in the generated source files? They don't seem to need it.

    Also, I'd suggest updating the links in the very first post as they are broken and you have to read through 3-page thread to find updated link. Why not adding the file as a forum attachment in the first post?

    ...and keep up great work! Any chance to see GUI-based version of this tool?
    Last edited by LP; 13-09-2012 at 09:14 PM.

  8. #28
    Quote Originally Posted by Lifepower View Post
    The idea of putting binary data into source code is well-known and widely used. For instance, Asphyre uses DirectX 10, DirectX 11 and GLSL shader binaries/source code embedded in the source code very similarly to this tool, except that in some cases the data is also compressed to reduce resulting source code size. Also, if you look at Delphi XE 2 source code included with installation, you'll see that they're putting some shaders in similar fashion.
    My tool also compresses files too if you hadn't noticed

    Quote Originally Posted by Lifepower View Post
    By the way, why are you putting $mode delphi command in the generated source files? They don't seem to need it.
    I just wanted to be safe since the code works with Delphi and freepascal...I always work with Delphi mode code

    Quote Originally Posted by Lifepower View Post
    Also, I'd suggest updating the links in the very first post as they are broken and you have to read through 3-page thread to find updated link. Why not adding the file as a forum attachment in the first post?
    Good idea, I will update them right away!

    Quote Originally Posted by Lifepower View Post
    ...and keep up great work! Any chance to see GUI-based version of this tool?
    Thanks mate! hmm...a GUI is a nice idea, I will think on it...
    Last edited by SilverWarior; 14-09-2012 at 08:47 AM. Reason: Broken QUOTE
    Games:
    Seafox


    Pages:
    Syntax Error Software itch.io page

    Online Chess
    http://gameknot.com/#paul_nicholls

  9. #29
    Quote Originally Posted by paul_nicholls View Post
    Quote Originally Posted by Lifepower View Post
    Any chance to see GUI-based version of this tool?
    Thanks mate! hmm...a GUI is a nice idea, I will think on it...
    I like a front-end program that uses the console program. Much like Lazarus itself.
    No signature provided yet.

Page 3 of 3 FirstFirst 123

Bookmarks

Posting Permissions

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