• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!

Sounds

  • Thread starter Thread starter Icy
  • Start date Start date
I

Icy

Guest
Is it even possible to have sound files play..?

If I distributed a custom client with .wav or .mp3 files in the folder is there any possible way I could get them to play or execute or something?
 
If you used YATC, you could modify it to play sounds (SDL has nice utility libs* for it, too!)

If you use the official Tibia client, you could try to make a program that hooks into the Tibia client memory or makes a proxy for the Tibia client. For the prior suggestion, you'd need to check memory to decide when to play; and play through the program hooking into client memory. Ricardog did this, I believe, for his OTserv. The later would just filter out a new "play sound" packet you'd need to code into the server, and play the sound through the program as well.

The only "clean" solution is to use YATC, however.

* SDL_sound (http://icculus.org/SDL_sound/ ) and SDL_mixer (http://www.libsdl.org/projects/SDL_mixer/ )
 
Last edited:
nfries88, you are the Tibia/OpenTibia version of Jesus, Leonardo DaVinci, Isaac Newton, Albert Einstein, Bill Gates, and many more.

When can you do something more than programming in OTserv branches and YATC?
 
If you used YATC, you could modify it to play sounds (SDL has nice utility libs* for it, too!)

If you use the official Tibia client, you could try to make a program that hooks into the Tibia client memory or makes a proxy for the Tibia client. For the prior suggestion, you'd need to check memory to decide when to play; and play through the program hooking into client memory. Ricardog did this, I believe, for his OTserv. The later would just filter out a new "play sound" packet you'd need to code into the server, and play the sound through the program as well.

The only "clean" solution is to use YATC, however.

* SDL_sound (SDL_sound ) and SDL_mixer (http://www.libsdl.org/projects/SDL_mixer/ )

Thanks, all try all of that out once I get home - I was aware of YATC but unaware as to just how far it has come, awesome.
 
Back
Top