Left 4 Dead 2

Left 4 Dead 2

1,355 ratings
Manacat Common Library
2
   
Award
Favorite
Favorited
Unfavorite
Game Content: Scripts
File Size
Posted
Updated
153.640 KB
6 Jan, 2014 @ 9:17am
18 Oct @ 5:08am
69 Change Notes ( view )

Subscribe to download
Manacat Common Library

In 4 collections by MANACAT
MANACAT's Anti-Troll Tools
6 items
MANACAT's Local Server Support Tools
36 items
MANACAT's CHOICE
19 items
MANACAT's Hard-Mode Modules
17 items
Description
What is this? and Why?
This is a common library package that must be subscribed to in order to properly use add-ons created by Manacat.

Previously, every each addons i made contained the common script parts. but, as the number of addons increased, it became difficult and occur issues to manage by updating every addons whenever the common script was modified, so i separate the common part like this.

Notes
This library aims to maximize the performance assurance of products made by Manacat. And among them are our Extended Stuffs Skin Packs. Even if you don't use our skin packs anything, this library randomly sets item skins for skin pack users who might join your lobby, and handles some of the functionality related to item acquisition. As such, it may conflict with other scripting functions, and if a conflict is found, I will try to resolve it by primarily, but if it can't, I will do nothing unfortunately. So if you reach mods conflict deadlock, you may need to consider giving up on one side.

Troubleshooting
Even if you have some problem, most of the time it works fine for me. In such cases, I can't help you accurately just by reading a few lines of your comment. I may need your screenshots, video recordings, and streaming to accurately verify the situation. For more active communication, please join my Discord channel.[discord.com]
132 Comments
MANACAT  [author] 19 Oct @ 12:18pm 
@Sunbro JL
Look elsewhere for the cause
Sunbro JL 19 Oct @ 11:06am 
Did this affect grenade launcher scripts? Ever since this updated the GL now counts as a sidearm.
NachosChipeados 17 Oct @ 1:08pm 
This happens when dropping gascans:


AN ERROR HAS OCCURED [the index 'models/props_junk/gascan001a.mdl' does not exist]

CALLSTACK
*FUNCTION [resetSkinBody()] scripts/vscripts/manacat_lib/rngitem.nut line [596]
*FUNCTION [OnGameEvent_weapon_drop()] scripts/vscripts/manacat_lib/rngitem.nut line [590]
*FUNCTION [__RunEventCallbacks()] unnamed line [211]
*FUNCTION [__RunGameEventCallbacks()] unnamed line [218]

LOCALS
[mdl] "models/props_junk/gascan001a.mdl"
[entity] INSTANCE
[this] TABLE
[body] 0
[skin] 1
[drop] INSTANCE
[player] INSTANCE
[params] TABLE
[this] TABLE
[funcName] "OnGameEvent_weapon_drop"
[idx] 0
[useTable] TABLE
[bWarnIfMissing] false
[globalTableName] "GameEventCallbacks"
[prefix] "OnGameEvent_"
[params] TABLE
[event] "weapon_drop"
[this] TABLE
[params] TABLE
[event] "weapon_drop"
[this] TABLE
4512369781 5 Oct @ 11:23pm 
@MANACAT
perhaps the trace hit player or something has a shorter class name.
MANACAT  [author] 5 Oct @ 5:27pm 
@4512369781
thanks for your code review, but i still wonder when that error occurred
4512369781 5 Oct @ 3:16pm 
in file rngitem.nut, line 1959:
m_trace.enthit.GetClassname().slice(0, 7) == "weapon_"

I recommend use find(), so the [slice out of range] error won't happens again.
MANACAT  [author] 5 Oct @ 5:50am 
@Cr0w
i fixed that.

If it happens that often, It's better to show me streaming. so I can clearly see the conditions that can arise. I can guess some of the causes from your console messages, but I don't know all the exact trigger conditions.
Cr0w 5 Oct @ 2:19am 
the problem was bascally already stated by GoldBar, it just applies to a lot more items. the first one of this list spams most often starting maps and a couple more times through a map.
https://imgur.com/a/pe6HuCI
MANACAT  [author] 5 Oct @ 2:00am 
@Cr0w
rather than blaming simply, report in detail please, or just unsub and leave. you also know you haven't been of any help to me at all.
Cr0w 5 Oct @ 1:48am 
dislike that this fills the console with errors constantly because I don't have all of your mods installed, especially rng item stuff.