home *** CD-ROM | disk | FTP | other *** search
/ Quake 'em / QUAKEEM.BIN / nba / cc2c / nba-ed.txt < prev    next >
Encoding:
Text File  |  1995-07-29  |  21.8 KB  |  485 lines

  1. NBA-ED v2.01 - Game Editor for EA Sports NBA Live '95
  2. by Jose de Leon and Lutz van Hasselt
  3.  
  4. (for a quick summary search on "*** ")
  5.  
  6. ABSTRACT:
  7.  
  8. This program allows the user to edit the player attributes for any player in
  9. the game NBA Live '95, by Electronic Arts (EA) Sports.
  10.  
  11. It is intended *only* for use on two versions of NBA Live '95:
  12. - the first public release of NBA Live '95 (NBA 95) on CD-ROM, dated
  13. 3-15-95, 3:12a on the CD-ROM
  14. - an official patch release of NBA 95, fixing PAS-16 sound card
  15. compatiblity and joystick calibration
  16.  
  17. This version of the program will not (likely) work on any subsequent
  18. releases from EA.
  19.  
  20. INTRODUCTION:
  21.  
  22. This program is based on information from Lutz van Hasselt, describing a
  23. method changing player stats, skills, and attributes by hex editing the
  24. NBA 95 executable file NBA95.EXE, which contains all the player data. This
  25. requires a knowledge of hexadecimal, and is prone to error, since one must
  26. keep track of the offsets of several bytes within the .EXE file (this is
  27. made doubly hard since there are different offsets for different patch
  28. versions of NBA95.EXE). NBA-ED simplifies this process, allowing the user
  29. to edit almost any attribute for any player in the game. This allows the
  30. user to change any player from a benchwarmer to a superstar, and back again!
  31.  
  32. *** WHAT'S NEW
  33.  
  34. - support for the new official EA PAS-16 patch -- one program handles
  35. both versions of NBA95.EXE
  36. - new attributes to edit -- agressiveness and endurance
  37. - can now edit simulated stats for rookies and newcomers -- just 
  38. enter "fake", "newcomer" or "rookie" as a team (these simulated stats
  39. are used for league play)
  40. - can now edit college names and player names without a hex editor
  41. - can now associate any string in the game with a players first name,
  42. surname and nickname
  43. - can now trade and copy players between teams and between positions
  44. - can now set players' portraits
  45. - new command line parameters: -N (player name list), -F <file> (specify
  46. filename other than NBA95.EXE)
  47. - help included for facial features codes
  48. - string editor bugs fixed (thanks to Jeff Chernow for this)
  49.  
  50. *** INSTALLATION:
  51.  
  52. Make sure a copy of NBA95.EXE exists on your hard disk (naturally, you
  53. will not be able to edit the file on the CD-ROM!). Copy NBA-ED.EXE, 
  54. POINTERS.DAT, PTRSPA16.DAT and LENGTHS.DAT to the same directory on your
  55. hard drive in which NBA95.EXE resides. NBA-ED will not work unless all
  56. files are present.
  57.  
  58. *** VERY IMPORTANT NOTE!
  59.  
  60. This version of NBA95.EXE is designed to work with two versions of NBA 95:
  61.  
  62. - the first public release of the game. This release is denoted by a file
  63. date on the CD-ROM copy of NBA95.EXE of 3-15-95, a time of 3:12am, and a
  64. size of 1101579 bytes.
  65.  
  66. - an official patch release of NBA 95 from EA, fixing PAS-16 sound card
  67. compatiblity (not tested by me) and joystick calibration. This patch
  68. consists of a new NBA95.EXE file of size 1097483 bytes. Contact EA 
  69. for this patch (see LEGAL BITS for more information).
  70.  
  71. The date of the file on your hard disk may vary, but NBA-ED will likely
  72. work correctly on those files. If the file size is different, this program 
  73. may corrupt the .EXE file and cause a crash if any editing is done!
  74.  
  75. DO NOT USE THIS PROGRAM IF THE SIZE OF NBA95.EXE IS DIFFERENT
  76. FROM EITHER 1101579 OR 1097483 BYTES!!! YOU HAVE BEEN WARNED!!!
  77.  
  78. If you do try editing NBA95.EXE with NBA-ED and the editing process
  79. corrupts the file, you can always get a fresh copy of the file off the
  80. CD-ROM. Just make sure the file on your hard disk has the read-only
  81. attribute set to off ("attrib -r nba95.exe" will take care of this).
  82.  
  83. For the PAS-16 patch version I have three words: BACKUP, BACKUP, BACKUP!
  84.  
  85. *** USAGE
  86.  
  87. At the DOS command line, change to your NBA 95 directory and type: NBA-ED
  88.  
  89. *** COMMAND LINE OPTIONS
  90.  
  91. -? : help
  92. -c : list of colleges
  93. -n : list of player names
  94. -f <filename> : specify the filename to edit other than NBA95.EXE 
  95.  
  96. *** MAIN MENU
  97.  
  98. When you run NBA-ED you are then presented with a menu of options. One of
  99. those options is (naturally) to quit. The other options are:
  100.  
  101. Player Editor - this is the option that incorporates the functionality
  102. of NBA-ED v1.xx (keys have remained the same as in v1.xx).
  103.  
  104. Name Editor - this option sets first, last and nicknames for a player slot.
  105.  
  106. String Editor - this option allows the user to safely modify the list
  107. of player names and college names.
  108.  
  109. Trade/Copy Players - this option allows the user to move players
  110. (permanently) between teams and in and out of the starting lineup, and
  111. to replace the player data located in one slot with the data in another.
  112.  
  113. Image ID Editor - Assign different portraits to a player slot.
  114.  
  115. The rest of this document describes each of these options in detail.
  116. (For those NBA-ED veterans, I have changed very little of the player
  117. editor section. You may want to skip to the other sections.)
  118.  
  119. *** PLAYER EDITOR
  120.  
  121. If you select the Player Editor option of NBA-ED, the program will ask for
  122. a team. You may enter one of three possibilities: a city name without spaces
  123. (GoldenState) a city abbreviation (GS), or a team nickname without spaces
  124. (Trailblazers). Names are not case-sensitive. You cannot enter full team
  125. names (MiamiHeat). A list of valid team names is included as an appendix.
  126.  
  127. The program will then ask for a roster slot for the specified team. Each
  128. team in NBA 95 has 12 roster slots. Enter a number from 1 to 12. The first 
  129. five slots are for the team's starters, in the order of (starting) 
  130. center(1), power forward(2), small forward(3), shooting guard(4), and point 
  131. guard(5). To edit a starter, enter a number from 1 to 5 corresponding to 
  132. the above positions. Entering the numbers 6 to 12 allows the user to edit 
  133. the reserves (the reserves are in no particular order).
  134.  
  135. The data for the player in the slot on the selected team is then
  136. displayed on screen. All the information is presented over 3 screens,
  137. grouped into categories: Statistics, Attributes, and Ratings. 
  138. Each screen shows you which player (by team and roster slot) you are
  139. currently editing. Each screen presents a menu of attributes which you
  140. may change. Use the Up-arrow and Down-arrow keys to move between items 
  141. in the menu. To move between screens move to the last item, "More..."
  142. in each menu, and press the Enter key (or Right-arrow key).
  143.  
  144. To change an attribute, move to the item you would like to change and 
  145. press the Enter key to select the item. You will then be prompted at the 
  146. bottom of the screen to change the value. Make your changes and press 
  147. enter -- they will be updated automatically.
  148.  
  149. To change skin color or position, select that item from the Attributes
  150. menu, and a sub-menu will appear on the screen from which you may select
  151. the proper value (in a manner identical to selecting items from the parent
  152. menus). To abandon any changes with these menus, move to the last item, 
  153. "Cancel", in each menu, and press the Enter key.
  154.  
  155. If you press the F1 key on any of the main menus, you will get an on line
  156. help display.
  157.  
  158. If you press the F2 key on any of the main menus, you get a view of all
  159. information on the three menus as an overview. You may print this to the
  160. screen or a file. To send output to the printer, specify PRN as the output
  161. filename.
  162.  
  163. If you press the F3 key on any of the main menus, you get a list of all
  164. the colleges attended by all the players in the original version of NBA
  165. Live 95. Beside each college name is a number, which you may enter as a
  166. value for the College Code in the Player Attributes menu.
  167.  
  168. If you press the F4 key on any of the main menus, you will get help on
  169. what values to enter as Facial Features codes. What is presented is a
  170. summary of the information in Appendix B.
  171.  
  172. If you press the ESC key (or Left-arrow key) and have made changes to the
  173. player, NBA-ED will ask if you want to commit your changes to NBA95.EXE. 
  174. Answer Y to write your changes to NBA95.EXE.
  175.  
  176. If you press the ESC key and have not made any changes to the player, or
  177. have committed changes to NBA95.EXE you will be asked if you would
  178. like to edit the same player, a different player or quit the program.
  179.  
  180. *** QUICK SUMMARY OF KEYS FOR PLAYER EDITOR
  181.  
  182. KEYS:
  183. Menu keys:
  184. Up/Down Arrow: Move among menu items
  185. Right Arrow, Enter: Select menu item
  186. Left Arrow, ESC: Cancel menu selection
  187.  
  188. Function keys:
  189. F1: Help           F2: Player Overview
  190. F3: College List   F4: Facial Features Help
  191.  
  192. *** ROOKIES AND NEWCOMERS
  193.  
  194. Each rookie or player who did not play in 93-94 has a number assigned to
  195. them between 1 and 47. This is apparently so that stats may be generated
  196. for them during league play -- each newcomer has a second slot of "fake"
  197. stats, each slot denoted by an number from 1 to 47. Returning veterans
  198. (those that played in '93-94) have a number assigned to them between 54 
  199. and 99. If you enter 0 for games played, you will be asked to enter a 
  200. Newcomer code between 1 and 47, and the game will base the newcomer's
  201. season stats on the stats in the slot with the given number. If you enter 
  202. anything else, you will be asked to enter a Veteran code. You may enter 
  203. almost any value for a Veterans code. If a veteran has a code between 1 
  204. and 47, it will be ignored. The effect of different veterans codes has 
  205. not yet been determined.
  206.  
  207. You may now change the "fake" stats for any of the 47 "player" slots that 
  208. contain fake stats. Enter Fake or Rookie or Newcomer as a team name, enter 
  209. a Newcomer slot between 1 and 47, and edit the player numbers (including 
  210. ratings) as before (the value of the Veteran/Newcomer code is ignored here,
  211. as well as the attributes and skills). Then, for any team with a rookie or 
  212. newcomer, change the Newcomer Code for that player to the slot you have 
  213. edited. (It should be noted that if you fill any fake stats slot with zero 
  214. stats, any player using that slot will contribute *no stats* for the season!)
  215.  
  216. TIP: For those who would like to add a Michael Jordan type player, it is
  217. best to make him a returning veteran and give him his 92-93 stats (or to
  218. see him demolish the league, enter his 87-88 stats!). Making him a newcomer
  219. does not give satisfactory results in league play. The lessons here are: 
  220. - use real stats whenever possible for the best statistical performance
  221. - stats have a bigger impact on performance thans skills.
  222.  
  223. *** CHANGING COLLEGES
  224.  
  225. The NBA players represented in NBA 95 attended 164 different colleges
  226. (163 colleges actually, unless there actually *is* a 'None' College!).
  227. A single copy of the names of all the colleges are hard-coded into the
  228. game. Players who attended the same college share that one copy of the
  229. college name. Though the list is editable using the String Editor option
  230. (see below), it is not recommended that you do so unless you are positively
  231. sure that the name of the college is not used by any player you are editing.
  232.  
  233. The College entry in the Attributes menu of NBA-ED accepts a value from 
  234. 1 to 164 representing the college a player attended. To get a list of 
  235. which value represents which college, press the F3 key at the stats, 
  236. attributes or skills menus. You can escape from the list by pressing ESC
  237. or you may edit any entry by pressing the 'E' key and giving a value
  238. between 1 and 164 representing the college entry to edit.
  239.  
  240. To get a copy of the college list, type NBA-ED -C at the DOS prompt. This
  241. list may be redirected to a file, eg. NBA-ED -C > COLLEGE.TXT. A copy of
  242. the list of player names is available by typing NBA-ED -N.
  243.  
  244. *** CHANGING NAMES: NAME POINTER EDITOR AND STRING EDITOR
  245.  
  246. In NBA-ED v1.xx it was not possible to change the names of players in
  247. the league without a hex editor, and it was not possible to change the
  248. pointers of players' names. NBA-ED v2.01 removes these limitations.
  249.  
  250. Changing players names is requires two basic steps:
  251. -make sure the name is present as a string in the .EXE file
  252. -set the pointers of a player slot's first name, last name and nickname
  253. to point to a string in the .EXE file
  254. NBA-ED provides two options to facilitate this.
  255.  
  256. *** STRING EDITOR
  257.  
  258. Choosing the String Editor option from the Main Menu allows the user 
  259. to change the actual list of names in the .EXE file. There are 566
  260. spaces available in the list of names, each space between 1 and 20 
  261. characters long. In order for the .EXE to still function properly, you
  262. are limited to the lengths of the names already in the default set (though 
  263. you may make some names shorter than the actual space -- NBA-ED takes 
  264. care of this for you, and flags the 'short' names in the list). You may
  265. also edit the list of college names in a similar fashion.
  266.  
  267. The String Editor allows the user to list the player names and colleges,
  268. as well as their IDs in the list. This is done by selecting the List option
  269. from the String Editor Menu. You may then choose to view the list of
  270. colleges or player names. You can abandon the listing by pressing ESC, or
  271. edit an entry in the list by pressing the 'E' key.
  272.  
  273. Editng a string requires that you know its ID, which is provided in the
  274. list. Entering the ID for a particular item in the list then allows you
  275. to enter a new value in the slot held by the item in the list. If you know
  276. the ID of a particular string in a list, you may enter it using the
  277. Player String Edit or College String Edit options in the String Editor Menu.
  278.  
  279. NBA-ED's String Editor also allows for some simple searches to be performed
  280. on the college and player name string lists. This can be useful for
  281. determining if a particular name exists already in a list (such as Bryant
  282. Reeves or Joe Smith)
  283.  
  284. *** NAME POINTER EDITOR
  285.  
  286. Choosing the Name Pointer Editor from the Main Menu allows the user to set
  287. the associations of a player slot's first name, last name and nickname to
  288. any string contained in NBA95.EXE. To do this enter a player slot (fake
  289. slots will not be accepted, however). The current first name, last name,
  290. and nickname will then be shown. You are then given the opportunity to
  291. enter each of the three names. NBA-ED will then search (case-sensitive)
  292. through the .EXE for the string you have entered. If a match is found,
  293. you are given the opportunity to commit the change. If you would like
  294. to set a name as blank, enter "none" (all lower case) as a name.
  295.  
  296. The name pointer editor is a very powerful feature of NBA-ED, as any
  297. substring that terminates a word can be set as a name. This means that you
  298. can use college names as player names (John Wayne, "Duke"), team names
  299. (Magic Johnson), credits and error messages. Some patches use the space
  300. for system message strings as room for player names. This is not recommended
  301. as it may cause crashes. A suggestion is to use some of the redundancy in
  302. the player name list: common last names such as Smith and Williams have
  303. duplicates with differing first name initials (this is for indicating
  304. substitutions during game play). This will require that the players using
  305. that initialed name will need their pointers reset, and during gameplay
  306. some substitutions may be a bit vague (Hardaway for Hardaway?). Other
  307. suggestions are to use the spots in the name list of the players you are
  308. replacing, or to do without some nicknames.
  309.  
  310. *** TRADE/COPY PLAYERS
  311.  
  312. Selecting the Trade/Copy Players option from the Main Menu takes the user
  313. to the Trade/Copy menu. The Trade option allows the user to swap two 
  314. players roster spots. The Copy option allows the user to copy all the data
  315. for a particular player in one slot to another slot. You must specify the
  316. player you are to make a copy of first (the source), then the slot you want
  317. to copy the source player's data to (the destination). When trading two
  318. players, the order in which they are specified does not matter.
  319.  
  320. THE COPY FUNCTION CANNOT BE UNDONE. Changes made copy function may also
  321. affect Season play, so use it carefully! Most of the problems with Season
  322. play can be remedied with the Image ID Editor.
  323.  
  324. *** CHANGING PICTURES: IMAGE ID EDITOR
  325.  
  326. Every player slot in NBA95.EXE has an associated portrait, identified by a
  327. number from 0 to 394. The portrait info is very closely related to the 
  328. statistical data. Changing the portrait number can cause crashes in Season
  329. play mode. Every player in the league, excluding All-Star teams and fake
  330. slots must have a unique Image ID from all the other players in the league.
  331. The Image ID Editor option in NBA-ED allows you to assign any valid Image
  332. ID to any player slot, and flags any possible conditions that may affect
  333. Season play. If these conditions persist when you try to exit NBA-ED the 
  334. user is asked if they would like to fix them. If the errors are not fixed, 
  335. then only Exhibition games will work reliably. You may assign any valid 
  336. Image ID to any slot on the All-Star teams. The Image IDs of the fake
  337. players' slots are reset upon exit of NBA-ED.
  338.  
  339. For your information, the Image IDs for 'No Portrait Available'
  340. are 345 and 394. Using these IDs on league players WILL CRASH THE GAME
  341. IN SEASON PLAY MODE. You may assign these IDs for Exhibition play and
  342. for All-Star Teams with no problems, however.
  343.  
  344. *** BUGS:
  345.  
  346. The method of trading players used in NBA-ED (actually swapping data embedded
  347. in the .EXE file) is incompatible with the trading functions in the actual
  348. game (accessed from the 'Set Rosters' option on the 'Players' screen in the
  349. game). The trading functions in the game 'undo' any trades made using NBA-ED.
  350. There are two solutions to this:
  351.  
  352. 1. Use the in-game trading functions exclusively, never using the trading
  353. functions of NBA-ED. This means that players must stay with their original
  354. teams in the original NBA95.EXE, even if they have been moved among several
  355. different teams. For example, a player originally on Team A, is then traded
  356. to Team B using the in-game functions, is still on Team A in the NBA95.EXE
  357. file, and must be specified as such when using NBA-ED. This may get confusing
  358. to the user when using NBA-ED.
  359.  
  360. 2. Use the trading functions in NBA-ED exclusively, never using the in-game
  361. trading functions. To do this you will also need to delete the file
  362. ROSTERS.DAT located in the directory on your hard drive where you installed
  363. the game. Players that have been moved to different teams will actually be
  364. part of that team, permanently (or at least until you trade them again).
  365. It is a bit harder to compare players using NBA-ED, however.
  366.  
  367. *** CONTACTING THE AUTHOR
  368.  
  369. While the author has attempted to write a bug-free program (but then,
  370. don't we all??) something may have escaped him. Feel free to send him 
  371. any feedback, comments, criticisms, suggestions, beautiful women, cookies,
  372. or job offers (can you guess that I'm a student??). You may contact him at:
  373.  
  374. Jose de Leon
  375. School of Computer Science, Carleton University, Ottawa, Canada
  376. ug930009@omega.scs.carleton.ca
  377.  
  378. Happy Playing!
  379. Jose
  380.  
  381. *** LEGAL BITS
  382.  
  383. This program is being released free of charge, and cannot be distributed
  384. for profit. However to show your support, you may do the following: If
  385. you find this program useful, please take the time to voice your
  386. concerns/wishes/thanks about this game to EA by e-mailing EA at
  387. ElecArts@aol.com .
  388.  
  389. NBA Live '95 is a product of Electronic Arts, 1995.
  390.  
  391. EA Sports is a trademark of Electronic Arts, 1995.
  392.  
  393. The author, Jose de Leon, does not assume any responsibility for damage
  394. caused by use of this program.
  395.  
  396. ACKNOWLEDGEMENTS
  397.  
  398. EA Sports, for a great game! Thanks for the patch!
  399. Lutz van Hasselt, for his information on the player data format,
  400. name pointer editing, and the idea for the copy/trade functions.
  401. Bernd Schmidt, for BINPATCH and BINDIFF.
  402. Len Carr, for his team name validation algorithm from NBA.C.
  403. The book "Using C" from Que Press for the menuing routines.
  404. Jon Burchmore for his public domain text input routine.
  405. There are a lot of others I surely have missed (especially those
  406. 'NBA-ED boosters' out there!). Thanks all!
  407.  
  408. *** APPENDIX A - TEAM LIST
  409.  
  410. This is the list of team names that NBA-ED will accept as valid team names.
  411. When using the names, case does not matter:
  412.  
  413. Atlanta, Atl, Hawks
  414. Boston, Bos, Celtics
  415. Charlotte, Cha, Hornets
  416. Chicago, Chi, Bulls
  417. Cleveland, Cle, Cavaliers
  418. Dallas, Dal, Mavericks
  419. Denver, Den, Nuggets
  420. Detroit, Det, Pistons
  421. GoldenState, GS, Warriors
  422. Houston, Hou, Rockets
  423. Indiana, Ind, Pacers
  424. LosAngelesC, LAC, Clippers
  425. LosAngelesL, LAL, Lakers
  426. Miami, Mia, Heat
  427. Milwaukee, Mil, Bucks
  428. Minnesota, Min, Timberwolves
  429. NewJersey, NJ, Nets
  430. NewYork, NY, Knicks
  431. Orlando, Orl, Magic
  432. Philadelphia, Phi, 76ers
  433. Phoenix, Pho, Suns
  434. Portland, Por, TrailBlazers
  435. Sacramento, Sac, Kings
  436. SanAntonio, SA, Spurs
  437. Seattle, Sea, Supersonics
  438. Utah, Uta, Jazz
  439. Washington, Was, Bullets
  440. EAllStar, ASE, East
  441. WAllStar, ASW, West
  442. Rookie, FAKE, Newcomer
  443.  
  444. *** APPENDIX B: FACIAL FEATURES CODE VALUES
  445.  
  446. There are 39 special settings (40 if you count headless) for the facial
  447. features code. Some are arrived at by adding together several facial
  448. features (Thanks to Lutz van Hasselt for this info):
  449.  
  450. 0-31:
  451. First, choose one of the following:
  452. 0  bald
  453. 4  very short black hair with shaved sides and back (eg. Larry Johnson)
  454. 8  short black hair (like Ewing)
  455. 12 medium black hair (like Stockton)
  456. 16 few black hair for old people (like Drexler)
  457. 20 blond (like Bird)
  458. 24 brown (like Majerle)
  459. 28 same as 16
  460.  
  461. Then, take the number and add one of the following:
  462. 0  no beard
  463. 1  moustache (like Barkley)
  464. 2  beard (like Pippen)
  465. 3  beard with side whiskers (like Divac)
  466.  
  467. So, for example, for Pippen, choose 8 for hair and 2 for beard, so you get
  468. 10. (all beards and moustaches are automatically the same color as the hair.
  469. 8 is meant for black guys and 12 for whites, but you don't have to stick to 
  470. that.)
  471.  
  472. 32-39: These are special.
  473. 32 same as 16 plus glasses
  474. 33 same as 0 plus headband
  475. 34 same as 24 plus glasses
  476. 35 Weird. Could be anything from a Mohawk like Joe Strummer of the Clash
  477. to the Pope's cap (that red thing, only it's white in the game)
  478. 36 same as 34
  479. 37 This is looking really silly. Actually, I think it's supposed to be Kurt
  480. Rambis
  481. 38 same as 5
  482. 39 Dennis Rodman 
  483.  
  484. Any value larger than 39 gives you a player with no head at all.
  485.