Register for your free account! | Forgot your password?

Go Back   elitepvpers > MMORPGs > Shaiya > Shaiya Private Server
You last visited: Today at 12:43

  • Please register to post and access all features, it's quick, easy and FREE!

Advertisement



[request] In-game music

Discussion on [request] In-game music within the Shaiya Private Server forum part of the Shaiya category.

Reply
 
Old   #1
 
elite*gold: 0
Join Date: Jul 2009
Posts: 408
Received Thanks: 180
[request] In-game music

Hey guys, i was wondering if anyone knew a way of setting the in-game music to your own custom music.

I know where the sound files are, and how to add my own files into the game, i also "think" that each different song that plays is triggered by the named areas in maps.

What i was wondering was, is there a way to set for example. Apulune square to play the goddess01.wav, as Apulune Square (in my game files) has no linked song.

And if anyone does know, what are the music triggers? or a way to find them out for myself (other than running around each map, until a song plays and writing it down, as i have been doing)

thanks in advance if anyone has any info for me
viper4513 is offline  
Old 08/16/2011, 11:56   #2
 
RebeccaBlack's Avatar
 
elite*gold: 0
Join Date: Sep 2010
Posts: 520
Received Thanks: 1,289
I can't say I know how they're triggered. I'm PRETTY sure (not 100% sure but yar) that any music files, triggers and such, would be handled in the .wld files of the map. You could open them up in a hex editor, and see if you can find any relation, but as far as I know, the triggers are unknown. n.n
RebeccaBlack is offline  
Thanks
1 User
Old 08/16/2011, 12:13   #3
 
elite*gold: 0
Join Date: Jul 2009
Posts: 408
Received Thanks: 180
Aww, i was hoping you wouldn't say something like that :P
I noticed that songs play and change when you reach named areas... but not all named areas actually play songs.... guess i'll keep looking then :P

Wanna find a way to make a whole map have 1 song, and another map another song, maybe on loop, or just edited to be like 10-15 mins long maybe. Thanks for your reply tho

1st, sorry for double post..
You were 100% correct there RB
just opened up a wld (47 for jungle) did a search of 1 of the songs i knew was in the map, and it found it instantly.

offset 00363EE0 (dunno if that would help anyone here for other maps)
offset 00363FE0 (the 2nd song file for that map)

still not sure on the triggers, but atleast that should make it possible to completely add new music and change the maps songs
viper4513 is offline  
Old 08/17/2011, 02:25   #4
 
ShaiyaOmega's Avatar
 
elite*gold: 0
Join Date: Jan 2011
Posts: 238
Received Thanks: 901
Using the search is Good Look

That allows you to change the music that is InGame as far as triggers i am not sure about that.
ShaiyaOmega is offline  
Thanks
3 Users
Old 08/17/2011, 18:03   #5
 
elite*gold: 0
Join Date: Jul 2009
Posts: 408
Received Thanks: 180
Reading what i wrote in my first post also helps

I already said i know how to find the sound files, how to extract, and import my own sound files, what i was asking was specifically about triggers, not how to "import" sounds into my data file... but thanks for the link for anyone else looking at this post wondering how to do it.
viper4513 is offline  
Old 08/18/2011, 02:24   #6
 
castor4878's Avatar
 
elite*gold: 0
Join Date: Dec 2010
Posts: 717
Received Thanks: 3,367
the background music of a .wld / FLD format are defined in a block consisting of:

- an array of .wav file names, the array starts with the number of items as a long (4 bytes), then N strings of 256 characters, zero terminated, w/o length-prefix and with lot of garbage. (these files are read from Sound/back).

- an array of coords of area where the music is played , the array also starts with the nbr of records and then some 9 * 4 bytes records.

these records are structured as:
- top-left coords of rectangle: 3 float values (x1, y1,z1)
- bottom-right coords of rectangle: 3 float values (x2, y2, z2)
- a long id (set to 0 in lot of cases)
- the music file identifier (long), it's the index of the .wav in the previous list (not all files are necessary present, ie have their list of coords).
- another long id (set to 0 in lot of cases).

before this block, the file contains a list of ""modules"" (a rock, a river, a forest, ...) that can contains the name of a sound file (from Sound directory) together with the texture filename (a .tga which is a .dds since episo 4.?); just forget that block and all the stuff before, do manual edition after finding the previous "background music" block.
castor4878 is offline  
Thanks
6 Users
Old 08/18/2011, 10:50   #7
 
elite*gold: 0
Join Date: Jul 2009
Posts: 408
Received Thanks: 180
Thank you Castor, once again proving that you know your shizz :P

I shall have a look into that, i kinda gave up hope after seeing all the stuff in Hex when i viewed the wld files.... but i shall give it another go looking at what you posted. Thanks again
viper4513 is offline  
Old 08/18/2011, 21:50   #8
 
castor4878's Avatar
 
elite*gold: 0
Join Date: Dec 2010
Posts: 717
Received Thanks: 3,367
Quote:
Originally Posted by viper4513 View Post
i shall give it another go looking at what you posted.
the boring thing is the map-height at beginning of the file...

a .wld file is as follows:

- format identifier ('FLD\0' or 'DUN\0')

for FLD format only:

- map size (long), all map are square, this is the length of a side
- the map-height, ... a mess (so far), if the map size is 1024 (Apu & others) this block is 789507 long, so skip that length

