hozuki / MilliSim

Extensible simulator for THE iDOLM@STER Million Live! Theater Days / アイドルマスターミリオンライブ!シアターデイズ用の拡張可能なシミュレーター / 可扩展的偶像大师百万现场剧场时光模拟器
MIT License
33 stars 3 forks source link

Background image and video is not working. #17

Open rare25 opened 6 years ago

rare25 commented 6 years ago

For image, the correct path is specified, but it is not loaded. For video, ffmpeg is placed, but MilliSim does not run.

hozuki commented 6 years ago

Would you mind run it with --debug switch, and see what happened in log-file.txt?


Here is an example of how to place FFmpeg libraries:

|- TheaterDays.Direct3D11.exe
|- x86
    |- avcodec-57.dll
    |- avdevice-57.dll
    |- ...

BGI configuration ("data" section):

data:
  bgi: Contents/res/img/bg/base_light.jpg # note: Absolute path and Windows path separator ('\') are also acceptable
  fit: letter_box
rare25 commented 6 years ago

Sorry, it was solved by changing version for ffmpeg libraries from latest(20180227-fa0c9d6) to 3.4.2. But BGI is not displayed. There is no error in log-file.txt.

hozuki commented 6 years ago

Are you trying to display them both?

rare25 commented 6 years ago

No.

hozuki commented 6 years ago

That's strange. If an error happens during loading a texture file that exists, it will be thrown and logged. If the file does not exist, the loading process will be canceled and _texture will be null, so the texture will not be drawn and no error will be thrown.

I suggest you to run MilliSim in Visual Studio, and set a breakpoint in BackgroundImage to see what happened. Maybe it is because of the encoding (should be UTF-8).