Git Product home page Git Product logo

cs2-inventory-simulator's Introduction

A Counter-Strike 2 Inventory Simulator for the web using TypeScript and Remix.

Inventory Simulator homepage

Inventory Simulator case opening

Features

  • Authentication is optional: most features work without authentication.
  • Steam authentication: enables Steam players to sync their inventories.
  • Craft Items: add items to your inventory, including Weapons, Knives, Gloves, Stickers, Agents, Patches, Music Kits, Graffiti, Collectibles, Cases, Keys, and Tools.
  • Equip Items: equip items as you would do in-game.
  • Case Opening: unlock cases by using Cases and their Keys.
  • Item Renaming: use the Name Tag tool to rename items.
  • Apply/Scrape Stickers: apply and scrape Stickers from items.
  • Storage Units: organize and store items in Storage Units.
  • API for developers: fetch a user inventory and equipped items by using HTTP endpoints.
  • Partial support for mobile devices

Bugs and Feature Requests

Please be sure to add the following prefixes in the title when opening an issue:

  • [BUG] for issues you have found within the core functionality.
  • [REQ] for requesting a feature not currently implemented.
  • [REQ/RULE] for requesting a rule to be implemented.

Documentation

The documentation is divided into several sections:

cs2-inventory-simulator's People

Contributors

ianlucas avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

cs2-inventory-simulator's Issues

[REQ] Support changing background

Would it be possible to implement support so that we can change the background?

Something like CS2, map background option and such.
image

It would also not be possible for the Settings option to move as if it were an option when clicking on our nickname or profile photo.

In this case, this change only stops when he is logged in, if he is not logged in with Steam it remains as it is currently.

[BUG/RULE] Rule overwriting

Table Rule i hide some types/craft from the panel.

image

So far so good, these types/craft are not visible to users.

However, for my user I said that he will still have full access.

image

As you can see in the screenshot below, I would have access and other users would not.

image

However, when I try to craft an item that would be blocked for other users, but for me I do not receive a synchronization error.

image

Could it be a configuration error in the RuleOverwriting table on my part, or even a BUG?

[REQ] New Sticker System

Can we expect a rewrite of the sticker system since in CS2 it was completely redone?

Furthermore, I noticed that when we apply stickers to weapons and even when we view weapons with stickers, they are not visible on the weapon.

image

[REQ] 5 Stickers

since there is a new 5 sticker limit i hope it can be implemented.

[REQ] Option to enable/disable features in the web panel

I believe that in the future we can use this web interface as the basis for a CSSharp plugin for CS2.

Use it so we can change the player's inventory within the server. This left a question, can we have a root/admin access option that allows us to enable and disable features in the web panel?

For example, it allows players to use the panel but they will not have access to open capsules, cases, acquire keys, etc. Just leave the option to choose skins, change nametag, stattrak and stickers.

Could something like this be possible for the future?

[REQ] Inspect Inventory Items (Info Icon Button)

Are you able to add a info icon on the bottem left etelling the link the wear and such, When you hover ovcer the sticker you can see the wear anc name of sticker. Have thge inspect buttton avvalible for the wepons in a storage unit and The wepon be able to see if its statrak or not.

[REQ] Option to view the storage unit

image

CS2 on storage units has the option to view inside them, without removing items. Would it be possible to implement this option as well?

I understand that the Retrieve Items option would have this function, but if the storage is empty it does not show it.

image

From what I remember, even the empty unit CS2 allows you to see inside.

Since the project is to be the closest to the CS2 inventory, I believe this feature would be interesting.

[BUG] Error login steam `Unexpected Server Error`

image

