mirror of
https://github.com/open-goal/jak-project
synced 2026-07-03 13:00:50 -04:00
9351bf782e
And everything else needed for them! A couple functions are bad currently. - fixes #1929 - untested on linux - fixes #1924 - now you need to type `,` before a lambda you want to put in a pair. - fix debugger symbol table in jak 2 - made the decompiler output `(meters 2)` instead of `(meters 2.0)` - fixed a bug with the bitfield enum special -1 case - made bad game text decomp not exit the decompiler - added `editable-player` and `script`
462 lines
14 KiB
Common Lisp
462 lines
14 KiB
Common Lisp
;;-*-Lisp-*-
|
|
(in-package goal)
|
|
|
|
;; name: game-task-h.gc
|
|
;; name in dgo: game-task-h
|
|
;; dgos: ENGINE, GAME
|
|
|
|
;; +++game-task
|
|
(defenum game-task
|
|
:type uint8
|
|
:bitfield #f
|
|
(unknown -1)
|
|
(none 0)
|
|
(complete 1)
|
|
(dummy0 2)
|
|
(eco-blue-button 3)
|
|
(eco-yellow-button 4)
|
|
(eco-red-button 5)
|
|
(fortress-escape 6)
|
|
(city-help-kid 7)
|
|
(city-vehicle-training 8)
|
|
(ruins-tower 9)
|
|
(atoll-water 10)
|
|
(fortress-dump 11)
|
|
(city-krew-delivery 12)
|
|
(city-red-gun-training 13)
|
|
(atoll-sig 14)
|
|
(sewer-enemy 15)
|
|
(strip-rescue 16)
|
|
(atoll-battle 17)
|
|
(mountain-lens 18)
|
|
(mountain-gear 19)
|
|
(mountain-shard 20)
|
|
(mountain-collection 21)
|
|
(city-keira-delivery 22)
|
|
(stadium-board1 23)
|
|
(city-krew-collection 24)
|
|
(city-yellow-gun-training 25)
|
|
(drill-eggs 26)
|
|
(city-power 27)
|
|
(palace-cable 28)
|
|
(palace-boss 29)
|
|
(city-shuttle 30)
|
|
(ruins-enemy 31)
|
|
(city-blue-gun-training 32)
|
|
(forest-scouts 33)
|
|
(city-escort-kid 34)
|
|
(dig-knock-down 35)
|
|
(strip-grenade 36)
|
|
(drill-ship 37)
|
|
(city-port-run 38)
|
|
(city-meet-brutter 39)
|
|
(sewer-board 40)
|
|
(forest-hunt 41)
|
|
(city-intercept-tanker 42)
|
|
(stadium-race-class3 43)
|
|
(city-protect-water-slums 44)
|
|
(dig-find-totem 45)
|
|
(city-destroy-guard-vehicles 46)
|
|
(city-play-onin-game 47)
|
|
(canyon-insert-items 48)
|
|
(tomb-poles 49)
|
|
(tomb-water 50)
|
|
(tomb-boss 51)
|
|
(fortress-save-friends 52)
|
|
(sewer-escort 53)
|
|
(city-dark-gun-training 54)
|
|
(stadium-race-class2 55)
|
|
(city-stop-bomb-bots 56)
|
|
(city-errol-challenge 57)
|
|
(strip-drop 58)
|
|
(ruins-mech 59)
|
|
(forest-protect 60)
|
|
(drill-mech 61)
|
|
(city-save-lurkers 62)
|
|
(stadium-race-class 63)
|
|
(palace-sneak-in 64)
|
|
(castle-break-in 65)
|
|
(castle-boss 66)
|
|
(city-whack 67)
|
|
(under-mech 68)
|
|
(under-sig 69)
|
|
(city-defend-stadium 70)
|
|
(consite-find-baron 71)
|
|
(nest-get-to-gun 72)
|
|
(nest-enter 73)
|
|
(nest-boss 74)
|
|
(city-win 75)
|
|
(city-oracle 76)
|
|
(city-burning-bush-ring-1 77)
|
|
(city-burning-bush-get-to-1 78)
|
|
(city-burning-bush-get-to-2 79)
|
|
(city-burning-bush-get-to-3 80)
|
|
(city-burning-bush-get-to-4 81)
|
|
(city-burning-bush-collection-1 82)
|
|
(city-burning-bush-racepoint-1 83)
|
|
(city-burning-bush-ring-2 84)
|
|
(city-burning-bush-get-to-5 85)
|
|
(city-burning-bush-get-to-6 86)
|
|
(city-burning-bush-shuttle-1 87)
|
|
(city-burning-bush-get-to-7 88)
|
|
(city-burning-bush-get-to-8 89)
|
|
(city-burning-bush-get-to-9 90)
|
|
(city-burning-bush-collection-2 91)
|
|
(city-burning-bush-get-to-10 92)
|
|
(city-burning-bush-get-to-11 93)
|
|
(city-burning-bush-ring-3 94)
|
|
(city-burning-bush-get-to-12 95)
|
|
(city-burning-bush-bombbot-1 96)
|
|
(city-burning-bush-get-to-13 97)
|
|
(city-burning-bush-get-to-14 98)
|
|
(city-burning-bush-get-to-15 99)
|
|
(city-burning-bush-collection-3 100)
|
|
(city-burning-bush-race-errol 101)
|
|
(city-burning-bush-race-port 102)
|
|
(stadium-burning-bush-race-board 103)
|
|
(stadium-burning-bush-race-class3 104)
|
|
(stadium-burning-bush-race-class2 105)
|
|
(stadium-burning-bush-race-class1 106)
|
|
(stadium-burning-bush-race-class3-r 107)
|
|
(stadium-burning-bush-race-class2-r 108)
|
|
(stadium-burning-bush-race-class1-r 109)
|
|
(max 110))
|
|
;; ---game-task
|
|
|
|
;; +++game-task-node
|
|
(defenum game-task-node
|
|
:type uint16
|
|
:bitfield #f
|
|
(none)
|
|
(fortress-escape-start)
|
|
(fortress-escape-introduction)
|
|
(fortress-escape-resolution)
|
|
(city-help-kid-introduction)
|
|
(city-help-kid-battle)
|
|
(city-help-kid-resolution)
|
|
(city-vehicle-training-map)
|
|
(city-vehicle-training-hover-zone-1)
|
|
(city-vehicle-training-hover-zone-2)
|
|
(city-vehicle-training-resolution)
|
|
(ruins-tower-introduction)
|
|
(ruins-tower-resolution)
|
|
(ruins-tower-exit)
|
|
(atoll-water-introduction)
|
|
(atoll-water-find)
|
|
(atoll-water-valve)
|
|
(atoll-water-resolution)
|
|
(atoll-water-exit)
|
|
(fortress-dump-introduction)
|
|
(fortress-dump-deal)
|
|
(fortress-dump-missile)
|
|
(fortress-dump-resolution)
|
|
(city-krew-delivery-introduction)
|
|
(city-krew-delivery-delivery)
|
|
(city-krew-delivery-resolution)
|
|
(city-red-gun-training-introduction)
|
|
(city-red-gun-training-try-once)
|
|
(city-red-gun-training-resolution)
|
|
(city-red-gun-training-bronze)
|
|
(city-red-gun-training-silver)
|
|
(city-red-gun-training-gold)
|
|
(atoll-sig-introduction)
|
|
(atoll-sig-sig-introduction)
|
|
(atoll-sig-tank)
|
|
(atoll-sig-sniper-a)
|
|
(atoll-sig-sniper-b)
|
|
(atoll-sig-sniper-c)
|
|
(atoll-sig-sniper-d)
|
|
(atoll-sig-resolution)
|
|
(sewer-enemy-introduction)
|
|
(sewer-enemy-blow-up-turrets)
|
|
(sewer-enemy-talk-to-krew)
|
|
(sewer-enemy-resolution)
|
|
(strip-rescue-introduction)
|
|
(strip-rescue-battle)
|
|
(strip-rescue-resolution)
|
|
(atoll-battle-introduction)
|
|
(atoll-battle-rescue)
|
|
(atoll-battle-battle)
|
|
(atoll-battle-resolution)
|
|
(mountain-lens-introduction)
|
|
(mountain-lens-started)
|
|
(mountain-lens-intermediate)
|
|
(mountain-lens-resolution)
|
|
(mountain-gear-find)
|
|
(mountain-gear-resolution)
|
|
(mountain-shard-dice)
|
|
(mountain-shard-resolution)
|
|
(mountain-collection-resolution)
|
|
(city-keira-delivery-introduction)
|
|
(city-keira-delivery-delivery)
|
|
(city-keira-delivery-resolution)
|
|
(stadium-board1-introduction)
|
|
(stadium-board1-board)
|
|
(stadium-board1-training)
|
|
(stadium-board1-training-judge)
|
|
(stadium-board1-done)
|
|
(stadium-board1-resolution)
|
|
(stadium-board1-bronze)
|
|
(stadium-board1-silver)
|
|
(stadium-board1-gold)
|
|
(city-krew-collection-introduction)
|
|
(city-krew-collection-collection)
|
|
(city-krew-collection-resolution)
|
|
(city-yellow-gun-training-introduction)
|
|
(city-yellow-gun-training-resolution)
|
|
(city-yellow-gun-training-bronze)
|
|
(city-yellow-gun-training-silver)
|
|
(city-yellow-gun-training-gold)
|
|
(drill-eggs-introduction)
|
|
(drill-eggs-eggs-0)
|
|
(drill-eggs-eggs-1)
|
|
(drill-eggs-eggs-2)
|
|
(drill-eggs-resolution)
|
|
(city-power-introduction)
|
|
(city-power-vinroom)
|
|
(city-power-resolution)
|
|
(city-power-post-win)
|
|
(palace-cable-introduction)
|
|
(palace-cable-resolution)
|
|
(palace-boss-introduction)
|
|
(palace-boss-battle)
|
|
(palace-boss-resolution)
|
|
(city-shuttle-introduction)
|
|
(city-shuttle-shuttle)
|
|
(city-shuttle-resolution)
|
|
(ruins-enemy-introduction)
|
|
(ruins-enemy-resolution)
|
|
(ruins-enemy-exit)
|
|
(city-blue-gun-training-bronze)
|
|
(city-blue-gun-training-silver)
|
|
(city-blue-gun-training-gold)
|
|
(forest-scouts-pre-intro)
|
|
(forest-scouts-introduction)
|
|
(forest-scouts-voicebox)
|
|
(forest-scouts-get-board)
|
|
(forest-scouts-pegasus)
|
|
(forest-scouts-resolution)
|
|
(city-escort-kid-pre-intro)
|
|
(city-escort-kid-introduction)
|
|
(city-escort-kid-resolution)
|
|
(dig-knock-down-introduction)
|
|
(dig-knock-down-resolution)
|
|
(strip-grenade-introduction)
|
|
(strip-grenade-explode)
|
|
(strip-grenade-resolution)
|
|
(drill-ship-introduction)
|
|
(drill-ship-resolution)
|
|
(city-port-run-introduction)
|
|
(city-port-run-resolution)
|
|
(city-port-run-post-win)
|
|
(city-meet-brutter-pre-intro)
|
|
(city-meet-brutter-introduction)
|
|
(city-meet-brutter-meet-brutter)
|
|
(city-meet-brutter-resolution)
|
|
(sewer-board-introduction)
|
|
(sewer-board-drain)
|
|
(sewer-board-resolution)
|
|
(forest-hunt-introduction)
|
|
(forest-hunt-resolution)
|
|
(city-intercept-tanker-roof-explode)
|
|
(city-intercept-tanker-introduction)
|
|
(city-intercept-tanker-battle)
|
|
(city-intercept-tanker-resolution)
|
|
(stadium-race-class3-introduction)
|
|
(stadium-race-class3-race)
|
|
(stadium-race-class3-resolution)
|
|
(stadium-race-class3-select-bush)
|
|
(city-protect-water-slums-introduction)
|
|
(city-protect-water-slums-get-seal)
|
|
(city-protect-water-slums-fight)
|
|
(city-protect-water-slums-resolution)
|
|
(dig-find-totem-introduction)
|
|
(dig-find-totem-raise-log)
|
|
(dig-find-totem-resolution)
|
|
(city-destroy-guard-vehicles-introduction)
|
|
(city-destroy-guard-vehicles-destroy)
|
|
(city-destroy-guard-vehicles-resolution)
|
|
(city-play-onin-game-introduction)
|
|
(city-play-onin-game-wait)
|
|
(city-play-onin-game-resolution)
|
|
(city-play-onin-game-skill)
|
|
(city-play-onin-game-post-game)
|
|
(canyon-insert-items-introduction)
|
|
(canyon-insert-items-door)
|
|
(canyon-insert-items-gear)
|
|
(canyon-insert-items-shard)
|
|
(canyon-insert-items-resolution)
|
|
(tomb-poles-introduction)
|
|
(tomb-poles-block)
|
|
(tomb-poles-poles)
|
|
(tomb-poles-boulder)
|
|
(tomb-poles-poles2)
|
|
(tomb-poles-resolution)
|
|
(tomb-water-vibe)
|
|
(tomb-water-resolution)
|
|
(tomb-boss-torches)
|
|
(tomb-boss-door)
|
|
(tomb-boss-introduction)
|
|
(tomb-boss-resolution)
|
|
(fortress-save-friends-introduction)
|
|
(fortress-save-friends-resolution)
|
|
(sewer-escort-introduction)
|
|
(sewer-escort-explode-wall1)
|
|
(sewer-escort-explode-wall2)
|
|
(sewer-escort-resolution)
|
|
(sewer-escort-get-gun)
|
|
(city-dark-gun-training-bronze)
|
|
(city-dark-gun-training-silver)
|
|
(city-dark-gun-training-gold)
|
|
(stadium-race-class2-introduction)
|
|
(stadium-race-class2-race)
|
|
(stadium-race-class2-resolution)
|
|
(stadium-race-class2-select-bush)
|
|
(city-stop-bomb-bots-introduction)
|
|
(city-stop-bomb-bots-destroy)
|
|
(city-stop-bomb-bots-resolution)
|
|
(city-errol-challenge-introduction)
|
|
(city-errol-challenge-race)
|
|
(city-errol-challenge-resolution)
|
|
(strip-drop-introduction)
|
|
(strip-drop-resolution)
|
|
(ruins-mech-introduction)
|
|
(ruins-mech-break-wall-1)
|
|
(ruins-mech-move-block-1)
|
|
(ruins-mech-throw-block-1)
|
|
(ruins-mech-resolution)
|
|
(forest-protect-introduction)
|
|
(forest-protect-meeting)
|
|
(forest-protect-resolution)
|
|
(forest-protect-post-game)
|
|
(drill-mech-introduction)
|
|
(drill-mech-started-smashing)
|
|
(drill-mech-smash-consoles)
|
|
(drill-mech-resolution)
|
|
(city-save-lurkers-introduction)
|
|
(city-save-lurkers-save-lurkers)
|
|
(city-save-lurkers-resolution)
|
|
(stadium-race-class1-introduction)
|
|
(stadium-race-class1-race)
|
|
(stadium-race-class1-resolution)
|
|
(stadium-race-class1-select-bush)
|
|
(palace-sneak-in-introduction)
|
|
(palace-sneak-in-meeting)
|
|
(palace-sneak-in-palace-3)
|
|
(palace-sneak-in-door)
|
|
(palace-sneak-in-resolution)
|
|
(castle-break-in-introduction)
|
|
(castle-break-in-castle-1)
|
|
(castle-break-in-resolution)
|
|
(castle-boss-introduction)
|
|
(castle-boss-resolution)
|
|
(city-whack-pre-intro)
|
|
(city-whack-introduction)
|
|
(city-whack-wait)
|
|
(city-whack-resolution)
|
|
(city-whack-post-game)
|
|
(under-mech-introduction)
|
|
(under-mech-resolution)
|
|
(under-sig-introduction)
|
|
(under-sig-centipede1-start)
|
|
(under-sig-centipede1-end)
|
|
(under-sig-centipede2-start)
|
|
(under-sig-resolution)
|
|
(city-defend-stadium-pre-intro)
|
|
(city-defend-stadium-introduction)
|
|
(city-defend-stadium-resolution)
|
|
(consite-find-baron-introduction)
|
|
(consite-find-baron-resolution)
|
|
(nest-get-to-gun-introduction)
|
|
(nest-get-to-gun-resolution)
|
|
(nest-enter-introduction)
|
|
(nest-enter-resolution)
|
|
(nest-boss-introduction)
|
|
(nest-boss-resolution)
|
|
(city-win-pre-intro)
|
|
(city-win-introduction)
|
|
(city-win-resolution)
|
|
(city-oracle-introduction)
|
|
(city-oracle-level0)
|
|
(city-oracle-level0-training)
|
|
(city-oracle-level1)
|
|
(city-oracle-level1-training)
|
|
(city-oracle-level2)
|
|
(city-oracle-level2-training)
|
|
(city-oracle-level3)
|
|
(city-oracle-level3-training)
|
|
(city-burning-bush-ring-1-introduction)
|
|
(city-burning-bush-ring-1-resolution)
|
|
(city-burning-bush-get-to-1-introduction)
|
|
(city-burning-bush-get-to-1-resolution)
|
|
(city-burning-bush-get-to-2-introduction)
|
|
(city-burning-bush-get-to-2-resolution)
|
|
(city-burning-bush-get-to-3-introduction)
|
|
(city-burning-bush-get-to-3-resolution)
|
|
(city-burning-bush-get-to-4-introduction)
|
|
(city-burning-bush-get-to-4-resolution)
|
|
(city-burning-bush-collection-1-introduction)
|
|
(city-burning-bush-collection-1-resolution)
|
|
(city-burning-bush-racepoint-1-introduction)
|
|
(city-burning-bush-racepoint-1-resolution)
|
|
(city-burning-bush-ring-2-introduction)
|
|
(city-burning-bush-ring-2-resolution)
|
|
(city-burning-bush-get-to-5-introduction)
|
|
(city-burning-bush-get-to-5-resolution)
|
|
(city-burning-bush-get-to-6-introduction)
|
|
(city-burning-bush-get-to-6-resolution)
|
|
(city-burning-bush-shuttle-1-introduction)
|
|
(city-burning-bush-shuttle-1-resolution)
|
|
(city-burning-bush-get-to-7-introduction)
|
|
(city-burning-bush-get-to-7-resolution)
|
|
(city-burning-bush-get-to-8-introduction)
|
|
(city-burning-bush-get-to-8-resolution)
|
|
(city-burning-bush-get-to-9-introduction)
|
|
(city-burning-bush-get-to-9-resolution)
|
|
(city-burning-bush-collection-2-introduction)
|
|
(city-burning-bush-collection-2-resolution)
|
|
(city-burning-bush-get-to-10-introduction)
|
|
(city-burning-bush-get-to-10-resolution)
|
|
(city-burning-bush-get-to-11-introduction)
|
|
(city-burning-bush-get-to-11-resolution)
|
|
(city-burning-bush-ring-3-introduction)
|
|
(city-burning-bush-ring-3-resolution)
|
|
(city-burning-bush-get-to-12-introduction)
|
|
(city-burning-bush-get-to-12-resolution)
|
|
(city-burning-bush-bombbot-1-introduction)
|
|
(city-burning-bush-bombbot-1-resolution)
|
|
(city-burning-bush-get-to-13-introduction)
|
|
(city-burning-bush-get-to-13-resolution)
|
|
(city-burning-bush-get-to-14-introduction)
|
|
(city-burning-bush-get-to-14-resolution)
|
|
(city-burning-bush-get-to-15-introduction)
|
|
(city-burning-bush-get-to-15-resolution)
|
|
(city-burning-bush-collection-3-introduction)
|
|
(city-burning-bush-collection-3-resolution)
|
|
(city-burning-bush-race-errol-introduction)
|
|
(city-burning-bush-race-errol-resolution)
|
|
(city-burning-bush-race-port-introduction)
|
|
(city-burning-bush-race-port-resolution)
|
|
(stadium-burning-bush-race-board-introduction)
|
|
(stadium-burning-bush-race-board-resolution)
|
|
(stadium-burning-bush-race-class3-introduction)
|
|
(stadium-burning-bush-race-class3-resolution)
|
|
(stadium-burning-bush-race-class2-introduction)
|
|
(stadium-burning-bush-race-class2-resolution)
|
|
(stadium-burning-bush-race-class1-introduction)
|
|
(stadium-burning-bush-race-class1-resolution)
|
|
(stadium-burning-bush-race-class3-r-introduction)
|
|
(stadium-burning-bush-race-class3-r-resolution)
|
|
(stadium-burning-bush-race-class2-r-introduction)
|
|
(stadium-burning-bush-race-class2-r-resolution)
|
|
(stadium-burning-bush-race-class1-r-introduction)
|
|
(stadium-burning-bush-race-class1-r-resolution)
|
|
)
|
|
;; ---game-task-node
|
|
|
|
;; NOTE - for mood-funcs
|
|
(define-extern task-node-closed? (function game-task-node symbol))
|
|
|
|
;; DECOMP BEGINS
|
|
|