5
« on: February 22, 2015, 05:32:05 am »
I was building my game and i decided to test it on android. So i clicked test game and it saved, finalized, compiled and sent to device, but it produced the message "unfortunately, my game has stopped". I then tried on flash player, and it produced an error code. I deleted the game, and then put one of my backups in. I tried again with flash player, and it produced this error:
TypeError: Error #1009: Cannot access a property or method of a null object reference.
at com.stencyl.models::GameModel()[C:\Program Files (x86)\Stencyl\plaf\haxe\lib/stencyl/1,00/com/stencyl/models/GameModel.hx:136]
at com.stencyl.models::GameModel$/get()[C:\Program Files (x86)\Stencyl\plaf\haxe\lib/stencyl/1,00/com/stencyl/models/GameModel.hx:46]
at com.stencyl.models.actor::Animation()[C:\Program Files (x86)\Stencyl\plaf\haxe\lib/stencyl/1,00/com/stencyl/models/actor/Animation.hx:74]
at com.stencyl.io::SpriteReader/readAnimation()[C:\Program Files (x86)\Stencyl\plaf\haxe\lib/stencyl/1,00/com/stencyl/io/SpriteReader.hx:113]
at com.stencyl.io::SpriteReader/read()[C:\Program Files (x86)\Stencyl\plaf\haxe\lib/stencyl/1,00/com/stencyl/io/SpriteReader.hx:53]
at com.stencyl::Data/readResource()[C:\Program Files (x86)\Stencyl\plaf\haxe\lib/stencyl/1,00/com/stencyl/Data.hx:265]
at com.stencyl::Data/readResourceXML()[C:\Program Files (x86)\Stencyl\plaf\haxe\lib/stencyl/1,00/com/stencyl/Data.hx:251]
at com.stencyl::Data/loadResources()[C:\Program Files (x86)\Stencyl\plaf\haxe\lib/stencyl/1,00/com/stencyl/Data.hx:206]
at com.stencyl::Data/loadAll()[C:\Program Files (x86)\Stencyl\plaf\haxe\lib/stencyl/1,00/com/stencyl/Data.hx:140]
at com.stencyl::Data$/get()[C:\Program Files (x86)\Stencyl\plaf\haxe\lib/stencyl/1,00/com/stencyl/Data.hx:47]
at com.stencyl::Engine/begin()[C:\Program Files (x86)\Stencyl\plaf\haxe\lib/stencyl/1,00/com/stencyl/Engine.hx:652]
at com.stencyl::Engine()[C:\Program Files (x86)\Stencyl\plaf\haxe\lib/stencyl/1,00/com/stencyl/Engine.hx:511]
at Universal/init()[C:\Program Files (x86)\Stencyl\plaf\haxe\lib/stencyl/1,00/Universal.hx:57]
at Universal/onAdded()[C:\Program Files (x86)\Stencyl\plaf\haxe\lib/stencyl/1,00/Universal.hx:36]
at flash.display::DisplayObjectContainer/addChild()
at Universal$/main()[C:\Program Files (x86)\Stencyl\plaf\haxe\lib/stencyl/1,00/Universal.hx:694]
at Function/http://adobe.com/AS3/2006/builtin::apply()
at Function/<anonymous>()
at Reflect$/callMethod()[C:\Program Files (x86)\Stencyl\plaf\haxe/std/flash/_std/Reflect.hx:56]
at ApplicationMain$/begin()[Export/flash/haxe/ApplicationMain.hx:56]
at ApplicationMain$/preloader_onComplete()[Export/flash/haxe/ApplicationMain.hx:83]
at flash.events::EventDispatcher/dispatchEventFunction()
at flash.events::EventDispatcher/dispatchEvent()
at scripts::StencylPreloader/onLoaded()[Source/scripts/StencylPreloader.hx:316]
at ApplicationMain$/onEnter()[Export/flash/haxe/ApplicationMain.hx:75]
i have also ran in debug mode and still doesnt work. i have tried a sample game and it worked.
Flash browser displays nothing.
Last time this happened (with the same game!) i deleted favourites.xml , game.xml and game.xml.bak and then went into stencyl, created a new game, and copied the new game favourites.xml , game.xml and game.xml.bak into the game that stopped working and it worked again. This time i tried that and it didnt work, so i deleted it and tried to use a backup but didnt work! I have attached all the backups below. I am running windows 7 64-bit. Also, my logs are attached below. My workspace folder is c:/users/patel/appdata/roaming/stencyl/ . I have attached most of the stencylworks folder as well ( except logs, because the ones just before and after problem are posted, if i posted them all it exceeds the max attachment size, except games because the backups are already posted, except games-generated, android-sdk and tools as it exceeds max attachment size).
Had to post attachments seperate because of max attachment size.