April 27, 2017, 03:14:57 AMLatest Member: jbanety

Author Topic: bad argument #1 to 'loadMusicAsync'  (Read 247 times)

0 Members and 1 Guest are viewing this topic.

Honorbrachios

  • Registered member
  • *
  • Posts: 2
    • View Profile
bad argument #1 to 'loadMusicAsync'
« on: January 14, 2017, 01:17:44 AM »
Hello,

I've just installed corsixth (latest stable version 0.6) and Visual C++ Redistributable for Visual Studio 2015.
Sadly it freeze when I launch.

Here is the log :
Code: [Select]
---------------------------------------------------------------

Welcome to CorsixTH v0.60!

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

This window will display useful information if an error occurs.

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

An error has occurred in CorsixTH:
C:\Program Files\CorsixTH\Lua\audio.lua:589: bad argument #1 to 'loadMusicAsync' (string expected, got nil)
stack traceback:
        [C]: in field 'loadMusicAsync'
        C:\Program Files\CorsixTH\Lua\audio.lua:589: in method 'playBackgroundTrack'
        C:\Program Files\CorsixTH\Lua\audio.lua:462: in method 'playRandomBackgroundTrack'
        C:\Program Files\CorsixTH\Lua\audio.lua:174: in method 'init'
        C:\Program Files\CorsixTH\Lua\app.lua:215: in method 'init'
        C:\Program Files\CorsixTH\CorsixTH.lua:133: in main chunk
        [C]: in ?



Sometimes it launch but freeze when i go in new game.
Code: [Select]

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

Welcome to CorsixTH v0.60!

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

This window will display useful information if an error occurs.

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

Checking for CorsixTH updates...
You are running the latest version of CorsixTH.
starting game with difficulty full
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 buttondown handler.
A stack trace is included below, and the handler has been disconnected.
C:\Program Files\CorsixTH\Lua\audio.lua:589: bad argument #1 to 'loadMusicAsync' (string expected, got nil)
stack traceback:
        [C]: in field 'loadMusicAsync'
        C:\Program Files\CorsixTH\Lua\audio.lua:589: in method 'playBackgroundTrack'
        C:\Program Files\CorsixTH\Lua\audio.lua:462: in method 'playRandomBackgroundTrack'
        C:\Program Files\CorsixTH\Lua\movie_player.lua:256: in method '_destroyMovie'
        C:\Program Files\CorsixTH\Lua\movie_player.lua:239: in method 'stop'
        C:\Program Files\CorsixTH\Lua\ui.lua:618: in function <C:\Program Files\CorsixTH\Lua\ui.lua:613>
        (...tail calls...)
        C:\Program Files\CorsixTH\Lua\app.lua:901: in function <C:\Program Files\CorsixTH\Lua\app.lua:896>

Warning: No event handler for buttondown


Thanks. :)
« Last Edit: January 14, 2017, 05:26:35 PM by Honorbrachios »

Grimdoc

  • Moderator
  • ***
  • Posts: 222
  • Translator & Superman
    • View Profile
Re: bad argument #1 to 'loadMusicAsync'
« Reply #1 on: January 16, 2017, 07:01:13 PM »
Could you please make a new issue here?: https://github.com/CorsixTH/CorsixTH/issues

The coders don't check here too often :)
Do you have a question or want to report a bug? CorsixTH newbie guide

Do you want to make (or improve) a translation? CorsixTH translation guide

Honorbrachios

  • Registered member
  • *
  • Posts: 2
    • View Profile
Re: bad argument #1 to 'loadMusicAsync'
« Reply #2 on: January 16, 2017, 07:30:54 PM »