≡
Products
▼
Support
▼
Company
▼
Forum
Ambiera Forum
Discussions, Help and Support.
Create a new account
,
Search
, or Login:
Create reply in
save an existing variable to an external .txt file or .INI file.
Posted by:
(you are not logged in)
Enter the missing letter in: "Inter?ational"
(you are not logged in)
Text:
[quote][b]edkeyte[/b] wrote: How could I save an existing variable to an external .txt file or .INI file? If I had a variable name like: "Score" I'm trying to use these JS methods without success: ccbGetCopperCubeVariable(varname) ccbWriteFileContent(filename, content) If I use: ccbGetCopperCubeVariable to get the value of the variable into the content of the text file and then write that value using: ccbWriteFileContent But then the saved .INI file content would look something like this: Score=562 Saved inside scores.ini which could be saved in the same directory as the game app. Niko could you give me a hint as to how the code would be written out to make this work? Or if there is an easier way to just get in game variable data in and out of CC to and from an external text file that could reside in the same directory as my app. please let me know. Thanks. Ed.[/quote]
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