Commit Graph

6672 Commits

Author SHA1 Message Date
Ryan Dwyer 0edd1b5131 Decompile aiShowCountdownTimer 2019-10-10 22:28:09 +10:00
Ryan Dwyer d259298a5b Decompile aiIfTimerGreaterThanRandom 2019-10-10 21:35:24 +10:00
Ryan Dwyer f755ba6398 Decompile aiIfTimerStopped 2019-10-10 21:25:52 +10:00
Ryan Dwyer 7cb3c711cf Decompile aiResumeTimer 2019-10-10 21:21:47 +10:00
Ryan Dwyer 9c4be63714 Decompile aiPauseTimer 2019-10-10 21:18:19 +10:00
Ryan Dwyer 27ebbb56da Decompile aiResetTimer 2019-10-10 21:14:32 +10:00
Ryan Dwyer 1ec19f9e5a Decompile aiRestartTimer 2019-10-10 21:12:13 +10:00
Ryan Dwyer 73085d6071 Decompile aiShowText 2019-10-10 21:05:46 +10:00
Ryan Dwyer 57de503a23 Decompile aiSetRoomToSearch 2019-10-10 19:04:04 +10:00
Ryan Dwyer 5a5057d0e9 Decompile aiSetChrSpecialDeathAnimation 2019-10-10 18:48:01 +10:00
Ryan Dwyer f2d79a3858 Decompile aiSetObjHealth 2019-10-10 18:16:12 +10:00
Ryan Dwyer 50f756cdd6 Decompile aiIfObjHealthLessThan 2019-10-10 18:11:25 +10:00
Ryan Dwyer 175056c31f Decompile eepromSet 2019-10-10 17:58:30 +10:00
Ryan Dwyer 42f867f3a6 Decompile eepromUnset 2019-10-10 17:55:17 +10:00
Ryan Dwyer 999ecab1b0 Decompile eepromGet 2019-10-10 17:52:18 +10:00
Ryan Dwyer 3e666b5d24 Decompile aiIfEepromUnset 2019-10-10 07:16:20 +10:00
Ryan Dwyer 1672220af3 Decompile aiIfEepromSet 2019-10-10 07:15:06 +10:00
Ryan Dwyer fe9e717790 Decompile aiEepromUnset 2019-10-10 07:12:05 +10:00
Ryan Dwyer e2dc36f10b Decompile aiEepromSet 2019-10-10 07:10:42 +10:00
Ryan Dwyer 2301fa6d90 Decompile chrUnsetFlags 2019-10-10 07:03:26 +10:00
Ryan Dwyer b648be4069 Decompile chrHasFlag 2019-10-09 22:43:37 +10:00
Ryan Dwyer 74f05b4455 Decompile chrSetFlags 2019-10-09 22:40:18 +10:00
Ryan Dwyer 185924d7d8 Decompile chrSetPadPreset 2019-10-09 22:35:13 +10:00
Ryan Dwyer 3eff23ce87 Decompile chrSetChrPreset 2019-10-09 22:32:49 +10:00
Ryan Dwyer 7135764329 Decompile chrSetPath 2019-10-09 22:27:59 +10:00
Ryan Dwyer bc2368a260 Decompile objFindByTagId 2019-10-09 22:21:32 +10:00
Ryan Dwyer 94bb08bcb7 Decompile tagFindById 2019-10-09 22:14:45 +10:00
Ryan Dwyer f4cc5e5684 Fix position struct 2019-10-09 20:11:43 +10:00
Ryan Dwyer 0d642c23f3 Decompile ai0051 2019-10-09 19:07:26 +10:00
Ryan Dwyer 521a9a1e7a Decompile ai0050 2019-10-09 19:05:20 +10:00
Ryan Dwyer c939d49ce5 Decompile dprint 2019-10-09 18:59:55 +10:00
Ryan Dwyer 409d9360d1 Decompile decrementByte 2019-10-09 18:50:56 +10:00
Ryan Dwyer d90f7f8831 Decompile incrementByte 2019-10-09 18:48:58 +10:00
Ryan Dwyer 7bc5b82238 Decompile func0f04a2b4 (chr wrapper around alarmIsActive) 2019-10-09 18:40:19 +10:00
Ryan Dwyer e43342eb7a Decompile alarmIsActive 2019-10-09 18:35:09 +10:00
Ryan Dwyer 2305f45b57 Decompile alarmDeactivate 2019-10-09 18:20:17 +10:00
Ryan Dwyer 36a6745d7f Decompile getDifficulty 2019-10-09 18:08:37 +10:00
Ryan Dwyer d884828a05 Decompile chraiGetCommandLength 2019-10-09 17:56:23 +10:00
Ryan Dwyer 747e914fe2 Create chrai.c and decompile chraiGoToLabel 2019-10-09 17:41:33 +10:00
Ryan Dwyer 797a88305f Identify textGet 2019-10-09 08:22:08 +10:00
Ryan Dwyer cc6f41be1b Identify ailistFindById 2019-10-09 08:21:52 +10:00
Ryan Dwyer 49b8425d89 Decompile padResolve 2019-10-08 23:38:45 +10:00
Ryan Dwyer 4052aa9a6d Decompile alarmActivate 2019-10-08 23:26:43 +10:00
Ryan Dwyer 7de6e2e969 Decompile ai004b 2019-10-08 22:27:49 +10:00
Ryan Dwyer d4036f9f41 Decompile ai004a 2019-10-08 22:26:43 +10:00
Ryan Dwyer 55a9a16711 Decompile ai0049 2019-10-08 22:24:23 +10:00
Ryan Dwyer 546f5744fe Decompile ai0047 2019-10-08 22:14:38 +10:00
Ryan Dwyer ec2560d4ba Decompile aiIfNeverBeenOnScreen 2019-10-08 22:11:55 +10:00
Ryan Dwyer 6ff82c129f Decompile ai0045 2019-10-08 22:08:13 +10:00
Ryan Dwyer dec761f9e7 Decompile aiIfShotAtCloseRange 2019-10-08 22:00:03 +10:00
Ryan Dwyer 5c58b483e3 Decompile ai0043 2019-10-08 21:58:10 +10:00
Ryan Dwyer 41b5e6faa0 Decompile aiIfInLoadedRoom 2019-10-08 21:57:15 +10:00
Ryan Dwyer f991d3bfa5 Document a coord in setup
Found it while attempting to decompile cmd 001a
2019-10-08 20:54:39 +10:00
Ryan Dwyer 4e68fb7479 Decompile aiIfSeesPlayer 2019-10-08 20:13:35 +10:00
Ryan Dwyer 8218307db7 Decompile aiIfSawDeath 2019-10-08 20:00:42 +10:00
Ryan Dwyer b6654970f1 Decompile ai003d 2019-10-08 19:57:02 +10:00
Ryan Dwyer 37c3d8f1e4 Decompile ai003c 2019-10-08 19:54:24 +10:00
Ryan Dwyer 9f9169ca28 Decompile aiIfAlarmInactive 2019-10-08 19:50:26 +10:00
Ryan Dwyer 72978c522d Rename aiIfAlarmActive to aiIfChrAlarmActive and decompile real aiIfAlarmActive 2019-10-08 19:49:10 +10:00
Ryan Dwyer 2bbbf77d0d Decompile aiIfRandomGreaterThan 2019-10-08 19:44:44 +10:00
Ryan Dwyer c56572e61f Decompile aiIfRandomLessThan 2019-10-08 19:43:15 +10:00
Ryan Dwyer 5fb064b42f Improve aiRandom 2019-10-08 18:56:27 +10:00
Ryan Dwyer 8cfba0597c Decompile aiRandom 2019-10-08 18:55:23 +10:00
Ryan Dwyer 6810d014f6 Resolve ld issues and link random 2019-10-08 18:46:05 +10:00
Ryan Dwyer abf368da9c Decompile aiIfPathStarted 2019-10-08 08:24:54 +10:00
Ryan Dwyer 17b9b82f0c Decompile aiIfAlarmActive 2019-10-08 08:12:52 +10:00
Ryan Dwyer c09f1fa4fb Decompile aiStartPath 2019-10-08 08:07:41 +10:00
Ryan Dwyer 2efc8d1115 Decompile aiSetPath 2019-10-08 08:06:03 +10:00
Ryan Dwyer 0ab3c6ee1d Decompile aiRunToPad 2019-10-08 08:04:01 +10:00
Ryan Dwyer 704e85c10f Decompile aiWalkToPad 2019-10-08 08:02:35 +10:00
Ryan Dwyer 2cbd8d1342 Decompile aiGoToPadPreset 2019-10-08 00:14:03 +10:00
Ryan Dwyer 6c39e3b490 Decompile aiJogToPad 2019-10-07 23:14:46 +10:00
Ryan Dwyer 85e60cc2e5 Rename ai0036 to aiRandom 2019-10-07 23:07:29 +10:00
Ryan Dwyer 40a47ee5c2 Decompile aiRunToChr 2019-10-07 23:06:28 +10:00
Ryan Dwyer 532b5fb688 Fix missed increment statement 2019-10-07 23:03:52 +10:00
Ryan Dwyer 16df150af0 Decompile ai0030 2019-10-07 23:03:03 +10:00
Ryan Dwyer 50f82ba0f6 Decompile aiGoToChr 2019-10-07 23:01:46 +10:00
Ryan Dwyer e71dad4412 Decompile ai002e 2019-10-07 22:55:22 +10:00
Ryan Dwyer 0d7a60d008 Decompile ai002d 2019-10-07 22:53:37 +10:00
Ryan Dwyer 5d372deb3e Decompile ai002c 2019-10-07 22:53:16 +10:00
Ryan Dwyer 1896343ee2 Decompile ai002b 2019-10-07 22:49:41 +10:00
Ryan Dwyer bdce16ce5e Decompile ai002a 2019-10-07 22:48:14 +10:00
Ryan Dwyer c7d14e2354 Decompile aiDeactivateAlarm 2019-10-07 22:45:06 +10:00
Ryan Dwyer 1a932821c2 Decompile aiActivateAlarm 2019-10-07 22:43:41 +10:00
Ryan Dwyer 19bfc1492e Decompile ai0027 2019-10-07 22:41:59 +10:00
Ryan Dwyer f716542462 Decompile aiRemoveChr 2019-10-07 22:38:14 +10:00
Ryan Dwyer 32c4b5905d Decompile aiFadeOut 2019-10-07 22:33:38 +10:00
Ryan Dwyer 967addefb6 Decompile aiSurrender 2019-10-07 22:32:28 +10:00
Ryan Dwyer 7055f11c77 Decompile ai001c 2019-10-07 22:30:09 +10:00
Ryan Dwyer 3a7006a553 Decompile aiConsiderGrenadeThrow 2019-10-07 22:24:34 +10:00
Ryan Dwyer a5de0fc679 Decompile aiFaceEntity 2019-10-07 21:51:23 +10:00
Ryan Dwyer bf431e027d Decompile aiAimAndFire2 2019-10-07 21:43:05 +10:00
Ryan Dwyer 7581015e0f Decompile ai00f1 2019-10-07 21:33:58 +10:00
Ryan Dwyer 63f6eaf7c6 Decompile ai00f0 2019-10-07 21:29:24 +10:00
Ryan Dwyer b56b7b0f1c Decompile ai01ba 2019-10-07 21:19:59 +10:00
Ryan Dwyer cf117ab036 Decompile aiKneelAndFire 2019-10-07 21:18:24 +10:00
Ryan Dwyer 5caebeffd8 Decompile aiAimAndFire1 2019-10-07 21:16:31 +10:00
Ryan Dwyer c86af0391f Decompile aiRollAndFire 2019-10-07 21:07:33 +10:00
Ryan Dwyer c34f8ff03e Decompile aiRunAndFire 2019-10-07 21:06:23 +10:00
Ryan Dwyer 89cebe7f22 Decompile aiWalkAndFire 2019-10-07 21:04:43 +10:00
Ryan Dwyer bf6c85b3f3 Split setup.c into smaller files 2019-10-07 19:25:37 +10:00
Ryan Dwyer f87c39fb42 Decompile aiRunSideways 2019-10-07 18:51:34 +10:00
Ryan Dwyer 858bfcd03b Decompile aiHopSideways 2019-10-07 18:49:38 +10:00
Ryan Dwyer 9389166211 Decompile aiStepSideways 2019-10-07 18:47:33 +10:00
Ryan Dwyer d5de6fd537 Decompile aiIfPlayerInSight 2019-10-07 18:43:53 +10:00
Ryan Dwyer 0bbe2f5efe Decompile aiIfChrUnloaded 2019-10-07 18:38:23 +10:00
Ryan Dwyer d000ee0ee0 Decompile aiIfDying 2019-10-07 18:29:15 +10:00
Ryan Dwyer 055cb7aa8b Decompile aiIfStopped 2019-10-07 18:02:32 +10:00
Ryan Dwyer 7929cd346f Decompile ai000e 2019-10-07 17:56:57 +10:00
Ryan Dwyer e8e0de100c Decompile ai000d 2019-10-07 17:56:07 +10:00
Ryan Dwyer 222324a046 Decompile aiIfIdle 2019-10-07 17:55:02 +10:00
Ryan Dwyer 8cc9fc069c Restructure files
* Create chraicommands.c
* Move include to src/include
* Use .o files next to each .c file
2019-10-07 17:50:26 +10:00
Ryan Dwyer 384e0a11f3 Decompile aiKneel 2019-10-07 08:15:50 +10:00
Ryan Dwyer 383402a8b1 Decompile aiStop 2019-10-07 08:11:24 +10:00
Ryan Dwyer b93ca7a9c3 Decompile aiReturn 2019-10-06 23:57:44 +10:00
Ryan Dwyer b03597fa46 Decompile aiSetPlayerDeadList 2019-10-06 23:26:15 +10:00
Ryan Dwyer 37de186ff3 Decompile aiSetDarkRoomList 2019-10-06 23:22:17 +10:00
Ryan Dwyer 0c384e6494 Decompile aiSetShootingAtMeList 2019-10-06 23:18:15 +10:00
Ryan Dwyer e909f2376f Decompile aiSetPunchDodgeList 2019-10-06 23:10:28 +10:00
Ryan Dwyer f5c6e46ebd WIP decompilation for aiSetShotList 2019-10-06 23:08:27 +10:00
Ryan Dwyer 16875a3d63 Decompile aiSetReturnList 2019-10-06 11:32:18 +10:00
Ryan Dwyer d1f7a94221 Decompile aiSetAilist 2019-10-06 10:14:15 +10:00
Ryan Dwyer 3cbaed1e7f Decompile aiEndList 2019-10-05 22:42:47 +10:00
Ryan Dwyer 980d3b6032 Decompile aiYield and add some structs including chrdata 2019-10-05 22:25:21 +10:00
Ryan Dwyer 505f1e8e36 Decompile aiGoToNext 2019-10-05 19:20:22 +10:00
Ryan Dwyer bfa3b794a7 Decompile aiGoToFirst 2019-10-05 19:12:54 +10:00
Ryan Dwyer 7abfa5655b Identify menu handler functions 2019-10-05 12:02:35 +10:00
Ryan Dwyer 1eaf843870 Remove duplicate glabels 2019-10-05 11:26:26 +10:00
Ryan Dwyer a365606fd1 Identify menu dialog functions 2019-10-05 11:21:11 +10:00
Ryan Dwyer ffd9247113 Rename AI commands 2019-10-05 10:02:11 +10:00
Ryan Dwyer 3ef569abfd Add aiLabel to setup's command_pointers array 2019-10-04 23:43:42 +10:00
Ryan Dwyer 4c1b603d15 Match aiLabel 2019-10-04 23:28:39 +10:00
Ryan Dwyer 8dbe3ae083 Add cmd tags 2019-10-04 20:24:56 +10:00
Ryan Dwyer 58d2c4705f Discover functions in game binary using setup references 2019-10-04 20:13:01 +10:00
Ryan Dwyer 9773523fb0 Discover strings in library binary 2019-10-04 19:11:13 +10:00
Ryan Dwyer 84bf256884 Discover strings in game binary 2019-10-04 18:36:17 +10:00
Ryan Dwyer 77cd742ed4 Assembly statements for main game code 2019-10-04 17:29:31 +10:00
Ryan Dwyer 114a3c6c75 Add boot.c 2019-10-02 08:23:06 +10:00
Ryan Dwyer c95707bef5 Link library with setup and match getCurrentStageId 2019-10-01 20:28:33 +10:00
Ryan Dwyer dfbcf962f0 Get matching library.c file 2019-09-29 15:18:36 +10:00
Ryan Dwyer 0994436231 Reorganise repository and rename globals to setup 2019-09-29 11:57:51 +10:00
Ryan Dwyer 66e581a77c Discover another table 2019-09-29 09:35:33 +10:00
Ryan Dwyer ed4e48168c Discover prop explosion types table 2019-09-29 08:52:13 +10:00
Ryan Dwyer f20360fb99 Discover another unknown structure 2019-09-29 08:30:45 +10:00
Ryan Dwyer 776fa6a6c0 Discover another structure 2019-09-28 17:20:31 +10:00
Ryan Dwyer 084b82be76 Discover some unknown pointer structutres 2019-09-28 17:05:43 +10:00
Ryan Dwyer 21587f7d38 Discover stagethinglists 2019-09-28 16:44:34 +10:00
Ryan Dwyer d79e48525c Discover menu structures 2019-09-28 15:37:10 +10:00
Ryan Dwyer e9c2525b0f Discover hoverprops 2019-09-25 00:07:31 +10:00
Ryan Dwyer 84ab9d29dc Discover sky structures 2019-09-24 20:55:24 +10:00
Ryan Dwyer 6c639da920 Discover inventory_menupos 2019-09-23 23:42:43 +10:00
Ryan Dwyer 99846b92a5 Improve types 2019-09-23 23:14:23 +10:00
Ryan Dwyer c034f62448 Rename field_0x17e to target 2019-09-23 22:23:31 +10:00
Ryan Dwyer 30e98a1629 Rename all commands containing the word 'group' 2019-09-23 21:19:59 +10:00
Ryan Dwyer 7a1863c3ef Discover orders field 2019-09-23 20:44:36 +10:00
Ryan Dwyer 29fde0d09c Rename group to squadron and add constants 2019-09-23 19:29:18 +10:00
Ryan Dwyer d71943050b Rename alliance to team and add constants for all values 2019-09-23 19:19:58 +10:00
Ryan Dwyer a00b6092f5 Rename var_a to morale 2019-09-23 18:15:49 +10:00
Ryan Dwyer 89fdc7311b Rename set_unknown_function to set_darkroom_function 2019-09-23 18:09:49 +10:00
Ryan Dwyer d33234ace3 Discover more tables in globals.c 2019-09-23 18:04:30 +10:00
Ryan Dwyer 6e0806bbf7 Improve quip related commands and data 2019-09-23 18:04:08 +10:00
Ryan Dwyer 02b7c43738 Discover mpteamcolors and other unknown tables 2019-09-23 00:03:03 +10:00
Ryan Dwyer 2a1654069d Discover mppresets, mpsimulantcommands and challenges 2019-09-22 23:18:03 +10:00
Ryan Dwyer 7db82fe44a Discover more stage related tables 2019-09-22 22:29:45 +10:00
Ryan Dwyer dcfa7e32cd Discover local pointers in globals.c 2019-09-22 20:46:39 +10:00
Ryan Dwyer 1b552e8ab6 Rename inventory symbols to be more meaningful 2019-09-22 18:42:58 +10:00
Ryan Dwyer 902edeca66 Flesh out globals.c and make it match 2019-09-22 16:03:20 +10:00
Ryan Dwyer 893a56ac50 Rename commands 004d, 004f, 0050 and define 0051 2019-09-18 22:27:14 +10:00
Ryan Dwyer f27cf33efb Start decompiling rarezip binary 2019-09-18 22:27:03 +10:00
Ryan Dwyer deea77aed1 Don't combine common lang _str files
Turns out they're not common in other versions of the game.
2019-09-18 22:24:56 +10:00
Ryan Dwyer 0de8b2ab59 Decompile language files 2019-09-07 22:07:13 +10:00
Ryan Dwyer c9dec5deac Replace assembly implementation with C implementation 2019-09-07 16:12:32 +10:00