Where have all the ship roles gone
Posted: Fri Apr 25, 2008 10:12 pm
There really should be a "learning scripting questions" forum here, you know. I hereby attempt to request one. No one learns this over night or without asking a lot of questions. Perhaps that would be interesting for other people relatively new at that like me, too - and it would stop me from spamming the Expansion Forum with such questions. And it could be pointed to more easily if a specific question has already been answered.
But alas, here it comes.
Yes, I have read the wiki and looked at diverse example oxps. I can`t get my head around the way how subentities are assigned roles. For example, the Constitution ship from NavyStarships has the following subentities defined:
... so, and all of those subentities then have their listing and have a role assigned (which in that case happens to be of the same designation as the ship subentity part, like "s-dock" having the role "s-dock" assigned and so on.
So, now the question. If I read the wiki allright, some unique role like:
... should be defined as a role in an accompanying script.plist.
But I don`t find one in the abovementioned example, yet the subentities seem to work (well, most of the time) in the game.
Which ways are there to define a unique role? Only in a script.plist? Or somewhere else? Or will the game "fall back on" a standard role if none is defined?
Please, can someone who knows either explain or drop me an url or such where I can read about this?
Thanks @any meaningful answer in advance
L
But alas, here it comes.
Yes, I have read the wiki and looked at diverse example oxps. I can`t get my head around the way how subentities are assigned roles. For example, the Constitution ship from NavyStarships has the following subentities defined:
Code: Select all
<string>s-dock -0.1 -72.7 -237.6 0 1 0 0</string>
<string>s-doors 0.0 0.0 0.0 1 0 0 0 </string>
<string>DummyNI -16 -80 0.0 1 0 0 0</string>
<string>DummyNI -16 -80 -80 1 0 0 0</string>
<string>DummyNI -16 -80 -160 1 0 0 0</string>
<string>DummyOrb 16 -70 0.0 1 0 0 0</string>
<string>DummyMer 16 -80 -80 1 0 0 0</string>
<string>DummyKes 16 -80 -160 1 0 0 0</string>
<string>bridge 0.0 0.0 0.0 1 0 0 0 </string>
<string>nacelles 0.0 0.0 0.0 1 0 0 0 </string>
<string>neck 0.0 0.0 0.0 1 0 0 0 </string>
<string>phaser 0.0 0.0 0.0 1 0 0 0 </string>
<string>pylons 0.0 0.0 0.0 1 0 0 0 </string>
<string>rearphot 0.0 0.0 0.0 1 0 0 0 </string>
<string>saucer 0.0 0.0 0.0 1 0 0 0 </string>
So, now the question. If I read the wiki allright, some unique role like:
Code: Select all
<key>roles</key>
<string>uniquely_named_role</string>
But I don`t find one in the abovementioned example, yet the subentities seem to work (well, most of the time) in the game.
Which ways are there to define a unique role? Only in a script.plist? Or somewhere else? Or will the game "fall back on" a standard role if none is defined?
Please, can someone who knows either explain or drop me an url or such where I can read about this?
Thanks @any meaningful answer in advance
L