September 20, 2017, 08:03:45 PMLatest Member: san209

Author Topic: Problems with config.txt - Error During Start up  (Read 1473 times)

0 Members and 1 Guest are viewing this topic.

Rehnn

  • Registered member
  • *
  • Posts: 2
    • View Profile
Problems with config.txt - Error During Start up
« on: November 20, 2016, 12:47:23 AM »
I've downloaded the latest build from http://th.corsix.org/corsix-th-latest-win32.zip

When I run CorsixTH.exe I'm getting the error:
Code: [Select]
An error has occured om CorsixTH:
C:\Games\CorsixTH\app.lva90 Unable to load the config file. Please ensure that CorsixTH has permission to read/write C:\Games\CorsixTH\config.txt, or use the --config-file=filename command line option to specify a writable file.
For reference , the error loading the config file was: C:\Games\CorsixTH\config.txt:16: malformed number near '800heigh' stack traceback:
  [C]: in function 'error'
  C:\Games\CorsixTH\Lua\app.lva:90 in function 'init'
  C:\Games\CorsixTH\CorsixTH.lva:119 in main chunk
  [C]: ?

When I look at line 16 in config.txt I have it set to:
width = 800height = 600
When I run CorsixTH.exe it changes this line to:
width = 800heightheight = 600
every subsequent time I run CorsixTH.exe it inserts athe string "height" i.e.
width = 800heightheightheightheight = 600


MarkL

  • Moderator
  • ***
  • Posts: 359
    • View Profile
Re: Problems with config.txt - Error During Start up
« Reply #1 on: November 21, 2016, 07:15:21 PM »
Delete your config text file or move it and the game should create it again from scratch
My guess is the missing space after your first numbers, so you could try adding space the next time you alter the numbers or better still don't edit the file and make the changes from within the game via the settings menu
« Last Edit: November 21, 2016, 07:17:49 PM by MarkL »

Rehnn

  • Registered member
  • *
  • Posts: 2
    • View Profile
Re: Problems with config.txt - Error During Start up
« Reply #2 on: November 21, 2016, 08:00:13 PM »
Thanks for the suggestion.

I've just tried deleting the config.txt file. It is recreated, but I'm stll getting the same error.

MarkL

  • Moderator
  • ***
  • Posts: 359
    • View Profile
Re: Problems with config.txt - Error During Start up
« Reply #3 on: November 22, 2016, 07:18:19 PM »
Can you report it as a bug then please?
https://github.com/CorsixTH/CorsixTH/issues/new

I deleted my config and the game threw an error before allowing me to tell it where the TH files are.  My config though did not have the issue you did, but it might be connected.



---------------------------------------------------------------

Welcome to CorsixTH Trunk!

---------------------------------------------------------------

This window will display useful information if an error occurs.

---------------------------------------------------------------

An error has occurred!
Almost anything can be the cause, but the detailed information below can help the developers find the source of the error.
Running: The window_resize handler.
A stack trace is included below, and the handler has been disconnected.
C:\Users\Mark\Downloads\CorsixTH (8)\Lua\movie_player.lua:231: attempt to index a nil value (field 'moviePlayer')
stack traceback:
        C:\Users\Mark\Downloads\CorsixTH (8)\Lua\movie_player.lua:231: in method 'deallocatePictureBuffer'
        C:\Users\Mark\Downloads\CorsixTH (8)\Lua\app.lua:1514: in method 'prepareVideoUpdate'
        C:\Users\Mark\Downloads\CorsixTH (8)\Lua\ui.lua:436: in method 'changeResolution'
        C:\Users\Mark\Downloads\CorsixTH (8)\Lua\ui.lua:719: in function <C:\Users\Mark\Downloads\CorsixTH (8)\Lua\ui.lua:717>
        (...tail calls...)
        C:\Users\Mark\Downloads\CorsixTH (8)\Lua\app.lua:906: in function <C:\Users\Mark\Downloads\CorsixTH (8)\Lua\app.lua:901>