Music: Client or UOx limited?

Forum where anything UOX3-related goes - including, but not limited to: newbie-support, ideas, general questions, comments, etc and-so-forth.
Post Reply
stranf
UOX3 Guru
Posts: 939
Joined: Wed Jan 04, 2006 3:59 pm
Has thanked: 0
Been thanked: 0

Music: Client or UOx limited?

Post 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?
Hunter
UOX3 Newbie
Posts: 16
Joined: Mon Feb 16, 2009 6:09 am
Location: Pennsylvania
Has thanked: 0
Been thanked: 0

Post by Hunter »

Music is important to me also :)

Was this question answered somewhere else?

*whistles a tune*
stranf
UOX3 Guru
Posts: 939
Joined: Wed Jan 04, 2006 3:59 pm
Has thanked: 0
Been thanked: 0

Post 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.
User avatar
Jediman
UOX3 Apprentice
Posts: 177
Joined: Fri Jul 16, 2004 1:38 am
Location: New England
Has thanked: 0
Been thanked: 0
Contact:

Post by Jediman »

Didn't UOGateway support custom music?
How did Fixit do it..client hacking?
Realms of Valor
- -=- http://www.realmsofvalor.com -=-
-=-Powered By UOX3-=-

Have you read the installation documentation?
http://www.uox3.org/documentation.shtml

'I have a moongate in my backpack' sounds like a bad Brittanian pickup line!
Grimson
Developer
Posts: 802
Joined: Sat Jun 04, 2005 1:52 am
Location: Germany
Has thanked: 0
Been thanked: 0

Post 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.
stranf
UOX3 Guru
Posts: 939
Joined: Wed Jan 04, 2006 3:59 pm
Has thanked: 0
Been thanked: 0

Post 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.
stranf
UOX3 Guru
Posts: 939
Joined: Wed Jan 04, 2006 3:59 pm
Has thanked: 0
Been thanked: 0

Post 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!! :(
Post Reply