CREATE YOUR AI CUM SLUT ON CANDY.AI TRY FOR FREE
x

Tutorial Others Playing On Linux - Tutorials, Tools And Help

5.00 star(s) 3 Votes

burningcel

Newbie
Mar 7, 2021
30
22
Surround with quotes should do the trick
yep, it works

here are the updated scripts:
1.) Play natively on linux (and add cheat menu)
Bash:
#!/bin/bash

main() {
    # delete all windows executables and libraries
    find . -type f -iregex '.*\.\(exe\|dll\)' -delete

    # copy nwjs over
    cp -r ~/.local/rpgm_nw/nwjs/* "$PWD"

    # copy cheat menu to the plugin folder
    cp ~/.local/rpgm_nw/cheatmenu/* "$dir"/js/plugins

    # add cheat menu to plugins.js
    sed -i '/];/i,{"name":"Cheat_Menu","status":true,"description":"","parameters":{}}' "$dir"/js/plugins.js
    echo "done"
}

# RPGM MV
if [ -d "$PWD"/www ]; then
    dir=$PWD/www
    main
# RPGM MZ
elif [ -d "$PWD"/js ]; then
    dir=$PWD
    main
else
    echo "$PWD doesn't seem to be a valid RPG MV/MZ game, exiting."
fi
2.) Fix file case sensitivity when needed
Bash:
#!/bin/bash

dir=$PWD/www

if [ -d "$dir" ]; then
    # copy scripts over
    cp -r ~/.local/rpgm_nw/file_case/* "$PWD"

    # build pathdata
    python build_asset_data.py

    # edit plugins.js
    sed -i $'/\\[/{a{"name":"kin-kun/PreloadXZ","status":true,"description":"","parameters":{}},\n:a;n;ba}' "$PWD"/www/js/plugins.js
    echo "done"
else
    echo "$PWD doesn't seem to be a valid RPG MV game, exiting."
fi
 
  • Like
Reactions: rrxm

burningcel

Newbie
Mar 7, 2021
30
22
Open package.json and check if "name" is empty. If its empty fill it with game name.
Yep, this solved it.

Why doesn't it detect the game directory in the newer versions tho? Do I really need to manually edit configs now? :FacePalm:
Apparently nwjs doesn't care at all about the contents of the "name" field, it only cares if it is empty or not.
Retarded pr*grammers, just WHY? Sanity check?

Will try to update the script to automatically edit the config when it copies new nwjs into the game directory then.
This is why I hate pr*grammers, can't wait when AI replaces those dumb***** already!
 
Last edited:
  • Like
Reactions: ChopTheHead

Flugelbozz

Member
Nov 12, 2018
304
240
great thread! I wish I stumbled upon this when I first started out, I used to just type in "linux" in the thread search which is a hit or a miss sometimes (when no one posts the fix :c).
 
  • Like
Reactions: densittie
Sep 10, 2022
227
267
Mh, I could not replicate your error because v0.75.1 does not even work on my system. It just throws a couple of errors (I guess it is a driver issue).
Anyway, that was my step-to-step solution, hope this helps:
You don't have permission to view the spoiler content. Log in or register now.
What ciopfs is? I found their github but the explanation was too little and there is no release so I don't know how to download, and I have no clue what your step 3 did.
 

scrumbles

Well-Known Member
Jan 12, 2019
1,069
1,096
What ciopfs is?
An utility that lets you mount a directory in case insensitive fashion. No matter how the file name is typed (uppercase, lowercase, camel case), the game will not crash when it loads any image or asset.
In Ubuntu and Mint ciopfs can be installed via sudo apt install ciopfs, but I do not know about other distros.
 
Sep 10, 2022
227
267
An utility that lets you mount a directory in case insensitive fashion. No matter how the file name is typed (uppercase, lowercase, camel case), the game will not crash when it loads any image or asset.
In Ubuntu and Mint ciopfs can be installed via sudo apt install ciopfs, but I do not know about other distros.
Didn't worked ciopfs said that there was no such file or directory, I'm just gonna quit and try another game, can I run RPG Game XP like Urban Demons thru Lutris? the guide said wine but it seems like a drag to make it work.
 

deesosa

Member
Dec 15, 2018
150
421
probably because i use zsh so i never noticed. Anyway i also updated the cheat menu sed command to hopefully never fail (insert multiple lines) now, and to replace the name field in package.json to avoid the error with latest nwjs. Oh and it also means that nwjs will no longer shit up your .cache and .config directory as the games will always use .config/"name field" now.

Bash:
#!/bin/bash

main() {
    # delete all windows executables and libraries
    find . -type f -iregex '.*\.\(exe\|dll\)' -delete

    # copy nwjs over
    cp -r ~/.local/rpgm_nw/nwjs/* "$PWD"

    # copy cheat menu to the plugin folder
    cp ~/.local/rpgm_nw/cheatmenu/* "$dir/js/plugins"

    # add cheat menu to plugins.js
    sed -i '/^];/i,{"name":"Cheat_Menu","status":true,"description":"","parameters":{}}' "$dir/js/plugins.js"

    # Replace the "name" field with "RPGM MV"
    sed -i 's/"name": "[^"]*"/"name": "RPGM MV"/' "$PWD/package.json"
    echo "done"
}

# RPGM MV
if [ -d "$PWD/www" ]; then
    dir=$PWD/www
    main
# RPGM MZ
elif [ -d "$PWD/js" ]; then
    dir=$PWD
    main
else
    echo "$PWD doesn't seem to be a valid RPG MV/MZ game, exiting."
fi
 
Last edited:
  • Like
Reactions: burningcel and rrxm

Archlich

New Member
Jan 26, 2018
4
0
Hi, I'm trying to run some RPGM games (Zombies Retreat 1 & 2, House Chores, etc) with the automated script patcher.

When I start any of the games, I get the next error and the game dont run.

(nw:24489): Gtk-WARNING **: 10:10:55.681: Theme parsing error: gtk.css:1649:16: '-gtk-icon-size' is not a valid property name

(nw:24489): Gtk-WARNING **: 10:10:55.681: Theme parsing error: gtk.css:1652:16: '-gtk-icon-size' is not a valid property name
[24489:24489:0530/101055.754136:ERROR:chrome_browser_cloud_management_controller.cc(162)] Cloud management controller initialization aborted as CBCM is not enabled.
[0530/101055.805159:ERROR:elf_dynamic_array_reader.h(64)] tag not found
[0530/101055.805419:ERROR:elf_dynamic_array_reader.h(64)] tag not found
[0530/101055.805440:ERROR:elf_dynamic_array_reader.h(64)] tag not found
libva error: /usr/lib/dri/i965_drv_video.so init failed
There is also a message in a textbox telling me "Required value 'name' is missing or invalid."

Is there something I need to install or modify?

I'm using Manjaro with KDE Plasma Desktop

Sorry, but english is not my native language

Thank you
 
Jul 28, 2019
256
172
Hi, I'm trying to run some RPGM games (Zombies Retreat 1 & 2, House Chores, etc) with the automated script patcher.

When I start any of the games, I get the next error and the game dont run.



There is also a message in a textbox telling me "Required value 'name' is missing or invalid."

Is there something I need to install or modify?

I'm using Manjaro with KDE Plasma Desktop

Sorry, but english is not my native language

Thank you
The last line "libva error: /usr/lib/dri/i965_drv_video.so init failed" indicates a video driver error. I suspect this is the root of your problem.

Try:
Code:
pamac install intel-media-driver
See for reference. (The last couple of posts make me suspect it is an issue with Manjaro configuration.)
 
  • Like
Reactions: Archlich

Archlich

New Member
Jan 26, 2018
4
0
The last line "libva error: /usr/lib/dri/i965_drv_video.so init failed" indicates a video driver error. I suspect this is the root of your problem.

Try:
Code:
pamac install intel-media-driver
See for reference. (The last couple of posts make me suspect it is an issue with Manjaro configuration.)
Thank you very much.

Indeed, that solves the last line of error. The others remain though :(
 
Jul 28, 2019
256
172
Thank you very much.

Indeed, that solves the last line of error. The others remain though :(
Okay, glad to have helped a bit.

Which version of are you using? There have been numerous reports of with more recent versions. Could try an older one like 67.1 or even go back to 49.1 (these have been reported recently in this thread to be working better).
 
  • Like
Reactions: Archlich

Archlich

New Member
Jan 26, 2018
4
0
Okay, glad to have helped a bit.

Which version of are you using? There have been numerous reports of with more recent versions. Could try an older one like 67.1 or even go back to 49.1 (these have been reported recently in this thread to be working better).
I run the script.
With nwjs v67.1 the game work perfectly, thank you very much :)
 
Sep 10, 2022
227
267
I tried installing Urban Demons and after doing the steps on the first page, I get the error that RTP VXAce is not installed, even tough I installed it on my wine prefix like it was asked, any solution?
 
Sep 10, 2022
227
267
I tried installing Urban Demons and after doing the steps on the first page, I get the error that RTP VXAce is not installed, even tough I installed it on my wine prefix like it was asked, any solution?
I managed to fix it on the modded version by just throwing the vx ace rtp on the games folder and running pressing the right button on the game.exe and choosing to run on wine, but if I try the same on the og game, this error happens. If I try to install the way intendended in the first page I get the same mistake form before.
 
Sep 10, 2022
227
267
tried to install l3codecx.ax in my wineprefix and I get this error l3codecx install completed, but installed file /home/home/.local/share/wineprefixes/UDOG/dosdevices/c:/windows/syswow64/l3codecx.ax not found

edit: anoter error
dmband install completed, but installed file /home/murillo/.local/share/wineprefixes/UDOG/dosdevices/c:/windows/syswow64/dmband.dll not found
 
Last edited:
Jul 28, 2019
256
172
tried to install l3codecx.ax in my wineprefix and I get this error l3codecx install completed, but installed file /home/home/.local/share/wineprefixes/UDOG/dosdevices/c:/windows/syswow64/l3codecx.ax not found

edit: anoter error
dmband install completed, but installed file /home/murillo/.local/share/wineprefixes/UDOG/dosdevices/c:/windows/syswow64/dmband.dll not found
Have you tried a 32-bit wine prefix? See appendix d in the OP.
 
5.00 star(s) 3 Votes