vans163 / LKResources

All dumped resources for The Last Kingdom
1 stars 1 forks source link

thanks for sharing and quick question #1

Open minotaurrr opened 6 years ago

minotaurrr commented 6 years ago

hey I'm trying to play with your emulator.. just can't figure out how you know what packet to send to play specific .wav files. e.g.) swingattack triggers xx.wav to play for swing sound effect.

Any tips?

vans163 commented 6 years ago

IIRC the sound effects are attached to the animations in the client, the best you would be able to do is manually edit the sound files in the client, the only thing possible to change is PlayMusic, which is the sound track of the map.

minotaurrr commented 6 years ago

@vans163 I tried playing with PlayMusic but noticed it plays the track in loop as background music.

I have seen it in another private server (stems from your emulator) where you can turn on background music (using PlayMusic I'm guessing) as well as swing attack & magic sound effects that are fired only when player attacks or casts magic.

Any idea? :(

how did you even figure out what packet to send in the first place?

vans163 commented 6 years ago

Well swing attack and magic sounds should already be working? Only when a swing or spell occurs, you want to edit those?

To figure out what packets to send you have 2 options really, 1 peek at the disassembly (i have a ida db uploaded with delphi symbols and some light function naming), 2 trial and error, sending packets to the client by emulating a server and seeing what happens client side (i wrote LKTool for this).

minotaurrr commented 6 years ago

@vans163 hmm weird, swing attack / magic sounds don't work at all :( do you mind having a look at the sound bit? I downloaded your emulator / client but no sound playing except background music :(

vans163 commented 6 years ago

@minotaurrr oh interesting, its been a while. I swear they were working, but i rarely played with sound on. They never worked?

It must be some unknown bytes then in the cast spell packet and as well the swing packet then that are responsible for the sounds.

minotaurrr commented 6 years ago

@vans163 from memory the sound effects for swing attacks/magic casts just played if you had the speaker on.. whereas you had to turn on the music settings in game to play the background music.

you might be right about unknown bytes..

etherplague commented 3 years ago

@vans163 hmm weird, swing attack / magic sounds don't work at all :( do you mind having a look at the sound bit? I downloaded your emulator / client but no sound playing except background music :(

Is it fullscreen, in window you dont hear the sounds.