Topic:   Ideas for SilverCreator   (Read 9540 times)


0 Members and 1 Guest are viewing this topic.

Circuit


  • GMG-er

  • **


  • Posts: 299

  • blast from the past
Ideas for SilverCreator
« on: March 16, 2014, 02:13:31 PM »
The current way of saving and loading data requires far too much effort for newbie programmers: they have to learn text file IO, string parsing, data validation, and so forth.  I think it scares people away from SC.

What's needed is a pair of built-in methods that can save and load a group of variables in binary form.  Before calling the methods, the programmer would use an interface to assign variables to a group.  For example: game progress, high scores, and settings are all different groups of variables.  The method call would be as simple as Save(group).

Each group would be hashed and encrypted to provide some protection against tampering (i.e. cheating).  This will never be truly secure because there's no way to truly hide the secret key (it exists in the game executable and can be hacked out), so there's no point in trying to make it perfect.  In light of that, the main factors to consider are speed of execution and simplicity of implementation.  MurmurHash3 is a fine hash function to use, and RC4 is a good cipher.
« Last Edit: March 16, 2014, 07:25:24 PM by Circuit »

Gan


  • Administrator

  • ^ This guy is amazing.

  • *****


  • Posts: 4411
Re: Ideas for SilverCreator
« Reply #1 on: March 16, 2014, 02:53:54 PM »
I like how Javascript saves data.
Code: [Select]
localStorage['My Important Data'] = "poodles";

Connors


  • ^ This guy is amazing.

  • ****


  • Posts: 2374

  • It's a secret to everyone...
Re: Ideas for SilverCreator
« Reply #2 on: March 17, 2014, 12:50:22 PM »
I think the best way to do savegames in SC is to have a save screen that the player can only access at times when the programmer wants them to be able to save, and that uses the default built-in save-state feature. It does have a "save state" feature that just keeps all the current variables, right? That would be the easiest way...
Warning: The above post may have been modified multiple times.

"In a great game, the character must never perfectly obey the user's command"
 - Tim Rogers

http://connorspuzzles.tumblr.com/

Circuit


  • GMG-er

  • **


  • Posts: 299

  • blast from the past
Re: Ideas for SilverCreator
« Reply #3 on: March 17, 2014, 02:45:30 PM »
No, unfortunately SC doesn't have a save state feature.  GM does, but not SC.  Having a save state feature of any kind (even if it saved everything in one file) would be a huge improvement.

Gan


  • Administrator

  • ^ This guy is amazing.

  • *****


  • Posts: 4411
Re: Ideas for SilverCreator
« Reply #4 on: March 17, 2014, 03:29:09 PM »
When Mike resurfaces, we'll hound him.

Circuit


  • GMG-er

  • **


  • Posts: 299

  • blast from the past
Re: Ideas for SilverCreator
« Reply #5 on: March 19, 2014, 01:48:06 PM »
Anyway, that's my idea.  What do you guys want to see added/improved in SC?  Let's make a list.

Gan


  • Administrator

  • ^ This guy is amazing.

  • *****


  • Posts: 4411
Re: Ideas for SilverCreator
« Reply #6 on: March 19, 2014, 02:33:10 PM »
• Cause objects would be probably too hard to implement, I'd like to see a Map structure similar to the Array structure. That can be stored in the array structure. So you can have an array of Maps.
Array:
Code: [Select]
array[5] = 2
Map:
Code: [Select]
myCharacterMap['positionX'] = 5
Array of maps:
Code: [Select]
var arrayOfMaps = new Array()
var characterMap = new Map()
characterMap['Name'] = "Bob";
characterMap['x'] = 50;
characterMap['y'] = 40;
characterMap['Health'] = 100;
arrayOfMaps.add(characterMap)
• Export to web/javascript ability
• Syntax highlighting


I wonder if a lot of the work in SC could be lessened by using a pre-built and modifiable scripting language like Lua.

Connors


  • ^ This guy is amazing.

  • ****


  • Posts: 2374

  • It's a secret to everyone...
Re: Ideas for SilverCreator
« Reply #7 on: March 19, 2014, 06:48:37 PM »
Well, as long as you're not trying to use SC for something it wasn't designed for (Hint: it works good for point-and-click adventures).
Warning: The above post may have been modified multiple times.

"In a great game, the character must never perfectly obey the user's command"
 - Tim Rogers

http://connorspuzzles.tumblr.com/

Circuit


  • GMG-er

  • **


  • Posts: 299

  • blast from the past
Re: Ideas for SilverCreator
« Reply #8 on: March 21, 2014, 09:18:42 PM »
I'd like to have proper 2D arrays.  I'd also like to have the option of using 0-indexed arrays (i.e. counting upward from subscript 0) instead of 1-indexed (counting up from 1).  Switching SC over to 0-indexed-only would break all the games written in previous versions, and I don't want that, so instead of switching over, they should both be supported, and the user should get to choose their preference.

Gan


  • Administrator

  • ^ This guy is amazing.

  • *****


  • Posts: 4411
Re: Ideas for SilverCreator
« Reply #9 on: March 21, 2014, 09:21:44 PM »
Perhaps a new future of SilverCreator can have the old engine as well as a new engine and use a versioning system to distinguish.

Connors


  • ^ This guy is amazing.

  • ****


  • Posts: 2374

  • It's a secret to everyone...
Re: Ideas for SilverCreator
« Reply #10 on: December 12, 2014, 12:25:38 AM »
Yeah, the bot user is right, I haven't heard any news about Silver Creator in ages...
Warning: The above post may have been modified multiple times.

"In a great game, the character must never perfectly obey the user's command"
 - Tim Rogers

http://connorspuzzles.tumblr.com/