GrassClipper/README.md

157 lines
7.2 KiB
Markdown
Raw Normal View History

2022-04-19 23:07:19 +00:00
# GrassClipper
2022-05-07 08:25:30 +00:00
EN | [PL](README_PL.md) | [ID](README_id.md)
2022-05-05 01:41:33 +00:00
Experimental Grasscutter launcher for easily switching between Official and Private servers
2022-04-19 23:19:27 +00:00
2022-05-06 19:25:46 +00:00
[Download Here!](https://github.com/Grasscutters/GrassClipper/releases/) (Supports Windows 8+)
2022-04-19 23:19:27 +00:00
2022-04-26 06:12:16 +00:00
*\*Note: some translations are outdated, so if random English text appears or an option seems misleading, this is why. If you notice an issue like this, feel free to make a pull request!*
2022-04-21 23:10:25 +00:00
# Table of Contents
* [Setup (for users)](#setup-for-users)
* [Setup (for development)](#setup-for-development)
* [TODO](#todo)
* [Common Problems](#having-problems)
2022-05-06 17:21:28 +00:00
* [Proxy Installation not Opening/Failing](#manual-proxy-installation)
2022-04-23 05:24:45 +00:00
* [White Screen Fix](#white-screen-fix)
2022-04-29 07:26:45 +00:00
* [Error 502](#error-502)
2022-05-02 00:48:19 +00:00
* [Error 4206](#error-4206)
2022-04-25 05:26:31 +00:00
* [Infinite CMD Windows](#infinite-cmd-windows)
2022-04-23 05:24:45 +00:00
* [Broken Discord/Youtube](#my-discord-is-not-letting-me-send-messages-or-load-images-my-youtube-is-acting-strange)
* [No internet](#i-have-no-internet-after-closing-everything-restarting-my-pc)
2022-04-23 06:51:48 +00:00
* [Languages and Translation Credits](#available-languages-and-translation-credits)
2022-04-21 23:10:25 +00:00
* [Screenshots](#screenshots)
2022-04-20 23:27:40 +00:00
# Setup (for Users)
1. Download the zip file
2. Extract the zip file somewhere
3. Run `GrassClipper.exe`, install the proxy server, and set your game folder!
2022-04-20 23:27:40 +00:00
# Setup (for Development)
2022-04-19 23:19:27 +00:00
0. Clone the repository
1. Ensure you have [NodeJS](https://nodejs.org/en/download/) installed.
2. Install the `neu` CLI tool: `npm install -g @neutralinojs/neu`
2022-04-27 03:17:29 +00:00
3. Install the dependencies: `setup_win.cmd`
2022-04-19 23:19:27 +00:00
4. Compile and run:
* For testing: `npm run dev`
* For production: `npm run build`
# TODO
2022-04-24 00:13:35 +00:00
* Interface/internals
2022-04-21 10:48:10 +00:00
* [x] UI
* [x] Official and Private options
* [x] Server IP input
* [x] Fun fancy CSS styling n stuff (CoD: MW 2019-style vertical menu for choosing between official and private servers? [See this](https://charlieintel.com/wp-content/uploads/2020/11/MW-new-menu.png))
2022-04-21 23:14:27 +00:00
* [x] Kill switch script (optional)
2022-04-22 00:17:33 +00:00
* [x] Automatically run `install.cmd` when opening for the first time
2022-05-05 01:41:33 +00:00
* [x] Grasscutter auto-downloader
2022-04-24 04:36:39 +00:00
* [ ] Detect when in a folder that is inaccessible to the program (eg. `C:/Program Files`) and warn
2022-04-24 00:13:35 +00:00
* [ ] Custom images for private server sections (anyone is welcome to submit a pull request to add some!)
2022-05-05 01:41:33 +00:00
* [x] Optional username/password creation for servers before entering (not implemented in Grasscutter yet)
2022-04-24 00:13:35 +00:00
* [ ] Platform detection and bash scripts
* [ ] Integrated banner creator
2022-04-19 23:19:27 +00:00
* Proxy service
2022-04-21 10:48:10 +00:00
* [x] Local proxy server
* [x] Intercept and modify GI requests like with Fiddler, allow anything else to pass through
2022-04-24 00:13:35 +00:00
* [ ] Fix Discord and YouTube issues when proxy is enabled (maybe fixed)
2022-04-20 23:27:40 +00:00
# Having problems?
Below are some scenarios you may encounter and their solutions.
2022-05-06 17:21:28 +00:00
# Manual Proxy Installation
If you having trouble installing the proxy server, you can also install it manually. To do so:
1. Create a folder if it does not exist named `ext` in the GrassClipper folder.
2. Download and extract the contents of [this file](https://snapshots.mitmproxy.org/7.0.4/mitmproxy-7.0.4-windows.zip) into the `ext` folder
3. Double click `mitmdump.exe` and allow it to run for a few seconds to generate the certificate
4. Run this command as Administrator: `certutil -addstore root "%USERPROFILE%\.mitmproxy\mitmproxy-ca-cert.cer"`
5. Use GrassClipper like normal!
2022-04-25 05:44:58 +00:00
## White Screen Fix
2022-04-23 05:24:45 +00:00
2022-04-26 20:49:18 +00:00
Encountering a white screen? [Ensure WebView2 is installed](https://developer.microsoft.com/en-us/microsoft-edge/webview2/#download)
2022-04-23 05:24:45 +00:00
2022-04-25 03:06:21 +00:00
You may also want to run this command as administrator:
`CheckNetIsolation.exe LoopbackExempt -a -n="Microsoft.Win32WebViewHost_cw5n1h2txyewy"`
2022-05-03 07:19:56 +00:00
If you have Chinese characters in your file path, this may crash it too! I am working on a fix.
2022-05-05 06:29:47 +00:00
You can also try running in Windows 8 compatitbility mode.
2022-04-25 05:44:58 +00:00
If all else fails, you can run GrassClipper in `chrome` or `browser` mode. To do so:
* Create a shortcut to `GrassClipper.exe`
* Right click the shortcut, click `properties`
* In the `Target` box, at the very end, add ` --mode=chrome` or ` --mode=browser`
* `chrome` only works if you have Chrome installed, and will create a Chrome window
* `brower` will, you guessed it, open GrassClipper in your default browser
* Click `Ok`
* Run GrassClipper using this shortcut from now on!
2022-04-29 07:26:45 +00:00
## Error 502
2022-05-11 05:26:10 +00:00
***You may be using the wrong port, ensure your port in GrassClipper is either 443 or nothing (not 0, but literally nothing)***
2022-05-02 00:25:01 +00:00
1. If you are running a local server, ensure the local server is running. Otherwise, ensure the server you are connecting to is actually running.
2. If you are able, [use the development branch of Grasscutter](https://github.com/Grasscutters/Grasscutter/tree/development). It is known to work better with GrassClipper.
2022-05-01 06:15:57 +00:00
If you are still getting an error 502 when attempting to log in to your own server, open your Grasscutter config and add the following to the `DispatchServer` section:
2022-04-29 07:26:45 +00:00
```json
"PublicPort": YOUR_PORT
```
where `YOUR_PORT` is the same port you use as the `Port` value already. This will probably be 443.
2022-05-02 00:48:19 +00:00
## Error 4206
Ensure you have the correct `keystore.p12` file that comes with your branch (`stable` or `development`). Also ensure the password is set properly in Grasscutters `config.json` (blank for `stable`, "123456" for `development`).
2022-04-25 05:44:58 +00:00
## Infinite CMD Windows
2022-04-25 05:26:31 +00:00
If you are getting infinite CMD windows for any of the scripts (such as the proxy installation, or private server start), ensure you have UAC (user access control) set to any option that requires asking. Ensure your user account can open things as Admin.
2022-04-25 05:44:58 +00:00
## My Discord is not letting me send messages or load images/My Youtube is acting strange!
2022-04-20 23:27:40 +00:00
2022-04-21 07:44:32 +00:00
Discord/YouTube (plus surely some others) does not seem to be a fan of the proxy server. You may need to disable it by either closing mitmdump or by disabling your proxy in the Windows proxy settings.
2022-04-20 23:27:40 +00:00
2022-04-25 05:44:58 +00:00
## I have no internet after closing everything/restarting my PC!
2022-04-20 23:27:40 +00:00
The launcher most likely did not close correctly, and was unable to clean your proxy settings back to what they were. Disable your proxy in the Windows proxy settings.
2022-04-23 06:51:48 +00:00
# Available Languages and Translation Credits
2022-04-23 06:43:41 +00:00
2022-04-23 06:51:48 +00:00
Thank you to everyone who has provided translations! <3
2022-04-23 06:43:41 +00:00
2022-04-28 23:16:06 +00:00
* ZH - nuoxianCN, Scirese & MrAru
2022-04-30 12:48:44 +00:00
* ZH-TW - Kimi & KormiMeiko
2022-05-07 10:29:20 +00:00
* PT-BR - na.na & actuallyeunha
2022-05-07 00:29:49 +00:00
* VIE - labalityowo & lunaticwhat
2022-05-03 07:34:30 +00:00
* ID - Iqrar99 & nautilust
2022-04-23 23:41:52 +00:00
* FR - linsorak & memetrollsXD
2022-04-24 00:05:21 +00:00
* ES - memetrollsXD
* ND - memetrollsXD
2022-04-24 20:13:27 +00:00
* RU - fitiskin
2022-04-26 20:46:10 +00:00
* TR - lilmayofuksu
2022-05-05 16:06:45 +00:00
* JP - conochy
2022-05-07 08:25:30 +00:00
* HD - Arikatsu
2022-05-06 17:46:18 +00:00
* PL - zakhil-dev
2022-05-11 16:11:35 +00:00
* TH - ongsalt
2022-05-14 09:46:44 +00:00
* KO - tsukiroku
2022-04-23 06:43:41 +00:00
2022-04-21 07:00:30 +00:00
# Screenshots
2022-04-22 00:43:40 +00:00
![image](https://user-images.githubusercontent.com/25207995/164574276-645548c2-7ba6-47c3-8df4-77082003648f.png)
2022-04-21 07:00:30 +00:00
![image](https://user-images.githubusercontent.com/25207995/164393190-f7e6633c-60bd-4186-bf0c-30d9f30871f4.png)
![image](https://user-images.githubusercontent.com/25207995/164393040-4da72f29-6d59-4af4-bd60-072269f2ba2a.png)
![image](https://user-images.githubusercontent.com/25207995/164393024-56543ddf-7063-4c04-9a9f-0c6238f30e90.png)
![image](https://user-images.githubusercontent.com/25207995/164393118-de844e75-f9a2-491a-aea6-f2d563abecc7.png)
2022-04-23 06:21:30 +00:00
![image](https://user-images.githubusercontent.com/25207995/164882735-77aa535c-0e93-4b32-af7c-f8b59888257a.png)
2022-04-23 06:20:52 +00:00
![image](https://user-images.githubusercontent.com/25207995/164882716-c9f16cd0-c0b6-4c0a-ae9e-4c95da9ef7f5.png)
2022-04-22 00:43:40 +00:00
2022-04-21 23:07:41 +00:00