Search found 107 matches
- Fri Dec 12, 2014 4:07 pm
- Forum: Support and Development
- Topic: [SOLVED] Objects within objects. Help needed.
- Replies: 15
- Views: 10869
Re: Objects within objects. Help needed.
Hey man, tried putting a random name on each item as it gets called as a new object. (in the class constructor in the equipment files) They all get unique names! The new random name is always different on every ship with a shield and station with an AI. I'm pretty sure that means they are all unique...
- Thu Dec 11, 2014 5:02 pm
- Forum: Support and Development
- Topic: [SOLVED] Objects within objects. Help needed.
- Replies: 15
- Views: 10869
Re: Objects within objects. Help needed.
Hey man, firstly I must say thank you for taking time out of your day to help me. The community here seems very friendly and helpful and I really appreciate it. I'm at work at the minute but I'll try and implement your suggestions as soon as I get home. What exactly do you mean about the other argum...
- Thu Dec 11, 2014 2:07 pm
- Forum: Support and Development
- Topic: [SOLVED] Objects within objects. Help needed.
- Replies: 15
- Views: 10869
Re: Objects within objects. Help needed.
I agree, classes can be a bit of a headache. I had another look last night but what confuses me is the fact that I call the AI module in exactly the same way I called it as the first instance (Not as equipment, just as something I stuck on stations.) I just put the output in a different place. The o...
- Wed Dec 10, 2014 7:40 pm
- Forum: Support and Development
- Topic: [SOLVED] Objects within objects. Help needed.
- Replies: 15
- Views: 10869
Re: Objects within objects. Help needed.
Sort of, there is a function in supplier_ai. That makes the new copy so you only need the base class loaded once. I'm not at home at the minute but I'll check as soon as I get back. It should be a function called AI:equipItem () that should make the new object with the relevant metatable links.
- Wed Dec 10, 2014 4:59 pm
- Forum: Support and Development
- Topic: [SOLVED] Objects within objects. Help needed.
- Replies: 15
- Views: 10869
Re: Objects within objects. Help needed.
Hey man, thanks for the speedy reply but if that was the case then it would apply to all the objects called in this way so the shield module would do the same thing which it doesn't. I may be wrong and please correct me if I am but I require the files to ensure that each thing is loaded only once an...
- Wed Dec 10, 2014 2:43 pm
- Forum: Support and Development
- Topic: [SOLVED] Objects within objects. Help needed.
- Replies: 15
- Views: 10869
[SOLVED] Objects within objects. Help needed.
Hi all :) I'm currently writing a space trading/4X game based on my three favourite games Transport Tycoon, Patrician and the X Series. This isn't so much a big unveiling as I'm only a month into the project but thaks to love it's coming along really quickly. I have a randomly spawning universe curr...
- Mon Nov 10, 2014 10:27 am
- Forum: Support and Development
- Topic: Mouse not working on raspberry pi
- Replies: 0
- Views: 1296
Mouse not working on raspberry pi
Hi all :) I've been setting up a raspberry pi for using at my friends house to do a bit of coding without taking my PC. My laptop is missing a power lead before you ask... :P I loaded Raspbian onto the SD card and started compiling the source for Love 2d, After much head scratching I finally found I...