Jump to content
  • Script Mod

    This mod lets you edit the game's LUA scripts, along with their associated language files.

    This works on both Pokémon Super Mystery Dungeon and Pokémon Mystery Dungeon: Gates to Infinity. You need to have Java installed on your computer to use this.

    Instructions

    1. On the New Project window, choose "Starter Mod" in the drop-down, and fill in the name with something that makes sense. Then click OK.
      image.png
    2. Wait for the loading to complete. This may take a while, even on beefy computers.
    3. Expand the newly-created project and explore the directory structure, and open a LUA script. You can do this either by double-clicking or by right-clicking and clicking Open.
      image.png
    4. You will be presented with this view that you can use to edit the script. Alternatively, you can browse to (Solution Directory)/(Project Directory) and use any external text editor of your choosing. You do not need to have Sky Editor open while using an external text editor.
      image.png
    5. Click the Message tab to edit the dialogue used in the script. It is recommended that you order the entries by Index, since that is usually the same order the messages appear in the script. Each entry is referred to by the ID. You can search for entries by typing the ID or any part of the entry in the search box. The language tabs let you choose which language you want to edit. Note that the US version has both "en" and "us". "en" is the European English one, and "us" is the one that's used in-game.
      image.png
      Text can be edited by clicking in an entry's cell:
      image.png
    6. When you're done, click File -> Save -> Save File. There may or may not be an asterisk before saving, even if you made changes.
      image.png
    7. When you're ready, build the solution. Note: Until issue #43 is resolved, there will be no indication if your LUA script contains any syntax errors, so you need to be sure it works. If there are errors, the script file will be unaltered.

    Remarks

    Refer to our technical documentation section for help editing scripts and text:

     

    Edited by evandixon



    User Feedback

    Recommended Comments

    I keep getting this error when creating a project for the Script Mod. I used to get it when creating a Starter Mod but for some reason that doesn't happen anymore. I think it's trying to find a certain file, but I thought it was supposed to put that file there in the first place. 
     

    Quote
    System.IO.DirectoryNotFoundException: Could not find a part of the path 'D:\Users\Linka\OneDrive\Documents\Folders\Emulators\Z - Hacker's Workbench\SkyEditor.ROMEditor_Build_-_Windows_4.2.9_1_artifacts\Mod\Super Mystery Dungeon\Script Util\Raw Files\ExHeader.bin'.
      at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
      at System.IO.FileStream.Init(String path, FileMode mode, FileAccess access, Int32 rights, Boolean useRights, FileShare share, Int32 bufferSize, FileOptions options, SECURITY_ATTRIBUTES secAttrs, String msgPath, Boolean bFromProxy, Boolean useLongPath, Boolean checkHost)
      at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize, FileOptions options, String msgPath, Boolean bFromProxy, Boolean useLongPath, Boolean checkHost)
      at System.IO.File.InternalReadAllBytes(String path, Boolean checkHost)
      at SkyEditor.ROMEditor.MysteryDungeon.PSMD.Projects.PsmdLuaProject.GetTitleId() in C:\BuildAgent\work\c4ac4fe3838706c2\SkyEditor.ROMEditor.Windows\MysteryDungeon\PSMD\Projects\PsmdLuaProject.vb:line 105
      at SkyEditor.ROMEditor.MysteryDungeon.PSMD.Projects.PsmdLuaProject.GetIsPsmd() in C:\BuildAgent\work\c4ac4fe3838706c2\SkyEditor.ROMEditor.Windows\MysteryDungeon\PSMD\Projects\PsmdLuaProject.vb:line 111
      at SkyEditor.ROMEditor.MysteryDungeon.PSMD.Projects.PsmdLuaProject.get_IsPsmd() in C:\BuildAgent\work\c4ac4fe3838706c2\SkyEditor.ROMEditor.Windows\MysteryDungeon\PSMD\Projects\PsmdLuaProject.vb:line 56
      at SkyEditor.ROMEditor.MysteryDungeon.PSMD.Projects.PsmdLuaProject.GetFilesToCopy(Solution Solution, String BaseRomProjectName) in C:\BuildAgent\work\c4ac4fe3838706c2\SkyEditor.ROMEditor.Windows\MysteryDungeon\PSMD\Projects\PsmdLuaProject.vb:line 462
      at SkyEditor.ROMEditor.Projects.GenericModProject.VB$StateMachine_40_Initialize.MoveNext() in C:\BuildAgent\work\c4ac4fe3838706c2\SkyEditor.ROMEditor.Windows\Projects\GenericModProject.vb:line 0
    --- End of stack trace from previous location where exception was thrown ---
      at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
      at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
      at SkyEditor.ROMEditor.MysteryDungeon.PSMD.Projects.PsmdLuaProject.VB$StateMachine_46_Initialize.MoveNext() in C:\BuildAgent\work\c4ac4fe3838706c2\SkyEditor.ROMEditor.Windows\MysteryDungeon\PSMD\Projects\PsmdLuaProject.vb:line 333
    --- End of stack trace from previous location where exception was thrown ---
      at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
      at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
      at SkyEditor.Core.Projects.Solution.<AddNewProject>d__30.MoveNext()
    --- End of stack trace from previous location where exception was thrown ---
      at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
      at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
      at SkyEditor.Core.ApplicationViewModel.TaskProgressReporterWrapper.<Start>d__32.MoveNext()

     

    Edited by Swordsmage

    Share this comment


    Link to comment
    Share on other sites
    On 6/15/2019 at 12:10 AM, Swordsmage said:
    System.IO.DirectoryNotFoundException: Could not find a part of the path 'D:\Users\Linka\OneDrive\Documents\Folders\Emulators\Z - Hacker's Workbench\SkyEditor.ROMEditor_Build_-_Windows_4.2.9_1_artifacts\Mod\Super Mystery Dungeon\Script Util\Raw Files\ExHeader.bin'.

    I pushed an update that fixes this.

    Share this comment


    Link to comment
    Share on other sites

    Hello. I am trying to make mod that will add new pokemon to Pokemon Super Mystery Dungeon. I will use some of pokemon reserves i had seen in Starter Mod pokemon list, they also named "Spare N". But i am very noob, so i have several questions:

    Where are pokemon data files that may contain things like type and species, moves can be learned by it, model link, and etc? Where can i find "spare" pokemon data?

    How can i link pokemon and model?

    Thank you!

    Edited by orlattae

    Share this comment


    Link to comment
    Share on other sites


    Create an account or sign in to comment

    You need to be a member in order to leave a comment

    Create an account

    Sign up for a new account in our community. It's easy!

    Register a new account

    Sign in

    Already have an account? Sign in here.

    Sign In Now

×
×
  • Create New...