Daily WTF moment: Bug in loading and saving attributes (IMPORTANT!!!!)
hmchan4
Member Posts: 21
I am frustrated by these bug and they tortured me for nearly a week.
It starts with the phenomena that I cannot load the attributes that I saved just now in the previous scene.
I started to check whether I am doing anything wrong with the settings and every spelling in the project. Nothing wrong found.(1st WTF moment)
Then I start thinking: There maybe some "misunderstanding" with the game engine, in other words "hidden rules", AKA "BUG"
I start importing those load and save rules into another new project one by one, then I figure out WTF is going on here (2nd WTF moment)
items:
1) You cannot name the persistent memory with name containing '_' e.g weapon_status
2) You cannot name the persistent memory with name ending with numbers e.g weapon1
3) You cannot rename the function for load and save attributes (3rd WTF moment, it took me nearly half-day to figure it out)
Up to here, I want to express my feeling.
Well, this is the PUNISHMENT FOR HAVING SO-CALLED "NAMING CONVENTION" AND "ORGANIZED CODING" FROM GAMESALAD.
I think many programmers may feel that they got their ASS KICKED!!!!
During the process, I cannot find any useful piece of information telling me the rules with the naming of attributes.
NO WIKI AT ALL !!!! I WANT THE WIKI BACK ONLINE AND A FULL DESCRIPTION WITH THE RULES OF USING THE FUNCTION AND BASIC SIMPLE USAGE EXAMPLE OF THE FUNCTION.
The cook book example is very GD but they are integrated one and are videos. We do need integrated example but we also need some non-integrated one. You cannot isolate the rules with using the function and you cannot see how to set it because the word in the video is too small. Please, please, give a wording version of the tutorial, sample project, restoration of the online wiki and a more detailed manual on the function description. NO ONE WOULD KNOW WHAT SHOULD NOT BE DONE IF YOU DON'T TELL ANYONE HOW TO DO IT CORRECTLY!!!!
The most amazing part is that it can still run but LOAD NOTHING!!! WTF!!!! Are you guys god dame kidding here?!!! Give more info on the debug window, please!
It starts with the phenomena that I cannot load the attributes that I saved just now in the previous scene.
I started to check whether I am doing anything wrong with the settings and every spelling in the project. Nothing wrong found.(1st WTF moment)
Then I start thinking: There maybe some "misunderstanding" with the game engine, in other words "hidden rules", AKA "BUG"
I start importing those load and save rules into another new project one by one, then I figure out WTF is going on here (2nd WTF moment)
items:
1) You cannot name the persistent memory with name containing '_' e.g weapon_status
2) You cannot name the persistent memory with name ending with numbers e.g weapon1
3) You cannot rename the function for load and save attributes (3rd WTF moment, it took me nearly half-day to figure it out)
Up to here, I want to express my feeling.
Well, this is the PUNISHMENT FOR HAVING SO-CALLED "NAMING CONVENTION" AND "ORGANIZED CODING" FROM GAMESALAD.
I think many programmers may feel that they got their ASS KICKED!!!!
During the process, I cannot find any useful piece of information telling me the rules with the naming of attributes.
NO WIKI AT ALL !!!! I WANT THE WIKI BACK ONLINE AND A FULL DESCRIPTION WITH THE RULES OF USING THE FUNCTION AND BASIC SIMPLE USAGE EXAMPLE OF THE FUNCTION.
The cook book example is very GD but they are integrated one and are videos. We do need integrated example but we also need some non-integrated one. You cannot isolate the rules with using the function and you cannot see how to set it because the word in the video is too small. Please, please, give a wording version of the tutorial, sample project, restoration of the online wiki and a more detailed manual on the function description. NO ONE WOULD KNOW WHAT SHOULD NOT BE DONE IF YOU DON'T TELL ANYONE HOW TO DO IT CORRECTLY!!!!
The most amazing part is that it can still run but LOAD NOTHING!!! WTF!!!! Are you guys god dame kidding here?!!! Give more info on the debug window, please!
Comments
You cannot add number into name of persistent attribute name e.g weapon1status
WOOO!!! EPIC FAILURE!!!!
This have been reproduced in a new empty project.....
eg: key 'Door3' is used to load the attribute 'Door3'. All works fine.
Maybe I'm not understanding your issue properly though?
I have never had any issues with save/load working when its been setup right. I'd suggest heading over to the cookbook. I believe their is a video tutorial on how to use save/load im sure you have just missed a step. Something like using the keys for save and load would be my guess.
Something I have come across is that if you are using an actor not on the screen to load the attributes, it can only work with 2 load attributes for some reason.
I don't know if this is what your wondering about, but I usually have 2 or 3 actors with my load attributes, I don't know why, it just doesn't work the other way.
Hope this helps,
Bray
My GameSalad Academy Courses! ◦ Check out my quality templates! ◦ Add me on Skype: braydon_sfx
My GameSalad Academy Courses! ◦ Check out my quality templates! ◦ Add me on Skype: braydon_sfx
One problem that it could be (other than user error) is that you are entering the save/load keys in the expression editor. Clear the expression and type it in the text box, not the expression editor.
The save/load attribute function in Gamesalad is super stable, therefore I don't feel many programmers do actually 'feel like they got their ass kicked'.
Ace
Indeed
My GameSalad Academy Courses! ◦ Check out my quality templates! ◦ Add me on Skype: braydon_sfx
I have already submitted a regenerated project fault case for the development team to study. I don't think they are going to reply me in these few days. LOL
Yes, I have read through the cookbook for load and save property.
Yes, all works except after using attributes with '_' or numbers in the name
Anyway, a wiki and a manual with full functional and parameter format is a must!!!
1) in "scene 1", we save the attribute A with key B and C
2) in next scene "scene 2", we load the attribute D with key B and attribute E with key C
Would that work?
Tenrdrmer, here is the game project
http://www.mediafire.com/?v732ha4ia4sd7l9
I tried you method and you are right!!!!!! I have exactly the same input pattern as you have said!!!!!!
YAHOOOOOO!!!!!!!!
Anyone know what is not permitted to used as attributes and key name?
Glad I could have helped.
Ace
This is what I think of when you talk about the expression editor, @tenrdrmer
Ace
I have never actually tried it but it should work. The logic is
you can save key1, key2, key3, key4, key5
Then for your load key would look something like
("key"..game.keynumber)
And then based on what every you have game.keynumber set to at the time it will load the key you want. I'm not sure how practical it actually is. but thats the logic of it at least.
Cheers
I think I have tried that before (the '..' style) and it is not working
Anyway, I will give a try.
Cheers!!!!!
Shadows Peak is an atmospheric psychological horror that explores the dark side of a player.
I'm facing same problem and double-checked all behaviors, attributes names, keys name, etc...
Last thing done was removing Key name and typing again out of expression editor as suggested by ace.
As said by mynameisace, this is the problem when you use expression editor to type in the save attribute key and load key
If you have similar pattern, you need to
1) clear all the content in the key field
2) type again
3) done!!
This is my case
Also, don't try any fancy naming in the key field (like using string concatenation)
I suggest that you open a small new project and try to simulate the variable name and key name used
Try to spot the problem one by one.
I'd entered my key name into the Expression Editor.
Thanks for the advice!
- Murray