Giter Site home page Giter Site logo

l1ted / cs2-weaponpaints-website Goto Github PK

View Code? Open in Web Editor NEW
21.0 3.0 4.0 4.46 MB

Small website for Nereziel/cs2-WeaponPaints plugins

Home Page: https://cs.primat.fun

License: GNU General Public License v3.0

JavaScript 65.35% CSS 9.32% EJS 25.29% Batchfile 0.03%

cs2-weaponpaints-website's Introduction

Weapon Paints website

Website used for the cs2-WeaponPaints plugin

Screenshots taken from private version

Preview

Private

  • Download latest release
  • Fill config.json (see below), don't fill appKey in it
  • Start if linux npm run startLinux or if windows just open app.exe
  • Then in the console copy your UUID

  • Then pay via DonationAlerts $20 with a message like “Discord: {discord id} UUID: {uuid}”

  • After that i'll contact you and send you your app key

To get admin account go to wps_users, find your account and change admin to 1

Installation

Requires: Node.js 17 or later

{
    "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",
    "PROTOCOL": "https/http",
    "SUBDIR": "/skinsExample/ or just /",
    "PORT": 27275,
    "INTERNAL_HOST": "127.0.0.1 [For advanced use cases and users only. Read notes.]",
    "STEAMAPIKEY": "Your Steam Web API Key",
    "SESSION_SECRET": "Some random and secure string containing letters, numbers and special characters like !@#$%^&*(). Atleast 32 chars long.",
    "connect": {
        "show": true,
        "url": "steam://connect/[IP:PORT]?appid=730/[Server password if needed]"
    }
}
  • Make sure the database that you specified in the config is the same as in the WeaponPaints plugin. Otherwise the needed tables won't exist and the website won't work.

  • If you are running in docker or running some special server setup. You might encounter issues with the internal expressjs server. As its default running on 127.0.0.1. If you need to change this. You can do so via config option INTERNAL_HOST and set it to whatever interface you need. For most advanced use cases like reverse proxy 0.0.0.0 can be used.

  • Supported languages ru, en, pt-BR

  • And then

If Windows:

  ### public
  npm i
  npm run start

  ### private
  app.exe

If Linux:

  ### public
  npm i
  npm run startLinux

  ### private
  src/app
  # if you using pm2
  pm2 start "npm run startLinux"

Support me

Steam donations

cs2-weaponpaints-website's People

Contributors

l1ted avatar depstrcz avatar khaiizha avatar swaggymacro avatar crashzk avatar

Stargazers

 avatar Emre İreş avatar Morten Rode Enghausen avatar Jam avatar  avatar Matheus Santhiago avatar  avatar Mickaël avatar Dollan avatar Marchand avatar  avatar  avatar  avatar Bahodir avatar shadowbringer avatar  avatar Rabi avatar skyprah avatar  avatar  avatar  avatar

Watchers

Rabi avatar Gabriel 'sopax' Lima avatar  avatar

cs2-weaponpaints-website's Issues

[REQ] Show default CS2 skins in inventory for new players

I noticed that even though I didn't select any skin in the web interface, when I logged in it automatically showed the weapons with skins, as if I had chosen them.
image

Isos in the case for all weapons, only the knives that are not in the case. Wouldn't it be more interesting to show the default CS2 skins if the player hasn't chosen any yet? Would that be possible?

[REQ] Improvements in the Agents category

image

I believe it would be more interesting to just create the Agents category and when selecting it, have the option to choose CT or T.

By default, agent skins would be the CS2 default and if the user chooses a CT or T agent skin, they will update to it.

I also missed the default CS2 agent skin option, we can't choose it if we want. Just delete the account.

The other skin options include choosing the game's default skin.

[REQ] Add information on login screen

I believe we can make something more attractive for users who haven't logged in yet.

image

Text with server name and IP so that users can connect to the server. Something like this version: https://cs2.lielxd.com/

image

The refresh button on the page changes the server name and IP, that is, we can add several servers to display to users.

[REQ] Workshop system improvements

From what I could see, the workshop system allows the user to create up to 5 collections in addition to showing other users who also created the collections.

It would be possible to have a feature where only the Admin Master/Root of the site can create collections and users can just choose from the collections I create.

Some option to enable and disable this feature in case.

[REQ] Add Gloves

The public version wouldn't have Gloves, could you add them or would it only be in the private version?

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.