For direct access use https://forums.oldunreal.com
It's been quite a while since oldunreal had an overhaul, but we are moving to another server which require some updates and changes. The biggest change is the migration of our old reliable YaBB forum to phpBB. This system expects you to login with your username and old password known from YaBB.
If you experience any problems there is also the usual "password forgotten" function. Don't forget to clear your browser cache!
If you have any further concerns feel free to contact me: Smirftsch@oldunreal.com

Native question

UT now belongs to the "old" Unreal as well. Supporting it for OpenGL and Sound its time to put up a board now.

Moderator: Buggie

User avatar
Raven
OldUnreal Member
Posts: 311
Joined: Fri Jun 10, 2005 5:10 am

Native question

Post by Raven »

I've already mailed Smirftsch, but I think, that posting here will be also good idea :). So I try to make native dll, which would play mp3's and ogg's. After many errors I finally was able to compile my code. I though, that that was end of my problems... unfortunately it was the beginning :(. I'm using fmod.dll, to play music, but I can't run UT with this script, because it occur error:

Code: Select all

Critical: appError called:
Critical: Mp3PlayerController 22.Mp3PlayerController0 (Function CHMp3Player.Mp3PlayerController.BeginPlay:0005) Unknown code token AC
Critical: Windows GetLastError: Operacja zakończona pomyślnie. (0)
Exit: Executing UObject::StaticShutdownAfterError
Exit: Executing UWindowsClient::ShutdownAfterError
Here is a link to beyondunreal thread: [url]http://forums.beyondunreal.com/showthread.php?t=160091[/url]. Can anyone help me?

One more thing. I search the log for something that will point me what occur error, and I found, that this is line if(Init())
Last edited by Raven on Fri Jun 10, 2005 10:53 am, edited 1 time in total.
Image
User avatar
Smirftsch
Administrator
Posts: 9008
Joined: Wed Apr 29, 1998 10:00 pm
Location: NaPali

Re: Native question

Post by Smirftsch »

will look at this closer in the moment i find some time, but point kerilk to this thread as well :)
Sometimes you have to lose a fight to win the war.
User avatar
Raven
OldUnreal Member
Posts: 311
Joined: Fri Jun 10, 2005 5:10 am

Re: Native question

Post by Raven »

Here's zipped mp3player source code, in case you don't have time to recreating it from posts.
[url]http://turniej.unreal.pl/files/CHMp3Player.zip[/url]
Image
User avatar
Raven
OldUnreal Member
Posts: 311
Joined: Fri Jun 10, 2005 5:10 am

Re: Native question

Post by Raven »

I solved almost all problems :) Now i have only one question: how can I stop playing music when new level is loading? It's like that. I play mp3 in one level, load another, and still same mp3 is playing. I tried mutator with function bool HandleEndGame() and event Destroyed() in main player code with same effect: mp3 is still playing after loading new level :/. Ive try also to spawn mp3player in entry level, and tracking levelinfo. if level info has changed mp3 should stop... and it stops, but it hangs up UT also :/. I don't think this problem is coused by shutDown function, because it contain only:

Code: Select all

      FSOUND_StopSound(FSOUND_ALL);
      FSOUND_Close();
http://forums.beyondunreal.com/showthread.php?t=164281 - problem on beyondunreal
http://www.hellscrag.net/phpBB2/viewtopic.php?t=1860 - discussion about mp3player
http://turniej.unreal.pl/mp3player/RvMp3Player.zip - working mp3player
Last edited by Raven on Sat Sep 17, 2005 10:44 pm, edited 1 time in total.
Image

Return to “UnrealTournament General Forum”