Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up

Toolkit for garrysmod development with the source sdk and lua c api

License

NotificationsYou must be signed in to change notification settings

Vurv78/rglua

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

87 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

This is a crate that allows interop with the (g)luajit c api as well as the source sdk through libloading and vtable bindings.You can then use these for binary modules or manually injected code, like withAutorun-rs

More information on binary modules can be found on the garrysmod wiki:Creating Binary Modules and examplescan be found here.

Usage

If you are targeting 32 bit make sure to install the toolchain and build to it:

rustup target add i686-pc-windows-msvccargo build --target=i686-pc-windows-msvc

Comparison

There are actually a decent amount of libraries out there for gmod development.Here's a comparison and why you could use this one.

Libraryrgluarust-glua-sysgmod-rsgmrs
Full Lua C Api Bindings✔️
On Crates.io✔️✔️
Proc Macros✔️✔️✔️
Interfacing w/ Source SDK✔️
Returning Result<> from functions✔️✔️
Can be used on stable✔️✔️✔️
Real world examples✔️〰️✔️
Linux / OSX Support✔️✔️✔️
Github Stars😢👍👑🤷‍♂️

You can help with that last one 😉

Acknowledgements

This is heavily based off of garrysmod_common, in how we export the lua_shared functions and trying to replicate everything from the Lua C Api.


[8]ページ先頭

©2009-2025 Movatter.jp