Skip to content
/ gmbc Public
forked from willox/gmbc

bytecode loader for gmod servers

License

Notifications You must be signed in to change notification settings

foverzar/gmbc

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

gmbc

It's a bytecode loader for gmod servers

Usage

local bytecode = string.dump(function() print "my secrit code" end)
-- 10 minutes later
require("gmbc")
gmbc_load_bytecode(bytecode)()

Building

Dependencies

  1. Rust (https://www.rust-lang.org/tools/install)
    1. Note: Rust may depend on a separate compiler on your platform, such as Visual Studio, GCC, etc:
      1. Windows: Install Visual Studio 2019
      2. Linux: Install gcc-multilib
  2. (Optional) Additional Rust toolchains for compiling 32-bit binaries:
rustup target add i686-pc-windows-msvc # Windows
rustup target add i686-unknown-linux-gnu # Linux

Windows

git clone https://github.com/willox/gmbc
cd gmbc
cargo build --release --target=i686-pc-windows-msvc # 32-bit
cargo build --release --target=x86_64-pc-windows-msvc # 64-bit

You can then find gmbc.dll in ./target/<target>/release. Rename it to gmsv_gmbc_win32.dll or gmsv_gmbc_win64.dll and you are done.

Linux

git clone https://github.com/willox/gmbc
cd gmbc
cargo build --release --target=i686-unknown-linux-gnu # 32-bit
cargo build --release --target=x86_64-unknown-linux-gnu # 64-bit

You can then find gmbc.so in ./target/<target>/release. Rename it to gmsv_gmbc_linux.dll or gmsv_gmbc_linux64.dll and you are done.

About

bytecode loader for gmod servers

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Rust 100.0%