Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Crashes when playing any video by using a function (Arch Linux) #175

Closed
crowplexus opened this issue Jul 29, 2022 · 3 comments
Closed

Crashes when playing any video by using a function (Arch Linux) #175

crowplexus opened this issue Jul 29, 2022 · 3 comments
Labels
bug Something isn't working help wanted Extra attention is needed

Comments

@crowplexus
Copy link
Contributor

crowplexus commented Jul 29, 2022

to clarify: yes, i did set the function up properly (at least i hope i did), yes the file exists, yes I did try reinstalling VLC and other packages, and no, the in-game error handler does not return anything that could potentially help fix the issue

2022-07-29.02-08-08.mp4
function startCutscene(name:String, library:String = 'assets')
{
	#if VIDEO_PLUGIN
	inCutscene = true;

	var path = Paths.video(name, library);
	#if sys
	if(!FileSystem.exists(path))
	#else
	if(!OpenFlAssets.exists(path))
	#end
	{
		FlxG.log.warn('Couldnt find video file: ' + name);
		startAndEnd();
		return;
	}
		
	var video:VideoHandler = new VideoHandler();
	video.playVideo(path);
	video.finishCallback = function()
	{
		startAndEnd();
		return;
	}
	#else
	FlxG.log.warn('Platform not supported!');
	startAndEnd();
	return;
	#end
}
@crowplexus crowplexus changed the title Crashes when playing any video with a function (Arch Linux) Crashes when playing any video by using a function (Arch Linux) Jul 29, 2022
@polybiusproxy polybiusproxy added the bug Something isn't working label Aug 16, 2022
@polybiusproxy
Copy link
Owner

Linux support is kinda hard for me to fix, since I don't have a Linux machine nor I have any experience with Linux.
Any help would be appreciated.

@polybiusproxy polybiusproxy added the help wanted Extra attention is needed label Aug 16, 2022
@crowplexus
Copy link
Contributor Author

crowplexus commented Aug 16, 2022

I actually found somewhat of a bandaid fix??? so basically, on my source code, I copied and pasted the files for hxCodec inside my source folder, commented out the hxCodec library line on Project.xml, ran the game and actually got them running just fine, I'm currently trying to find why is that the case, but funnily enough, this used to not be an obligatory thing

@crowplexus
Copy link
Contributor Author

closing this for now

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

2 participants