Skip to content

๐ŸŽ—๏ธ Garry's Mod Modification, that allows to manage DLL (binary) modules between Server and Client

License

Notifications You must be signed in to change notification settings

autumncommunity/b2m

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

13 Commits
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

B2M

Garry's Mod binary modules manager


B2M - Binary Module Manager.

Part of B2M Description
b2m_binary Main Binary Module. Adds functions needed for b2m_lua to Lua.
b2m_menu Binary module for add gameevent.Listen function

Working principle

The client downloads B2M once from the site, and installs it according to the guide on the site.

Then, if on the server, to which the player will connect, also will be B2M, then on the client's computer will download all dependencies (binary modules), which installed the server.

Also B2M can be used simply as a package manager of binary modules only for the server.

Use examples

Server console:

Binary module installation
b2m install <name> <version> [flags]

b2m install chttp * // * - newest version
b2m install chttp 1.0.0 // 1.0.0 version
b2m install chttp * --server-only // install CHTTP module only on server

Binary module remove

b2m remove <name>

b2m remove chttp

Lua side

-- Including binary module

if b2m and b2m.Require("chttp") then
  print("chttp binary loaded")
else
  error("couldn't load chttp module! (b2m not installated/b2m binaries loading disabled/chttp module not found")
end