Weird... console not appearing anymore.

MushroomCake28

KAMO Studio
Global Mod
Joined
Nov 18, 2015
Messages
3,729
Reaction score
4,685
First Language
English
Primarily Uses
RMMZ
Just happened today, the console isn't appearing anymore and I can't get it to appear. I'm kinda stuck if I don't have my console. Anyone knows what the cause might be?

EDIT: Ok, it can be called with F12 not F8, but before it would appear automatically when I playtested the game with a simple plugin:

Code:
(function() {
    var substrBegin = document.currentScript.src.lastIndexOf('/');
    var substrEnd = document.currentScript.src.indexOf('.js');
    var scriptName = document.currentScript.src.substring(substrBegin+1, substrEnd);
    var parameters = PluginManager.parameters(scriptName);
    

    var devtool_width = Number(parameters['Console Width'] || 800);
    var devtool_height = Number(parameters['Console Height'] || 300);
    var devtool_x = Number(parameters['Console X-Position'] || 0);
    var devtool_y = Number(parameters['Console Y-Position'] || 0);
    var win_x_offset = Number(parameters['Game Window X-Offset'] || 150);
    var win_y_offset = Number(parameters['Game Window Y-Offset'] || 0);
    var autofocus = String(parameters['Autofocus']);
    
    var _Scene_Boot_new_initialize_showconsole_24102015 = Scene_Boot.prototype.initialize;   
    Scene_Boot.prototype.initialize = function() {
        _Scene_Boot_new_initialize_showconsole_24102015.call(this);
        if (Utils.isNwjs() && Utils.isOptionValid('test')) {
            require('nw.gui').Window.get().showDevTools().resizeTo(devtool_width,devtool_height);
            require('nw.gui').Window.get().showDevTools().moveTo(devtool_x,devtool_y);
            require('nw.gui').Window.get().moveBy(win_x_offset,win_y_offset);
            if (autofocus === 'true') {
                require('nw.gui').Window.get().focus();
            };
        };
    };
    
}) ();
 

caethyril

^_^
Veteran
Joined
Feb 21, 2018
Messages
2,117
Reaction score
1,525
First Language
EN
Primarily Uses
RMMZ
I've seen others with a similar issue quite recently...starting to wonder whether there was some accidental/undocumented change in the recent 1.6.2 update. I'm still using 1.5.2, haven't noticed anything out of the ordinary. :kaoswt2:
 

MushroomCake28

KAMO Studio
Global Mod
Joined
Nov 18, 2015
Messages
3,729
Reaction score
4,685
First Language
English
Primarily Uses
RMMZ
Ohh forgot to add that I'm still using version 1.4.0 and that has not changed since my console stopped appearing. I can go by by pressing F12, but frankly I prefer when it automatically comes out when I start playtesting.
 

caethyril

^_^
Veteran
Joined
Feb 21, 2018
Messages
2,117
Reaction score
1,525
First Language
EN
Primarily Uses
RMMZ
Oh, so it's probably not directly related to RMMV... For reference, I just tested your little plugin in a new project and it opened the console on game load, no problems. Maybe an OS update is responsible? I'm on Windows 8.1. :)
 

MushroomCake28

KAMO Studio
Global Mod
Joined
Nov 18, 2015
Messages
3,729
Reaction score
4,685
First Language
English
Primarily Uses
RMMZ
OHHH There was a windows update yesterday... I wonder what changed.
 

Poryg

Dark Lord of the Castle of Javascreeps
Veteran
Joined
Mar 23, 2017
Messages
4,125
Reaction score
10,640
First Language
Czech
Primarily Uses
RMMV
Nothing special. Japanese version had an exclusive deployment option, this was removed.
 

MushroomCake28

KAMO Studio
Global Mod
Joined
Nov 18, 2015
Messages
3,729
Reaction score
4,685
First Language
English
Primarily Uses
RMMZ
Nothing special. Japanese version had an exclusive deployment option, this was removed.
What deployment option? And how does that affect the auto-console I had?
 

Poryg

Dark Lord of the Castle of Javascreeps
Veteran
Joined
Mar 23, 2017
Messages
4,125
Reaction score
10,640
First Language
Czech
Primarily Uses
RMMV
I don't know what deployment option. It was exclusive for Japanese, so it's irrelevant for us anyway and it means nothing has changed for us. As for your second question...
RPG maker MV 1.5.2 and greater use better version of NWjs. Sub 1.5.2 use 0.13.2, 1.5.2 and 1.6.0 use 0.25.4, 1.6.1 and 1.6.2 use nw.js version 0.29.0.
The difference between 0.13.2 and other versions is, the code for opening the dev console is different.
That's why you can't open the dev console via f8 if you use scripts from 1.4.0 in version 1.6.2.
In particular the difference between these two versions is:
0.13.2 uses
Code:
require("nw.gui").Window.get().showDevTools();
The two more recent versions use
Code:
nw.Window.get().showDevTools();
Also, the version 0.13.2 doesn't have the f12 key to open dev tools. It has been present in 0.22.3 and more recent, just like the new code to open dev tools among other things (including, but not limited to a bug fix of nw bytecode not being 70% slower compared to standard javascript)
 

MushroomCake28

KAMO Studio
Global Mod
Joined
Nov 18, 2015
Messages
3,729
Reaction score
4,685
First Language
English
Primarily Uses
RMMZ
@Poryg Ah, that's explain it. This is exactly why I didn't want my RPG Maker to update... but I suspect an update reset my steam settings and allowed my MV to be updated.
 

Users Who Are Viewing This Thread (Users: 0, Guests: 1)

Latest Threads

Latest Profile Posts

Our latest feature is an interview with... me?!

People4_2 (Capelet off and on) added!

Just beat the last of us 2 last night and starting jedi: fallen order right now, both use unreal engine & when I say i knew 80% of jedi's buttons right away because they were the same buttons as TLOU2 its ridiculous, even the same narrow hallway crawl and barely-made-it jump they do. Unreal Engine is just big budget RPG Maker the way they make games nearly identical at its core lol.
Can someone recommend some fun story-heavy RPGs to me? Coming up with good gameplay is a nightmare! I was thinking of making some gameplay platforming-based, but that doesn't work well in RPG form*. I also was thinking of removing battles, but that would be too much like OneShot. I don't even know how to make good puzzles!
one bad plugin combo later and one of my followers is moonwalking off the screen on his own... I didn't even more yet on the new map lol.

Forum statistics

Threads
106,035
Messages
1,018,454
Members
137,821
Latest member
Capterson
Top