Another question about shipdata.plist

Discussion and information relevant to creating special missions, new ships, skins etc.

Moderators: winston, another_commander

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

Another question about shipdata.plist

Post by Lestradae »

Hi,

in shipdata.plist, is it actually of relevance if done in XML scripting in which sequence the commands are listed?

I.e., which fuel a ship has, which equipment, hyperdrive spin time, weapons energy, subentities, large cargo bay largeess etc. etc. - could they just be mixed together as it pleases or is a certain sequence nescessary, and if yes, which?

Perhaps a stupid question, perhaps not, I better ask before experimenting, and if it could be "pick & mix" that would be very practical.

Thanks in advance for any knowledgeable people

L
User avatar
Ramirez
---- E L I T E ----
---- E L I T E ----
Posts: 628
Joined: Mon Nov 07, 2005 9:52 am
Location: London, UK

Post by Ramirez »

Pretty sure that sequence isn't important. I tend to keep things in a certain order just so that I can find things in the list quickly. However, as long as all the keys are in place technically you can order things as you like.
Download Resistance Commander plus many other exciting OXPs HERE
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 »

Doesn't matter at all. PlistEdit Pro puts all keys of any plist it opens in alphabetic order, so personally I've got used to this. But it really doesn't matter.
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 »

Lestradae, shipdata.plist is not a script, it is a data file. A script contains instructions, a data file contains descriptions.

The order of items in dictionaries does not matter – they are unordered collections. The order of items in arrays does matter. This applies to all plists.
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 »

Thanks again, guys, for the quick and to-the-point answers.

@Ahruman: I really must get my understanding of the terms here somewhere else :?

Problem is, I have no programmers background at all, and what I know of the terms - legacy scripting, script, data file, XML, OpenStep etc. - I picked up by reading on the forums ...

Is there some sort of resource or dictionary from where a noob to those topics like me could get a basic education?

Greetings 8)

L
User avatar
ClymAngus
---- E L I T E ----
---- E L I T E ----
Posts: 2514
Joined: Tue Jul 08, 2008 12:31 am
Location: London England
Contact:

Post by ClymAngus »

I always find that a combination of popping the hood and busting things combined with the odd specific question tend to work well.
Post Reply