Garry's Mod

Garry's Mod

[TTT] Floor Weapons Spawner
38 条留言
amit 3 月 30 日 上午 5:07 
only ttt?:steamfacepalm:
[LCB] BassGaming 2024 年 9 月 26 日 上午 7:48 
Oooh very cool, thanks for the link The Stig!

Some say that he codes his mods while participating in races...
He also once made a git commit during the Rally Montecarlo.
All we know is that he's called The Stig!!!
glitchhunter09 2024 年 9 月 25 日 下午 2:52 
I am guessing this doesn't work in single player... I want something like this that does...
The Stig  [作者] 2024 年 9 月 12 日 上午 4:17 
[LCB] BassGaming 2024 年 9 月 11 日 下午 6:37 
This mod is a pretty huge gamechanger. Our lobby size doesn't matter anymore and every map is playable. One thing which would be neat would be a convar to adjust grenade spawns per player. We have a lot of random gimmicks in the grenade slots lying on the ground.

Anyways, thanks a lot for your mod and work!
Prof.Profanity 2024 年 8 月 24 日 上午 3:31 
ITS THE STIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIG!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

+rep to the stig
MEDIC 2024 年 8 月 5 日 上午 8:06 
only ttt gamemode?
CaptainCow 2024 年 7 月 31 日 下午 4:18 
It was 100% an issue on my end and resetting the convars like you suggested seemed to fix it. Thank you so much for taking the time to try so many things and being so thorough its above and beyond and I really appreciate it. Hope you have a great rest of your week
The Stig  [作者] 2024 年 7 月 29 日 上午 6:01 
@CaptainCow I can't find what the problem is myself, I used your collection on a newly installed server and guns were spawning. I tested on gm_construct and ttt_dolls. I also tested on a local server as well.

My only suggestion is to try replicating this with this as the only mod installed, if it works, then try slowly enabling mods until it breaks again. (And let me know what mod is breaking things)

Otherwise you may have messed too much with some of the convars, if you delete all the convars from this mod from your server config that might be it.

There's also of course the option of a server reinstall, but that might be a bit drastic. These are all generic suggestions, there's not much I can do to help you if I can't replicate the problem myself.
CaptainCow 2024 年 7 月 28 日 下午 12:51 
About a year ago I was using this addon with my friends and it was great but recently for the life of me I can't get it to work? I don't get any kind of error codes in the console but the guns simply don't spawn and my workshop collection hasn't changed much since then do you have any idea what the issue might be?

Here's the collection I'm using if you're curious: https://psteamcommunity.yuanyoumao.com/sharedfiles/filedetails/?id=2045522859

Thank you so much for the help! =)
The Stig  [作者] 2024 年 2 月 5 日 上午 7:48 
You don't need to type anything into the console, the mod works automatically.
All of the commands listed above are used for changing the settings of this mod.
LucyLucerne 2024 年 2 月 1 日 上午 12:46 
theres no ttt_floor command prompt when i type it into the console, don't know if im using this correctly?
The Stig  [作者] 2024 年 1 月 30 日 上午 1:48 
@ELA Any map
LucyLucerne 2024 年 1 月 29 日 下午 8:24 
does this work on any map or specifically chosen ttt maps?
Hikawa Kaguya 2023 年 11 月 18 日 上午 7:19 
Very good mod, thank you for your hard work:steamthumbsup:
The Stig  [作者] 2023 年 11 月 18 日 上午 1:11 
Depends if the map already has enough guns or not.

I’ve tried my best to balance the settings of the mod to only add guns to maps when necessary. Maps that already have plenty of guns won’t be affected by this mod.
Hikawa Kaguya 2023 年 11 月 17 日 下午 11:21 
That is to say, will it make maps that are already ttt produce more guns?
The Stig  [作者] 2023 年 11 月 13 日 下午 3:22 
Yes, only on maps that need more guns
Hikawa Kaguya 2023 年 11 月 13 日 上午 4:31 
Will it affect weapon spawning on ttt maps?
dhkatz 2023 年 4 月 8 日 上午 2:37 
I left a comment on the other addon what I found too
dhkatz 2023 年 4 月 8 日 上午 2:23 
It was on a map that normally does not have weapons.

I was using it in combination with the rearming base addon (which is also giving errors): https://psteamcommunity.yuanyoumao.com/workshop/filedetails/?id=2601478453

I managed to fix the rearming base errors by just adding some isfunction checks to skip certain things because TTT2 removed some functions.

Once I fixed the rearming base this addon stopped throwing the error.
The Stig  [作者] 2023 年 4 月 8 日 上午 2:13 
@Doctor I would rather not add a nil check to that error and let it error so people can tell me when they are getting it, it's been something I've been trying to track down for a long time now. The error implies there are no autoSpawnable weapons found in weapons.GetList(), which is very weird and at this point I can only assume TTT2 is doing something I don't know about.

