Trouble with Playtesting

Hello, I am having an issue getting the playtest function to work.
I recently switched from windows to Linux Mint and this problem only appeared after the switch.
Both the button in the engine and doable tapping the index file failed to load anything, though there was no error message or other indicator.
This has held true for projects created before and after the switch.
Launching from steam.
I don't think there's a nwjs-test for linux. You are running an windows app through steam but if I understand correctly, the play test button will still try to call the windows exe.
An alternative is downloading a sdk version of nw.js for your system (e.g., linux 64).

There are several ways to do that.
1. You unpack the files into your project folder, and run the executable nw. The problem is when you try to deploy the game, those will will be copied so you have to clean up, not nice.

2. Like step 1, but you move your project into a www sub folder. It should look like this:

1725499309728.png

You need to copy package.json from nwjs-win folder (check your steam game directory under RPG Maker MV). After that you can run nw to play test the game.

3. You can also run the game in a browser, but I guess you'll need to put the project inside a local web server and input the url to index.html into your browser (not sure how to do that in linux but I doubt it worths the trouble).
Aight I'ma need you to clarify a few of those words, I apologize for my ignorance
When you say to unpack the files are you referring to something like a zip file? Or are you saying I should take all the stuff in the folders and put it in one folder?
Does executable nw mean the "index.html" file?

Regarding step 2.
is it that I should create a www folder and stick the entire project in there?

Sorry, I'm really new to this stuff, I don't understand most of what I need to do.
When you say to unpack the files are you referring to something like a zip file?
Yes, if you clicked on the link @utunnels provided you'd see a bunch of zip files.

Does executable nw mean the "index.html" file?
No, an HTML file is not an executable. It's HTML, a Web page format.

is it that I should create a www folder and stick the entire project in there?
Yes, that's what he said and showed.

Sorry, I'm really new to this stuff, I don't understand most of what I need to do.
Completely unrelated to RPG Maker, I'm just curious why you chose to move to Linux. That's usually something that particularly tech-savvy people do, so they can customize their operating system in depth.
You know RMMV run games using a program called nw.js right?
In order to do playtest on linux you need to get one for linux.
For example, this one:

And yes I mean like a zip file (or in this case, it is a tar.gz file).

There should be a file named nw (see the screenshot I posted), it is the executable for linux.

To make it clear, you can go to your installation folder (where steam installs your game) and check the files there. Under RPG Maker MV, there should be a folder called nwjs-lnx. It contains the files the game will use when you deploy it.

---------------------------------------
is it that I should create a www folder and stick the entire project in there?
Yes, and after that you need to copy the nw.js sdk files like the screenshot shows.
After that you go to that nwjs-lnx folder(sorry I typed nwjs-win last time because I'm currently using windows) I said above and copy package.json (and Game.desktop if you like) as well.
When you want to do play test, you run nw, or Game.desktop.
Ahhhh, I did not know that! I do now tho XD

to make sure I understand, let me repeat back my understanding of what to do.
I chose and download the zip/other from that list and unpack it into the folder of the chosen project(? or into a wider projects folder? Would I do this for every project?)
I found the folder with nw and I see what you mean now. So I would then make a www file in the folder with the nw and put my entire project (including the new unpacked zip) in it, then copy the package.json to the file with nw. It should then run from there if I use nw.

Did I get that all right?

Completely unrelated to RPG Maker, I'm just curious why you chose to move to Linux. That's usually something that particularly tech-savvy people do, so they can customize their operating system in depth.
It's for a few reasons, the main ones being that it gives me less anxiety over Microsoft and Windows putting spyware onto my device without permission, and the desire to gain knowledge and experience in coding. Throwing myself in headfirst you could say, because I know I'm more likely to pick it up if I make it something that I need to know to use my computer instead of just being a side thing.
Well just see the screenshot, your project files should be inside that www folder and nw and other nw.js files outside of it.

Yes, for now you need to do that for every project. Unless you write a shell script that run nw.js from another directory. But I'm not proficient in that territory so I just use the easy way.
Just a little confusion left. Do I also unpack the zip outside the www folder, or just in the project file?

It'd be nice to learn both ways, but I definitely think the easy way matches my skill level atm. Maybe I'll do that at some point later ;D

edit: okay no I downloaded the zip and understand that I don't put it outside the www file. I went and copied the package.json from the nwjs-win to the file, and I'm assuming I let it replace the old one? I wasn't sure and I didn't want to spam so I just renamed the old one and let them both be there until I could ask.
You need to copy package.json from nwjs-lnx

OK let's forget the old steps.

1. Create a www folder inside your project folder, for example, /Project1/www.
2. Move all your project file inside www folder.
3. Get this: https://dl.nwjs.io/v0.29.0/nwjs-sdk-v0.29.0-linux-x64.tar.gz
4. Extract the files into /Project1
5. Copy package.json and Game.desktop from nwjs-lnx folder into Project1
6. Run nw or Game.desktop to test the game

Your Project1 folder should look like this:
1725511505283.png
Okay so the one I'm testing with looks just like that (except it's "Game.desktop~" for some reason) and it isn't loading when I try to run nw.
Do my projects need to be in the original rmmv project folder to work? I've had them in a file on my desktop for ease of access but that might be an issue.

