RPG Maker MV

RPG Maker MV

TDRandy Aug 5, 2018 @ 9:33pm
Read/Write/Move/Delete External Files in RPG Maker MV v1.6.1
I'm currently experimenting in RPG Maker MV for a possible game I that I plan on making that involves "fourth-wall breaking" and I'm trying to figure out how to manipulate files outside the game like how Team Salvato's Doki Doki Literature Club! moves files from the contents inside its scripts.rpa to the main game directory or the character folders or even deletes files, but that game was made in Ren'py via Python coding. I looked up some tutorials for RPG Maker MV (like SRDude's video tutorial) but they are likely outdated as they aren't working for me.

Is there a plugin compatible in the latest version of RPG Maker MV that will easily do these things or are there scripts that are compatible with the current version of RPG Maker MV that can do these things?
Last edited by TDRandy; Aug 5, 2018 @ 9:52pm
< >
Showing 1-5 of 5 comments
neoVictrix Aug 6, 2018 @ 2:23am 
You're probably looking at something custom-made that either you would need to do, or pay someone else to do.
TDRandy Aug 6, 2018 @ 8:45am 
Originally posted by kittylitterproduction:
http://endlessillusoft.com/rpgmakermv-node-js-part-1-reading-and-writing-files/
That's another tutorial I tried before writing this topic but I'll try it again.
TDRandy Aug 6, 2018 @ 7:33pm 
I decided to revert to v1.5.1 and SRDude's tutorial works for it. I think I'll be experimenting my work in v1.5.1 or v1.5.2 (I'll test to see if it works on that version too).

EDIT: Okay, SRDude's tutorial and script worked in v1.5.2 but the script no longer works as of v1.6.0. And using the same script and changing js.writeFile to js.unlink deletes the file. Nice! I'm starting to get the hang of this. But too bad the script doesn't work beyond v1.5.2 so I guess I'll be doing my project in v1.5.2.
Last edited by TDRandy; Aug 6, 2018 @ 9:15pm
TDRandy Aug 12, 2018 @ 5:29pm 
I finally figured out how to do it in v1.6.0 and newer, thanks to this tutorial[www.w3schools.com].

Write:
var fs = require('fs'); fs.appendFile('[filename or ./folder/ + filename]', "[message]", function(err) { if (err) throw err; console.log('[console log message]'); });

Delete:
var fs = require('fs'); fs.unlink('[filename or ./folder/ + filename]', function(err) { if (err) throw err; console.log('[console log message]'); });

And probably also the same for reading, renaming, and updating, but I haven't tested those in RPG Maker MV yet.
Last edited by TDRandy; Aug 12, 2018 @ 5:33pm
< >
Showing 1-5 of 5 comments
Per page: 1530 50

Date Posted: Aug 5, 2018 @ 9:33pm
Posts: 5