Wow, I reached the maximum limit on number of characters per post with that previous one. If you have any questions, let me know. Just remember the caveat that the above system might not always return you to the exact same spot in the game where you were when you saved the game; this is why I hadn’t posted it before. It’s certainly more convenient than the other password scheme where you must copy and save the password manually. But the manual process works better for some reason, and I’ve spent too much time trying to figure out why, instead of working on actual game code, which I plan to get back to doing right now.
@eposic that is awsome. I will be working again on coding in a few days still working on the rp boards. But ready to shift most of my focus towards my projects. I hope to have a test section together by the end of next week will let you know.
Ok I final got to test the save and it seems to have a problem. The last bit of code
`
var game_ns = “namespace specific to your game/server”;
(function($) {
when I put in just displays on the top of the page. I thought it might need to have
@Lordirish, you’re right, it does need the leading <script type="text/javascript">. Looks like my copy and paste operation started copying one line lower than it should have.
In the line of code var game_ns = "namespace specific to your game/server";, replace the text between the double quotes with a single word that is specific to that particular game on your server. You can use the save system in different games, and each one of them will need that string value to be unique to the game, so you don’t overwrite one game’s saved data with another game’s saved data. Don’t use any spaces or special characters in the string. Suppose you have one game called “Dungeon Crawl” and another game called “Space Opera”. In the index.html file for the Dungeon Crawl game you might have var game_ns = "dungeoncrawl";. In the Space Opera game you might have var game_ns = "spaceopera";. What you use for the game_ns variable in one game’s index.html file on your server needs to be different than what you use in another game’s index.html file on your server.
Thanks I will make the adjustment and let you know what I did wrong next lol
Seems now jQuery is undefined.
*edit seems it is an IE error, go figure lol. Looking at a few things to fix it.
No good, read and adjusted but still Ie does not like. Not a big deal as this save system is for testing anyway. Have to use firefox for play test. But otherwise works great thank you @eposic for the code.
You always have to worry about whether a browser is caching a file that you’ve corrected and are trying to reload. Sometimes after you make a correction to a file you have to delete the cache from your browser before it will pick up your changes. You can never guess which browser is going to give you that problem, either. I’ve seen it happen with all of them at one time or another.
Ok thanks I will try that as it seems to work on everything but IE.
I want to add this code too, but it seems the final step is missing. Can you let me in on it too?
