SUPPORT BOARD OVERVIEW & TIPS:

About Receiving Help from the Support Board: While all members may answer questions posted in the Support board, you should only rely on responses posted or confirmed by support moderators and website administrators. Any solutions provided by members of the community that are not verified by a staff member (as indicated by a light-green background) are provided as-is, and we cannot take responsibility for any of the results of said actions.

About Responding to Support Threads: If you feel you know the answer to a question, you are welcome to respond to the thread and politely offer assistance. Please be courteous and try to provide detailed and helpful solutions to users who may not be as advanced as you. We ask that you refrain from posting one-sentence solutions.

Please search for existing topics before creating one! It's quite likely someone else has already encountered a similar issue which was resolved. You can search for existing support threads by clicking here .

About Topic Tags:

* Topics denoted with the [OPEN] tag are awaiting a response from the end user. You are welcome to post in these threads if you are experiencing a similar issue so we may provide further support.

* Topics denoted with the [RESOLVED] title have been successfully answered and confirmed by a support moderator and the end user, and should be used as a reference. These topics are locked.

* Topics denoted with the [CLOSED] tag were either inactive for more than 30 days or the end user did not respond to a suggestion and confirm if the issue was resolved. These topics are locked.

question-circle MB Gold: Changing Default FOV

  • blaster
  • blaster's Avatar Topic Author
  • Offline
  • New Marbler
  • New Marbler
  • Posts: 4
  • Thank you received: 0
25 Aug 2019 00:05 #1
Hello Marble Blast community!

I'm running vanilla MB Gold on Windows 10. I'm trying to change my default game resolution and field of view, by editing my prefs.cs file located in in:
Code:
AppData\Local\VirtualStore\Program Files (x86)\Marble Blast Gold\marble\client

Here's what I'm changing in the prefs.cs file:
Code:
$pref::Video::resolution = "3440 1440 32"; $pref::Player::defaultFov = 120;

I have successfully changed the game resolution for my ultra-wide monitor, however default FOV seems to be unaffected. I'm stumped as to why this isn't working. Seems like a simple parameter change, but is there something I'm missing here?
(My best guess: another script is changing the FOV value upon each mission launch.)

I'm aware of the Horizontal Widescreen support Mod by brandondorf9999. The mod will automatically scale FOV, but the game always crashes when I attempt to push the resolution any higher than 1080p. So instead of trying to figure out why the mod isn't working, I'm just using the vanilla installation and trying to change my default FOV, since I always game at the same resolution anyways.

Any ideas would be greatly appreciated!
  • MurhaajaFasaani
  • MurhaajaFasaani's Avatar
  • Offline
  • Novice Marbler
  • Novice Marbler
  • Posts: 10
  • Thank you received: 3
25 Aug 2019 08:04 #2
You can type "setFov(x);" in the console to set your FOV.
The following user(s) said Thank You: blaster
  • blaster
  • blaster's Avatar Topic Author
  • Offline
  • New Marbler
  • New Marbler
  • Posts: 4
  • Thank you received: 0
26 Aug 2019 00:30 #3
@MurhaajaFasaani
Yes, this does work. But my point is not to have to do this manually each time I load into a new level.
At my monitor's aspect ratio, the game feels too stretched...
  • HiGuy
  • HiGuy's Avatar
  • Offline
  • Lead Developer
  • Lead Developer
  • PQ Developer Emeritus
  • Posts: 1333
  • Thank you received: 604
26 Aug 2019 02:21 #4
You can edit marble/client/scripts/playGui.cs and add that at the end of PlayGui::onWake and it will run on every level.

This signature is real code
Code:
function clientcmd12dothepq() { commandToClient(LocalClientConnection, '34onthedancefloor'); }
The following user(s) said Thank You: blaster
  • whirligig
  • whirligig's Avatar
  • Offline
  • Professional Marbler
  • Professional Marbler
  • Posts: 444
  • Thank you received: 261
26 Aug 2019 03:53 #5
FWIW, it appears that there's a $pref::Video::FOV as well, but I don't know if it affects anything.
The following user(s) said Thank You: blaster
  • blaster
  • blaster's Avatar Topic Author
  • Offline
  • New Marbler
  • New Marbler
  • Posts: 4
  • Thank you received: 0
26 Aug 2019 23:48 #6
@whirligig
It was worth a try. I gave it a shot, but was not successful.

@HiGuy
I edited playGui.cs, but either it doesn't work or my syntax was incorrect. To be sure, I'm including a screenshot of my edit to that file. If you can help me troubleshoot, I'm sure we are close to a solution.


(Side note: Oddly enough, my .cs files are scattered between the game's AppData and Program Files locations. My prefs.cs file is under AppData, but there were only DSO files in marble/client/scripts, then I realized I could find it over in Program Files.)
  • HiGuy
  • HiGuy's Avatar
  • Offline
  • Lead Developer
  • Lead Developer
  • PQ Developer Emeritus
  • Posts: 1333
  • Thank you received: 604
27 Aug 2019 00:59 - 27 Aug 2019 01:01 #7
Try putting the setFov() in there?

Also try deleting playgui.cs.dso file both in the game directory and AppData

This signature is real code
Code:
function clientcmd12dothepq() { commandToClient(LocalClientConnection, '34onthedancefloor'); }
Last edit: 27 Aug 2019 01:01 by HiGuy.
The following user(s) said Thank You: blaster
  • blaster
  • blaster's Avatar Topic Author
  • Offline
  • New Marbler
  • New Marbler
  • Posts: 4
  • Thank you received: 0
27 Aug 2019 02:37 #8
That worked! Now I can relive some childhood nostalgia in full UHD glory. Thank you for saving the day, HiGuy. Your solution is elegant because we don't even have to find out where the fov parameter is being altered, as we're simply overriding it. Cool.

Just to confirm for anyone else who might need this, the solution is to add setfov(); to the function PlayGui::onWake within the following cs file:
Code:
Program Files (x86)\Marble Blast Gold\marble\client\scripts\playgui.cs
Example:


Thanks for the input everybody.
Moderators: Doomblah
Time to create page: 0.791 seconds
We use cookies

We use cookies on our website. Some of them are essential for the operation of the site, while others help us to improve this site and the user experience (tracking cookies). You can decide for yourself whether you want to allow cookies or not. Please note that if you reject them, you may not be able to use all the functionalities of the site.