Giter Site home page Giter Site logo

teamscaleform / scaleform Goto Github PK

View Code? Open in Web Editor NEW
79.0 3.0 13.0 10.19 MB

A cross-platform, hackable and future-proof reimplementation of In-Game Scaleform HUD in CS:GO using Panorama. Written using C, C++ and JS.

License: GNU Affero General Public License v3.0

CMake 0.12% Batchfile 0.02% C++ 69.39% C 28.58% Roff 0.04% JavaScript 1.86%
csgo memory-hacking modding panorama scaleform game linux windows

scaleform's Introduction

aventum discord
tsf discord
Join us on Discord! banner banner

scaleform

A hackable and future-proof reimplementation of In-Game Scaleform HUD in CS:GO using Panorama. Written using C, C++ and JS.

showcase showcase

Disclaimer

We're not responsible for any potential VAC bans from using our project. Do not use this on any account you care about, unless you use -insecure, or respectively sv_lan 1 on local servers.

Features

  • NEW: Cross-platform support!;
  • JavaScript loader (load changes at run-time, on bind);
  • Toggle Scaleform at run-time, without restarting game (on keybind - you're currently required to disconnect after toggling off, not when toggling on);
  • Hot-swappable Win Panels (on keybind);
  • Toggle Weapon Selection "show rarity" on/off (on keybind);
  • Fully supports (almost) every HUD command (including cl_hud_color, cl_hud_background_alpha, cl_hud_healthammo_style, etc...);
  • -insecure is not enforced;
  • No performance drawbacks (unlike with HLAE+MIGI);
  • Fully standalone (you only have to inject one DLL);
  • Future proof (does not require to be updated for code.pbin updates - unless it breaks any of the JavaScript itself);
  • Customizable (you can modify the CSS to your desires, and you can change keybinds and default states in config.hpp).

Known Issues

Check the Issues tab.

Main Menu

If there's interest, and support, we're willing to kickstart progress towards replicating the Scaleform main-menu(s). Anyhow, before we divert any attention to that, there's much work left on the In-Game HUD.

Contributing

Even if you don't know C++, you can write your changes in JavaScript (relating to the schema itself), and we will help implement the necessary boiler-plate for your change. If you're interested in doing such things, please join our Discord and see the #contributing channel. Thank you for your interest!

NOTE: Once you open your game, you'll be told where your custom JavaScript file is expected. If it is not found, and you press the Load JavaScript keybind, you'll be announced in the console.

Building - Windows

To build this project, you must install CMake (>=3.21), Ninja and Visual Studio 2022 Developer Tools, then, open up Developer Command Prompt for Visual Studio 2022, go to the respective directory where your clone of this project is located (quick-tip: if your clone is located on a disk other than your start disk, you can modify the Developer Command Prompt 'Start In' flag, in properties), then write:

./build_release.bat for release builds, or;

./build_debug.bat for debug builds (includes Debug logs).

Then, a build should start, and when it's done, your command prompt will be moved to the output directory, which should contain a TeamSCALEFORM.dll binary.

Ports

We support ports of the boilerplate to software's APIs. If you developed a port of the scaleform boilerplate, open a pull request that links your repository under this comment.

Alternatives

If you're a movie-maker, and you want something better suited for that purpose, please refer to this.

Licensing

This project is licensed under the AGPL-3.0 license. For a TLDR, refer to this. Please respect this.

Scams

If some are blind to the "Licensing" section, they're going to be 'advertised' here, so you know who to avoid. We encourage people to make pull requests, if they ever notice a project using this against our firm licensing terms, which name and link said project.

scaleform's People

Contributors

bruhmoment21 avatar cristeigabriel avatar koutsie avatar swoopae avatar xpbvr avatar

Stargazers

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

Watchers

 avatar  avatar  avatar

scaleform's Issues

Linux Support ...when?

Realistically how difficult/feasible would porting this project to Linux be?
Being able to use this without dual-booting would be really nice.

Images for HUD do not load.

When I inject the ScaleForm.dll to csgo.exe with the -insecure parameter it doesn't load the images at all.
Not sure if its on my end, Due to me having poor coding skills in general or following instructions.

Issue:
Counter-strike  Global Offensive Screenshot 2023 05 18 - 00 03 04 29

Buy Cart is embed into Money BG

This is because we do the buyzone.js hack due to issues that occur if we try to move the actual respective responsible buycart object.
The issue here is that it follows cl_hud_background_alpha.

Zeus image improperly being rendered

System Information

OS: Microsoft Windows 10 x64 LTSC 21H2
DE: explorer.exe
WM: dwm.exe
ScaleForm Ver. latest git commit from Jul 30, 2022, 02:29 AM

Description

The Zeus X27 image is not properly being rendered, it gets cut whenever you wear it or not.

Steps to reproduce

Inject ScaleForm, go onto a CS:GO match and purchase the Zeus X27

Image

image

GitHub actions

Implementing GitHub actions would be real fancy, and having a release page using the artifacts produced would be great (I plan to start versioning Scaleform on GitHub). On Windows it should be pretty simple - ./buld_release.bat, but the current Linux build system is kind of integrated in the CMakeLists.txt, therefore moving it away from there (note: does anyone know the Linux support for CMakePresets? It'd be great to be able to exactly replicate the build process) would help our case (an alternative would be just shipping the build type as release, but that's horribly hacky... and also what's being done currently).

Support more gamemodes

Gamemode support is currently lackluster and it's just expected for everything to harmonically work (example: in Deathmatch, or, oh God, I didn't even consider Danger Zone...)

Event delays

Event firing is delayed by the game. Changing this could be a potentially controversial choice. It should be considered and tested.

Radar images

Radar images were different in Scaleform time, but they're also innacurate to map updates. Therefore, they should be toggle-able.

Prettify JS

The JavaScript is not particularly elegant, so it'd be worth to look into improving it.

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.