Results 1 to 6 of 6

Thread: Binary Data including .txt files is it possible?

  1. #1

    Binary Data including .txt files is it possible?

    I've made a game that's working perfectly, it relies on loading custom dictionaries from .txt files. Due to the list object's limitations I split the Dictionary up alphabetically so that the list object works. I can do that with no problems, yet I don't want my students to be able to mess around with .txt files and heaven forbid add a swear word. I've read up on binary data yet it seems to be more for music, ini files, Bat files and DLL files.

    Can .txt files be added to binary? I want it to work for PC, is there an example that anyone has built? My attempt worked on my machine, yet my .exe doesn't load the binary on other PC's.

    The best solution I've some up with so far is to include a folder with the exe and hide the txt files in that folder. Any other solution people can think of? Please Help, My game is ready for release yet I would like this problem sorted
    Last edited by aenever; 17th July 2017 at 10:02 AM.

  2. #2
    You can include which ever files you like in the binary data. I've attached an example. You'll need a file named dictionary.txt on the root of C:.

    It'll add the file to the binary data when you build. then unpack the file in a temp location load it into the list object and then remove the temp file. Making it hard for an average end user to edit this data.
    Attached files Attached files

  3. #3
    Thanks Danworth I'll give it another go using your example as the guide, cheers

  4. #4
    It works like a Charm you're a legend, thanks a bunch

    I was close, yet your example was just what I needed. My game works perfect now. I'm going to let my students be the beta testers, if there's no serious bugs I'll post a Promo video and release to the clickstore soon.

  5. #5
    Clickteam Clickteam
    Danny's Avatar
    Join Date
    Aug 2007
    Location
    United Kingdom
    Posts
    2,751
    Blog Entries
    14
    Just a followup, if it's a necessity they don't get changed, you could add realtime downloads of the txt files at app launch (useful for updating also) and then also include some internal checks every time the dictionary is loaded. It may sound a little overkill but totally do-able in not much effort tbh.

  6. #6
    Great idea Danny, sound advice.

Similar Threads

  1. Getting a list of all files from binary data on Android
    By jay73 in forum Android Export Module 2.5
    Replies: 0
    Last Post: 14th October 2014, 12:02 PM
  2. Using/Including External Audio and Data Files
    By butterfingers in forum XNA Export Module Version 2.0
    Replies: 0
    Last Post: 15th September 2014, 11:23 AM
  3. ini files saved as binary data
    By Chokito in forum Android Export Module 2.5
    Replies: 4
    Last Post: 21st February 2014, 08:41 PM
  4. [BUG 256.34 Unicode] Can't load Binary Data files
    By Olivier in forum SWF/Flash Export Module Version 2.0
    Replies: 1
    Last Post: 30th January 2013, 06:06 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
  •