This repo is a modified version
of cs2-WeaponPaints-website, which has localized skin images(Chinese Language Only) and complete Chinese translation, as well as added support for glove change
, and optimized the original request part Prevent an abundance of redundant requests about JSON files., the original project will make dozens of requests for JSON files of skin weapons.
- Localized skin, agent images (Chinese Language Only, You shouldn't need this if you are not in China.)
- Support
glove change
- Support
music kit change
- optimized the original request part
Btw, the original project got a private plan, You guys can donate to the original author to get the private plan. The private plan has more features like gloves change
, workshop
(Idk what's this, It seems like a backend that can be used to manage the user's skins, but I'm not sure about this.).
This repo is a modified version. If you need the private plan, Please go to the original author's repository.
You can step out of this section if you are not in China or you don't wanna localize the images.
- You need download this repo counter-strike-image-tracker
- extract
static/panorama/images
tosrc/public/images
folder. - Replace all url
https://raw.githubusercontent.com/ByMykel/counter-strike-image-tracker/main/static/panorama/images
to/images
insrc/public/js/json/skins/{lang}-skins.json
andsrc/public/js/json/skins/{lang}-agents.json
.
The images folder size will be around 1.16GB
.
The reason for localizing the images is nothing else, because Github loads slowly in China, so I chose to localize them, you don't need this step if you are not in China.
Weapon, agent, knife, glove Skin Plugin from cs2-WeaponPaints
- Clone the latest code of this repo.
- Copy
src/config.example.json
toconfig.json
and fill in the information. - Fill in
lang
withen
to use english, other languages please refer tosrc/lang
folder.
{
"name": "Title of your website",
"lang": "en",
"DB": {
"DB_HOST": "host",
"DB_USER": "username",
"DB_PASS": "password",
"DB_DB": "database name"
},
"HOST": "example.com or localhost/127.0.0.1",
"SUBDIR": "/skinsExample/ or just /",
"PORT": 27075,
"STEAMAPIKEY": "Your Steam Web API Key",
"connect": {
"show": true,
"url": "steam://connect/[IP:PORT]?appid=730/[Server password if needed]"
}
}
- Then run the following commands:
Windows:
npm i
npm run start
Linux:
npm i
npm run startLinux