All my attempts to load videos into the video widget from the mod failed.
It is also impossible to load video into MainMenu or loadingMenu from $profile or $saves.
I checked the small dependency:
since my main language is Russian = I use the Windows username in Russian, the path to $saves, which is in the documents in the DayZ folder, turns out to be in Russian.
Apparently, when trying to load a video with the path $saves , he sees that the path relative to Windows is in Russian and does not want to load it into the widget. Tested the same code with a person whose username is in English and everything works fine!
Description
Details
- Severity
- None
- Resolution
- Open
- Reproducibility
- Always
- Operating System
- Windows 10 x64
- Category
- General
modded class LoadingScreen { ref Widget m_WidgetRoot; VideoWidget m_VideoWidget; void LoadingScreen(DayZGame game) { m_WidgetRoot = game.GetLoadingWorkspace().CreateWidgets("MDP/scriptsMidnight/gui/test_loading.layout"); Class.CastTo(m_VideoWidget, m_WidgetRoot.FindAnyWidget("VideoWidget_new")); bool okkk = m_VideoWidget.Load("$saves:vinsent.mp4", true); Print(okkk); } }
If you load from the folder where the game is located, then everything is loaded. But we do not have the permissions to copy or save anything into this folder.
Event Timeline
I hope for your speedy correction, because the video widget is a very popular move among modders
I checked the small dependency:
since my main language is Russian = I use the Windows username in Russian, the path to $saves, which is in the documents in the DayZ folder, turns out to be in Russian.
Apparently, when trying to load a video with the path $saves , he sees that the path relative to Windows is in Russian and does not want to load it into the widget. Tested the same code with a person whose username is in English and everything works fine!
and at the moment I have an error:
VideoWidget: Can't load video stream $saves:vinsent.mp4
I'm joining this thread, having the exact same problem. The game completely refuses to accept the Cyrillic alphabet as a language, WorkBench has the same story. When you enter Cyrillic text into the workbench, the symbols ??? appear instead, although if you use the link to stringtable.csv everything starts working immediately.