Treasure Fleet

Treasure Fleet

Not enough ratings
Adding 2560x1440 resolution to the game
By diji
My monitor is 2560x1440 so I sought to get the game running at that res. Thankfully, it's rather easy to do! This might also help if someone would like to add a different resolution to the game.
   
Award
Favorite
Favorited
Unfavorite
Edit settings.ini
Open settings.ini in your Treasure Fleet directory using a text editor. Scroll down to find the list of resolutions. We want to place our new resolution at the end of the list, after 1920x1080, which is resolution6.

Paste the following after the resolution6 block (which starts with resolution6=1920x1080):
resolution7=2560x1440 background7=gfx/background2560.png mapviewportrect7=288,16,2230,1382 minimaplocation7=64,66 turndaterect7=46,330,196,36 fundsrect7=112,360,70,20 controlpanelrect7=26,416,260,322 btneuropelocation7=128,237 btnhelplocation7=11,303 btnzoomlocation7=113,48 btngridlocation7=150,48 btnresearchlocation7=49,276 btnmessageslocation7=80,265 btnmissionlocation7=180,265 btnoverviewlocation7=250,295 btntraderoutelocation7=220,270 ######################

Note the line background7=gfx/background2560.png. This specifies the background image when playing. Changing this isn't strictly necessary and can be set to background7=gfx/background1920.png if you don't want to bother with an extra file (and don't mind it looking a little bit messy/confusing).
(Optional) Add a new background image
Things look messy without a fitting background image so I quickly edited the 1920x1080 version with Photoshop's content aware fill function. Save the image below (make sure to open the full sized image and not just save the thumbnail) and drop it into the gfx folder inside the game's root directory.

A few notes
That's pretty much it! This method could be used to make other resolutions, even a 4K resolution but the text would be tiny at that resolution and so you would need to change the font size (which necessitates altering the size of buttons and such). Nevertheless, I thought I'd note down some things about the settings.ini file which might be useful to others who'd like to make a resolution.

[interface] fullscreen=false font=gfx/gui/SourceSansPro-Light.ttf fontsizetiny=14 fontsizesmall=16 fontsizemedium=20 fontsizelarge=26 fontstyle=1

Apart from fullscreen, these appear to control the font size (and font itself) used throughout the game.

resolution6=1920x1080 background6=gfx/background1920.png mapviewportrect6=288,16,1548,982 minimaplocation6=64,66 turndaterect6=46,330,196,36 fundsrect6=112,360,70,20 controlpanelrect6=26,416,260,322 btneuropelocation6=128,237 btnhelplocation6=11,303 btnzoomlocation6=113,48 btngridlocation6=150,48 btnresearchlocation6=49,276 btnmessageslocation6=80,265 btnmissionlocation6=180,265 btnoverviewlocation6=250,295 btntraderoutelocation6=220,270 ######################

A few things about the resolution blocks:
The resolutionX line (where X is an index number for the list) controls the resolution.
mapviewportrectX controls the map viewport size (the main view of the game). As far as I can tell the first two numbers are the Y and X coordinates to start drawing the viewport and the latter two are how many pixels to draw; in other words, how big the rectangle is.
minimaplocationX is where to draw the minimap, but it doesn't seem to be able to be made bigger, only moved.
The other lines control various button and panel locations which can usually be inferred from their naming.

The rest of the file is a whole lot of UI stuff if anyone wants to go really crazy and resize lots of things. I just wanted to get the game working in my native resolution so I've left them alone.

Finally, I'm not responsible for you breaking anything but if you do, it's easy enough to fix most things by opening user.ini in the game folder and changing the resolution line to 0. For everything else, verify your files with Steam.