Garry's Mod

Garry's Mod

329 ratings
gebLib | GMod Extension Base
   
Award
Favorite
Favorited
Unfavorite
Content Type: Addon
Addon Type: Tool
Addon Tags: Build, Roleplay, Realism
File Size
Posted
Updated
151.642 KB
1 Mar, 2024 @ 10:57am
10 May @ 8:47am
9 Change Notes ( view )

Subscribe to download
gebLib | GMod Extension Base

Description
gebLib is a gLua library for creating addons and improving QoL.

gebLib on GitHub[github.com]

gebLib currently includes several systems and utilities mod creators can use in their work. The library is under development and will get improved in the future. The library includes:
  • Camera system - allows you to create cinematic cutscenes
  • Status effects - a system that allows you to create modular buffs/debuffs you can apply on player or entities
  • Animation system - allows you to run animations and bind events to certain frames. Events support loops and playback rate changes. A great alternative to timers
  • Network library - an easier and convenient way to manage network instead of creating nets everytime. ( Doesn't replace nets though )
  • Utilities that can help you in creation of mods
The mod also includes modules created by other authors. These modules unfortunately were not merged with the main game, even though they're really good:
  • Extended Hook library[github.com] - A library that adds priorities to default hook library and other improvements
67 Comments
AJgamerboi 30 Jul @ 8:11pm 
This mod effect Shmovement's mod fov settings for some reason
func_kenobi 30 Jul @ 4:30pm 
А да, сорян что задампил всё на Английском, недопёр что вы Русский, только на ваш профиль взглянул...:steamhappy:
func_kenobi 30 Jul @ 4:26pm 
Also Steam fucked up the indentation on the code blocks... sorry, it is sad that they don't have formatting for that yet.
func_kenobi 30 Jul @ 4:25pm 
The error in ULib, is interesting, since I was unaware of it existing, I forgot that I have ULib manually mounted on my dedicated server...

If you ever find time to fix this, here are the git repositories of all addons involved:
https://github.com/metrostroi-repo/MetrostroiAddon
https://github.com/TeamUlysses/ulib
func_kenobi 30 Jul @ 4:25pm 
The function that appears to be failing looks like this:
function Metrostroi.GetTimedT(notsync)
local T0 = GetGlobalFloat("MetrostroiT0",os.time())+GetGlobalFloat("MetrostroiTY")
local T1 = GetGlobalFloat("MetrostroiT1",CurTime())
local dT
if notsync then
dT = (os.time()-T0) - (CurTime()-T1)
else
dT = (os.time()-T0 + (CurTime() % 1.0)) - (CurTime()-T1)
end
return dT
end
function Metrostroi.GetSyncTime(notsync)
return os.time()-Metrostroi.GetTimedT(notsync)
end
This might be a red herring.

But this one is promising:
hook.Add("PlayerButtonUp","metrostroi_button",function(ply, button)
local train,seat = ply:GetTrain()
if IsValid(train) and train.KeyBuffer then
if train.KeyBuffer[button] then
train.KeyBuffer[button] = nil
train:OnKeyEvent(button,false,ply,train.DriverSeat ~= seat)
end
end
end)

I am not familiar with LUA but, maybe ply is not defined somehow?
jopster1336  [author] 30 Jul @ 4:03pm 
how's that even possible... i guess i will look into it sometime soon
func_kenobi 30 Jul @ 10:03am 
This addon seems to be breaking Metrostroi addon https://gtm.steamproxy.vip/workshop/filedetails/?id=1095130789 in some wierd way.
Metrostroi cannot initialize with this addon enabled, making it unusable. I have tested it only with Metrostroi and your library enabled, disabling this library fixes the issue.

It would be great to fix this, because then I will be able to use the omni man swep on the train. :senpai:
The error:
[Metrostroi Subway Simulator - Scripts] lua/entities/gmod_track_clock_interval/init.lua:80: attempt to call field 'GetSyncTime' (a nil value)
1. unknown - lua/entities/gmod_track_clock_interval/init.lua:80 (x6)


[Metrostroi Subway Simulator - Scripts] lua/entities/gmod_subway_base/init.lua:1559: attempt to call method 'GetTrain' (a nil value)
1. fn - lua/entities/gmod_subway_base/init.lua:1559
2. unknown - lua/ulib/shared/hook.lua:109
NextKurome76TheSoldier 19 Jul @ 6:54pm 
[gebLib | GMod Extension Base] gamemodes/sandbox/gamemode/player_extension.lua:93: attempt to index local 'ply' (a boolean value)
1. Function - gamemodes/sandbox/gamemode/player_extension.lua:93
2. func - lua/includes/extensions/entity.lua:158
3. unknown - lua/includes/modules/hook.lua:267
Romaniac 24 Jun @ 6:34pm 
what happened to [gJujutsu] ?
jopster1336  [author] 17 Jun @ 2:05am 
i will probably replace it with something new, this one is pretty much outdated and abandoned and i didn't know a lot of stuff when i was making this thing