Adhoc - Save and Load does not work + Intro Music does not Play
BigDave
Member Posts: 2,239
Hey guys you might be able to help me out here.
So my game is finished. It is right now in "Apple Hands" to signed off on.
I hope they do reject it.
I just tested my app to late on Adhoc and experienced a bug behaviour I did not have on the GS Viewer.
------------------
Situation:
-The app is on my Iphone5c
-I start it, the custom loading screen shows
-The scene changes to my own Loading Scene (ala Tshirtbooth )
Content: Load a bunch of Keys (highscore, unlocked parts..), Start music, Timer after 1 second change to next scene
-On top the Gamesalad network bar appears
-App progress as expected all other components seem to be fine.
------------------
Problem:
-In the custom loading screen
-The music does not start
-The variables seem to not be loaded (highscore is back to 0)
----------------
What I already tried.
I went through all "save attribute" and "load attribute" behaviours of the game and typed in the key instead using the "e" expression editor. I saved,published, generated app, signed app ->deleted old shaman file on device and dragged in the new one. Still same bug. Most weirdly the music does not even start and it has no condition at all. Music in further scenes work as expected.
----------
Any Idea?
So my game is finished. It is right now in "Apple Hands" to signed off on.
I hope they do reject it.
I just tested my app to late on Adhoc and experienced a bug behaviour I did not have on the GS Viewer.
------------------
Situation:
-The app is on my Iphone5c
-I start it, the custom loading screen shows
-The scene changes to my own Loading Scene (ala Tshirtbooth )
Content: Load a bunch of Keys (highscore, unlocked parts..), Start music, Timer after 1 second change to next scene
-On top the Gamesalad network bar appears
-App progress as expected all other components seem to be fine.
------------------
Problem:
-In the custom loading screen
-The music does not start
-The variables seem to not be loaded (highscore is back to 0)
----------------
What I already tried.
I went through all "save attribute" and "load attribute" behaviours of the game and typed in the key instead using the "e" expression editor. I saved,published, generated app, signed app ->deleted old shaman file on device and dragged in the new one. Still same bug. Most weirdly the music does not even start and it has no condition at all. Music in further scenes work as expected.
----------
Any Idea?
Comments
My Apps
https://itunes.apple.com/de/artist/david-zobrist/id733552276
https://play.google.com/store/apps/developer?id=David+Zobrist&hl=de
My Apps
https://itunes.apple.com/de/artist/david-zobrist/id733552276
https://play.google.com/store/apps/developer?id=David+Zobrist&hl=de
My Apps
https://itunes.apple.com/de/artist/david-zobrist/id733552276
https://play.google.com/store/apps/developer?id=David+Zobrist&hl=de
My Apps
https://itunes.apple.com/de/artist/david-zobrist/id733552276
https://play.google.com/store/apps/developer?id=David+Zobrist&hl=de
My Apps
https://itunes.apple.com/de/artist/david-zobrist/id733552276
https://play.google.com/store/apps/developer?id=David+Zobrist&hl=de
At the end a timer which sets self state to 1.
And a listener which changes scene on self state 1 to the next one.
But somehow this whole code seem to be ignored.
Maybe it needs a delay is somehow skipped?
My Apps
https://itunes.apple.com/de/artist/david-zobrist/id733552276
https://play.google.com/store/apps/developer?id=David+Zobrist&hl=de
Hi @BigDave Here's a recent thread concerning a similar problem (about loading game attributes):
http://forums.gamesalad.com/discussion/61318/save-load-attribute-randomly-stopped-working-i-m-going-crazy#latest
""You are in a maze of twisty passages, all alike." - Zork temp domain http://spidergriffin.wix.com/alphaghostapps
I dont think that is involved into the problem. Its more that the first scenes behaviours are only triggered partially. Like ignore music and load attribute but do fade color and change scene.
@gyroscope
Interesting checked it. But I can not say it ever worked for me. Since i just tested it yesterday.
I have the assumption that the network Ad prevents some of the behaviours to fire.
Except timer + change scene.
So I run now a new build where everything will be loaded and started on touch.
->Touch 1 remove ad network
->Touch 2 Trigger all scene code
wish me luck
My Apps
https://itunes.apple.com/de/artist/david-zobrist/id733552276
https://play.google.com/store/apps/developer?id=David+Zobrist&hl=de
Test2:
I remove all load attributes from the scene and check if the play music works by itself.
Potential bug source: problems with load attribute behaviors that prevent music from playing.
Test3:
Turn off play music and activated the load behaviors.
Potential bug source: damaged music file
My Apps
https://itunes.apple.com/de/artist/david-zobrist/id733552276
https://play.google.com/store/apps/developer?id=David+Zobrist&hl=de
SAVING AND LOADING STILL DOES NOT WORK.
And it seem to be broken in the new gamesalad versions
0.10.4.1 Beta
My Apps
https://itunes.apple.com/de/artist/david-zobrist/id733552276
https://play.google.com/store/apps/developer?id=David+Zobrist&hl=de
Ogg is the sound format used for most iOS games. Due its good compression i guess.
In Gamesalad .wav is used for interaction with play,stop,resum Music.
And .ogg for play sound.
wav=music format (bigger files)
ogg= sounds(smaller files)
My Apps
https://itunes.apple.com/de/artist/david-zobrist/id733552276
https://play.google.com/store/apps/developer?id=David+Zobrist&hl=de
Basically, if you know what bacon is, you should already be familiar with oggs… (sorry, couldn't resist that!)
But seriously, here's one description taken from somewhere on the internet:
"A .OGG audio file is a file which contains audio samples compressed with the Vorbis audio encoding algorithm, which is a very good, open source audio codec."
It's the audio file type favo(u)red by GSC specifically for sounds (as opposed to music, which uses mp4 format). Hope that helps. :-)
P.S You don't need to use ogg sound files for sounds in GSC, dragging in aiff, wav(e), mp3 and poss. a few other formats, GSC will automatically make the .ogg format for you.
P.P.S Also, there's the possibility (I think) that there will be a different standard for sound files in GSC in the future… not 100% certain about that tho', so don't quote me! ;-)
Edit: @BigDave beat me to it! I was writing while he was posting...
""You are in a maze of twisty passages, all alike." - Zork temp domain http://spidergriffin.wix.com/alphaghostapps
Also, @gyroscope, when you say, "if you know what bacon is..." are you refering to Frying Bacon Studios???
So in regards to ogg files, would it be better to use ogg rather than mp3???
Thanks again!
Some people try to optimise their sound files in different ways, but really, where saving a couple of mb really isn't that important, then just stick to dragging in whatever file type you have for your sound, (providing it's not some exotic audio type) and let GSC convert it for you.
OK, I'm off now for fried ogg on toast… ;-)
""You are in a maze of twisty passages, all alike." - Zork temp domain http://spidergriffin.wix.com/alphaghostapps