From eadf2f2b2537d189732802e77c45abcf36acd932 Mon Sep 17 00:00:00 2001 From: Ryan ShrineFox Date: Mon, 13 Jan 2020 18:32:54 -0500 Subject: [PATCH] Add auto .msg reindex, time of day repeater - build.bat (using msgReindex.exe) now automatically updates ModMenu.msg ID assignment - added CLEAR_INHERIT_DATA() to mass flag editor --- ModMenu.flow | 23 ++++++++-- ModMenu.msg | 120 +++++++++++++++++++++++++++---------------------- build.bat | 2 + msgReindex.exe | Bin 0 -> 6144 bytes 4 files changed, 89 insertions(+), 56 deletions(-) create mode 100644 msgReindex.exe diff --git a/ModMenu.flow b/ModMenu.flow index afffecb..152a78d 100644 --- a/ModMenu.flow +++ b/ModMenu.flow @@ -23,6 +23,7 @@ global int gFieldMajor; global int gFieldMinor; global int gEventMajor; global int gEventMinor; +global bool loopTime; void ModMenuDisplay() { @@ -366,11 +367,16 @@ void ItemGetSelect( int type ) int amount = SelectNumberPrompt( ItemPrompt2, 2 ); if (amount == -1) return; - - GET_ITEM_BUF_RESET(); + + ItemGet( type, itemId, amount); + GET_ITEMS_WINDOW( 0 ); +} + +void ItemGet( int type, int itemId, int amount) +{ + GET_ITEM_BUF_RESET(); GET_ITEM_BUF_SET( type + itemId, amount ); SET_ITEM_NUM( type + itemId, GET_ITEM_NUM( type + itemId ) + amount ); - GET_ITEMS_WINDOW( 0 ); } void CommuSetRankSelect() @@ -1575,6 +1581,9 @@ void CalendarEditorDisplay() case 2: ChangeWeather(); break; + case 3: + LoopCurrentTime(); + break; } } } @@ -1643,6 +1652,11 @@ void CallCalendar() CALL_CALENDAR(); } +void LoopCurrentTime() +{ + SET_NEXT_DAY( GET_MONTH(), GET_DAY(), GET_TIME()); +} + void ChangeWeather() { int selection = SEL_GENERIC_NOT_HELP( WeatherMenuName, WeatherMenu ); @@ -1728,6 +1742,9 @@ void FlagMassEditor() { case 3: ToggleRange(); break; + case 4: + CLEAR_INHERIT_DATA(); + break; } } } diff --git a/ModMenu.msg b/ModMenu.msg index 4f52825..c236558 100644 --- a/ModMenu.msg +++ b/ModMenu.msg @@ -362,6 +362,7 @@ Calendar Options[w][e] Set Next Day[f 4 26 0 185][e] Call Calendar[f 4 26 1 186][e] Set Weather[f 4 26 2 187][e] +Loop Current Day[f 4 26 3 188][e] [dlg GENERIC_HELP_185] [s]Choose the day and month[n]to warp to.[e] @@ -372,6 +373,9 @@ Set Weather[f 4 26 2 187][e] [dlg GENERIC_HELP_187] [s]Change the current weather[n]condition value. Weather should[n]change after reloading map.[e] +[dlg GENERIC_HELP_188] +[s]Sets the current time[n]of day to be next after[n]ending the current day.[e] + [dlg CalendarPrompt[Calendar]] Choose what month to start in.[n](press Circle to end)[w][e] @@ -398,37 +402,46 @@ Choose the last 3 digits of NPC Options[w][e] [sel SpawnMenu] -Spawn Model[f 4 26 0 196][e] -Animate Model[f 4 26 1 197][e] -Set Model Scale[f 4 26 2 198][e] -Attach Item Model[f 4 26 3 199][e] -Spawn Object Model[f 4 26 4 200][e] +Spawn Model[f 4 26 0 197][e] +Animate Model[f 4 26 1 198][e] +Set Model Scale[f 4 26 2 199][e] +Attach Item Model[f 4 26 3 200][e] +Spawn Object Model[f 4 26 4 201][e] -[dlg GENERIC_HELP_196] +[dlg GENERIC_HELP_197] [s]Input a [clr 9]GMD filename[clr 0][n]to spawn a character model from.[e] -[dlg GENERIC_HELP_197] +[dlg GENERIC_HELP_198] [s]Apply field animations[n]to the last NPC you spawned.[e] +[dlg GENERIC_HELP_199] +[s]Set the scale of the[n]NPC model.[e] + +[dlg GENERIC_HELP_200] +[s]Input a [clr 9]GMD filename[clr 0][n]to attach to the NPC.[e] + +[dlg GENERIC_HELP_201] +[s]Input a [clr 9]GMD filename[clr 0][n]of an object to spawn.[e] + [dlg PersonaMenuName] Persona Options[w][e] [sel PersonaMenu] -Add Persona[f 4 26 0 200][e] -Delete Personas[f 4 26 1 201][e] -Add Skill[f 4 26 2 202][e] -Unlock Full Compendium[f 4 26 3 203][e] +Add Persona[f 4 26 0 204][e] +Delete Personas[f 4 26 1 205][e] +Add Skill[f 4 26 2 206][e] +Unlock Full Compendium[f 4 26 3 207][e] -[dlg GENERIC_HELP_200] +[dlg GENERIC_HELP_204] [s]Input a Persona's name or ID[n]to add it to your stock.[e] -[dlg GENERIC_HELP_201] +[dlg GENERIC_HELP_205] [s]Permanently remove all Personas[n]from your current stock.[e] -[dlg GENERIC_HELP_202] +[dlg GENERIC_HELP_206] [s]Choose a party member and the[n]name or ID of a Skill to add[n]to their current Persona.[e] -[dlg GENERIC_HELP_203] +[dlg GENERIC_HELP_207] [s]Register every Persona in[n]the game by filling your[n]stock with them all.[e] @@ -518,79 +531,79 @@ Select a bgm to play.[w][e] Flag Options[w][e] [sel FlagMenu] -HUD Display[f 4 26 0 224][e] -Add Party Members[f 4 26 1 225][e] -Remove Party Members[f 4 26 2 226][e] -Enable Party Editing[f 4 26 3 227][e] -Add Overworld Follower[f 4 26 4 228][e] -Navigator[f 4 26 5 229][e] -Change Romance Route[f 4 26 6 230][e] -Room Editor[f 4 26 7 231][e] -Manual Input[f 4 26 8 232][e] -Print Enabled Flags[f 4 26 9 233][e] -Mass Flag Editor[f 4 26 10 234][e] - -[dlg GENERIC_HELP_224] +HUD Display[f 4 26 0 228][e] +Add Party Members[f 4 26 1 229][e] +Remove Party Members[f 4 26 2 230][e] +Enable Party Editing[f 4 26 3 231][e] +Add Overworld Follower[f 4 26 4 232][e] +Navigator[f 4 26 5 233][e] +Change Romance Route[f 4 26 6 234][e] +Room Editor[f 4 26 7 235][e] +Manual Input[f 4 26 8 236][e] +Print Enabled Flags[f 4 26 9 237][e] +Mass Flag Editor[f 4 26 10 238][e] + +[dlg GENERIC_HELP_228] [s]Show or hide the user interface[n]elements, such as the date, time,[n]and mission list.[e] -[dlg GENERIC_HELP_225] +[dlg GENERIC_HELP_229] [s]Make a Persona user available to[n]add to your party.[e] -[dlg GENERIC_HELP_226] +[dlg GENERIC_HELP_230] [s]Revoke a Persona user's[n]availability to be added[n]to your party.[e] -[dlg GENERIC_HELP_227] +[dlg GENERIC_HELP_231] [s]Allow choosing your own[n]party members from the Stats[n]menu in the pause menu.[e] -[dlg GENERIC_HELP_228] +[dlg GENERIC_HELP_232] [s]Enable or disable party[n]members following you[n]in the overworld.[e] -[dlg GENERIC_HELP_229] +[dlg GENERIC_HELP_233] [s]Change which character[n]currently serves as the Navigator.[e] -[dlg GENERIC_HELP_230] +[dlg GENERIC_HELP_234] [s]Start or end a relationship with[n]a female Confidant.[e] -[dlg GENERIC_HELP_231] +[dlg GENERIC_HELP_235] [s]Modify the state of the[n]protagonist's bedroom in[n]the Leblanc attic.[e] -[dlg GENERIC_HELP_232] +[dlg GENERIC_HELP_236] [s]Enter an 4-digit decimal value[n]of a bit to either[n]enable or disable it.[e] -[dlg GENERIC_HELP_233] +[dlg GENERIC_HELP_237] [s]Print all currently enabled[n]bit flag values to the[n]TTY log.[e] -[dlg GENERIC_HELP_234] +[dlg GENERIC_HELP_238] [s]Manipulate a selected[n]range of bit flags to[n]toggle or print.[e] [dlg FieldMenuName] Field Select[e] [sel FieldMenu] -Enter Field ID[f 4 26 0 237][e] -Load Field[f 4 26 1 238][e] -Reload Current Field[f 4 26 2 239][e] +Enter Field ID[f 4 26 0 241][e] +Load Field[f 4 26 1 242][e] +Reload Current Field[f 4 26 2 243][e] -[dlg GENERIC_HELP_237] +[dlg GENERIC_HELP_241] [s]Input the 6 digits of a[n][clr 9]field pack's[clr 0] filename[n](found in ps3.cpk/field)[e] -[dlg GENERIC_HELP_238] +[dlg GENERIC_HELP_242] [s]Attempt to load the selected[n]field. [clr 9]WARNING: Some fields may[n]softlock the game.[clr 0][e] -[dlg GENERIC_HELP_239] +[dlg GENERIC_HELP_243] [s]Reload the field that[n]you're currently on.[e] [dlg EventMenuName] Event Select[e] [sel EventMenu] -Enter Event ID[f 4 26 0 242][e] -Load Event[f 4 26 1 243][e] +Enter Event ID[f 4 26 0 246][e] +Load Event[f 4 26 1 247][e] -[dlg GENERIC_HELP_242] +[dlg GENERIC_HELP_246] [s]Input the 6 digits of a[n][clr 9]event pack's[clr 0] filename[n](found in data.cpk/event)[e] -[dlg GENERIC_HELP_243] +[dlg GENERIC_HELP_247] [s]Attempt to load the selected[n]event. [clr 9]WARNING: Some events may[n]softlock the game.[clr 0][e] [dlg NaviMenuName] @@ -884,6 +897,7 @@ Disable all flags[e] Enable all flags[e] Swap enabled/disabled flags[e] Toggle range of flags[e] +Clear Inherit Data[e] [dlg PersonaAddSkillMenuName] Persona Options[w][e] @@ -902,13 +916,13 @@ Add Persona (Manual Input)[e] [dlg BagShowHide] The bag has been toggled.[n]To see the change, go to a new field[n]or reload the current one.[w][e] -[dlg GENERIC_HELP_291] +[dlg GENERIC_HELP_295] Removes the swaying effect[n]of the camera that's[n]used in dungeons.[w][e] -[dlg GENERIC_HELP_292] +[dlg GENERIC_HELP_296] Select an item's model ID to[n]spawn it and connect it to[n]the character's model.[w][e] -[dlg GENERIC_HELP_293] +[dlg GENERIC_HELP_297] Select a range of flags[n]to either enable or disable.[w][e] [dlg ItemSpawnPrompt] @@ -929,5 +943,5 @@ Enter the start of the[n]range to narrow down.[n](Max 4 digits, press Circle to [dlg FlagRangePrompt2] Enter the end of the[n]range to narrow down.[n](Max 4 digits, press Circle to end).[w][e] -[dlg GENERIC_HELP_300] -Unlocks all Personas in the[n]Compendium. [clr 9]This will delete all[n]Personas in your current stock![clr 0][w][e] +[dlg GENERIC_HELP_304] +Unlocks all Personas in the[n]Compendium. [clr 9]This will delete all[n]Personas in your current stock![clr 0][w][e] \ No newline at end of file diff --git a/build.bat b/build.bat index e090ba5..20edd65 100644 --- a/build.bat +++ b/build.bat @@ -1,3 +1,5 @@ +msgReindex.exe ModMenu.msg 91 + set PAKPACK="path to PAKPack.exe" set COMPILER="path to AtlusScriptCompiler.exe" set BUILD_PATH=.\build diff --git a/msgReindex.exe b/msgReindex.exe new file mode 100644 index 0000000000000000000000000000000000000000..5065a224bb516714677500df1b8bd4151727fcb9 GIT binary patch literal 6144 zcmeHLTWlOx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