Flashers on subentities

An area for discussing new ideas and additions to Oolite.

Moderators: winston, another_commander

Post Reply
User avatar
Frame
---- E L I T E ----
---- E L I T E ----
Posts: 1477
Joined: Fri Mar 30, 2007 8:32 am
Location: Witchspace

Flashers on subentities

Post 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 ?
Bounty Scanner
Number 935
User avatar
Commander McLane
---- E L I T E ----
---- E L I T E ----
Posts: 9520
Joined: Thu Dec 14, 2006 9:08 am
Location: a Hacker Outpost in a moderately remote area
Contact:

Post 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.
User avatar
Cmdr James
Commodore
Commodore
Posts: 1357
Joined: Tue Jun 05, 2007 10:43 pm
Location: Berlin

Post 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?
User avatar
Lestradae
---- E L I T E ----
---- E L I T E ----
Posts: 3095
Joined: Tue Apr 17, 2007 10:30 pm
Location: Vienna, Austria

...

Post 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.
User avatar
Commander McLane
---- E L I T E ----
---- E L I T E ----
Posts: 9520
Joined: Thu Dec 14, 2006 9:08 am
Location: a Hacker Outpost in a moderately remote area
Contact:

Post by Commander McLane »

Yes, I recall that Charlie tried it. Didn't work, however.
User avatar
Lestradae
---- E L I T E ----
---- E L I T E ----
Posts: 3095
Joined: Tue Apr 17, 2007 10:30 pm
Location: Vienna, Austria

...

Post 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.
User avatar
JensAyton
Grand Admiral Emeritus
Grand Admiral Emeritus
Posts: 6657
Joined: Sat Apr 02, 2005 2:43 pm
Location: Sweden
Contact:

Post by JensAyton »

There is partial structural support for hierarchical subentities, but it has never been fully implemented.

In other words, no.
User avatar
Eric Walch
Slightly Grand Rear Admiral
Slightly Grand Rear Admiral
Posts: 5536
Joined: Sat Jun 16, 2007 3:48 pm
Location: Netherlands

Re: Flashers on subentities

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