Editing SRD_SuperToolsEngine and SRD_CharacterCreatorEX [Webcompatibility]

● ARCHIVED · READ-ONLY
Started by Ripple 4 posts View original ↗
  1. Hello JS geniuses!

    I have a problem with those two plugins – i will try to explain what I need (editing SRDs plugins is allowed by Terms of Use):

    The plugins seem to be writing data to json files and only work in the deployments using Node and nw.js but I need them for my browser based iOS/Android application. Is there any way to rewrite those plugins in a way that they work with the normal savegame for storing the data for example and are compatible with browser based deployments?

    I described the problem those Plugins cause in this thread (including errors that need the workaround: https://forums.rpgmakerweb.com/index.php?threads/mv-1-6-1-webdeployment-need-help-with-error-srd_plugins.98515)

    If anyone thinks he is capable of editing those plugins for browser use I would be so grateful! I think this might also be useful for more people than just me - I am actually pretty sure!

    If you need more information (errors in the link above) please let me know! You would help me a lot!!

    EDIT: Maybe the solution is something like this - https://forums.rpgmakerweb.com/index.php?threads/sumrndmdde-hud-maker-browser-problem.92752/
    Couldn't get it to run myself though..
  2. Bump, seems like I imagine it to be easier than it actually is :D
  3. I'll give it one more try but I guess this won't happen :(

    EDIT: Maybe someone who knows about node and JS can tell me, what would be necessary to redo this plugin. I did not work with JS before (I am only involved in SWIFT and C# programming) but I guess I can figure it out if someone tells me what to look for in this case
  4. Well, this plugin uses the node fs API directly, which isn't available in the browser, so you'd have to rewrite every part that uses it. I guess it should technically be possible to change the portions that write files to use the system that's used to save/load files. I don't know if the same thing is possible for the parts of the code that deletes files because I don't know what API the save/load system uses and I don't have RPG Maker with me.

    If you want to go really all-in, you could use cookies or localStorage for the web-based version. If I recall correctly, you can check if you're in web-based mode using DataManager.isLocalMode(), or you could just do the reverse check that SRD did in his script.