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.

Just a couple of nonsense... bugs?

2 posters

Go down

Just a couple of nonsense... bugs? Empty Just a couple of nonsense... bugs?

Post  exavi 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

Back to top Go down

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

Post  exavi 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

Back to top Go down

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

Post  sio2interactive 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.
sio2interactive
sio2interactive

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

http://sio2interactive.com

Back to top Go down

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

Post  exavi 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

Back to top Go down

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

Post  sio2interactive Fri Feb 20, 2009 4:15 pm

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

Good luck!
sio2interactive
sio2interactive

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

http://sio2interactive.com

Back to top Go down

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

Post  Sponsored content


Sponsored content


Back to top Go down

Back to top

- Similar topics

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