Jump to content

Programmer Needed for Audio mod


hyman

Recommended Posts

Thanks to the findings of DYosua at http://yosuamedia.com/misc/MVP/audio.html, I have been able to change all the batter walk-up music dittys in batdit.ast file. It is a long and laborious process to change each track by using the hex editor and I wouldn't recommend it. If anyone knows how to write a program, I think this would give all of us the ability to replace any track in the file as easily as we replace uniforms with fuzz' editor. The program would simply search for the hex string 5343486C and note every position as the beginning of each track. The end of each track is indicated by the hex string 5343456C08000000. The difference is the number of bytes in each track. I've charted the batdit file below. The program would list all the tracks and the user would click on the one he wanted to replace and click on import. This would bring up an "open file" window listing the asf files created with EA's Ditty Importer. The user would click on the asf file to import. If the file size is larger than the size of the track, the import would be rejected. If the size were smaller, then the end would be padded with "00" (in hex) until the bytes match up.

Here is the chart of the batdit.ast file:



   Genre Start Position  Length


1	Country	000000	224484


2	Country	224512	213628


3	Country	438144	233820


4	Country	672000	219624


5	Country	891648	221472


6	Country	1113216	211656


7	Country	1324928	196416


8	Country	1521408	302644


9	Country	1824128	204264


10	Country	2028416	217000


11	Dance	2245504	190304


12	Dance	2435840	203844


13	Dance	2639744	193524


14	Dance	2833280	196748


15	Dance	3030144	190304


16	Dance	3220480	193524


17	Dance	3414016	170940


18	Dance	3585024	218852


19	Dance	3803904	208764


20	Dance	4012672	190956


21	Dance	4203648	207272


22	Dance	4411008	215120


23	Dance	4626176	179976


24	Dance	4806272	219952


25	Dance	5026304	219624


26	Dance	5245952	213840


27	Dance	5459840	231468


28	Dance	5691392	201280


29	Dance	5892736	182960


30		6075776	225616


31	Hip Hop	6301440	221112


32	Hip Hop	6522624	252144


33	Hip Hop	6774784	221112


34	Hip Hop	6995968	208404


35	Hip Hop	7204480	247280


36	Hip Hop	7451776	212136


37	Hip Hop	7664000	199040


38	Hip Hop	7863040	244680


39	Hip Hop	8107776	226336


40	Hip Hop	8334208	238684


41	Hip Hop	8572928	237944


42	Hip Hop	8810880	230840


43	Hip Hop	9041792	220752


44	Hip Hop	9262592	218492


45	Hip Hop	9481088	218852


46	Pop	9699968	200532


47	Pop	9900544	217740


48	Pop	10118400	145556


49	Pop	10264064	196056


50	Pop	10460160	211008


51	Pop	10671232	219624


52	Pop	10890880	219624


53	Pop	11110528	232960


54	Pop	11343488	235312


55	Pop	11578880	214940


56	Rock	11793920	204264


57	Rock	11998208	195968


58	Rock	12194176	209516


59	Rock	12403712	217360


60	Rock	12621184	221864


61	Rock	12843136	195576


62	Rock	13038720	212880


63	Rock	13251712	242808


64	Rock	13494528	213988


65	Hv. Rock	13708544	204264


66	Hv. Rock	13912832	224484


67	Hv. Rock	14137344	210648


68	Hv. Rock	14348032	203544


69	Hv. Rock	14551680	185200


70	Hv. Rock	14736896	219140


71	Hv. Rock	14956160	194928


72	Hv. Rock	15151104	206524


73	Hv. Rock	15357696	216552


74	Latin	15574272	211388


75	Latin	15785728	206524


76	Latin	15992320	203040


77	Latin	16195456	250652


78	Latin	16446208	273468


79	Latin	16719744	205032


80	Latin	16924800	208016


81	Latin	17132928	247280


82	Latin	17380224	241706


83	Latin	17622016	234212


84	Latin	17856256	200920


85	Latin	18057216	225204


