Hard Light Productions Forums

Community Projects => The FreeSpace Wiki Project => Topic started by: ARSPR on December 29, 2008, 01:37:21 am

Title: $Name and special characters (#, @ and any others??)
Post by: ARSPR on December 29, 2008, 01:37:21 am
I think $Name entry in Ships.tbl and Weapons.tbl, (and any other table???), should contain the description about the special characters you can use in it.

I don't mind updating Wiki myself but I'm no expert.

This is my little knowledge about these characters:


Could anyone confirm this info and post a lesson about the rest?
Title: Re: $Name and special characters (#, @ and any others??)
Post by: TopAce on December 29, 2008, 07:23:50 am
@ Is used to denote ships and weapons that were in the demo.

I don't know of any others.
Title: Re: $Name and special characters (#, @ and any others??)
Post by: Snail on December 29, 2008, 12:25:07 pm
;; semicolon can be used anywhere to **** things up
Title: Re: $Name and special characters (#, @ and any others??)
Post by: ARSPR on December 29, 2008, 01:50:44 pm
I've made a test with @ and it seems pretty useless...

In FS2 retail ships.tbl you have:

Code: [Select]
...

$Name:                          @GTDR Amazon
...
$POF file:                      Drone01.pof
...
$Closeup_pos:           0.0, -2.0, -49
$Closeup_zoom:          0.5

...


$Name:                          GTDR Amazon Advanced
...
$POF file:                      Drone02.pof
...
$Closeup_pos:           0.0, 19.0, -190
$Closeup_zoom:          0.5

...

Over that table I've used the next -shp.tbm which switches @ between both ships:

Code: [Select]
#Ship Classes

$Name:  GTDR Amazon
+nocreate
$POF file: Drone02.pof
$Closeup_pos:           0.0, 19.0, -190
$Closeup_zoom:          0.5

$Name:  @GTDR Amazon Advanced
+nocreate
$POF file: Drone01.pof
$Closeup_pos:           0.0, -2.0, -49
$Closeup_zoom:          0.5

#End


And voilĂ , you end with an Amazon looking like an Amazon Advanced, and vice versa.

So it really seems that @ is fully useless.

Could someone confirm it? Or does it have another kind of hidden effect?
Title: Re: $Name and special characters (#, @ and any others??)
Post by: FreeSpaceFreak on December 29, 2008, 02:00:20 pm
@ Is used to denote ships and weapons that were in the demo.
Title: Re: $Name and special characters (#, @ and any others??)
Post by: Droid803 on December 29, 2008, 05:39:54 pm
The game does not read the '@' at all.
You can use it to mark ships, that say, are placeholders in your mod or something.
Its essentially like a comment, but only a single character.
Title: Re: $Name and special characters (#, @ and any others??)
Post by: WMCoolmon on December 30, 2008, 12:19:40 am
;; semicolon can be used anywhere to **** things up

/* Comment */ as well.
Title: Re: $Name and special characters (#, @ and any others??)
Post by: ARSPR on December 30, 2008, 01:02:26 am
;; semicolon can be used anywhere to **** things up

/* Comment */ as well.

Thanks guys, but I don't think they are $Name special characters but general ones.


OTOH there's just one question missing. Is there any other table, (but ships.tbl and weapons.tbl), where # and @ can be also used?


EDITED

Done. Ships.tbl and Weapons.tbl modified in Wiki