Ambiera Forum

Discussions, Help and Support.

Ambiera Forum > CopperCube > Programming and Scripting
how to edit or add new variable or statement to txt file..

just_in_case
Moderator
Quote
2016-12-05 05:20:42

Here is the question...

How to add or edit a variable or stament of .txt file uploaded on my server...
Using httpdorequest...
As ccbwritefilecontent will not work..


I wanted to create a multiplayer game... And want to save username , userscore to a .txt file uploded to my server...

I know how to read a file using httpdorequest but dont know how to write statements or variables to an existing .txt file...

Can anyone help me out ???

Thanks!


niko
Moderator
Quote
2016-12-05 07:11:55

You would have a script on the side of your server which does this for you. It would work like your game sending a request (using httpdorequest ) to your server, asking it to save or load something. And the script on your server then would do that. Your server side script can be implemented whatever you want, even for example like PHP or Node.


just_in_case
Moderator
Quote
2016-12-05 07:21:45

Woww... Thanks Niko... Well i have an idea to script a chat system for multiplayer... But i have to study for my exams right now.. will going to develop more behaviors and action for coppercube...after march 2017.. gonna script this thing too.. after my exams...


Create reply:


Posted by: (you are not logged in)


Enter the missing letter in: "In?ernational" (you are not logged in)


Text:

 

  

Possible Codes


Feature Code
Link [url] www.example.com [/url]
Bold [b]bold text[/b]
Image [img]http://www.example.com/image.jpg[/img]
Quote [quote]quoted text[/quote]
Code [code]source code[/code]

Emoticons


   






Copyright© Ambiera e.U. all rights reserved.
Privacy Policy | Terms and Conditions | Imprint | Contact