Scenariomanager:playvideomessage Doesn't Work Anymore

Discussion in 'Technical Reports' started by Remko, Aug 1, 2023.

  1. Remko

    Remko Well-Known Member

    Joined:
    Dec 9, 2016
    Messages:
    250
    Likes Received:
    627
    I often create scenarios and sometimes put videos in them.

    The last time, in january, all was working fine.
    I now updated some trains only in that scenario because they've had some major updates.
    Nothing has changed in ScenarioScript.lua but the video that worked flawless in january doesn't show anymore at all.
    Code:
    SysCall ( "ScenarioManager:PlayVideoMessage", VideoFile, Size, Pause, Controls, 0 );
    
    The only thing I can find in logmate that looks somewhat related is this:
    Code:
    2023-08-01 13:33:04.804 - [Steam] - Trace D:\build\CoreRelease\Code\DLLs\ScenarioManager\cCareerModel.cpp : 458 = cCareerModel::OnStatsUploaded 24010 1
    2023-08-01 13:33:04.804 - [Scenario Manager] - Trace D:\build\CoreRelease\Code\DLLs\ScenarioManager\cDriverInstructionOrProp.cpp : 214 = Instruction satisfied 1
    2023-08-01 13:33:04.804 - [RunTimeError] - Verify failed: 
    2023-08-01 13:33:04.804 - [RunTimeError] - 
    2023-08-01 13:33:04.804 - [RunTimeError] - D:\build\CoreRelease\Code\DLLs\ScenarioManager\cScenarioManager.cpp : 3921
    2023-08-01 13:33:04.804 - [RunTimeError] - 
    2023-08-01 13:33:04.804 - [RunTimeError] - Expression: scriptPtr->PopResult ( retVal )
    2023-08-01 13:33:04.804 - [RunTimeError] - 
    2023-08-01 13:33:04.804 - [RunTimeError] - 
    2023-08-01 13:33:04.804 - [RunTimeError] - Verify failed: 
    2023-08-01 13:33:04.804 - [RunTimeError] - 
    2023-08-01 13:33:04.804 - [RunTimeError] - D:\build\CoreRelease\Code\DLLs\WindowsManager\cMoviePlayerDialog.cpp : 134
    2023-08-01 13:33:04.804 - [RunTimeError] - 
    2023-08-01 13:33:04.804 - [RunTimeError] - Expression: ratio >= 0.0f && ratio <= 1.0f
    2023-08-01 13:33:04.804 - [RunTimeError] - 
    2023-08-01 13:33:04.804 - [RunTimeError] - 
    
    The video is a youtube conversion with resolution 854x480 at 30 fps.

    Did something change in the conditions a video has to meet?
    Or is the function itself broken and in need to be fixed?
     
  2. wellington

    wellington Guest

    This year had the worst update ever, it broke a lot of things, but I could see for you where the problem is, it's not in the API ScenarioManager:PlayVideoMessage( videoAddress, type, paused, controls, style ), but in the video plugin presentation, even DTG logo intro video is not shown with this checked in options (Settings => Gameplay => Show Intro Video).
     
    Last edited by a moderator: Aug 2, 2023
    • Like Like x 1
  3. Remko

    Remko Well-Known Member

    Joined:
    Dec 9, 2016
    Messages:
    250
    Likes Received:
    627
    Was wondering about that.
    Intending to test it but hadn't got around to do it yet.
    But seeing your comment I did and I can confirm that too isn't showing anymore.

    In the meantime I've been trying different aspect ratios.
    The original video in my last scenario was 16:9.
    I've converted it to 4:3 and 1:1 but without any luck. Still nothing.
     
  4. Remko

    Remko Well-Known Member

    Joined:
    Dec 9, 2016
    Messages:
    250
    Likes Received:
    627
    Just now got a reply from support.
    Turns out the whole videoplayer has been removed. According to them it had been known to cause crashes.

    Never had any problems with it, besides when I screwed up my lua code myself in scenarioscript.lua.
    And crashes due to screw-ups like that don't only apply to the videoplayer.

    It's a big shame that a function like the videoplayer has been phased out.
    It could bring so much more to a scenario.
     
  5. wellington

    wellington Guest

    That's what I said in my previous post, the problem is in the embedded video plugin, these excuses that function x, y or z was affecting the game are all nonsense. In fact, they broke all of Train Simulator Classic this year, but that's okay as the freaks say. Soon and unfortunately, Train Simulator Classic will become just pressed scrap, not least because the main product is now Train Sim World.
     
  6. KTL_Rob Powell

    KTL_Rob Powell Well-Known Member

    Joined:
    Aug 18, 2018
    Messages:
    245
    Likes Received:
    340
    They *are not* excuses when the information is coming from the lead dev of TSC either directly or relayed via Jamie.

    TSC *is not* broken and the whole of TSC was certainly *not* broken by any of these updates. Anything that was broken, work was undertaken and still is being undertaken in certain aspects to fix.

    As to your last statement, you are entitled to your opinion but others of us are entitled to point out your assumptions are wildly inaccurate based on no facts.
     
    • Like Like x 1
  7. wellington

    wellington Guest

    That's right, 10 years with the introduction of video in the game and it's only now that there's a problem?

    The API ScenarioManager:PlayVideoMessage( videoAddress, type, paused, controls, style ) was inserted in Train Simulator 2014 and only now it has a problem too?

    I'm the crazy one, hahahahaha. The Fresh Prince of Bel-Air.
     
  8. 749006

    749006 Well-Known Member

    Joined:
    Dec 10, 2016
    Messages:
    10,174
    Likes Received:
    3,169
    Was there an update to the current version of the game anytime in the last 10 years?
    The game is being updated and not everything still works as it did before

    Updates to routes can break scenarios - should the routes not be updated?
    Updates to DLC can break reskins - should the DLC not be updated?
    Well, you said it.
    Who are we to disagree with you :)
     
    • Like Like x 1
  9. wellington

    wellington Guest

    If you don't know, every year there have been changes in the plugins of this game, so there have always been updates, I've been decompiling this game for years to update some things, I don't always release all my tools, after all it's for my use and that of my friends.

    The first thing they should have done was the improvement in the use of all the CPU, which is completely deprecated in this game, which looks like it's going to be done now in phase 3, but it's going to need phase 4... phase 5, they'll have to fix everything that was broken i.e. infinite stage.

    Therefore, I confirm that this year was the best compiled LOVE of all time, horrible, they broke everything, and there are developers who are going to abandon this game and nor do they intend to make future updates to the DLC's.
     
  10. KTL_Rob Powell

    KTL_Rob Powell Well-Known Member

    Joined:
    Aug 18, 2018
    Messages:
    245
    Likes Received:
    340
    Honestly mate, what you are now spouting as fact rather than opinion is disingenuous at best and worst lies fabricated to make DTG look bad.
     
  11. Reef

    Reef Well-Known Member

    Joined:
    Jul 27, 2018
    Messages:
    2,806
    Likes Received:
    1,817
    I wouldn't waste your time on him Rob, he has an agenda and that seems to revolve around him stroking his own ego, you wont reason with his type I've seen them 10's of times before through the multitude of forums I've been a part of over the last 15yrs or so, so it's pointless even trying.
     
  12. 749006

    749006 Well-Known Member

    Joined:
    Dec 10, 2016
    Messages:
    10,174
    Likes Received:
    3,169
    I have been plating the game since 2012 when I purchased TS 2012 on CD and I know of the updates.
    But I'm not spitting my dummy out because everything was not perfect from day 1 of the upgrade.

    You don't seem to like the fact DTG are updating the game to use newer software.
    So go back to your TSW3 where you can enjoy the limited use you can get out of it.
     
  13. wellington

    wellington Guest

    No! I always complained because I want to see TSC flowing on any system and not showing slides, for me they made a mistake in executing the phases, first of all the optimization of the source code and the full use of the CPU (Cores/Threads), surely the D3D9on12 would also be more efficient , despite not being a native DX12. I'll wait for phase 3 and hope for a miracle, who knows.

    If I had no interest in TSC, I would not have released patches to the train sim community, I could have done as before, just for friends these patches.
     
  14. 749006

    749006 Well-Known Member

    Joined:
    Dec 10, 2016
    Messages:
    10,174
    Likes Received:
    3,169
    I was unaware you had released patches for the Train Sim Community - which site are these on please?
     
  15. airbusfan1330

    airbusfan1330 Active Member

    Joined:
    Jul 13, 2023
    Messages:
    228
    Likes Received:
    261
  16. Spikee1975

    Spikee1975 Guest

    Hello TrainSim-Steve

    Any info on this? Will it be reintroduced or not?

    A couple of scenarios are affected, The Canadian Mountain Passes tutorials and Story of Forest Rail scenarios (short timetable movies).

    Not really necessary imho, but would be nice to know anyway.
     

Share This Page