1. that should have been `./electron .' to run the game. I did not package it.
I think this may be due to the update; the second sed replacement no longer works, because the culprit is now called AC, not yC. and the p variable is now called q. try again with as last two commands:
Code:sed -i 's/\((0,this.AC\[l\])(p,r);\)/if(typeof this.AC[l]=="function") {\1}/' compiled.js # and ./electron . # HTH
Code:
#!/bin/bash
#Script to setup Heroine Rescue Team (picobyte's method)
#Should be run from game directory (v5.xxx)
#First install asar and electron
#In archlinux: pacman -S electron asar
#Original Directions per picobyte:(I didn't need to use these)
#npm i -D electron@latest
#ln -s node_modules/electron/dist/electron
#electron resources/app.asar
#Extract asar files to the current directory
asar e resources/app.asar .
asar e resources/electron.asar .
#Picobyte's excellent sed statements
sed -i -r 's/("|images|meshes|voxel|data|resources)\\\\/\1\//g;s/\\\\("|data|electron)/\/\1/g' compiled.js
sed -i 's/\((0,this.AC\[l\])(p,r);\)/if(typeof this.AC[l]=="function") {\1}/' compiled.js
#Then launch game with:
#electron . #In archlinux, or when electron is installed via repository
#./electron . #Picobyte's method
You must be registered to see the links
Thank you! Giving you full credit for this one. I compiled the directions into one place for anyone else who looks, and made a gist that can be updated in the future for different versions.
Hopefully that's cool with you? I probably won't be able to update the sed statements, though.