dop2000's Recent Forum Activity

  • Add a temporary Text object to the layout, print NWjs.UserFolder to it. See what path it returns. Maybe you don't need to append "\Documents\DinoSystem" to it.

    Then try executing explorer.exe from CMD with that path.

  • That was just an example.

    Anyway, for exporting to CSV you need to compose a multi-line string where each question ends with a newline. There should be a comma between each value in the line.

    Example:

    question1,No,timestamp
    question2,Did Not Understand Right to....,timestamp
    question3,Yes,timestamp
    
  • I would move all logic to instance variables on the Button sprite. (a single button for Yes and No answers)

    Configure these variables on each button for all questions.

    So when a button is clicked, you can compare its variables and know if the answer was correct or not, what to add to the CSV file and what to do next. This way you will only need one handling event for all questions in the quiz.

  • See the Date plugin, there are different ways you can format the timestamp string.

    construct.net/en/make-games/manuals/construct-3/plugin-reference/date

  • Hmmm. So take out the array values through the whole thing? I've got a lot of

    This is not how quiz apps should be programmed. Even if there are hundreds of questions in the game, ideally you should have just one "On AnswerButton clicked" event.

    Use instance variables on the buttons to identify questions and answers.

  • I have a one dimensional array of data, but when the csv downloads, it's just a bunch of 0's instead of the text I set to be added to the array.

    Run the project in Debug Mode (Shift+F4) and check the contents of your array.

    Your event #16 on the screenshot runs on every tick, which is wrong. You need to move it as a sub-event to #17.

    And the MIME type needs to be "text/plain" or "text/text", not "s".

    But with 1D array you won't be able to send timestamps. I suggest using 2D array, or add question+answer+timestamp+newline to the string variable on every answer.

  • You can do this without arrays, just add each question+answer to the string variable as the player answers them. Use Date plugin to get the current date and time.

    For example:

    On leftclick of YesSprite: Set exportString to (exportString & questionNumber & "," & questionText & ",Yes," & Date.ToString(Date.Now) & newline)

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • You'll first need to store this data (questions and answers) somewhere, for example in an array.

    Here is an example how to export an array to csv:

    dropbox.com/s/sy2b1okfk9hymsu/ExportToCSV.c3p

  • You might need to experiment, perhaps it requires double quotes:

    "explorer.exe """ & NWjs.UserFolder & "\Documents\DinoSystem\"""

  • You can try NWJS Run File action with this path:

    "explorer.exe " & NWjs.UserFolder & "\Documents\DinoSystem\"

  • What do you mean by "open a folder"? Show "Open file" dialogue? Or launch Windows Explorer? Or display the list of files from this folder inside your Construct app?

  • What do you mean? You can show "Select folder" or "Select file" dialogue using NWJS actions, check out the documentation:

    construct.net/en/make-games/manuals/construct-3/plugin-reference/nw-js

dop2000's avatar

dop2000

Member since 26 May, 2016

Twitter
dop2000 has 257 followers

Connect with dop2000

Trophy Case

  • 8-Year Club
  • Entrepreneur Sold something in the asset store
  • Jupiter Mission Supports Gordon's mission to Jupiter
  • Forum Contributor Made 100 posts in the forums
  • Forum Patron Made 500 posts in the forums
  • Forum Hero Made 1,000 posts in the forums
  • Forum Wizard Made 5,000 posts in the forums
  • Forum Unicorn Made 10,000 posts in the forums
  • x5
    Popular Game One of your games has over 1,000 players
  • x2
    Coach One of your tutorials has over 1,000 readers
  • Educator One of your tutorials has over 10,000 readers
  • Regular Visitor Visited Construct.net 7 days in a row
  • Steady Visitor Visited Construct.net 30 days in a row
  • Enduring Visitor Visited Construct.net 90 days in a row
  • Unrelenting Visitor Visited Construct.net 180 days in a row
  • Continuous Visitor Visited Construct.net 365 days in a row
  • RTFM Read the fabulous manual
  • x3
    Quick Draw First 5 people to up-vote a new Construct 3 release
  • x13
    Great Comment One of your comments gets 3 upvotes
  • Delicious Comment One of your comments gets 10 upvotes
  • Email Verified

Progress

28/44
How to earn trophies