Skip to main content

Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
TagsGame Engines

RPG Maker Cook Tool Deluxe

The one stop shop for deploying RPG Maker MV/MZ games · By AceOfAces

Spaces in Folders cause game launching issues.

A topic by YoBro created 21 days ago Views: 108 Replies: 6
Viewing posts 1 to 2
(1 edit)

Howdy there!

First time using this tool, loving the customizability so far. 

I've been doing Test-Builds on Windows 11 for an unfinished game just to get my grips around the software, and noticed I had an error with a plugin as it's friendly name (For Testing) was being formatted as "For%20Testing", not to worry, I know '%20' means space, however, it seems as though the game does not quite understand that.

By removing the spaces in folders, it seems to work fine, I'm not sure if files also have this bug where spaces in their name would cause issues, but here is a F12 error log.


Uncaught Error: ENOENT: no such file or directory, open 'C:\Users\YoBro\AppData\Local\YoBro\Sock\GameData\js\plugins\For%20Testing\MechPen_SharpText.bin'
    at Object.openSync (node:fs:561:18)
    at Object.readFileSync (node:fs:445:35)
    at NWWindow.evalNWBinInternal (extensions::nw.Window:501:36)
    at NWWindow.evalNWBin (extensions::nw.Window:486:8)
    at Function.loadScript (<anonymous>)
    at Function.setup (<anonymous>)
    at Main.loadMainScripts (<anonymous>)
    at Main.run (<anonymous>)
    at <anonymous>
    at NWWindow.evalNWBinInternal (extensions::nw.Window:505:20)


Oh and here's a strange bonus errors in the F12 panel:

index.html:1 Uncaught SyntaxError: Unexpected token '<


One last thing; for some reason, the tool does not have access to RPGMakerCookToolDX in my AppData, I'm not sure if anyone else also has this happen but here is the log:


2025-11-03 15:11:20.216 +11:00 [INF] RPG Maker Cook Tool Deluxe 6.2.6-release.20251025+71b61afb12596f4a929914729baabe055323c61e started up.
2025-11-03 15:11:20.219 +11:00 [INF] Data validation is ready.
2025-11-03 15:11:20.219 +11:00 [INF] Registerring services...
2025-11-03 15:11:20.219 +11:00 [INF] Registerring HTTP Client Builder...
2025-11-03 15:11:20.220 +11:00 [INF] Registerring File Services...
2025-11-03 15:11:20.220 +11:00 [INF] Registerring Dialog Services...
2025-11-03 15:11:20.222 +11:00 [INF] Services registered.
2025-11-03 15:11:20.222 +11:00 [INF] Preparing main window...
2025-11-03 15:11:20.275 +11:00 [INF] Checking if the default settings file is present...
2025-11-03 15:11:20.275 +11:00 [INF] Not found. Creating the file...
2025-11-03 15:11:20.279 +11:00 [INF] Checking if the default settings file is present...
2025-11-03 15:11:20.279 +11:00 [INF] Not found. Creating the file...
2025-11-03 15:11:20.284 +11:00 [FTL]  Exception! 
System.UnauthorizedAccessException: Access to the path 'C:\Users\YoBro\AppData\Roaming\Dragonhouse\RPGMakerCookToolDX' is denied.
   at Microsoft.Win32.SafeHandles.SafeFileHandle.CreateFile(String, FileMode, FileAccess, FileShare, FileOptions)
   at Microsoft.Win32.SafeHandles.SafeFileHandle.Open(String, FileMode, FileAccess, FileShare, FileOptions, Int64, Nullable`1 )
   at System.IO.File.OpenHandle(String, FileMode , FileAccess , FileShare , FileOptions , Int64 )
   at System.IO.File.WriteToFileAsync(String, FileMode, ReadOnlyMemory`1, Encoding, CancellationToken)
   at Dragonhouse.RMCookToolDeluxe.Compiler.BuilderJob.SaveDefaults()
