[MV 1.6.1/Webdeployment] Need help with Error [SRD_Plugins]

● ARCHIVED · READ-ONLY
Started by Ripple 5 posts View original ↗
  1. Hello,

    I hope I chose the right Forum-Section for this. Maybe someone can help me with this problem, I am not really into JS unfortunately..

    It's happening with 2 Plugins from @SumRndmDde
    SRD_SuperToolsEngine and SRD_CharacterCreatorEX

    First of all: When I deploy my game to "Windows" and run it through that Game.exe file, everything works fine and there is no error appearing.

    But when I deploy to web or iOS/Android (which is webbased too as far as I understand), the character creator is not opened ingame. I tested it with multiple browsers (newest versions) and it always showed the same result.

    The browser console reads this:
    Code:
    ReferenceError: process is not defined SRD_SuperToolsEngine.js:206:1
    
    <anonym> file:///C:/tmp/Conundria/www/js/plugins/SRD_SuperToolsEngine.js:206:1
    <anonym> file:///C:/tmp/Conundria/www/js/plugins/SRD_SuperToolsEngine.js:183:2
    
    TypeError: FileManager.checkDataExists is not a function SRD_CharacterCreatorEX.js:630:2
    
    _.checkFileExists file:///C:/tmp/Conundria/www/js/plugins/SRD_CharacterCreatorEX.js:630:2
    <anonym> file:///C:/tmp/Conundria/www/js/plugins/SRD_CharacterCreatorEX.js:648:1
    <anonym> file:///C:/tmp/Conundria/www/js/plugins/SRD_CharacterCreatorEX.js:423:2

    I have no idea what could cause this problem as it works with the .EXE version of the game. The problem is, that I am actually wanting to release on iPad/iPhone but without this plugin I'd have to change half of my game and could aswell start from scratch. Does anyone know where this error might come from? Is there anything I can do about it? Or am I lost without the support of the original developer..?
  2. You aren't going to like this answer, but this plugin only works on deployments using Node / NWjs (the .exe deployment).

    I've given similar answers here and here.

    Supertools engine and CCEX are dependent on reading/writing data to external files using Node's Filesystem module. The keyword to access many of Node's functions is "process", which you see in the console error message.
  3. Aloe Guvner said:
    You aren't going to like this answer, but this plugin only works on deployments using Node / NWjs (the .exe deployment).

    I've given similar answers here and here.

    Supertools engine and CCEX are dependent on reading/writing data to external files using Node's Filesystem module. The keyword to access many of Node's functions is "process", which you see in the console error message.

    I really don‘t like it, but this answers my question completely! Big thanks!
  4. It seems like a common issue, so you might get lucky if you post a request to the JS Plugin Requests forum. SRD's terms of use allow edits to his plugins as long as you still give credit to SRD.
  5. Aloe Guvner said:
    It seems like a common issue, so you might get lucky if you post a request to the JS Plugin Requests forum. SRD's terms of use allow edits to his plugins as long as you still give credit to SRD.

    Thank you, I will give it a try! As far as I understand the problem is, that browsers are not allowed to write files to the system (if they were, we‘d be drowning in viruses).. so I guess the plugin would have to be rewritten, so that everything is stored in the actual Save-File which seems to work differently than writing into .json files?

    Will create a post today. Thanks for your support :)