Git Product home page Git Product logo

cs2-weaponpaints-website's Introduction

🗣️Preface

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.

modified list:

  • 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.

📝Before Start

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 to src/public/images folder.
  • Replace all url https://raw.githubusercontent.com/ByMykel/counter-strike-image-tracker/main/static/panorama/images to /images in src/public/js/json/skins/{lang}-skins.json and src/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.

📸Screenshots

Weapon, agent, knife, glove Skin Plugin from cs2-WeaponPaints

🖥️Installation

Dependencies: Node.js 17 or higher version (But I tried Node.js 16, also working fine.)

  • Clone the latest code of this repo.
  • Copy src/config.example.json to config.json and fill in the information.
  • Fill in lang with en to use english, other languages please refer to src/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

cs2-weaponpaints-website's People

Contributors

swaggymacro avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.