≡
Products
▼
Support
▼
Company
▼
Forum
Ambiera Forum
Discussions, Help and Support.
Create a new account
,
Search
, or Login:
Create reply in
I created a Save/Load System for CopperLicht. Get it here!
Posted by:
(you are not logged in)
Enter the missing letter in: "Internat?onal"
(you are not logged in)
Text:
[quote][b]wild-master[/b] wrote: Copy the script from this page and save it as a file called "[b]SaveAndLoadData.js[/b]": [url]https://pastebin.com/RpJr1tSr[/url] Your variables will be saved in a text file. Please read the comments in the script for details. [b]Usage examples:[/b] [b]Use this in your game's main script when you want to save your progress:[/b] [code][b]SaveFileDialog();[/b][/code] [b]Use this when you want to load your progress:[/b] [code][b]LoadFileDialog();[/b][/code] You will definitely need to modify it to add the important variables of your games. This is the best and only practical method that I am aware of for Saving/Loading data with JavaScript/WebGL/HTML. [b]My testing environment:[/b] [code][b]Windows 10 Professional, version 1709 (OS Build 16299.371) Firefox 60.0.1 (64-bit) Google Chrome 66.0.3359.181 (Official Build) (64-bit) Microsoft Edge 41.16299.371.0 (HTML 16.16299) Internet Explorer 11.371.16299.0 (Update Version 11.0.60) (KB4092946) [/b][/code] [b]Works well with:[/b] [code][b]Firefox Edge browser[/b][/code] It doesn't work with [b]Internet Explorer[/b]. With [b]Google Chrome[/b], it won't work after one use. I tried to debug it for hours. I saw zero related errors in the console. When I say "one use", I mean, when you do one action, regardless of whether you Load or Save, the windows for Saving/Loading won't appear again. I thought it might be related to Chrome's well-known problems related to the detection of button-presses and button-releases, but I tried to work around that for hours and I didn't find the answer. With zero console errors that could realistically be related to this, I couldn't debug further. A smarter person would need to fix that problem.[/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