
Cover image problem
I have been noticing that when I first start Transcendence and go to select my mod, the cover image I am using does not show up. However, it shows up everytime after exiting the mod and selecting it again for a new game as long as I don't quit back to windows. Does anyone know what the problem might be? I tried searching the forum for an answer, but "cover image" brings up too many results. 

-
- Fleet Admiral
- Posts: 2876
- Joined: Thu Feb 03, 2011 5:21 am
- Location: Hmm... I'm confused. Anybody have a starmap to the Core?
How do you do this? Can you explain in detail?However, it shows up everytime after exiting the mod and selecting it again for a new game
I'd also like to see the code you're using to show the cover image, there might be issues there.
How big is the image?
-Before 1.1 if your image was too big it wouldn't display. This may be a similar issue.
Tutorial List on the Wiki and Installing Mods
Get on Discord for mod help and general chat


Der Tod ist der zeitlose Frieden und das leben ist der Krieg
Wir müssen wissen — wir werden wissen!
I don't want any sort of copyright on my Transcendence mods. Feel free to take/modify whatever you want.
Get on Discord for mod help and general chat


Der Tod ist der zeitlose Frieden und das leben ist der Krieg
Wir müssen wissen — wir werden wissen!
I don't want any sort of copyright on my Transcendence mods. Feel free to take/modify whatever you want.
Well, the original image size was 1000x800, but I've resized it numerous times but size doesn't seem to be the issue. I even tried sizing it smaller in both dimensions than the Part1Cover (which was 512x768 if I remember right). But here's a more detailed explanation...RPC wrote: How do you do this? Can you explain in detail?
I'd also like to see the code you're using to show the cover image, there might be issues there.
How big is the image?
-Before 1.1 if your image was too big it wouldn't display. This may be a similar issue.
First I load up Transcendence, then select new game and select my mod. This is what I get:

Then I load the mod. Once I'm at the starting ship selection screen, I click cancel. Then select New Game again and select my mod again. Now and everytime afterwards until I exit Transcendence, this is what I get:

This happens regardless of how small I try to make it. On a related note, the prologue image, which is larger than the cover image, shows up everytime, even on the first run.

Here's the related code in the core xml:
Code: Select all
<!ENTITY rsLECover "0xE420F331">
<!ENTITY rsLEPrologue "0xE420F332">
]>
<TranscendenceAdventure
UNID= "0xE4200000"
version= "1.0"
name="Lost Empires"
>
<AdventureDesc
UNID= 0xE4200001"
backgroundID= "&rsLECover;"
startingShipCriteria="* +LE_PlayerShip;"
startingSystem= "HS"
startingPos= "Start"
>
<Events>
<GetGlobalAchievements>
(intGetGlobalAchievements)
</GetGlobalAchievements>
<OnGameStart>
(block Nil
(gamSetCrawlImage &rsLEPrologue;)
(gamSetCrawlText (cat
"The Great Galactic War was the end of civilization across "
"the galaxy. Most civizations that survived the war were so "
"weakened that they were unprepared when the horrors of The "
"Blight Age began. When The Blight Age finally faded, only "
"small pockets of survivors remained. You grew up as the sole "
"survivor of the wreckage of a ship that crashed into an "
"asteroid. You are now ready to leave and seek out what's "
"left of the galaxy."
))
)
</OnGameStart>
Code: Select all
<Image UNID="&rsLECover;" bitmap="Resources\spacebyavater.jpg" loadOnUse="true" />
<Image UNID="&rsLEPrologue;" bitmap="Resources\spacewarcollabbykrzyzow.jpg" loadOnUse="true" />
- digdug
- Fleet Admiral
- Posts: 2620
- Joined: Mon Oct 29, 2007 9:23 pm
- Location: Decoding hieroglyphics on Tan-Ru-Dorem
so, when you load up the mod the first time, it doesn't show the image. Each subsequent time until you exit the game the image shows up properly.
This is a guess, but try to remove the loadOnUse="true"
This is a guess, but try to remove the loadOnUse="true"
I tried that but it didn't make a difference. The Part1Cover has loadOnUse="true" also, so I don't think that's the problem anyway.
-
- Fleet Admiral
- Posts: 2876
- Joined: Thu Feb 03, 2011 5:21 am
- Location: Hmm... I'm confused. Anybody have a starmap to the Core?
Ok, replace your cover image with the cover image from the DySys Demo.
If it doesn't work then it's probably a code issue:
If it doesn't work then it's probably a code issue:
Tutorial List on the Wiki and Installing Mods
Get on Discord for mod help and general chat


Der Tod ist der zeitlose Frieden und das leben ist der Krieg
Wir müssen wissen — wir werden wissen!
I don't want any sort of copyright on my Transcendence mods. Feel free to take/modify whatever you want.
Get on Discord for mod help and general chat


Der Tod ist der zeitlose Frieden und das leben ist der Krieg
Wir müssen wissen — wir werden wissen!
I don't want any sort of copyright on my Transcendence mods. Feel free to take/modify whatever you want.
-
- Developer
- Posts: 2998
- Joined: Thu Jul 24, 2003 9:53 pm
- Contact:
The cover image has to be defined by the adventure file (i.e., you need the <Image> tag for the cover to be in the same file as the <TranscendenceAdventure>). If the cover image is in a separate module or in library, then it won't get loaded until the adventure is run.Keedo420 wrote:First I load up Transcendence, then select new game and select my mod. This is what I get...
Try that and see if it fixes the issue.
[This is only a problem for the cover image (because it needs to be shown before the adventure is loaded). The prologue image can stay in the resources.xml file.]
That was indeed the problem. Thanks George, it works now.george moromisato wrote: The cover image has to be defined by the adventure file (i.e., you need the <Image> tag for the cover to be in the same file as the <TranscendenceAdventure>). If the cover image is in a separate module or in library, then it won't get loaded until the adventure is run.
Try that and see if it fixes the issue.
[This is only a problem for the cover image (because it needs to be shown before the adventure is loaded). The prologue image can stay in the resources.xml file.]
