• 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!

OTC sounds

wojtron

da oldschool
Joined
Feb 6, 2009
Messages
41
Reaction score
0
Location
Poland
Hello. I am interested in hosting server on TFS 1.4.2, preferably 10.98, and it works fine.

Also I am able to connect to it with OTClient by mehah.

I choosed this one as I suppose this is most up to date OTClient, but maybe I am wrong?

What I would love to know is how to enable sounds, I want open tibia client (OTC, OTCv8, OTC mehah, or else) which would enable to preferably easily add sounds.

I would love to import sounds from soundpacks like from 13.40, but most importantly I want to use on hit sounds, monster, sword, arrow, wand, movement. Spells also would be nice but not that important.


What I find in otclient/data/sounds at main · mehah/otclient (https://github.com/mehah/otclient/tree/main/data/sounds) git repo is:

Example configuration​

data/sounds/1340/ (catalog-sound.json and all sound files)

I did similar
i copied files from 1340, created folder data/sounds/1098 and it didnt work,
any suggestions how to make it work using data/sounds ?
I see there are ways to add ambient zone sounds using mods but I believe theres other way (like putting sounds to data/sounds and preparing content-sounds.xml)
But I have no clue what should content-sounds.xml look like as it navigates to .dat file

I tried some constructions of content-sounds.xml but these didnt work too.

So my question is, how to enable sounds in OTClient ?

Maybe I should be using OTClient by mehah but on later protocol i.e. 13.40 or 12.2 or sth ? And then sounds would be easier to add?
What are best and fastest options to enable sounds in OTClient (any)


Would appreciate any clues and help. Thanks
 
That data is from a recent PR that read sounds from tibia newer versions, so i think its not working for 10.98 because tfs 1.4.2 does notsend those packages to play the sounds.

You can use sounds function present and modify source to use as you wish
 
Thanks for response. I was thinking about using sounds function present in any way, even while moving to newer than 10.98 version, but I cant get it to work, any clues ?
 
I am not sure, but id say only canary developing sounds maybe?

otc
server
 
The solution is to use extended op codes.

You will have to manually write the code on the client side for receiving and handling the opcodes for the sounds you wish to play, and send them only when you wish to have those sounds play.


10.98 indeed had no sounds, so if you go the route of adding in the source changes to the protocol and such, you might break your protocol, but even if you don't, you for sure won't be able to use your server with the cipsoft tibia client 10.98... you don't run into either of those problems making use of extended op codes
 
Back
Top