FORUM CLOSED, PLEASE REGISTER AT FORUM.SIO2INTERACTIVE.COM
Would you like to react to this message? Create an account in a few clicks or log in to continue.

EXC_BAD_ACCESS - Can't Load My .SIO2 Object-Scene?!

3 posters

Go down

EXC_BAD_ACCESS - Can't Load My .SIO2 Object-Scene?! Empty EXC_BAD_ACCESS - Can't Load My .SIO2 Object-Scene?!

Post  quantass Sat Sep 19, 2009 10:40 am

I'm using the latest version of SIO2 for my iPod Touch 2.2.1. I'm a noob to all of this. After creating my scene within Blender 2.49 and exported through the supplied SIO2 export script, i attempted to load the scene into the simulator.

To make things easier i used Tutorial 2 and Tutorial 4 by replacing their existing Tutorial.SIO2 file with my newly exported file then BUILD-GO. It didnt work. I keep getting back EXC_BAD_ACCESS within "sio2_resource.cc" at line 2174: if(_SIO2material->tname[ j ][ 0 ] && !_SIO2material->_SIO2image[ j ]->tid).

The exported scene does contain two texture PNG images (256x256x24bit).

Any assistance would be appreciated.

quantass

Posts : 14
Join date : 2009-09-19

Back to top Go down

EXC_BAD_ACCESS - Can't Load My .SIO2 Object-Scene?! Empty Re: EXC_BAD_ACCESS - Can't Load My .SIO2 Object-Scene?!

Post  sio2interactive Sat Sep 19, 2009 3:02 pm

You haven't bind the image... use tutorial03 instead of 02...
sio2interactive
sio2interactive

Posts : 1526
Join date : 2008-08-26
Age : 44
Location : Shanghai

http://sio2interactive.com

Back to top Go down

EXC_BAD_ACCESS - Can't Load My .SIO2 Object-Scene?! Empty Re: EXC_BAD_ACCESS - Can't Load My .SIO2 Object-Scene?!

Post  quantass Sat Sep 19, 2009 10:41 pm

Thanks for the reply.

I'm not sure what you mean by "bind the image" but i did launch Tutorial 3 and replaced its .SIO2 scene file with my own file. I tried running it through the simulator but still received a EXC_BAD_ACCESS like before. Very strange.

I then went ahead and loaded Tutorial3.blend into Blender 2.49, relinked its textures, then exported the scene out. I then went back to Tutorial3 within Xcode and replaced its tutorial03.sio2 with the newly exported .SIO2 of my saved out tutorial3.blend scene. I compiled and launched the app but again the program crashed.

For the record i'm using Blender 2.49 on my Windows Vista PC but am using Xcode development on the Mac OSX.

Thanks for any further assistance.

quantass

Posts : 14
Join date : 2009-09-19

Back to top Go down

EXC_BAD_ACCESS - Can't Load My .SIO2 Object-Scene?! Empty A Solution!?

Post  quantass Tue Sep 22, 2009 3:53 pm

Ok i think i discovered the source of the problem with SIO2 and loading of my Blender exported scene. It seems the zipped contents is in a directory structure. I normally export to my desktop (C:\Users\Quantass\Desktop). Apparently the created archive contents mimics this directory structure + the required scene folders. SIO2 when reading seems to detest the appended directory structure and prefers the scene folders to be at root.

I'm trying to figure out the exporter Python code to make the changes so that it always stores the scene at root level. I was going to comment out the code in SIO2 to just ignore it but i dont want to create a future problem.

Let me know if this all makes sense. Perhaps there is a better way.

quantass

Posts : 14
Join date : 2009-09-19

Back to top Go down

EXC_BAD_ACCESS - Can't Load My .SIO2 Object-Scene?! Empty Re: EXC_BAD_ACCESS - Can't Load My .SIO2 Object-Scene?!

Post  cybergreg Tue Sep 22, 2009 5:24 pm

Very Happy

Not to be too much of a smart a$$ but just use Blender on your Mac... Very Happy
cybergreg
cybergreg

Posts : 21
Join date : 2009-07-21
Location : SoCal, USA

Back to top Go down

EXC_BAD_ACCESS - Can't Load My .SIO2 Object-Scene?! Empty Re: EXC_BAD_ACCESS - Can't Load My .SIO2 Object-Scene?!

Post  quantass Tue Sep 22, 2009 8:20 pm

Unfortunately my hackintosh just keeps say not enough VRAM to run Blender directly on the Mac. It isn't too bad to use Blender on the PC and then mouse over to the Mac. To be honest I find OSX a little clumsier than Windows so if i can avoid as much use of it as possible its only good for me. Smile

I did get SIO2 to finally load my Blender export but NOW it doesnt render the textures.

quantass

Posts : 14
Join date : 2009-09-19

Back to top Go down

EXC_BAD_ACCESS - Can't Load My .SIO2 Object-Scene?! Empty Re: EXC_BAD_ACCESS - Can't Load My .SIO2 Object-Scene?!

Post  Sponsored content


Sponsored content


Back to top Go down

Back to top


 
Permissions in this forum:
You cannot reply to topics in this forum