StaticData problem

Freeform discussion about anything related to modding Transcendence.
Post Reply
User avatar
alterecco
Fleet Officer
Fleet Officer
Posts: 1658
Joined: Wed Jan 14, 2009 3:08 am
Location: Previously enslaved by the Iocrym

The problem is that (sysCreateStation) expects an integer, not a string UNID. If you called it manually it would be like:

Code: Select all

(sysCreateStation &stCharonPirateOutpost; somevector)
In this case, when the xml is parsed, the ENTITY gets replaced with the UNID, which is a 0x hexadecimal number, not a string.

So the problem is to get a number. Luckily we have (int), so just wrap the string in that

Code: Select all

(sysCreateStation (int (item (item hostiles1 0) 0)) (objGetPos theMarker))
That should work (in theory). Sorry for the long explanation, but I thought it might clear it up...

.]
User avatar
Arisaya
Fleet Admiral
Fleet Admiral
Posts: 5535
Joined: Tue Feb 05, 2008 1:10 am
Location: At the VSS Shipyards in the frontier, designing new ships.

that's neat... I'll have to keep this in mind
(shpOrder gPlayership 'barrelRoll)

<New tutorials, modding resources, and official extension stuff coming to this space soon!>
User avatar
digdug
Fleet Admiral
Fleet Admiral
Posts: 2620
Joined: Mon Oct 29, 2007 9:23 pm
Location: Decoding hieroglyphics on Tan-Ru-Dorem

It should work also if you remove the "" from your staticdata table.
User avatar
alterecco
Fleet Officer
Fleet Officer
Posts: 1658
Joined: Wed Jan 14, 2009 3:08 am
Location: Previously enslaved by the Iocrym

digdug wrote:It should work also if you remove the "" from your staticdata table.
True that... why do i never think of the obvious solution!! :D

.]
Post Reply