86	Latin	18282496	219984

Track 30 has yet to be heard in the game and is either dance or hip hop. The Home Run music is the same as the walk-up and is tracks 13,18,21,40,46,51,54,57,58,59.

I had a problem with tracks 2 and 10 which ended prematurely with a loud pop in the game and had to revert to EA's original tracks. It might just be my problem. More testing is required for those 2 tracks.

The same theories apply to many of the other audio files in the game as well. If anyone has programming experience, I think a program such as the one I just described could be a valuable asset to the game. If anyone would like to take a stab at it and needs any more information, please let me know.

Link to comment
Share on other sites

Hyman,

Nice work on getting the categories! I have been very busy with finals (the best time of year :roll: ) and am glad that some progress is being made. Your idea for a program is a good one - hopefully someone possesses enough programming knowledge to make it. When I get some time (who knows when that will be), I will try experimenting with tracks 2 and 10 to see if I get the same popping.

Link to comment
Share on other sites

hyman and dyosua, if you get no response, i'll beg my step dad. he is a programmer. i'll see if he has any guts but first lets see if anyone that actually cares about this game will help out first.

Link to comment
Share on other sites

A quick update to my original post:

I replaced tracks 2 and 10 with new dittys and they work perfectly now, so all 86 tracks have been replaced.

Link to comment
Share on other sites

do you know exactly how long the tracks are?

while you guys look for a programmer, we need some new authetic tracks to replace the defalut dittys that ea has. i'll post the list on my song finder thread over in the general section.

Link to comment
Share on other sites

Seek and ye shall find. I found a program that will do most of the things that I was looking for in my original post. You can download it at http://www.kulibin.rhlmod.ru/. The site is in Russian, but if you go down the page a little, you will see a program named "NHL2005 Asf Import/Export". This will allow you to easily replace the batter walk-up music(batdit.ast) and other audio files as well. The only caveat is that each asf file must be the exact same size as the original. Once you create it with the ditty importer, you will have to use a hex editor to pad the end of the file with hex 0's to fill in the difference. It's not hard once you get used to it and you will be able to use your own music in the game. Modders can immediately begin to upload asf files of walk up music in the exact file size needed for that particular track and users can import using this program.

Link to comment
Share on other sites

Braves, please go away, every thread I read about this you are in, and you plug your threads. They have nothing to do with what the people are trying to do with this right now. If and I say IF they figure this out then by all means plug away. However they are only begining to make strides.

Hyman, I have been reading up on few things and it is not much further than what you got but check things out here. You may need to register to view, I forget. http://doubleminor.net/forums/showthread.p...highlight=ditty Talk to drezz, if you can. He stumbled on to this over a month ago and NHL and MVP seem to work about the same way with music. He may have some more info or more knowledge or may not.

Goodluck, keep us posted, we are all rooting for you.

Link to comment
Share on other sites

Braves, please go away, every thread I read about this you are in, and you plug your threads. They have nothing to do with what the people are trying to do with this right now. If and I say IF they figure this out then by all means plug away. However they are only begining to make strides.

mabye i'm doing this all prematurley, but i'm not really good with this programming stuff.

i'm just not the type who can just sit around and do nothing to help out...do you guys still need help finding out ditty #30, or can that wait for another time after you find out all this audio mod stuff?

Link to comment
Share on other sites

Ok, I don't want to get people's hopes up but I think I might be able to make a program to do be able to overwrite the ditty's easily. I've just uploaded one to let people import their own intro and innings transition music, and this sounds like it works in the same way. I'll keep you posted.

As a help to me, does anyone know which batter uses ditty number 1? This would help massively :D

Link to comment
Share on other sites

Ok, I don't want to get people's hopes up but I think I might be able to make a program to do be able to overwrite the ditty's easily. I've just uploaded one to let people import their own intro and innings transition music, and this sounds like it works in the same way. I'll keep you posted.

As a help to me, does anyone know which batter uses ditty number 1? This would help massively :D

