Just a couple of nonsense... bugs?
2 posters
Just a couple of nonsense... bugs?
nonsense thing 1:
[ 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?
- Code:
function scriptAction()
print ("hello world")
end
[ 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
Re: Just a couple of nonsense... bugs?
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
Re: Just a couple of nonsense... bugs?
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.
Re: Just a couple of nonsense... bugs?
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
edit: tried it, works perfect.
Now that I've finished the project I have to say... wooooow what a great game engine
exavi- Posts : 37
Join date : 2008-10-21
Re: Just a couple of nonsense... bugs?
Hehe, tks dude! looking forward to see your app on the app store!!
Good luck!
Good luck!
Similar topics
» A couple questions concerning textures...
» Couple problems with 1.3 tutorials
» Couple of doubts regarding camera
» Bugs in sio2ResourceDel
» Couple problems with 1.3 tutorials
» Couple of doubts regarding camera
» Bugs in sio2ResourceDel
Permissions in this forum:
You cannot reply to topics in this forum