Shamefully nooby error

Freeform discussion about anything related to modding Transcendence.
Post Reply
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.

:oops:

Unable to add image to library: 0

I keep getting this, and I forgot how to fix it! (I havn't seen that error since my first time trying to make a mod)

What I did was I ripped some ships and their graphics right out of TX2, fixed up all the UNIDS, and everything LOOKS like it should work, but it doesn't...

wow... I feel like such a total nubcake... >.< :oops:
(shpOrder gPlayership 'barrelRoll)

<New tutorials, modding resources, and official extension stuff coming to this space soon!>
Bobby
Militia Captain
Militia Captain
Posts: 675
Joined: Wed Jul 25, 2007 7:39 pm

From what I remember that is one of the more difficult things to troubleshoot sometimes because it could be quite a few things. I once had to scrap a mod and redo from the start because I couldn't fix it, never did find the problem, but it's usually something simple.

check for bad spelling for anything related to the image resources, and the file names, and the subfolder, etc., obviously make sure the image is there first. If that doesn't work check for duplicate unids.

(extra tidbit, if loadonuse is enabled for the ship's image if it is not there the game just crashes with no apparent error when the image is needed, just thought I should share that.)
george moromisato
Developer
Developer
Posts: 2998
Joined: Thu Jul 24, 2003 9:53 pm
Contact:

That error can happen if the UNID specified for an image is a duplicate or if it is 0.

In this case, I think it might be because the UNID is 0 or missing. Is that possible?

When you figure it out, let me know what the problem was and I can add better error messages.
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.

Turns out it was the combined curse of using too much copy+paste and trying to divide up my unids so they were "neat and tidy" >.<


-----------------------------------

What I had:

Code: Select all

	<!ENTITY unidExtension						"0xE314F300">

	<!ENTITY scKineticore2						"0xE314F301">
	<!ENTITY rsKineticore2						"0xE314F302">
	<!ENTITY rsKineticore2Large					"0xE314F303">

	<!ENTITY scWolfen3						"0xE314F301">
	<!ENTITY rsWolfen3						"0xE314F302">
	<!ENTITY rsWolfen3Large						"0xE314F303">

	<!ENTITY scAntares8						"0xE314F301">
	<!ENTITY rsAntares8						"0xE314F302">
	<!ENTITY rsAntares8Large					"0xE314F303">

	<!ENTITY rsArmour						"0xE314F304">
Should have been:

Code: Select all

	<!ENTITY unidExtension						"0xE314F300">

	<!ENTITY scKineticore2						"0xE314F301">
	<!ENTITY rsKineticore2						"0xE314F302">
	<!ENTITY rsKineticore2Large					"0xE314F303">

	<!ENTITY scWolfen3						"0xE314F304">
	<!ENTITY rsWolfen3						"0xE314F305">
	<!ENTITY rsWolfen3Large						"0xE314F306">

	<!ENTITY scAntares8						"0xE314F307">
	<!ENTITY rsAntares8						"0xE314F308">
	<!ENTITY rsAntares8Large					"0xE314F309">

	<!ENTITY rsArmour						"0xE314F30A">
(shpOrder gPlayership 'barrelRoll)

<New tutorials, modding resources, and official extension stuff coming to this space soon!>
User avatar
Prophet
Militia Captain
Militia Captain
Posts: 826
Joined: Tue Nov 18, 2008 6:09 pm

I had that error once because I had defined a resource image in two seperate extensions.

Code: Select all

<Image UNID="&rsPylon;"		bitmap="Resources/Weapons-8-DB32.jpg" bitmask="Resources/Weapons-8-DB32Mask.bmp" backColor="0x00000000"/>
I used the image rsPylon in two mods and placed the Entity and (whatever that block of code is) in both mods.
Coming soon: The Syrtian War adventure mod!
A Turret defense genre mod exploring the worst era in Earth's history.
Can you defend the Earth from the Syrtian invaders?
Stay tuned for updates!
Post Reply