prep work

This commit is contained in:
ManDude
2022-08-25 13:36:31 +01:00
parent 7443520e88
commit e730844268
6 changed files with 2909 additions and 104 deletions
+1
View File
@@ -8,6 +8,7 @@
(file "game/assets/jak1/subtitle/game_subtitle_en-uk.gd")
(file "game/assets/jak1/subtitle/game_subtitle_de.gd")
(file "game/assets/jak1/subtitle/game_subtitle_es.gd")
(file "game/assets/jak1/subtitle/game_subtitle_pt.gd")
)
+1
View File
@@ -10,6 +10,7 @@
(file "game/assets/jak1/text/game_text_en.gs")
(file "game/assets/jak1/text/game_text_de.gs")
(file "game/assets/jak1/text/game_text_ja.gs")
(file "game/assets/jak1/text/game_text_pt.gs")
)
File diff suppressed because it is too large Load Diff
+194
View File
@@ -0,0 +1,194 @@
(group-name "common")
(language-id 0 6) ;; this file is for both english and uk-english
(text-version jak1-v2)
;; -----------------
;; memcard overrides lol
(#x0138 "PLEASE DO NOT REMOVE OR INSERT ANY PERIPHERALS, TURN OFF YOUR SYSTEM OR SHUT DOWN THE GAME")
(#x0161 "WHILE THIS ICON IS ON SCREEN, DO NOT REMOVE OR INSERT ANY PERIPHERALS, TURN OFF YOUR SYSTEM OR SHUT DOWN THE GAME")
;; -----------------
;; progress menu (insanity)
(#x1000 "CAMERA OPTIONS")
(#x1001 "NORMAL")
(#x1002 "INVERTED")
(#x1003 "1ST-PERSON HORIZONTAL CAMERA")
(#x1004 "1ST-PERSON VERTICAL CAMERA")
(#x1005 "3RD-PERSON HORIZONTAL CAMERA")
(#x1006 "3RD-PERSON VERTICAL CAMERA")
(#x1007 "RESTORE DEFAULTS")
(#x100c "AUTO-SAVE DISABLED")
(#x100d "ARE YOU SURE YOU WANT TO DISABLE AUTO-SAVE?")
(#x100e "DISABLE AUTO-SAVE")
(#x100f "MISCELLANEOUS")
(#x1010 "ACCESSIBILITY")
(#x1011 "PRECURSOR ORB GLOW")
(#x1020 "PS2 OPTIONS")
(#x1021 "PS2 LOAD SPEED")
(#x1022 "PARTICLE CULLING")
(#x1023 "MUSIC FADE-OUT")
(#x1024 "MUSIC FADE-IN")
(#x1025 "ACTOR CULLING")
(#x1026 "BACKGROUND CULLING")
(#x1027 "FORCE ENVIRONMENT MAPPING")
(#x1030 "DISCORD RICH-PRESENCE")
(#x1031 "DISPLAY MODE")
(#x1032 "WINDOWED")
(#x1033 "BORDERLESS")
(#x1034 "FULLSCREEN")
(#x1035 "GAME RESOLUTION")
(#x1036 "~D X ~D")
(#x1037 "PS2 ASPECT RATIO")
(#x1038 "WHEN PS2 ASPECT RATIO IS ENABLED, ONLY 4X3 AND 16X9 ASPECT RATIO CAN BE SELECTED. CONTINUE?")
(#x1039 "ASPECT RATIO (PS2)")
(#x103a "FIT TO SCREEN")
(#x103b "V-SYNC")
(#x103c "4X3 (PS2)")
(#x103d "16X9 (PS2)")
(#x103e "~DX~D")
(#x103f "PRESS <PAD_SQUARE> TO TOGGLE SUBTITLES")
(#x1040 "SUBTITLES ENABLED")
(#x1041 "SUBTITLES DISABLED")
(#x1042 "TEXT LANGUAGE")
(#x1043 "DISPLAY")
(#x1044 "DISPLAY ~D")
(#x1050 "MSAA")
(#x1051 "~DX")
(#x1052 "2X")
(#x1053 "4X")
(#x1054 "8X")
(#x1055 "16X")
(#x1060 "FRAME RATE (EXPERIMENTAL)")
(#x1061 "60")
(#x1062 "100")
(#x1063 "150")
(#x1070 "LEVEL OF DETAIL (BACKGROUND)")
(#x1071 "LEVEL OF DETAIL (FOREGROUND)")
(#x1072 "MAXIMUM")
(#x1073 "HIGH")
(#x1074 "MEDIUM")
(#x1075 "LOW")
(#x1076 "MINIMUM")
(#x1077 "PS2")
(#x1078 "SUBTITLES")
(#x1079 "HINT SUBTITLES")
(#x107a "SUBTITLE LANGUAGE")
(#x107b "SHOW SPEAKER IN SUBTITLE")
(#x107c "ALWAYS")
(#x107d "NEVER")
(#x107e "OFF-SCREEN")
(#x107f "HINT LOG")
(#x1080 "CHEATS")
(#x1081 "SECRETS")
(#x1082 "SELECT TRACK")
(#x1083 "SELECT FLAVOR")
(#x1084 "FINAL BOSS")
(#x1085 "CREDITS")
(#x1086 "?????")
(#x1087 "KLAWW")
(#x1088 "FISHING MINI-GAME")
(#x1089 "CHALLENGE THEME")
(#x1090 "INFINITE BLUE ECO")
(#x1091 "INFINITE RED ECO")
(#x1092 "INFINITE GREEN ECO")
(#x1093 "INFINITE YELLOW ECO")
(#x1094 "ALTERNATE DAXTER")
(#x1095 "INVINCIBILITY")
(#x1096 "ALL MUSIC TRACKS")
(#x1097 "REAL TIME OF DAY")
(#x1098 "REACH 100% COMPLETION")
(#x1099 "BEAT THE GAME")
(#x109a "BIG HEAD JAK")
(#x109b "SMALL HEAD JAK")
(#x109c "BIG FIST JAK")
(#x109d "BIG HEAD CHARACTERS")
(#x109e "NO TEXTURES MODE")
(#x109f "MIRRORED WORLD")
(#x10a0 "HUGE HEAD JAK")
(#x10c0 "MUSIC PLAYER")
(#x10c1 "SCENE PLAYER")
(#x10c2 "PLAY CREDITS")
(#x10c3 "SCRAPBOOK")
(#x10d0 "DEFAULT")
(#x10d1 "UNUSED")
(#x10d2 "SAGE")
(#x10d3 "SAGE'S HUT")
(#x10d4 "BIRDWATCHER")
(#x10d5 "FARMER")
(#x10d6 "KEIRA")
(#x10d7 "MAYOR")
(#x10d8 "SCULPTOR")
(#x10d9 "JAK'S UNCLE")
(#x10da "DOCK")
(#x10db "FORBIDDEN TEMPLE EXIT")
(#x10dc "LURKER MACHINE")
(#x10dd "TOP OF THE TOWER")
(#x10de "BLUE VENT SWITCH")
(#x10df "UNUSED")
(#x10e0 "SENTINELS")
(#x10e1 "LURKER CANNON")
(#x10e2 "GROTTO")
(#x10e3 "UNUSED 1")
(#x10e4 "LURKER BOAT")
(#x10e5 "UNUSED 2")
(#x10e6 "ZOOMER")
(#x10e7 "FLUT FLUT")
(#x10e8 "UNUSED")
(#x10e9 "WARRIOR")
(#x10ea "GEOLOGIST")
(#x10eb "GAMBLER")
(#x10ec "LEVITATOR MACHINE")
(#x10ed "UNUSED 1")
(#x10ee "LAUNCHER TRAPS")
(#x10ef "UNUSED 2")
(#x10f0 "DEAD MAN'S GORGE")
(#x10f1 "MIDDLE OF THE PASS")
(#x10f2 "END OF THE PASS")
(#x10f3 "TO SPIDER CAVE")
(#x10f4 "TO SNOWY MOUNTAIN")
(#x10f5 "MINERS")
(#x10f6 "ROBOT CAVE SCAFFOLDING")
(#x10f7 "PRECURSOR ROBOT TOP")
(#x10f8 "MAIN CAVE")
(#x10f9 "DARK CAVE")
(#x10fa "UNUSED")
(#x10fb "HIDDEN CAVE")
(#x10fc "LURKER FORT")
(#x10fd "SNOWBALLS")
(#x10fe "MIDDLE OF THE TUBE")
(#x10ff "END OF THE TUBE")
(#x1100 "YELLOW SAGE")
(#x1101 "RED SAGE")
(#x1102 "BLUE SAGE")
(#x1103 "CITADEL HUB")
(#x1104 "MIDDLE OF THE BOSS")
(#x1105 "END OF THE BOSS")
(#x1106 "FLAVOR 1")
(#x1107 "FLAVOR 2")
(#x1110 "ENGLISH (UK)")
(#x1111 "PORTUGUÊS")
(#x1112 "PORTUGUÊS (BRASIL)")
(#x1113 "SUOMI")
(#x1114 "SVENSKA")
(#x1115 "DANSK")
(#x1116 "NORSK")
(#x1500 "SPEEDRUNNER MODE")
+4
View File
@@ -672,6 +672,10 @@
`(the int (the float ,a))
)
(defmacro binteger->int (a)
"forced cast of a binteger to an int"
`(/ (the-as int ,a) 8))
;;;;;;;;;;;;;;;;;;;;;;;;;;;
;; Bit Macros
;;;;;;;;;;;;;;;;;;;;;;;;;;;
+61 -104
View File
@@ -4213,10 +4213,10 @@
(defmacro dm-lambda-boolean-flag (val)
"helper macro for making boolean buttons that don't just access symbols directly"
`(lambda (arg (msg debug-menu-msg))
(if (= msg (debug-menu-msg press))
(not! ,val)
)
,val)
(if (= msg (debug-menu-msg press))
(not! ,val)
)
,val)
)
(defmacro dm-lambda-int-var (val)
@@ -4531,6 +4531,27 @@
)
)
(defmacro dm-lambda-cheat-flag (cheat)
"helper macro for making flag buttons to toggle pc cheats"
`(lambda (arg (msg debug-menu-msg))
(when (= msg (debug-menu-msg press))
(pc-cheat-toggle-and-tune (-> *pc-settings* cheats) ,cheat)
)
(pc-cheats? (-> *pc-settings* cheats) ,cheat))
)
(defun dm-set-fps-pick-func ((bfps binteger) (msg debug-menu-msg))
(let ((fps (binteger->int bfps)))
(when (= msg (debug-menu-msg press))
(set-frame-rate! *pc-settings* fps))
(= (-> *pc-settings* target-fps) fps)))
(defun dm-set-msaa-pick-func ((bsmp binteger) (msg debug-menu-msg))
(let ((smp (binteger->int bsmp)))
(when (= msg (debug-menu-msg press))
(set! (-> *pc-settings* gfx-msaa) smp))
(= (-> *pc-settings* gfx-msaa) smp)))
(when (-> *debug-menu-context* root-menu)
(debug-menu-append-item (-> *debug-menu-context* root-menu) (debug-menu-make-load-menu *debug-menu-context*))
(debug-menu-append-item (-> *debug-menu-context* root-menu) (debug-menu-make-part-menu *debug-menu-context*))
@@ -4596,36 +4617,12 @@
)
(menu "Secrets"
(menu "PC cheats"
(flag "Big head jak" #f (lambda (arg (msg debug-menu-msg))
(when (= msg (debug-menu-msg press))
(pc-cheat-toggle-and-tune (-> *pc-settings* cheats) big-head)
)
(pc-cheats? (-> *pc-settings* cheats) big-head)))
(flag "Small head jak" #f (lambda (arg (msg debug-menu-msg))
(when (= msg (debug-menu-msg press))
(pc-cheat-toggle-and-tune (-> *pc-settings* cheats) small-head)
)
(pc-cheats? (-> *pc-settings* cheats) small-head)))
(flag "Big fist jak" #f (lambda (arg (msg debug-menu-msg))
(when (= msg (debug-menu-msg press))
(pc-cheat-toggle-and-tune (-> *pc-settings* cheats) big-fist)
)
(pc-cheats? (-> *pc-settings* cheats) big-fist)))
(flag "Big head npcs" #f (lambda (arg (msg debug-menu-msg))
(when (= msg (debug-menu-msg press))
(pc-cheat-toggle-and-tune (-> *pc-settings* cheats) big-head-npc)
)
(pc-cheats? (-> *pc-settings* cheats) big-head-npc)))
(flag "Huge head jak" #f (lambda (arg (msg debug-menu-msg))
(when (= msg (debug-menu-msg press))
(pc-cheat-toggle-and-tune (-> *pc-settings* cheats) huge-head)
)
(pc-cheats? (-> *pc-settings* cheats) huge-head)))
(flag "Mirrored mode" #f (lambda (arg (msg debug-menu-msg))
(when (= msg (debug-menu-msg press))
(pc-cheat-toggle-and-tune (-> *pc-settings* cheats) mirror)
)
(pc-cheats? (-> *pc-settings* cheats) mirror)))
(flag "Big head jak" #f (dm-lambda-cheat-flag big-head))
(flag "Small head jak" #f (dm-lambda-cheat-flag small-head))
(flag "Big fist jak" #f (dm-lambda-cheat-flag big-fist))
(flag "Big head npcs" #f (dm-lambda-cheat-flag big-head-npc))
(flag "Huge head jak" #f (dm-lambda-cheat-flag huge-head))
(flag "Mirrored mode" #f (dm-lambda-cheat-flag mirror))
(flag "Blue eco" #f (lambda (arg (msg debug-menu-msg))
(when (= msg (debug-menu-msg press))
(logclear! (-> *pc-settings* cheats) (pc-cheats eco-red eco-yellow eco-green))
@@ -4650,47 +4647,13 @@
(pc-cheat-toggle-and-tune (-> *pc-settings* cheats) eco-yellow)
)
(pc-cheats? (-> *pc-settings* cheats) eco-yellow)))
(flag "Invincibility" #f (lambda (arg (msg debug-menu-msg))
(when (= msg (debug-menu-msg press))
(logclear! (-> *target* state-flags) 16)
(pc-cheat-toggle-and-tune (-> *pc-settings* cheats) invinc)
)
(pc-cheats? (-> *pc-settings* cheats) invinc)))
(flag "Blue sidekick" #f (lambda (arg (msg debug-menu-msg))
(when (= msg (debug-menu-msg press))
(pc-cheat-toggle-and-tune (-> *pc-settings* cheats) sidekick-blue)
)
(pc-cheats? (-> *pc-settings* cheats) sidekick-blue)))
(flag "All flavas" #f (lambda (arg (msg debug-menu-msg))
(when (= msg (debug-menu-msg press))
(pc-cheat-toggle-and-tune (-> *pc-settings* cheats) tunes)
)
(pc-cheats? (-> *pc-settings* cheats) tunes)))
(flag "Real time tod" #f (lambda (arg (msg debug-menu-msg))
(when (= msg (debug-menu-msg press))
(pc-cheat-toggle-and-tune (-> *pc-settings* cheats) sky)
)
(pc-cheats? (-> *pc-settings* cheats) sky)))
(flag "No textures" #f (lambda (arg (msg debug-menu-msg))
(when (= msg (debug-menu-msg press))
(pc-cheat-toggle-and-tune (-> *pc-settings* cheats) no-tex)
)
(pc-cheats? (-> *pc-settings* cheats) no-tex)))
(flag "Boods" #f (lambda (arg (msg debug-menu-msg))
(when (= msg (debug-menu-msg press))
(pc-cheat-toggle-and-tune (-> *pc-settings* cheats) oh-my-goodness)
)
(pc-cheats? (-> *pc-settings* cheats) oh-my-goodness)))
;; (flag "Hard rats" #f (lambda (arg (msg debug-menu-msg))
;; (when (= msg (debug-menu-msg press))
;; (pc-cheat-toggle-and-tune (-> *pc-settings* cheats) hard-rats)
;; )
;; (pc-cheats? (-> *pc-settings* cheats) hard-rats)))
;; (flag "Hero mode" #f (lambda (arg (msg debug-menu-msg))
;; (when (= msg (debug-menu-msg press))
;; (pc-cheat-toggle-and-tune (-> *pc-settings* cheats) hero-mode)
;; )
;; (pc-cheats? (-> *pc-settings* cheats) hero-mode)))
(flag "Invincibility" #f (dm-lambda-cheat-flag invinc))
(flag "Blue sidekick" #f (dm-lambda-cheat-flag sidekick-blue))
(flag "All flavas" #f (dm-lambda-cheat-flag tunes))
(flag "Real time tod" #f (dm-lambda-cheat-flag sky))
(flag "No textures" #f (dm-lambda-cheat-flag no-tex))
;; (flag "Hard rats" #f (dm-lambda-cheat-flag hard-rats))
;; (flag "Hero mode" #f (dm-lambda-cheat-flag hero-mode))
)
)
(flag "Letterbox" #f ,(dm-lambda-boolean-flag (-> *pc-settings* letterbox?)))
@@ -4704,19 +4667,21 @@
(flag "Auto" auto dm-subtitle-setting)
)
(menu "Subtitle language"
(flag "english" 0 dm-subtitle-language)
(flag "german" 2 dm-subtitle-language)
(flag "spanish" 3 dm-subtitle-language)
(flag "uk-english" 6 dm-subtitle-language)
(flag "english" (the binteger (pc-subtitle-lang english)) dm-text-language)
(flag "german" (the binteger (pc-subtitle-lang german)) dm-text-language)
(flag "spanish" (the binteger (pc-subtitle-lang spanish)) dm-text-language)
(flag "uk-english" (the binteger (pc-subtitle-lang uk-english)) dm-text-language)
(flag "portuguese" (the binteger (pc-subtitle-lang portuguese)) dm-text-language)
)
(menu "Text language"
(flag "english" 0 dm-text-language)
(flag "french" 1 dm-text-language)
(flag "german" 2 dm-text-language)
(flag "spanish" 3 dm-text-language)
(flag "italian" 4 dm-text-language)
(flag "japanese" 5 dm-text-language)
(flag "uk-english" 6 dm-text-language)
(flag "english" (the binteger (pc-subtitle-lang english)) dm-text-language)
(flag "japanese" (the binteger (pc-subtitle-lang japanese)) dm-text-language)
(flag "french" (the binteger (pc-subtitle-lang french)) dm-text-language)
(flag "german" (the binteger (pc-subtitle-lang german)) dm-text-language)
(flag "spanish" (the binteger (pc-subtitle-lang spanish)) dm-text-language)
(flag "italian" (the binteger (pc-subtitle-lang italian)) dm-text-language)
(flag "uk-english" (the binteger (pc-subtitle-lang uk-english)) dm-text-language)
(flag "portuguese" (the binteger (pc-subtitle-lang portuguese)) dm-text-language)
)
(flag "Discord RPC" #t ,(dm-lambda-boolean-flag (-> *pc-settings* discord-rpc?)))
(flag "Speedrunner Mode" #t ,(dm-lambda-boolean-flag (-> *pc-settings* speedrunner-mode?)))
@@ -4746,25 +4711,17 @@
))
)
(menu "Framerate"
(flag "60" #f (lambda (arg (msg debug-menu-msg)) (when (= msg (debug-menu-msg press)) (set-frame-rate! *pc-settings* 60))
(= (-> *pc-settings* target-fps) 60)))
(flag "100" #f (lambda (arg (msg debug-menu-msg)) (when (= msg (debug-menu-msg press)) (set-frame-rate! *pc-settings* 100))
(= (-> *pc-settings* target-fps) 100)))
(flag "150" #f (lambda (arg (msg debug-menu-msg)) (when (= msg (debug-menu-msg press)) (set-frame-rate! *pc-settings* 150))
(= (-> *pc-settings* target-fps) 150)))
)
(flag "60" 60 dm-set-fps-pick-func)
(flag "100" 100 dm-set-fps-pick-func)
(flag "150" 150 dm-set-fps-pick-func)
)
(menu "MSAA"
(flag "Off" #f (lambda (arg (msg debug-menu-msg)) (when (= msg (debug-menu-msg press)) (set! (-> *pc-settings* gfx-msaa) 1))
(= (-> *pc-settings* gfx-msaa) 1)))
(flag "x2" #f (lambda (arg (msg debug-menu-msg)) (when (= msg (debug-menu-msg press)) (set! (-> *pc-settings* gfx-msaa) 2))
(= (-> *pc-settings* gfx-msaa) 2)))
(flag "x4" #f (lambda (arg (msg debug-menu-msg)) (when (= msg (debug-menu-msg press)) (set! (-> *pc-settings* gfx-msaa) 4))
(= (-> *pc-settings* gfx-msaa) 4)))
(flag "x8" #f (lambda (arg (msg debug-menu-msg)) (when (= msg (debug-menu-msg press)) (set! (-> *pc-settings* gfx-msaa) 8))
(= (-> *pc-settings* gfx-msaa) 8)))
(flag "x16" #f (lambda (arg (msg debug-menu-msg)) (when (= msg (debug-menu-msg press)) (set! (-> *pc-settings* gfx-msaa) 16))
(= (-> *pc-settings* gfx-msaa) 16)))
)
(flag "Off" 1 dm-set-msaa-pick-func)
(flag "x2" 2 dm-set-msaa-pick-func)
(flag "x4" 4 dm-set-msaa-pick-func)
(flag "x8" 8 dm-set-msaa-pick-func)
(flag "x16" 16 dm-set-msaa-pick-func)
)
(flag "V-sync" #f ,(dm-lambda-boolean-flag (-> *pc-settings* vsync?)))
;(flag "Alt load boundaries" #f ,(dm-lambda-boolean-flag (-> *pc-settings* new-lb?)))
(flag "All actors" #f ,(dm-lambda-boolean-flag (-> *pc-settings* force-actors?)))