• Can't add workshop weapons to gamemode
    8 replies, posted
Garry's Mod crashes and I get an Engine Error that says "Module.Get failed!" whenever self:Give() is executed with any weapons besides the base (HL2) weapons. self:Give() with weapons that don't exist (random strings like "weapon_asdsasd") give the usual console error, and the weapons work in sandbox from the spawnmenu, so I don't think it's a problem with the weapons. I have tried verifying game cache, so I don't think it has anything to do with that either. I have also tried disabling all addons.
Does this apply to a single weapon pack, or does it always happen?
[QUOTE=Skere_;51415472]Does this apply to a single weapon pack, or does it always happen?[/QUOTE] It seems to always happen, but if you could suggest any that are known to work I'd be happy to give it a go in order to rule out whether or not it's the weapons I'm trying. Just to make sure, there isn't anything I'm missing out like some sort of config for weapons I want to include? As OP states I figured self:Give() would automatically work with anything, not just base weapons, and if it makes any difference nothing beyond this function has been attempted to achieve what I'm trying to do.
One or more of your addons overrides and breaks one of the game files. Figure it out. Also make sure to never ever edit any default Lua files. Verify your game/server to restore those default files to their working order.
[QUOTE=Robotboy655;51415529]One or more of your addons overrides and breaks one of the game files. Figure it out.[/QUOTE] Any recommendation of how to go about this without unsubscribing to everything? [QUOTE=Robotboy655;51415529]Also make sure to never ever edit any default Lua files. Verify your game/server to restore those default files to their working order.[/QUOTE] I've never did this (common sense), but I'll verify regardless after looking into what you mentioned in the first part of your post. Edit: Your post implies you think the problem is independent of what I'm doing, does that mean what I'm trying to do SHOULD work? Edit 2: As mentioned, the weapons work in sandbox. Does sandbox not use the same files to give weapons as any other gamemode would?
I hope 24 hours bumps are considered acceptable here. Please can somebody answer the following questions? [QUOTE=Neguido;51415499]Just to make sure, there isn't anything I'm missing out like some sort of config for weapons I want to include? As OP states I figured self:Give() would automatically work with anything, not just base weapons, and if it makes any difference nothing beyond this function has been attempted to achieve what I'm trying to do.[/QUOTE] [QUOTE=Neguido;51415540]Edit: Your post implies you think the problem is independent of what I'm doing, does that mean what I'm trying to do SHOULD work?[/QUOTE] And can somebody also address my response to this reply please: [QUOTE=Robotboy655;51415529]One or more of your addons overrides and breaks one of the game files. Figure it out.[/QUOTE] [QUOTE=Neguido;51415540]Any recommendation of how to go about this without unsubscribing to everything?[/QUOTE]
Anybody got anything for me today? Would really appreciate it.
Disable addons in batch and narrow it down.
Sorry but the help on this forum sucks. Everybody except Skere_ either responded by telling me not to do things I wasn't even doing, or to try things I already said I tried in OP. Also, having a post rep'd as "dumb" really makes me feel good about asking for help. Anyway, eventually it turned out to be something to do with accessing CUserCmd in a particular way and, despite it being unreasonable to expect anybody to think precisely of this after reading the OP, it only took starting from scratch to work that out. Marked as solved.
Sorry, you need to Log In to post a reply to this thread.