Search found 53 matches
- Thu Apr 09, 2009 9:51 am
- Forum: Libraries and Tools
- Topic: LUBE (Networking Library)
- Replies: 332
- Views: 229306
Re: LUBE (Networking Library) v0.04 + LUBE-X v0.02
When i try to start up the server I get this error: LUBE.lua:303: attempt to index local 'self' (a number value) Stack traceback: LUBE.lua:303: in function 'Init' main.lua:20: in function <main.lua:18> main.lua:20 being "lube.server.Init(8118)" I've tried using all sorts of port numbers, I...
- Wed Apr 08, 2009 2:34 pm
- Forum: Libraries and Tools
- Topic: LUBE (Networking Library)
- Replies: 332
- Views: 229306
Re: LUBE (Networking Library) v0.04 + LUBE-X v0.02
Hi bartbes and everyone,
I've been trying to learn how to use LUBE so I can make my games multiplayer, I'm not finding it very easy, the docs on the wiki don't enlighten me much. Are there any tutorials around, or does anyone care to throw one together?
Cheers.
I've been trying to learn how to use LUBE so I can make my games multiplayer, I'm not finding it very easy, the docs on the wiki don't enlighten me much. Are there any tutorials around, or does anyone care to throw one together?
Cheers.
- Tue Apr 07, 2009 10:06 am
- Forum: General
- Topic: How to solve a crash problem
- Replies: 3
- Views: 2496
Re: How to solve a crash problem
I appear to have solved my problem now. It was to do with using sensors to destroy objects. I suspect that theres some sort of overlap between the object actually being destroyed and the collision trigger being called for a second time, somehow, so it was trying to destroy an already destroyed objec...
- Tue Apr 07, 2009 8:46 am
- Forum: General
- Topic: How to solve a crash problem
- Replies: 3
- Views: 2496
How to solve a crash problem
Hey everyone, I've programmed a game that makes use of box2d physics, it seems to work nicely for a while, not getting any errors, BUT it randomly crashes--the window just closes suddenly. Objects are being created and destroyed approximately every second but theres hardly ever more than 2 objects i...
- Mon Apr 06, 2009 11:50 am
- Forum: General
- Topic: Can anyone help me with entities?
- Replies: 10
- Views: 4331
Re: Can anyone help me with entities?
You can always just nil them: apples[7] = nil Of course, you can't use general for loops anymore. In the example above, using general for loops will mean that apples[8], apples[9] and apples[10] will be ignored. Then you need to set apples.n = 10 and use "for i=1,apples.n do" instead of &...
- Mon Apr 06, 2009 8:54 am
- Forum: General
- Topic: Can anyone help me with entities?
- Replies: 10
- Views: 4331
Re: Can anyone help me with entities?
Thanks for your efforts mikembly, but i'm not sure if tables are going to work for me. Because I would idealy like to remove the destroyed apples from the table, so the table wont end up being astronomical if run for a long time. But say I have a table of 10 apples and i remove apple 7; then apple 8...
- Fri Apr 03, 2009 4:01 pm
- Forum: General
- Topic: Can anyone help me with entities?
- Replies: 10
- Views: 4331
Can anyone help me with entities?
What i need is probably easy, but i'm not that experienced with lua yet and can't seem to figure it out. I want to be able to spawn any number of entities (they're going to be apples), wether each is red or green should be random, and I need to be able to destroy them individually. I've gathered tha...
- Tue Mar 31, 2009 8:38 am
- Forum: General
- Topic: Do stuff on end touch
- Replies: 8
- Views: 7380
Re: Do stuff on end touch
I've been trying to do something similar in my game. I want to know when a sensor on the bottom of my character is no longer colliding, so I can know when my character shouldn't be able to jump. I have not yet found a good solution for this. This is how i sorted out jumping in my game... function u...
- Mon Mar 30, 2009 1:18 pm
- Forum: General
- Topic: Do stuff on end touch
- Replies: 8
- Views: 7380
Do stuff on end touch
I have a shape that is set to be a sensor, I need to do something when the sensor object is no longer touching/intersecting any other object. Does anyone know how I can achieve this? Thank you.
- Mon Mar 30, 2009 11:05 am
- Forum: General
- Topic: Platform Engine - A Few Thoughts
- Replies: 12
- Views: 8228
Re: Platform Engine - A Few Thoughts
A simple solution that works for me. Instead of defining every peice of ground in your world, just define a part of the player character which should be treated as the feet. So add a small extra shape to the body at the bottom of the character, and code your collision callback so jumping can only ha...