Scripts / Field of view ... Disable ?

Author
Message
synchromesh
Forum Support
10
Years of Service
User Offline
Joined: 24th Jan 2014
Location:
Posted: 10th Oct 2016 03:21
Does anyone know if this is possible ?
Or even remove the slider from the menu altogether in a standalone game ..
The only person ever to get all his work done by "Friday" was Robinson Crusoe..
PM
Pirate Myke
Forum Support
14
Years of Service
User Offline
Joined: 31st May 2010
Location: El Dorado, California
Posted: 10th Oct 2016 05:28
Think you would need to mess with the graphics.lua file in the default titlebank folder.
Intel(R) Core(TM)2 Quad CPU Q6600 @ 2.40GHz, 2400 Mhz, 4 Core(s), 4 Logical Processor(s), 8gb RAM, Nvidia gtx660, Windows 7 Pro 64bit, Screen resolution 1680 x 1050.

synchromesh
Forum Support
10
Years of Service
User Offline
Joined: 24th Jan 2014
Location:
Posted: 10th Oct 2016 10:25
Quote: "Think you would need to mess with the graphics.lua file in the default titlebank folder."

Thanks Myke your right looks like the info is in there .... I was looking in the Gamemenu.lua ...

I will have a play with it ..... The reason is in third person or 3DIsometric you really don't want this enabled
The only person ever to get all his work done by "Friday" was Robinson Crusoe..
PM
3com
10
Years of Service
User Offline
Joined: 18th May 2014
Location: Catalonia
Posted: 10th Oct 2016 19:27
Quote: "Or even remove the slider from the menu altogether in a standalone game "

I have not standalone, but a old one.
Anyway after a quick glance at the script I have observed slider is some sprite, so maybe you has to removed/commented (better idea), of course before bukup this lua file (graphics.lua), this line as follow:



Also you has to look for any related entry using and/or waiting for "g_sprSlider " value, otherwise you'll get some error.

IE:



or "DeleteSprite(g_sprSlider)".

Btw if you want to full remove fov from equation, you'll need to play with almost all the code.

hth

3com






Laptop: Lenovo - Intel(R) Celeron(R) CPU 1005M @ 1.90GHz

OS: Windows 10 (64) - Ram: 4 gb - Hd: 283 gb - Video card: Intel(R) HD Graphics

PM
synchromesh
Forum Support
10
Years of Service
User Offline
Joined: 24th Jan 2014
Location:
Posted: 10th Oct 2016 20:28
Quote: "Btw if you want to full remove fov from equation, you'll need to play with almost all the code. "


Thanks 3com
At least it is possible and not hard coded .....
Meaning in the future if I create an isometric game it wont be impossible even for me to remove that option
The only person ever to get all his work done by "Friday" was Robinson Crusoe..
PM
smallg
Community Leader
19
Years of Service
User Offline
Joined: 8th Dec 2005
Location:
Posted: 10th Oct 2016 22:14
as a quick fix you could just change line 143
SetPlayerFOV(g_PlayerFOV)
to a set value.
the slider would still be there but it just wouldn't actually change anything.
or perhaps change the slider to control the music volume and change it to
SetGameMusicVolume(g_PlayerFOV)
(of course also change the fov button -fov.png- to now say "volume" or something)
lua guide for GG
https://steamcommunity.com/sharedfiles/filedetails/?id=398177770
windows 10
i5 @4ghz, 8gb ram, AMD R9 200 series , directx 11
synchromesh
Forum Support
10
Years of Service
User Offline
Joined: 24th Jan 2014
Location:
Posted: 10th Oct 2016 22:46 Edited at: 10th Oct 2016 22:48
Quote: "as a quick fix you could just change line 143
SetPlayerFOV(g_PlayerFOV)
to a set value.
the slider would still be there but it just wouldn't actually change anything.
or perhaps change the slider to control the music volume and change it to
SetGameMusicVolume(g_PlayerFOV)
(of course also change the fov button -fov.png- to now say "volume" or something)"


That's just Brilliant !!
Very clever changing it to a volume control as well .... Thanks smallg
That will be A perfect solution for me
The only person ever to get all his work done by "Friday" was Robinson Crusoe..
PM
synchromesh
Forum Support
10
Years of Service
User Offline
Joined: 24th Jan 2014
Location:
Posted: 11th Oct 2016 00:54
Moved to script board and slapped myself
The only person ever to get all his work done by "Friday" was Robinson Crusoe..
PM
Pirate Myke
Forum Support
14
Years of Service
User Offline
Joined: 31st May 2010
Location: El Dorado, California
Posted: 11th Oct 2016 06:24
lol.
Intel(R) Core(TM)2 Quad CPU Q6600 @ 2.40GHz, 2400 Mhz, 4 Core(s), 4 Logical Processor(s), 8gb RAM, Nvidia gtx660, Windows 7 Pro 64bit, Screen resolution 1680 x 1050.

Login to post a reply

Server time is: 2024-12-22 22:20:14
Your offset time is: 2024-12-22 22:20:14