Page 1 of 1

Flashers on subentities

Posted: Tue Jan 06, 2009 2:41 am
by Frame
I just tried putting flashers on a subentity..

however in Oolite 1.72.1 those flashers does not show up, not sure they ever have...

My model is two counter rotating segments,the main top hierarchy model (the parent model), its flashers are showing up okay.. but not for its sibling..

I allready tried assigning an AI for the subentity and use

Code: Select all

{
	GLOBAL =
	{
		ENTER = (switchLightsOn);
	};
	
}
I then assigned the same AI to the parent model aswell.. but still the flashers do not come on...

So could we have flashers for subentities working to ?

Posted: Tue Jan 06, 2009 8:38 am
by Commander McLane
I think generally sub-entities cannot have sub-entities, or am I wrong with that? As flashers are defined as sub-entities, that would be certainly true for them as well.

Posted: Tue Jan 06, 2009 9:06 am
by Cmdr James
There are certainly places in the code that looks for parents of parents (and so on) of subentities, so I think the intention was for them to be stackable.

Im not certain if it works though, maybe someone with more modelling experience can give input?

...

Posted: Tue Jan 06, 2009 9:30 am
by Lestradae
Commander McLane wrote:
I think generally sub-entities cannot have sub-entities, or am I wrong with that? As flashers are defined as sub-entities, that would be certainly true for them as well.
I think Charlie's Constitution has one or two subentities that have a subentity. Not absolutely sure, though.

Does it matter? Then I would have a look.

Posted: Tue Jan 06, 2009 9:45 am
by Commander McLane
Yes, I recall that Charlie tried it. Didn't work, however.

...

Posted: Tue Jan 06, 2009 10:40 am
by Lestradae
Cmdr McLane, you're absolutely correct. Had a look. There actually were subentities on subentities on the constitution model, and I wondered for ages a year ago why the constitution wouldn't work.

That changed when I got creative and removed bits and pieces from the meta-model, and when I removed the subentities' subentities, I had the culprit. Remember now a remark I made to my girlfriend that Charlie scripted like Kafka wrote books :wink:

Cheers

L

Edit: And he did manage to do it in another spot. Just working on the Constitution again.

He puts a subentity on that is like_ship'ped to look like something else, and that something else does have two subentities, and they do work as the game obviously treats the first subentity as some sort of ship on its own?

Kafka, I say. Well, if it works it's fine by me.

Posted: Tue Jan 06, 2009 12:08 pm
by JensAyton
There is partial structural support for hierarchical subentities, but it has never been fully implemented.

In other words, no.

Re: Flashers on subentities

Posted: Tue Jan 06, 2009 1:08 pm
by Eric Walch
Frame wrote:
I just tried putting flashers on a subentity..

however in Oolite 1.72.1 those flashers does not show up, not sure they ever have...
In 1.70 they were always off. I know as the GRS company is delivering w-buoys. When upgrading to Oolite 1.71 they were suddenly on by default. But by doing a call("switchLichtsOff") to its subentity I could put then of again. (I wanted the lights on the tugger to stay on).
In the current release I removed the call and I don't know how they behave in 1.72. But already back than I did a request for a JS command to do the light switching.

You could do a call to see if they are just off or not there at all.