Can you tell me some more info on how you got that error? Were weapons actually spawning or not? How often did the error occur? First round only? Every round? Some rounds? Do you have a collection of the mods you were using?
dhkatz 2023 年 4 月 8 日 上午 1:59 
Been receiving this error in console. Not sure if something else is causing it. I am on TTT2.

Lua Error: [[TTT] Floor Weapons Spawner] lua/autorun/server/ttt_floor_weapons_giver.lua:264: attempt to index local 'randWepPistol' (a nil value) 1. unknown - lua/autorun/server/ttt_floor_weapons_giver.lua:264

Seems like you need some nil checks
The Stig  [作者] 2023 年 2 月 27 日 下午 8:45 
@TheMysticR Try it now. I've included the base TTT function this mod uses as part of the mod itself so whatever was stopping it from being loaded for you shouldn't be a problem anymore.
The Stig  [作者] 2023 年 2 月 27 日 下午 8:29 
@TheMysticR I see you have a TTT collection that has TTT2, which is known to cause problems with this mod. That error message might help me pin down the problem though.
MutantBison, PhD 2023 年 2 月 26 日 上午 11:13 
Ahhh, that makes sense. Thanks very much for the info and the link! And thanks for making that mod for some other maps too.

I’m looking forward to trying them out with my friends in TTT.
TheMysticR 2023 年 2 月 26 日 上午 7:01 
Hey! I used this mod without a problem. But now it doesn't work anymore and the Consol shows this:

[[TTT] Floor Weapons Spawner] lua/autorun/server/ttt_floor_weapons_giver.lua:105: attempt to call field 'GetSpawnableSWEPs' (a nil value)
1. unknown - lua/autorun/server/ttt_floor_weapons_giver.lua:105

[[TTT] Floor Weapons Spawner] lua/autorun/server/ttt_floor_weapons_giver.lua:260: attempt to index local 'randWepPistol' (a nil value)
1. unknown - lua/autorun/server/ttt_floor_weapons_giver.lua:260
The Stig  [作者] 2023 年 2 月 26 日 上午 4:26 
@LarryBoy101 That would be this other mod of mine: https://psteamcommunity.yuanyoumao.com/sharedfiles/filedetails/?id=2615356912

It only works with a limited number of maps though. It was what I made and used for TTT before I updated this mod.
MutantBison, PhD 2023 年 2 月 25 日 下午 10:28 
Do you know if the Yogscast used this mod for the GTA map in their latest TTT video?

I can't seem to find a version of that map for TTT on the workshop, but the weapon spawns in the video look to be quite a lot different than the pile of guns this mod provides at the map spawn. Just wondering how they got weapons and spawns working to play TTT on that map.
Serylt 2023 年 2 月 2 日 上午 9:54 
Will take a look in the next few weeks, thanks! <3
:lunar2019piginablanket:
The Stig  [作者] 2023 年 2 月 2 日 上午 2:04 
This mod just received a major update to spawn weapons on maps that don't have any or not enough. See the settings above to adjust things as you like, enjoy!
Serylt 2022 年 10 月 3 日 下午 1:25 
No worries. I am also surprised at the fact that it sometimes *works*, sometimes *doesn't work - but doesn't throw an error* and also *rarely never works and always throws an error in this case*.

That's typical GMOD weirdness. It's also a completely server-side error with no errors on client side being shown.

I'm quite busy myself but maybe I'll unpack your addon at some date and give you a note once I find something (but probably not before December, or so).
The Stig  [作者] 2022 年 10 月 2 日 下午 11:10 
Wow does TTT2 really override the weapon kind system? That's totally not gonna break anything...
Unfortunately TTT2 is a mystery to me and making my 100 or so mods all compatible with TTT2, Sandbox, etc. is not a priority atm.
Serylt 2022 年 10 月 2 日 上午 9:14 
I found the error. No clue what causes it.

[[TTT] Floor Weapons Giver] lua/autorun/server/ttt_floor_weapons_giver.lua:66: attempt to index local 'randWepPistol' (a nil value)
1. unknown - lua/autorun/server/ttt_floor_weapons_giver.lua:66
Serylt 2022 年 9 月 8 日 下午 1:32 
I'll have another look, and if I find something I'll let ya know.
The Stig  [作者] 2022 年 9 月 6 日 下午 7:15 
I imagine it would given how simple it is, but I haven’t tested it myself
Serylt 2022 年 9 月 6 日 下午 12:48 
Hey there, great mod!

But does this work with TTT2?
Fyxen 2021 年 9 月 4 日 上午 2:38 
uwu