FlagBrew / PKSM-Scripts

General purpose scripts to use with PKSM.
58 stars 14 forks source link

key-system.c Crash #48

Open BIGJRA opened 3 months ago

BIGJRA commented 3 months ago

Issue

Executing key-system.c on B2W2 fails when attempting to use any of the five "Key" choices (Easy Key, Challenge Key, etc.). Running the other five choices (Easy Mode, Challenge Mode, etc.) does not appear to change anything within Black 2 - no keys nor unlocked modes.

Error Message:

               memset(message, '\0', 51);
                   ^
romfs:/scripts/b2w2/key-system.c:37:18
VariableGet Ident: 'memset' is undefined

Exit code: 1

Reproduction:

Running PKSM v10.1.1-aca22663 on New 3DSXL. Accessing Black 2 save file via Extra Saves option.

Black 2 Save in question is a fresh file, saved immediately after getting a Starter Oshawott in Aspertia City.

To reproduce open the file in PKSM > Scripts > run key-system.c > select any "Key", press A or B.

Thanks!

SpiredMoth commented 3 months ago

Known bug, fixed in commit dc40ec3

The fixed version of the script will be bundled in the next release of PKSM. In order to use it before then you'll need to follow these steps:

  1. Download this file
  2. Place the file inside /3ds/PKSM/scripts/b2w2 on your SD card (making any folders that don't already exist)
  3. From PKSM's Scripts menu press X to switch to scripts from the SD card
  4. Select key-system.c from the list