Unable to load files into Array

Welcome to our brand new Clickteam Community Hub! We hope you will enjoy using the new features, which we will be further expanding in the coming months.

A few features including Passport are unavailable initially whilst we monitor stability of the new platform, we hope to bring these online very soon. Small issues will crop up following the import from our old system, including some message formatting, translation accuracy and other things.

Thank you for your patience whilst we've worked on this and we look forward to more exciting community developments soon!

Clickteam.
  • I want to create a spreadsheet for my game that contains all the characters' names, levels, stats, and such.

    It will be a spreadsheet containing several sheets (this way I have only one file to edit externally). Right now I only have one sheet with the names of each character, levels, hp, and mp. In the event editor, I created the event:

    Start of frame
    <Array Object> - Load array from "Characters.xml".

    Nothing is in the array when I run it. I tried .xml, and .csv. I know Arrays can only contain either strings or values, but I was going to use Str$( ) conversion for the values.

    Could anybody help me figure this out? :)

  • Hi ffomega,
    Array object only supports Array file format. You will not be able to load a XML file in it directly.

    If you are willing to use XML file, several other extensions support XML format. If you prefer to use Array object, then you will have to use native Array file format.

    ouly

    Please login to see this link.

  • I'm a bit familiar with .ini objects, but it gets messy doing it like that. I work much more efficiently if the data was in a spreadsheet so what extensions could I use to save / load data using .xml?

    By the way ouly, I really appreciate the help :3

  • I'm not really familiar with using XML file in CF2.5. For now I mainly exported data as XML (without using specific XML extensions) but not imported them in CF's applications. Some extensions have partial XML support, like Named Variable Object. If you are willing to have full XML support, XML Parser object is probably the way to go.

    Please login to see this link.

Participate now!

Don’t have an account yet? Register yourself now and be a part of our community!