2025-11-03 15:11:20.284 +11:00 [FTL]  Exception! 
System.UnauthorizedAccessException: Access to the path 'C:\Users\YoBro\AppData\Roaming\Dragonhouse\RPGMakerCookToolDX' is denied.
   at Microsoft.Win32.SafeHandles.SafeFileHandle.CreateFile(String, FileMode, FileAccess, FileShare, FileOptions)
   at Microsoft.Win32.SafeHandles.SafeFileHandle.Open(String, FileMode, FileAccess, FileShare, FileOptions, Int64, Nullable`1 )
   at System.IO.File.OpenHandle(String, FileMode , FileAccess , FileShare , FileOptions , Int64 )
   at System.IO.File.WriteToFileAsync(String, FileMode, ReadOnlyMemory`1, Encoding, CancellationToken)
   at Dragonhouse.RMCookToolDeluxe.Compiler.BuilderJob.SaveDefaults()


If you need any extra parameters from me, just let me know! Thank you!

*edit: Fixed typo

Hello, YoBro!

  • About the first issue: could you explain with what is going on the project? I see that it's loading plugins (I presume) from that folder, but I want to have a clearer picture as to what it does.
  • For the error in index.html: I'm not exactly sure why is this happening. Most likely, a formatting error is inserting this, but since it doesn't break the plugin loading, it's mostly a fluke.
  • For that last one: Does this happen when you launch the tool for the first time?

Howdy Ace!

Here's what I can give you:

  • For what is going on the project, it's being designed as just a game, ~25-30 plugins (Some notable expansive code changing plugin examples are SRD_HUDMakerUltra.js, mz3d.js, GabeMZ plugins etc).  I have some folders in my js/Plugins/ folder which are just for file organisation.  Looking at the error log, it's weirdly assign '%20' to only the folders with spaces inside Plugins, the rest of the file path line contains a space. Using fs.existsSync to check if the file path exists does indeed return False, but removing the '20%' and replacing it with a space character, it does report True.
  • The index.html proooobably relates to the issue about me, so we can most likely forget about it for now.
  • This is arguably the biggest headache, okay here are my findings; Every time the application is launched, this error is generated inside of the .log file it creates. This error does not stop the tool from working (unless it conflicts with the first problem I am having), I believe it looks like it is just trying to access the directory in order to write settings to save. I have tried everything, from releasing and reassigning permissions, recreating the folders myself, running as administrator, etc. I am to believe this might be some kind of pathing fault within the source code unless there is just something extremely specific on my computer stopping this program from writing to that location..
(+1)

After a bit of digging, I found the cause for saving the default settings. Due to a typo, it tried to write on a file that was actually the folder. Hence, that error. I'm working on a hotfix for it and publish it as soon as possible.

Hey there no problem!


Do you think there is any idea why I am still having the UTF key for Space appearing in my project?

Again, a lot of the directories in the console log a regular spacebar, but specifically for plugins it seems to add one itself.

(1 edit)

To keep it simple: The paths are handled like a page URL in websites. Hence why it adds that %20.

I understand the %20 representing the Space character for URLs, but I believe you're calling Node FS and its adding these signs in when Node FS should use literal spaces, the failure is occurring here: node:fs:561


You can recreate this issue quite easily I believe;

1. Create a new RPG Maker MZ project, then in your file system explorer, navigate to <Game Folder>/js/plugins and add a folder with a literal space (e.g. "Plugin Test"). Add a known working plugin into this folder.

2. Within RPG Maker MZ, go to your Plugin Manager and remove all plugins, then add the plugin that is contained within the "Plugin Test" folder.

3. Save and playtest the game, after one playtest, use RM Cook Tool Deluxe and attempt at building a Test Build, after the build is finished, try executing the game. 

The expect result should be that the game will launch but you'll be presented with an infinite load screen, opening the developer console presents the issue and cause.

If you'd like, I am more than happy to record an example of this in action incase you cannot reproduce the issue yourself.