Author Topic: Problem with game being incorrectly 'centered' on monitor  (Read 1680 times)

Offline sgt_deacon

  • Newbie
  • *
  • Posts: 4
Problem with game being incorrectly 'centered' on monitor
« on: April 29, 2014, 09:22:12 pm »
I'm not sure if this is the best place to post this so bare with me, and if it's not please point me to a better place to post it. I had tried playing the game quick before and I recall it working, I'm not sure what is wrong with it now but I would appreciate help.

When the game starts up the resolution appears correct, and "The Last Federation" logo is centered correctly on my monitor. As in the picture below:


After loading some of the assets, however, it is then off center as seen by the below picture. It appears that the other half of the game is getting cut off and is being put on a monitor that doesn't exist, and I can't find a way to fix this. Ideally I'd like it full screen, but I'd be willing to set it to run in windowed mode for the time being. Which is where another problem crops up, notice how I have the 'settings' menu highlighted with my cursor? The cursor (it doesn't appear in the screenshot) is below the quit button.



The easiest way I can think of to fix this is for me just to edit the settings file manually and change the resolution and that it should be windowed if needed, but I can't find it. I've been looking around "/home/USERNAME/.local/share/Steam/SteamApps/common/The Last Federation/LastFederationLinux_Data" and I can't find a settings file anywhere. Any suggestions? I was hoping someone might know where the settings file is located.

I'm on Linux Mint 16 Petra, I have dual monitors so I assume it is some issue stemming from that.

Thanks for the help.


EDIT: I fixed it. If you go to "/home/USERNAME/.local/share/Steam/SteamApps/common/The Last Federation/RuntimeData" there is a 'settings.dat' file, change fullscreen to 0 and then you can edit the options in game. The problem is the resolution was set to 3840x1080, which should work across both monitors, but for some reason wasn't. Maybe the default resolution shouldn't detect both monitors in this case, and just use the highest resolution of either two to prevent this problem from happening on launch?


EDIT: Does anyone know of a way to force the game to start fullscreen on a certain monitor? As of now it always starts fullscreen on my second monitor. If I want it fullscreen on my primary monitor I have to set it to windowed mode and drag it over to my primary and then re-enable full screen again.
« Last Edit: April 29, 2014, 09:39:12 pm by sgt_deacon »

Offline x4000

  • Chris McElligott Park, Arcen Founder and Lead Dev
  • Arcen Staff
  • Zenith Council Member Mark III
  • *****
  • Posts: 31,651
Re: Problem with game being incorrectly 'centered' on monitor
« Reply #1 on: April 30, 2014, 09:26:45 am »
Hey there, thanks for posting the solution.  The issue is something in the Unity 3D engine, which is what sets which screens things open on, etc.  The Unity engine is somewhat new to linux, so I guess there are still some kinks being worked out.  Sorry about that... :/
Have ideas or bug reports for one of our games?  Mantis for Suggestions and Bug Reports. Thanks for helping to make our games better!

Offline dmraneo

  • Newbie
  • *
  • Posts: 5
Re: Problem with game being incorrectly 'centered' on monitor
« Reply #2 on: May 01, 2014, 06:39:30 am »
This is a common problem with Unity games on Linux. It adds the resolution of all your monitors together, but then tries to open an enormous window on a single monitor. The way most games handle this is to pop up a windowed settings dialogue before the game starts, which lets you set the resolution.

In the case of this game, it gets a little more weird, because you have Unity setting the resolution right when the game starts, and then a little later you have The Last Federation applying it's own setting.

Since there are two engines that want to set the resolution, there are also two config files you can edit. There is the one you already found at The Last Federation/RuntimeData/settings.dat
The Unity one is at ~/.config/unity3d/Arcen Games, LLC/The Last Federation/prefs

What I did is to edit the Unity one to create a small window, and then set it as read only. That way only the arcen settings actually mater.