Page 1 of 1
Music: Client or UOx limited?
Posted: Mon Dec 22, 2008 6:27 am
by stranf
On my shard we like to do a lot of custom music. It is really simple, just rename the specific song to what you want in the client's config.txt
Right now, I have a request to add more music to the game. The problem is, if I add a line to Config.txt and try to play that midi, it will not play.
So my question is, does Uox3 only allow a finite amount of songs, or does the client "crap out" if you send it an integer more than some hardcoded value?
Posted: Tue Feb 17, 2009 2:43 pm
by Hunter
Music is important to me also
Was this question answered somewhere else?
*whistles a tune*
Posted: Tue Feb 17, 2009 8:12 pm
by stranf
If I add extra lines to config.txt, it won't play them.
So I have two ideas:
1) The client refuses to read any additional lines in config.txt (which would be bad for us.)
2) Uox3 only recognizes x-amount of midi files in config.txt. (This would be good for us, as we could configure the max amount of config.txt files in uox.ini).
I don't have a copy of the source, nor do I know where to look to verify.
Posted: Tue Feb 17, 2009 9:24 pm
by Jediman
Didn't UOGateway support custom music?
How did Fixit do it..client hacking?
Posted: Tue Feb 17, 2009 9:55 pm
by Grimson
The midi packet, the server sends to the client, allows values up to 255. If we allow anything above it would eighter be ignored by the client or could cause problems like client crashes.
If you haven't reached the number of 255 midis, the client is further limited.
In both cases there is not much that can be done from the point of UOX3.
Posted: Fri Feb 20, 2009 4:09 pm
by stranf
Interesting....
Maybe it is a client issue then?
I have midis set at 67 and 68 and I can not get them to play in UO. I'll try some values higher.
With my limited programming background, a 255 limit seems likely and reasonable. Maybe a few slots about 60 would work. I'll give it a try and report.
Posted: Fri Feb 20, 2009 5:23 pm
by stranf
-update-
Sadly it appears to be a client limitation.
Using the 'midi command I tried to play Midi's 72-67 that I added. Unless I did something wrong in my config.txt (possible), these midis do NOT play.
midi 66 cuts the sound off. It is set as ValoriaShips.mp3, and it is possible that this is a corrupted OSI song, and 66 *should* work.
65 does work, but nothing above 65 seems to work with my client.
Too bad.... 255 midi files would be PLENTY!!