The table `public.UserPreference` does not exist in the current database.
    at In.handleRequestError (/app/node_modules/@prisma/client/runtime/library.js:122:6854)
    at In.handleAndLogRequestError (/app/node_modules/@prisma/client/runtime/library.js:122:6188)
    at In.request (/app/node_modules/@prisma/client/runtime/library.js:122:5896)
    at l (/app/node_modules/@prisma/client/runtime/library.js:127:10871)
    at getUserPreference (file:///app/build/server/index.js?t=1711416431282.3552:5274:17)
    at loader$a (file:///app/build/server/index.js?t=1711416431282.3552:5292:17)
    at Object.callRouteLoaderRR (/app/node_modules/@remix-run/server-runtime/dist/data.js:52:16)
    at callLoaderOrAction (/app/node_modules/@remix-run/router/router.ts:4043:16)
    at async Promise.all (index 0)
    at loadRouteData (/app/node_modules/@remix-run/router/router.ts:3320:19) {
  code: 'P2021',
  clientVersion: '5.11.0',
  meta: { modelName: 'UserPreference', table: 'public.UserPreference' }
}
GET /api/action/preferences 500 - - 4.435 ms
GET /craft?_data=routes%2Fcraft._index 200 - - 1.469 ms
PrismaClientKnownRequestError: 
Invalid `prisma.userPreference.findFirst()` invocation:


The table `public.UserPreference` does not exist in the current database.
    at In.handleRequestError (/app/node_modules/@prisma/client/runtime/library.js:122:6854)
    at In.handleAndLogRequestError (/app/node_modules/@prisma/client/runtime/library.js:122:6188)
    at In.request (/app/node_modules/@prisma/client/runtime/library.js:122:5896)
    at l (/app/node_modules/@prisma/client/runtime/library.js:127:10871)
    at getUserPreference (file:///app/build/server/index.js?t=1711416431282.3552:5274:17)
    at loader$a (file:///app/build/server/index.js?t=1711416431282.3552:5292:17)
    at Object.callRouteLoaderRR (/app/node_modules/@remix-run/server-runtime/dist/data.js:52:16)
    at callLoaderOrAction (/app/node_modules/@remix-run/router/router.ts:4043:16)
    at async Promise.all (index 0)
    at loadRouteData (/app/node_modules/@remix-run/router/router.ts:3320:19) {
  code: 'P2021',
  clientVersion: '5.11.0',
  meta: { modelName: 'UserPreference', table: 'public.UserPreference' }
}
GET /api/action/preferences 500 - - 7.249 ms
GET / 200 - - 38.676 ms
GET /?_data=routes%2F_index 200 - - 3.158 ms
POST /api/action/sync 200 - - 32.939 ms
POST /api/action/sync 200 - - 18.959 ms
POST /api/action/sync 200 - - 24.252 ms
POST /api/action/sync 200 - - 22.451 ms
POST /api/action/sync 200 - - 59.589 ms
GET /api/equipped/76561198152215513.json 200 - - 6.419 ms
POST /api/action/sync 200 - - 19.926 ms
GET /api/equipped/76561198380275130.json 200 - - 4.035 ms
GET /api/equipped/76561198964993976.json 200 - - 2.369 ms

However, even after this error, the login is still done when I enter the website link again.

[REQ] Agent Patch System

Patches can be applied in multiple slots of an agent, and it's not an equippable item like a pin. It's more like a sticker for agents.

[REQ] New Backgrounds

CS2 has some new backgrounds, Inferno, Baggage, Warehouse and others. Could they be added to the website?

image

[REQ] Improvements to the alert for empty units function

image

In theory, everything works perfectly.

However, users with full inventories, many skins, the storage unit is at the bottom of the page and when we click to activate it, the alert message when empty is fixed at the top.

It would be possible to make the alert show near the unit that we clicked to activate, move us to the notification box in the case and lock the inventory so that we cannot edit or open any case. Currently, if I scroll down the page, even with the notification on the screen, I can still perform actions on the skins/cases without closing the alert window.

[BUG] Hide Stickers from Item Editor as per rule

I have the following configuration in the rules:

CraftHideType: patch;case;key;graffiti;tool;sticker;pin;agent;musickit

image

So far, everything is fine, as you can see in the screenshot:
image

However, even though the sticker is removed for all users on weapon skins, stickers can still be added.
image

It would be interesting if the sticker rule doesn't even show on the skins. It would be the same if I apply rules for nametag, stattrak, seed and wear, if I add them it doesn't show the options even in the skins.

[REQ] Inspect Inventory Items

I wish there can be a button when you over over the weapon that can make the weapon larger and has th3e stickers larger and when you hover over them it has the name of the stickers. so kind of like inspecting a weapon but can be less detailed because to view the weapon you have to click edit to see the weapon and stickers at a larger scale.

[BUG] Apply Sticker to C4

image

Can we expect in future updates to see the sticker on the weapon like in CS2 and as it is removed, it will also update on the skin until it is completely removed?

I believe this is the same issue addressed in Issues #6.

[BUG] Warning message `You are not authenticated...`

image

I noticed that this warning is only displayed to the user if they have already logged in to the site. In other words, if you have never logged in and change your skins, you will not receive this warning, so you will not be notified that you need to be logged in to synchronize your skins.

Wouldn't it be correct for the message to appear to all users, even if they have never logged in to the site?

[BUG] No items to display for cases

I really really like your website I've been looking for one for many many while but can you fix stuff including like on some cases it says "No items to display" because when i get some case and it says that i cant open and and also is it impossible to pull knifes because ive been playing for a couple days and I've never pulled one how can i change the pull rate ands last thing. can you make accounts that have their own data and not just on steam like make a simple account with username password etc. that saves the guns and stuff so you don't have to have many steam accounts to log in with. like i said i really like your website and i would love for it to be further worked on thank you a lot my friend.
pasted

[REQ] Souvenir Weapons

Will you ever integrate souvenir weapons from the souvenir packages like when you pull a weapon it says souvenir and preset gold stickers on the weapon?

[REQ] Loadouts

It would be interesting to have the Preset category in the menu

image

How it would work would be collections of skins that the website's Admin Master/Root can create for users to select from.

For example, I create a collection of skins, knives and gloves that the Fallen uses and put it there, the player just enters and selects, same thing for other players, and personalized collections of skins.

This implementation may be applied in the future so that in order to access the collections/preset, you will need to have access, VIP, etc. But that for the future.

To begin with, it would be interesting to just have an option that we can configure, whether everyone can create these presets or only the master admin of the website will create them and the users will just select them.

[REQ] Implement Edit Craft

Would it be possible to have an option to edit the skin we crafted again? Edit nametag, stickers, stattrak, etc...

image

[REQ] More Storage.

Is it possible to make the storage unit or just the default storage to a higher number so i can put more stuff in a storage unit or in my inventory thanks.

[REQ] Improvements to the option to inspect storage units

Currently on the website, when we click to inspect a storage unit, it doesn't matter if it has items inside it or not, it opens normally.

In CS2, when it is empty, it shows a message about how the storage unit works.

image

Would this feature be possible on the website? The only change would be in the number of items shown, as we can change how many items will be able to be placed in the storage unit through the database with the InventoryStorageUnitMaxItems option, it would be interesting to show the number that we configure in it.

In other words, instead of showing 1,000 items, it would show 32 items or whatever number we configure.

[BUG] Duplicate Pins

image

Would these duplicate pins be normal? Or it would be possible to remove them, leaving just one.

[Q] Stats for nerds

What would stats for nerds be?

image

I already left it activated/deactivated and I still don't understand...

[BUG] Steam auth not working

I forked the repo and deployed it using EasyPanel while changing to MySQL, database seems to load fine, my api key is correct in environment variables. When I auth, it redirects back, but its not signed in. No errors are displayed

[REQ] Any text alowed in wepon name

pasted

Like for Example "<" and ">" arnt alowed in the name and (") isnt. maybe its a code thing that you cant alow those charicters but can you alow any charicter like any languges and symbols?

[REQ] Option to edit Header, Footer & SEO

Would it be possible to configure/change some Header, Footer & SEO information via the database?

What I thought of was some option to change the logo in the Header.

image

Option to change the favicon and title of the site, would be interesting.
image

SEO when we share the link by default with this information, it would be an interesting option to edit this text.

image

Regarding the site's credits, I thought about removing the Source Code and leaving the direct link to the project in the name in the credits.
image

And in addition to the project credits, you can also put a message at the front that we can change, for example:

cstrike's Inventory Simulator - CUSTOMIZABLE MESSAGE

[REQ] Change Zeus x27 skin category

image

As you can see in CS2 itself, the Zeus x27 is not in the Pistol category. I wonder if it would be more interesting to leave it in its own category, like in CS2, Equipment/Utilities?

[REQ] Preview Images for Weapon/Knife/Glove Seed+Wear+StatTrak and Sticker Wear

Some skins, for example, Case Hardened have different seeds, blue on the weapon changes position and so on. However, changing this seed in the web interface does not change anything on the website. It would be possible to implement this feature since in the option to view the wear it already exists on the website.

image

Same thing for Knives and Gloves.

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.