Nexus Modding > Scripting

Nexus and problems with widescreen

<< < (4/27) > >>

CmdrKoenig:
Hi all,

I'm the pulled card ;)

I've looked into the remains of the code. Unfortunately it seems that it's not possible to correct the briefs via ini settings because of some hardcoded factors.
We were not too far-sighted at the time, and expected 4:3 screens only.
So the bad news is that you have to modify all briefing scripts one by one. You can, however, write some relatively simple parser app that converts all the necessary coordinates.

The
Pos, To, From, ArcPoint
parameters are X Y screen coordinates expressed in a 1024 x 768 reference coordinate system.
When you set a resolution different from 1024 x 768 the system scales coordinates to the new width - but always keeps the 4:3 ratio.
For e.g. setting 1920 x 1080 will result rendering the brief into a 1920 x 1440 area with the lower area cut off.

Also if you keep the original FOV (which is a veritcal fov), the original solar system cut will be concentrated into the center 4:3 area within the 16:9 screen.

Therefore to correct the brief coordinates you have to transform them
into the center 4:3 area
of the upper 16:9 part
of the 1024 x 768 reference screen.

That is
- scale both X and Y by 0.75
- shift X by 128

Note that I couldn't actually test any of the above so it's theoretical until you try it out....


The briefing.gui only contains the "normal" GUI elements (the toolbar buttons) and has nothing to do with the briefing graphics itself, that is the reason it can't be helpful.

About the three FOV parameters: to be short, just ignore the last two, they're inactive in your version.
But I repeat that the above calculation is only valid if you keep the original fov.

Sargoth:
Thank you very much.

I was afraid that it was hardcoded. Well nothing to do about it now than get to work on the briefs.
But hopefully your theory stands up, and the whole process should be a bit more straight forward.

I'll be posting result here soon. watch this space!

GeoModder:
 ;D

Sargoth:
I tried shifting the x value along with the scaling for a couple of hours until I realized I should just do scaling on the first pass  ::)

https://youtu.be/LxZqUEuEpF0

It's not perfect. Moving needs to happen on Y axis. And some of the number needs far less than 128. But man does this cut the 'trial and error' work out of it. My motivation just went up by a factor of 10 ;D

Any way we can change the font size?

GeoModder:

--- Quote from: Sargoth on December 28, 2015, 17:30:31 ---Any way we can change the font size?

--- End quote ---

Just tried the following: in Nexus - The Jupiter Incident\gui\title, change the parameter fontsize.
It is 3 by default. Changing it to 1 showed me a significantly smaller title size at the onset of mission 11.

Looks like, if we want, we could even change the color.

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version