[1.1.2] Cannot change video options

Where bugs go to lie down and rest

Moderator: Moderator

Post Reply
Message
Author
PowerWyrm
Sher'Tul
Posts: 1106
Joined: Thu Nov 21, 2002 9:53 pm

[1.1.2] Cannot change video options

#1 Post by PowerWyrm »

Clicking on "Video options" menu instantly crashes.

Code: Select all

Lua Error: /engine/dialogs/VideoOptions.lua:189: attempt to index field 'pos' (a nil value)
	At [C]:-1 __index
	At /engine/dialogs/VideoOptions.lua:189 getval
	At /engine/ui/TreeList.lua:109 drawItem
	At /engine/ui/TreeList.lua:166 recurs
	At /engine/ui/TreeList.lua:170 drawTree
	At /engine/ui/TreeList.lua:185 generate
	At /engine/ui/Base.lua:90 init
	At /engine/ui/TreeList.lua:92 init
	At /engine/class.lua:97 new
	At /engine/dialogs/VideoOptions.lua:36 init
	At /engine/class.lua:97 new
	At /engine/dialogs/GameMenu.lua:63 fct
	At /engine/ui/List.lua:158 onUse
	At /engine/ui/List.lua:82 fct
	At /engine/Mouse.lua:52 receiveMouse
	At /engine/Mouse.lua:90 delegate
	At /engine/ui/Dialog.lua:533 mouseEvent
	At /engine/ui/Dialog.lua:312 fct
	At /engine/Mouse.lua:52 

johnnyzero
Thalore
Posts: 148
Joined: Tue Feb 28, 2012 6:36 am

Re: [1.1.2] Cannot change video options

#2 Post by johnnyzero »

Fixed in git (commit f6cb045).

As a temporary workaround for 1.1.2, move the t-engine window once (so that a window position .cfg file is written to disk) and restart the game. This will probably throw a Lua error for the same reason, but the config write should go through.

If you are stuck in fullscreen mode and this is happening, launch the game in safe mode (pass --safe-mode as a command line argument), move the window, and restart normally.

Adventurer
Low Yeek
Posts: 9
Joined: Tue Dec 24, 2013 3:02 pm

Re: [1.1.2] Cannot change video options

#3 Post by Adventurer »

johnnyzero wrote:Fixed in git (commit f6cb045).

As a temporary workaround for 1.1.2, move the t-engine window once (so that a window position .cfg file is written to disk) and restart the game. This will probably throw a Lua error for the same reason, but the config write should go through.

If you are stuck in fullscreen mode and this is happening, launch the game in safe mode (pass --safe-mode as a command line argument), move the window, and restart normally.
Sorry, but your solution doesn't work. It does throw the Lua error you mentioned when the config write is supposed to happen, but the config write does not happen.

johnnyzero
Thalore
Posts: 148
Joined: Tue Feb 28, 2012 6:36 am

Re: [1.1.2] Cannot change video options

#4 Post by johnnyzero »

If you cannot upgrade to 1.1.3 yet, try creating a file called window_pos.cfg in your %HOMEPATH%\T-Engine\4.0\settings directory (or ~/.t-engine/4.0/settings if you are running linux). Then, set the contents to the following:

Code: Select all

window.pos = {x=0, y=0}

Just to be safe, make sure there is a blank line after the window.pos line.

Post Reply