Just a couple of nonsense... bugs?

View previous topic View next topic Go down

Just a couple of nonsense... bugs?

Post  exavi on Fri Feb 20, 2009 4:33 am

nonsense thing 1:
Code:
function scriptAction()
   print ("hello world")
end
this LUA script returns this on console:
[ script ] ERROR 3: [string "function scriptAction() ..."]:3: unexpected symbol near '\216'.

what am I doing wrong? this nonsense function does not work, so if this one does not work, I can't expect the other, more complex ones to work. Maybe I forgot to initialize something or so... :S

The other scripts sometimes give me a syntax error, and sometimes work at the first time.
----

nonsense thing 2:

When we enable sio2ResourceCull on our project, if we are on a position where our player and camera loc->x or loc->y is bigger than 25.0f the floor disappears if we look left. if we don't call sio2ResourceCull, this does not happen.

I think that its important to point out that we using our .sio2 as an actual resource file, and not as a map file. We copy and position all of those objects that are supposed to be in our maps by reading these positions from our files. So, for example this floor its not on position (0,0,0) actually its on 0,0,-10 or so.



any ideas?

exavi

Posts : 37
Join date : 2008-10-21

View user profile

Back to top Go down

Re: Just a couple of nonsense... bugs?

Post  exavi on Fri Feb 20, 2009 5:15 am

forget nonsense thing #1, seems that sio2StreamOpen() keeps a bit of trash on the buffer, now with sio2StreamOpenText() works fine. The problem was that it was adding something at the end.

exavi

Posts : 37
Join date : 2008-10-21

View user profile

Back to top Go down

Re: Just a couple of nonsense... bugs?

Post  sio2interactive on Fri Feb 20, 2009 5:29 am

In order for the clipping to work the pivot point of the object have to be in the center of the mesh and the bounding sphere radius have to be accurate and should represent the actual size of the object in world units.
avatar
sio2interactive

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

View user profile http://sio2interactive.com

Back to top Go down

Re: Just a couple of nonsense... bugs?

Post  exavi on Fri Feb 20, 2009 7:43 am

wow, thanks I will try it.


edit: tried it, works perfect.

Now that I've finished the project I have to say... wooooow what a great game engine Wink

exavi

Posts : 37
Join date : 2008-10-21

View user profile

Back to top Go down

Re: Just a couple of nonsense... bugs?

Post  sio2interactive on Fri Feb 20, 2009 4:15 pm

Hehe, tks dude! looking forward to see your app on the app store!! Smile

Good luck!
avatar
sio2interactive

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

View user profile http://sio2interactive.com

Back to top Go down

Re: Just a couple of nonsense... bugs?

Post  Sponsored content


Sponsored content


Back to top Go down

View previous topic View next topic Back to top

- Similar topics

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