Can the game only display square images?

Freeform discussion about anything related to modding Transcendence.
Post Reply
RPC
Fleet Admiral
Fleet Admiral
Posts: 2876
Joined: Thu Feb 03, 2011 5:21 am
Location: Hmm... I'm confused. Anybody have a starmap to the Core?

I have a ship that is 160 px width and 240 px height, but

Code: Select all

<Image imageID="&rsNerefir;" imageX="-0" imageY="0" imageWidth="160" imageHeight="240" rotationCount="40"/>
is causing it to display really wonky.


If I try

Code: Select all

<Image imageID="&rsNerefir;" imageX="-10" imageY="0" imageWidth="240" imageHeight="240" rotationCount="40"/>
it displays normally but slightly off center to the left.

What do?
Tutorial List on the Wiki and Installing Mods
Get on Discord for mod help and general chat
Image
Image
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.
User avatar
AssumedPseudonym
Fleet Officer
Fleet Officer
Posts: 1190
Joined: Thu Aug 29, 2013 5:18 am
Location: On the other side of the screen.

 I’d always meant to experiment with that, but never got around to it. If it isn’t working, though, I’d suggest padding the left and right sides with 40 pixels of black, just to square it up.
Image

Mod prefixes: 0xA010 (registered) and 0xDCC8 (miscellaneous)

My mods on Xelerus: Click here!

Of all the things I’ve lost in life, I miss my mind the least. (I’m having a lot more fun without it!)
RPC
Fleet Admiral
Fleet Admiral
Posts: 2876
Joined: Thu Feb 03, 2011 5:21 am
Location: Hmm... I'm confused. Anybody have a starmap to the Core?

Yeah, AP is right.
Workaround (from Xephyr in IRC):
<Xephyr> In GIMP just go to Image>Canvas size, set it to 240 width, then click "Center"

This should pad the image until it's square and will display correctly.
Tutorial List on the Wiki and Installing Mods
Get on Discord for mod help and general chat
Image
Image
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.
relanat
Militia Captain
Militia Captain
Posts: 941
Joined: Tue Nov 05, 2013 9:56 am

Completely baseless speculation leads me to give the following vague comments. :lol:

Try 'imageX="0"' instead of '-0'.

Also make sure the ship is exactly central in the image. If it's a couple of pixels off to one side it looks weird.

Not sure what you mean by "wonky" but this might help. Shrugs.

Plus thanks, RPC. GIMP hints are always appreciated.
Stupid code. Do what I want, not what I typed in!
RPC
Fleet Admiral
Fleet Admiral
Posts: 2876
Joined: Thu Feb 03, 2011 5:21 am
Location: Hmm... I'm confused. Anybody have a starmap to the Core?

By wonky I meant that the ship's center was off to the side and not in the center of the screen.
Also yeah I caught the -0, that was when I thought I could trick the game so it would move the center of the ship.
Tutorial List on the Wiki and Installing Mods
Get on Discord for mod help and general chat
Image
Image
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.
PM
Fleet Admiral
Fleet Admiral
Posts: 2570
Joined: Wed Sep 01, 2010 12:54 am

It used to be able to handle rectangular images, but that may not be the case anymore. If so, I forget when that regression happened.
Download and Play in 1.9 beta 1...
Drake Technologies (Alpha): More hardware for combat in parts 1 and 2!
Star Castle Arcade: Play a classic arcade game adventure, with or without more features (like powerups)!
Playership Drones: Buy or restore exotic ships to command!

Other playable mods from 1.8 and 1.7, waiting to be updated...
Godmode v3 (WIP): Dev/cheat tool compatible with D&O parts 1 or 2.
RPC
Fleet Admiral
Fleet Admiral
Posts: 2876
Joined: Thu Feb 03, 2011 5:21 am
Location: Hmm... I'm confused. Anybody have a starmap to the Core?

Yeah I remember that too PM. I think the change from rectangle to square happened when George update the game to require masks.
Tutorial List on the Wiki and Installing Mods
Get on Discord for mod help and general chat
Image
Image
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.
Post Reply