batter's dittys (in terms of what ditty type the batter goes up to) can be modified in mvpedit.

Link to comment
Share on other sites

so how does this program work?? kind of confused :?

should put exact instructions for this

Did you mean mine? I'm not much of a user-friendly programmer :D But I thought it was fairly simple. In the drop-down box choose which broadcast sound to overwrite (so if you wanted new intro music, choose that) and then set your mvp2005 directory, and the location of the asf file you are wanting to install. Then click update and all should be fine. Works for me.

My batter-up music changer is coming on nicely too. Needs some user friendly touches and a bit more testing, but hopefully I can sort it soon.

Link to comment
Share on other sites

Nope. Luckily the way I programmed sorted that out itself. It also sorts out if the tune is shorter than the original by sticking a load of blank values in. If anyone has any GUI hints then I'd be happy to try and sort them. I just had a go at using it and almost forgot what to do :D

Link to comment
Share on other sites

Ok, I don't want to get people's hopes up but I think I might be able to make a program to do be able to overwrite the ditty's easily. I've just uploaded one to let people import their own intro and innings transition music, and this sounds like it works in the same way. I'll keep you posted.

As a help to me, does anyone know which batter uses ditty number 1? This would help massively :D

Nice job with your program! I wish I had it when I made the first "MLB on Fox" file. :lol:

I would think that you would be able to do it for ditties, but there is a difference: There are no "category markers" like the intro music - the 86 ditties are presented one after another.

If you need them, here are the starting positions (where all the "SCH" strings are) of all the ditties, in hex:

01-00000000

02-00036D00

03-0006AF80

04-000A4100

05-000D9B00

06-0010FC80

07-00143780

08-00173700

09-001BD580

10-001EF380

11-00224380

12-00252B00

13-00284780

14-002B3B80

15-002E3C80

16-00312400

17-00341800

18-0036B400

19-003A0B00

20-003D3A80

21-00402480

22-00434E80

23-00469700

24-00495680

25-004CB200

26-00500C00

27-00534F80

28-0056D800

29-0059EA80

30-005CB580

31-00602700

32-00638700

33-00676000

34-006AC000

35-005DEE80

36-0071B480

37-0074F180

38-0077FB00

39-007BB700

40-007F2B80

41-0082D000

42-00867180

43-0089F780

44-008D5600

45-0090AB80

46-00940280

47-00871200

48-009A6500

49-009C9E00

50-009F9C00

51-00A2D480

52-00A62E80

53-00A98880

54-00AD1680

55-00B0AE00

56-00B3F600

57-00B71400

58-00BA1180

59-00BD4400

60-0C095980

61-00C3F880

62-00C6F480

63-00CA3480

64-00CDE900

65-00D12D00

66-00D44B00

67-00D7B800

68-00DAEF00

69-00DE0A80

70-00E0DE00

71-00E43680

72-00E73000

73-00EA5700

74-00EDA500

75-00F0DF00

76-00F40600

77-00F71F80

78-00FAF300

79-00FF1F80

80-01024080

81-01056D80

82-01093380

83-010C3400

84-01107700

85-01138800

86-0116F800

By the way, while the ditty category is assigned to each player, the individual ditty is not. Since the first is a country ditty, you should experiment in the game with a lot of players who use the country ones.

Link to comment
Share on other sites

or go into mvpedit, change all the dittys for the home team to a certian ditty.

there is no way possible that a player would come up to the same exact song every time...i think it's random.

Link to comment
Share on other sites

I wish I had it when I made the first "MLB on Fox" file. :lol:

Someone's always gotta take the first step. I couldn't do this without your work.

The ditty one works so far, but it's really ugly, clunky and I'm not sure when a run-time error is gonna occur :D. I'll see if I can get it jazzed up and solid soonish for you guys.

Link to comment
Share on other sites

You guys can find the same structure in these 2 files ---

dataaudiocdspch_pbppnamedat.big

dataaudiocdspch_papnamedat.big

and that's how I made the name broadcasting audio files.

good job, hyman. :wink:

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...