- textures-waves array, a number of records as long and then record defined as:
- texture name (256 char)
- ident (long)
- wave name (256 chars)

then for FLD & DUN:

- name of ground file (256 chars)
- buildings (Element)
- shapes (Element)
- trees (Element)
- grass (Element)
- VANI (Element)
- VANI(2) (Element)
- more (Element)
- MANI (Element) (coords have a additional long ident)
- name of effects file (char 256)
- vertices (array of locations: counter + N * 40 bytes)
- 3 longs always null (maybe linked to the vertices just before)
- Objects (Element)
- Sound/Music items
- Sound/Back items
- trailing data



(for sound areas (x,y,z) is the first point, (r,s,t) is the second - the columns u,v,w are used by Element coordinates only)

an 'Element' is:
- an array of names, ie nb of string as long, N string as char256
- an array of locations, ie nb of records, N records of 40 bytes (44 for MANI records)

a Sound array is:
- an array of file names, ie nb of string as long, N string as char256
- an array of locations, ie nb of records and N records of 36 bytes (as listed in previous post)

with this info you can write a Q&D piece of code to read/write a .wld and modify on the fly the Sound arrays - the only constraint is to copy the full map-height block as well as the trailing data, and to comply with structures of each Element & Sound array, you will simply adjust the number of records according the added / removed filenames and/or locations.

Also note that "Environnement Sound" (Sound/Back) areas are usually larger (of course) and they don't stop to play while a "Background Music" (Sound/Music) is played when the toon enters its area.
(quoted name are those of the game sound control panel).
castor4878 is offline  
Thanks
4 Users
Old 08/18/2011, 22:16   #9
 
elite*gold: 0
Join Date: Jul 2009
Posts: 408
Received Thanks: 180
Oh... well thanks alot for that explanation, explained so much more than i expected :P
Thanks for that, makes the whole wld and music thing alot more simple for me....

on another little note.. what is that program you use to view your wld's?

I've tried in your tool, but it doesnt seem to load anything (thats me probably doing something wrong) :P thanks again for your amazing help Castor
viper4513 is offline  
Old 08/18/2011, 23:03   #10
 
castor4878's Avatar
 
elite*gold: 0
Join Date: Dec 2010
Posts: 717
Received Thanks: 3,367
Quote:
Originally Posted by viper4513 View Post
another little note.. what is that program you use to view your wld's?
shStudio ... release 0.7.5 which is not released so far.

btw, I'm not sure that the published version will contain editors, maybe only viewers.
castor4878 is offline  
Thanks
1 User
Old 08/19/2011, 11:20   #11
 
elite*gold: 0
Join Date: Jul 2009
Posts: 408
Received Thanks: 180
****, it looks so shiny, i wants it :P

Guess i'll have to do it the "hard" way and actually work for it eh? :P
viper4513 is offline  
Reply

Tags
music, shaiya


Similar Threads Similar Threads
Music Game : Osu!
02/06/2014 - Music - 9 Replies
Ich weiß nicht ob es dazu schon einen Theard gab aber ich schreibs nochmal, vllt kennts ja wer und falls nicht will ich´s euch näher bringen :3. ------------------------------------------------- -------------- Ihr mögt Music? Ihr mögt Reflex-Spiele? Oder sogar , Gratis Musik? Tjoa dann ist Osu! das richtige! >> osu! - rhythm is just a click away << Was ist Osu!? Osu ist ein Spiel beidem es um Reflexe geht, würd ich mal sagen :D. Ihr startet wie´s sich gehört bei lvl1 und könnt euch...
In-Game Music Changer
01/14/2013 - FFXI Exploits, Hacks, Bots, Tools & Macros - 4 Replies
Seid ihr von der Standart IG mucke gelangweilt? dann saugt euch das proggy im Anhang backuped eure Music Files bevor ihr loslegt (*PlayOnline&#092;SQUARE&#092;*FINAL FANTASY XI&#092;sound&#092;win&#092;music& #092;data) Das Programm ist leider in Japanisch.. sowas hindert uns aber nicht daran es zu benutzen :p (zumal das sehr easy zu bedienen ist) Anleitung: Startet das Programm und wählt die zu ersetzende File in der Liste aus, danach klickt ihr auf "WAV->BGW" und öffnet eure File die ihr Importieren wollt.
[Geht das?] CF Background Music im Game [?]
07/31/2011 - CrossFire - 18 Replies
Heey. Ich habe eine Frage ;? Kann man in CF selber Background Music einstellen ? BzW; Ergendwelche Lieder. Ohne das man YouTube oder so anmachen muss ^.^. Für Schnelle & Hilfreiche antworten wäre ich Dankbar..
{TIP}How to change GC in-game music to your favorite music !!
06/23/2009 - Grand Chase Philippines - 2 Replies
Ang una... 1 1go to D:/program file/GC ph/Music.. 2.copy paste your favorite music in the D:/program file/GC ph/Music 3.Example:delete your Gorgos lair - and rename your favorite music into Gorgos lair 4.enjoy Reply lang kung di nyo maintindihan And sabihin nyo kung Gumagana



All times are GMT +1. The time now is 12:45.


Powered by vBulletin®
Copyright ©2000 - 2026, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.
This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

Support | Contact Us | FAQ | Advertising | Privacy Policy | Terms of Service | Abuse
Copyright ©2026 elitepvpers All Rights Reserved.