Transcompiler does not like split libraries

These are old bug reports that have been closed.
Locked
User avatar
Aury
Fleet Admiral
Fleet Admiral
Posts: 5510
Joined: Tue Feb 05, 2008 1:10 am
Location: At the VSS Shipyards in the frontier, designing new ships.

Say I have library A

I then make library B which uses assets from library A

--

If I try to make a .tdb file using transcompiler for library B, the moment it hits a module that requires a unid from library A it will throw an error and not compile it correctly. Thus when transcendence.exe tries to load the .tdb file it will not work, even though the raw xml files work just fine with the game itself.
(shpOrder gPlayership 'barrelRoll)

<New tutorials, modding resources, and official extension stuff coming to this space soon!>
george moromisato
Developer
Developer
Posts: 2998
Joined: Thu Jul 24, 2003 9:53 pm
Contact:

Wolfy wrote:Say I have library A

I then make library B which uses assets from library A

--

If I try to make a .tdb file using transcompiler for library B, the moment it hits a module that requires a unid from library A it will throw an error and not compile it correctly. Thus when transcendence.exe tries to load the .tdb file it will not work, even though the raw xml files work just fine with the game itself.
Try specifying /entities when compiling library B:

Code: Select all

transcompiler /input:LibraryB.xml /output:LibraryB.tdb /entities:LibraryA.tdb
The problem (I think) is that we can't process the Library B XMLs if we don't have the ENTITY definitions from Library A.
User avatar
Aury
Fleet Admiral
Fleet Admiral
Posts: 5510
Joined: Tue Feb 05, 2008 1:10 am
Location: At the VSS Shipyards in the frontier, designing new ships.

what is the syntax for two libraries containing entities?
(shpOrder gPlayership 'barrelRoll)

<New tutorials, modding resources, and official extension stuff coming to this space soon!>
george moromisato
Developer
Developer
Posts: 2998
Joined: Thu Jul 24, 2003 9:53 pm
Contact:

Wolfy wrote:what is the syntax for two libraries containing entities?
Try comma separated values:

Code: Select all

transcompiler ... /entities:LibraryA.tdb,LibraryB.tdb
Make sure you don't have spaces. If you have spaces in filenames, try everything in quotes:

Code: Select all

transcompiler ... /entities:"Library A.tdb,Library B.tdb"
I know the syntax is a little lame, but hopefully you can get it to work.
User avatar
Aury
Fleet Admiral
Fleet Admiral
Posts: 5510
Joined: Tue Feb 05, 2008 1:10 am
Location: At the VSS Shipyards in the frontier, designing new ships.

Ok, thanks
(shpOrder gPlayership 'barrelRoll)

<New tutorials, modding resources, and official extension stuff coming to this space soon!>
Locked