Garry's Mod

Garry's Mod

354 个评价
gebLib | GMod Extension Base
   
奖励
收藏
已收藏
取消收藏
素材类型: 插件
插件类型: 工具
插件标签: 建筑, 角色扮演, 写实
文件大小
发表于
更新日期
151.642 KB
2024 年 3 月 1 日 上午 10:57
5 月 10 日 上午 8:47
9 项改动说明 ( 查看 )

订阅以下载
gebLib | GMod Extension Base

描述
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 条留言
AJgamerboi 7 月 30 日 下午 8:11 
This mod effect Shmovement's mod fov settings for some reason
func_kenobi 7 月 30 日 下午 4:30 
А да, сорян что задампил всё на Английском, недопёр что вы Русский, только на ваш профиль взглянул...:steamhappy:
func_kenobi 7 月 30 日 下午 4:26 
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 7 月 30 日 下午 4:25 
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 7 月 30 日 下午 4:25 
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  [作者] 7 月 30 日 下午 4:03 
how's that even possible... i guess i will look into it sometime soon
func_kenobi 7 月 30 日 上午 10:03 
This addon seems to be breaking Metrostroi addon https://psteamcommunity.yuanyoumao.com/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 7 月 19 日 下午 6:54 
[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 6 月 24 日 下午 6:34 
what happened to [gJujutsu] ?
jopster1336  [作者] 6 月 17 日 上午 2:05 
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