Page 1 of 1

[1.1.2] Cannot change video options

Posted: Mon Dec 23, 2013 7:16 pm
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 

Re: [1.1.2] Cannot change video options

Posted: Mon Dec 23, 2013 11:16 pm
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.

Re: [1.1.2] Cannot change video options

Posted: Tue Dec 24, 2013 3:05 pm
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.

Re: [1.1.2] Cannot change video options

Posted: Thu Dec 26, 2013 3:22 am
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.