Angroid's Forum Posts

  • 6 posts
  • Hello ramones,

    Thank you very much for your answer!

    I will transmit your advice to our programmer and I'm sure we'll find a way around this.

    I'm still open for other suggestions about this issue!

  • Context:

    I am using Construct 2 as a mean to create an app for neuro-psychological testing. It's a precious tool for somebody not knowing how to program enough to write an app of this complexity, but it has one major flaw for my purpose, which is that it is cumbersome to store variables an retrieve their values in a file outside of the app for further analysis.

    I stumbled on the Array-> Json download function. It isn't perfect but it does the trick, at least on Desktop systems where the command opens a "Save as" Dialog and I can save a .json string as a textfile which i can then convert to CSV for further treatment.

    The issue:

    For many reasons beyond my will or control, my app is primarily designed to run on Ipads, not tablets in general, but Ipads. When I test my app on Ipad through Adobe phonegap, the "Download Link" Link is being shown and when i click the button designed to trigger the "Download Array as .json" action, it directly shows me the contents of the string on screen, in the app window.

    What I want is for it to open a dialog like on desktop asking me where to save the file.

    My first step was to ask our local IOS developer for advice. She said that if I could find the part of the code that contains the event, she could adapt it in order for the Ipad to open said Dialog instead of showing it in the window. While searching through the code files we couldn't locate any reference to the button or the array though (the code was NOT minified).

    My question is, in which file and under what format/language is the actual logic/event files/script stored during export (I used a cordova export function)? Is the code always automatically obfuscated or does it contain the names of strings and variables used in the construct editor? Where should I look for this?

    This is probably a question for the devs but someone might have had the same issue before and knows something about Construct's inner magic

    Thank you very much for your time! I will provide a mock .capx wit only the layout concerned by the download function if you think it would be useful, but the question is more general.

  • I see this is an antique post but maybe it well get bumped if I ask here first since it came up in my search.

    Context:

    I am using Construct 2 as a mean to create an app for neuro-psychological testing. It's a precious tool for somebody not knowing how to program enough to write an app of this complexity, but it has one major flaw for my purpose, which is that it is cumbersome to store variables an retrieve their values in a file outside of the app for further analysis.

    I stumbled on the Array-> Json download function. It isn't perfect but it does the trick, at least on Desktop systems where the command opens a "Save as" Dialog and I can save a .json string as a textfile which i can then convert to CSV for further treatment.

    The issue:

    For many reasons beyond my will or control, my app is primarily designed to run on Ipads, not tablets in general, but Ipads. When I test my app on Ipad through Adobe phonegap, the "Download Link" Link is being shown and when i click the button designed to trigger the "Download Array as .json" action, it directly shows me the contents of the string on screen, in the app window.

    What I want is for it to open a dialog like on desktop asking me where to save the file.

    My first step was to ask our local IOS developer for advice. She said that if I could find the part of the code that contains the event, she could adapt it in order for the Ipad to open said Dialog instead of showing it in the window. While searching through the code files we couldn't locate any reference to the button or the array though (the code was NOT minified).

    My question is, in which file and under what format/language is the actual logic/event files/script stored during export (I used a cordova export function)? Is the code always automatically obfuscated or does it contain the names of strings and variables used in the construct editor? Where should I look for this?

    This is probably a question for the devs but someone might have had the same issue before and knows something about Construct's inner magic

    Thank you very much for your time! I will provide a mock .capx wit only the layout concerned by the download function if you think it would be useful, but the question is more general.

  • Hello,

    I tried using an array and after some fiddling around it works. It lets you download a .json string that can be read by any text editor or browser. The data it contains can be converted to csv or excell using tools available online.

    What i noticed though is that most of these tools don't translate nested arrays correctly, only the first list is recognized and converted. In this case it contains the "size" part of the array. I got a perfect translation to csv by removing the size part of the string and let it start with the "data" part after the opening accolade.

    Hope that helps and many thanks for the hint!

  • Hello,

    Many thanks for pointing that out!

    After having a look at the manual page I think this is indeed the most forward way to accomplish what I want.

    Will keep the post updated after trying in case others have the same need.

  • Try Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Try Now Construct 3 users don't see these ads
  • Hello everyone!

    My first post as I am new to Construct and just started my first project.

    I'm doing a PhD in Psychological Test construction and am using construct to develop a web app for a basic math test for children (and for games if I happen to have time left )

    I have a very specific need and haven't found any solution through google or the forums here.

    As the test taker progresses, his answers are stored in global variables.

    For example: The subject chooses answer 1 on the first item, which is stored in the global variable Item1.

    On the next task, his answer will be stored in the variable Item2 and so forth.

    Now what I want is for the app to export the ItemX variables into a local file (CSV for example) for me to grab and save, so that i can analyze the results results without having to watch the test taker and manually note every answer he as clicked. I have tried the CSV plugin but cannot find out how to use it, and if I understood correctly it is not used in the way that i would like.

    I have almost no knowledge about web technologies and only a superficial grasp of programming which is why I am using Construct.

    Did anybody try to achieve something similiar? Do i need to take a different approach if i want to store "answers" of multiple choice questions externally? Or could i somehow make the app generate a html file at the end that contains a table with the variable names and last values and which I could copy paste to excell? What I want to achieve is storing the complete variable names with their value in some file that i can access, one way or another.

    I absolutely love this software but now after my first 2 days with it I'm finally stuck.

    Here is the most recent Version of my project if somebody wants to have a better idea of how it works.

    EDIT: As I'm new i cannot post URL's. add https

    drive.google.com/file/d/0B9TNkMBUWc7WTUxTaXdBSG9RSlE/view?usp=sharing

    Thank you very much for any help!

  • 6 posts