How do I save players action in txt file

Get help using Construct 2

Post » Sun Jul 16, 2017 3:40 pm

hi friends
i need your help.
i want save my player actions(like clicked position , clicked object and time ...) in text file out of my software since the player and participants dont need to be professional and every one could understand. my question is how can i save it in txt file ?also is it possible in construct?
please help me as soon as possible
tnx
B
3
Posts: 5
Reputation: 185

Post » Sun Jul 16, 2017 9:52 pm

You will have to use the NW.js plugin for this, if you want to write dynamically to a text file.
With NW.js, you can use the action "Append file" to add a new line to the file, every time something happens.

If you don't want to export to NW.js, you can use a dictionary or Array and use the Browser action "Download String" to download the Dictionary or Array as JSON.
"We can't solve problems by using the same kind of thinking we used when we created them."
- Albert Einstein
B
27
S
11
G
8
Posts: 528
Reputation: 7,091

Post » Sat Jul 22, 2017 7:08 pm

Message: aramesh can only post plain text URLS until they have 500 rep. 1 URLS modified. Why?
randomly wrote:You will have to use the NW.js plugin for this, if you want to write dynamically to a text file.
With NW.js, you can use the action "Append file" to add a new line to the file, every time something happens.

If you don't want to export to NW.js, you can use a dictionary or Array and use the Browser action "Download String" to download the Dictionary or Array as JSON.

could you please explain more about how can i use nwjs plugin?
i use this tutorial but since txt file was not created
https://www.scirra.com/tutorials/4870/save-and-load-game-in-a-specific-folder-using-nwjs-node-webkit
B
3
Posts: 5
Reputation: 185


Return to How do I....?

Who is online

Users browsing this forum: No registered users and 25 guests