Just to make sure, there should now be another layer in the specific projects file of these and then the original files in the www?
Your www should contains your original project files.
1725516806244.png


And the parent folder of www has those nwjs files. Right click on Game or nw and click open and it should run. Or you open a terminal in thise folder and type ./nw, it is the same.
1725516850769.png
Okay so I did the ./nw command and got this message:

Fontconfig warning: "/etc/fonts/fonts.conf", line 5: unknown element "description"
Fontconfig warning: "/etc/fonts/conf.d/10-hinting-slight.conf", line 4: unknown element "description"
Fontconfig warning: "/etc/fonts/conf.d/10-scale-bitmap-fonts.conf", line 4: unknown element "description"
Fontconfig warning: "/etc/fonts/conf.d/10-sub-pixel-rgb.conf", line 4: unknown element "description"
Fontconfig warning: "/etc/fonts/conf.d/10-yes-antialias.conf", line 4: unknown element "description"
Fontconfig warning: "/etc/fonts/conf.d/11-lcdfilter-default.conf", line 4: unknown element "description"
Fontconfig warning: "/etc/fonts/conf.d/20-unhint-small-vera.conf", line 4: unknown element "description"
Fontconfig warning: "/etc/fonts/conf.d/30-metric-aliases.conf", line 4: unknown element "description"
Fontconfig warning: "/etc/fonts/conf.d/40-nonlatin.conf", line 4: unknown element "description"
Fontconfig warning: "/etc/fonts/conf.d/45-generic.conf", line 4: unknown element "description"
Fontconfig warning: "/etc/fonts/conf.d/45-latin.conf", line 4: unknown element "description"
Fontconfig warning: "/etc/fonts/conf.d/48-spacing.conf", line 4: unknown element "description"
Fontconfig warning: "/etc/fonts/conf.d/49-sansserif.conf", line 4: unknown element "description"
Fontconfig warning: "/etc/fonts/conf.d/50-user.conf", line 4: unknown element "description"
Fontconfig warning: "/etc/fonts/conf.d/51-local.conf", line 4: unknown element "description"
Fontconfig warning: "/etc/fonts/conf.d/60-generic.conf", line 4: unknown element "description"
Fontconfig warning: "/etc/fonts/conf.d/60-latin.conf", line 4: unknown element "description"
Fontconfig warning: "/etc/fonts/conf.d/65-nonlatin.conf", line 4: unknown element "description"
Fontconfig warning: "/etc/fonts/conf.d/70-no-bitmaps-except-emoji.conf", line 4: unknown element "description"
[3214:3214:0905/112915.800788:FATAL😛latform_font_linux.cc(83)] Check failed: InitDefaultFont(). Could not find the default font
#0 0x76b9e831c36c <unknown>

[3248:3248:0905/112915.849042:ERROR:sandbox_linux.cc(377)] InitializeSandbox() called with multiple threads in process gpu-process.
Aborted (core dumped)

I hope this helps identifying what went wrong. It looks like the fonts are bugging out, but I don't know what that last one means.
Can you post a screenshot of your folder? The font is not an issue but it appears sandbox is the problem. So I suspect your package.json is not right.
Screenshot from 2024-09-05 16-59-44.png
Ah, forget it. I tried the terminal and had the same error message. But the game started without no problem. So did you see the game window appear?

Edit* OK, not exactly the same, I saw your core dump message. Hmmm
1725583194743.png
No, it doesn't seem to want to pop up. My task manager gets a little blip of activity then goes back to normal. Maybe I can check if it is running but just isn't showing a window? What should it have as a name? The projects name or nw?
It should be now. But since you have the core dump error message it means the app crashed.
You folder and files seems correct, except that Game.desktop which can be deleted as far as I know.

Jus to make sure, this is the content of package.json
JSON:
{
    "name": "KADOKAWA/RPGMV",
    "main": "www/index.html",
    "js-flags": "--expose-gc",
    "chromium-args": "--disable-setuid-sandbox",
    "window": {
        "title": "",
        "toolbar": false,
        "width": 816,
        "height": 624,
        "icon": "www/icon/icon.png"
    }
}
It looks right to me, but here's a screenshot
Screenshot from 2024-09-05 17-59-19.png
Hmm, what if you deploy the game? Cau you run it?
I'm not having anymore luck than with the project file
It's supposed to look like a copy of the project file right? And I run it from "Game" or "nw" right?

Also I get this error message when I try to run "Game.desktop~" Maybe relevant? Not sure.
Screenshot from 2024-09-05 18-16-38.png

Original thread: https://forums.rpgmakerweb.com/threads/trouble-with-playtesting.171678/