Garry's Mod

Garry's Mod

Weapon: Setup, Transfer And Restore
 This topic has been pinned, so it's probably important
LibertyForce  [developer] 2 Aug, 2015 @ 9:54am
Errors and bug report
Please report any errors or problems that you encounter. If you get a lua error, please provide the console output of the error.

You can also report bugs directly at my GitHub repository.[github.com]

Thanks in advance.
Last edited by LibertyForce; 1 Nov, 2015 @ 11:13am
< >
Showing 1-15 of 43 comments
LibertyForce  [developer] 3 Aug, 2015 @ 1:56pm 
Originally posted by mibbY :^):
Right, an item I'm having is that when I use a swep, it sticks out of my playermodel. Like, I can see it protruding out of my chest, while holding it in my hands in first person.

What item and swep are you using? Sounds more like an animation problem, but this mod shouldn't interfere with that.

Does it happen upon Weapon Restore? Try disabling Strip Weapons or Auto Restore.
Last edited by LibertyForce; 4 Aug, 2015 @ 11:06am
M3RKBOSS 15 Aug, 2015 @ 5:28am 
hey liberty when i created my loadout it doesnt load for some reason when i head on to single player why is that?
LibertyForce  [developer] 15 Aug, 2015 @ 8:36am 
- Make sure Loadouts is enabled on the Settings tab.
- Select a loadout from the list, then click "Request Loadout" first. After that, you can either click Restore Weapons to get it (works only if you have a Restore left on this life or if Multiple Restores are enabled) or just respawn.
- Remember that Restores take priority over Loadouts, unless you checked Persistent Loadouts.
Michael Froman 27 Oct, 2015 @ 3:29pm 
[Hello, there is a problem - when i open S.T.A.R. menu, i have lua error.]
-----------------------------------------------------------------------------------------------------------------------------------------------
[ERROR] lua/vgui/dlistview.lua:554: attempt to compare number with string
1. unknown - lua/vgui/dlistview.lua:554
2. sort - [C]:-1
3. SortByColumn - lua/vgui/dlistview.lua:545
4. PopulateList - addons/weapon star setup, transfer and restore/lua/autorun/client/lf_wstar_client.lua:144
5. WSTAR_Menu - addons/weapon star setup, transfer and restore/lua/autorun/client/lf_wstar_client.lua:147
6. unknown - addons/weapon star setup, transfer and restore/lua/autorun/client/lf_wstar_client.lua:611
7. unknown - lua/includes/modules/concommand.lua:54
-----------------------------------------------------------------------------------------------------------------------------------------------
+ I have broken menu window.
[Maybe this addon conflicts with others?]

+ Working only console commands.
Last edited by Michael Froman; 27 Oct, 2015 @ 3:30pm
LibertyForce  [developer] 28 Oct, 2015 @ 1:07pm 
Thank you for the accurate bug report.

I was able to locate a major bug that occurred when a Loadout's name consisted of numbers only. The updated version should fix this issue.

Please let me know, if you got any other issues or suggestions.
FeaturelessLemon 12 Nov, 2015 @ 7:07am 
When I set certain count of ammo and save loadout, then load, it works perfectly! But after restarting the game and load this loadout, magnum ammo is sets to default count, not that I set. (This bug is on all weapon bases that includes magnum ammo (like m9k, tfa or hl2 weapons))
Last edited by FeaturelessLemon; 12 Nov, 2015 @ 8:15am
LibertyForce  [developer] 12 Nov, 2015 @ 10:47am 
Thank you for the bug report.
This was related to the previous issue, but now it should be finally fixed.
Big Black Boss 5 Dec, 2015 @ 5:10am 
Should I also inform you about incompatibilities here?

If so, "Drop on Death" made by Kazaam is not compatible with this.

The problem with it is that, if you die and "Auto Restore", the weapon you had when you died (say for example, the gravity gun) will not appear in the restored loadout.

Disabling/Uninstalling Drop on Death fixes that, but yeah, it's a "Disable to fix another" kind of fix.

Should I actually tell this to the DoD author himself as well?

As for a problem, the CW20 compatability doesn't seem to work. I get the guns fine, but they don't have any attachments at all even though I did set them.
LibertyForce  [developer] 5 Dec, 2015 @ 9:14am 
Unfortunately, I can't fix the incompatibility. That script runs ply:DropWeapon() before I check which weapons the player is holding. Since all the weapons are already deleted from the player's inventory, my script can't save anything.

There is no reliable way of running my code before his.

As for CW 2, I never had any issues with the attachments. Are you trying the default weapons or community made ones?

Please try the following:
- Make sure CW 2 support is enabled under settings.
- Try to disable Auto Restore and use the manual button. Enable Multi Restore if required.
- Only hold ONE default CW 2 weapon, with ONE attachment, then try if that works.
- Save the above to a Loadout and post the content of your garrysmod/data/wstar/loadouts.txt file here.
- Try to download this file: {LINK REMOVED}
Extract the folder to your addons folder. You should keep the Workshop addon subscribed and enabled. For now the only change is a increased delay before setting the attachments.
Big Black Boss 5 Dec, 2015 @ 9:24am 
Well, about that incompatibility, it's fine. I actually only used it because I thought I could get some guy's CW20 gun with the attachments but nope, so yeah.

As for the problem...
I tried both weapon types, default and community.

This time, I followed your instructions and this is weird. I used Manual Restore, I got the gun (CW20's own AR-15) but no attachment...I tried again, I got the gun WITH attachment. Folding sights that is.

Here is the loadout;

{
"AR-15 with Folded Sights TEST":
{
"ammo":
{
"5.56x45MM": 120
},
"weapon":
{
"weapon_stunstick":
{
"1": -1,
"2": -1
},
"gmod_tool":
{
"1": -1,
"2": -1
},
"weapon_crowbar":
{
"1": -1,
"2": -1
},
"cw_ar15":
{
"1": 30,
"2": -1,
"cw2attachments":
{
"1": 1,
"grenadeType": 0,
"wepClass": "cw_ar15"
}
},
"weapon_bugbait":
{
"1": 0,
"2": 0
},
"weapon_physgun":
{
"1": -1,
"2": -1
}
}
},
}

I think I'll go give that wstar_temp.zip a try now.
Big Black Boss 5 Dec, 2015 @ 10:17am 
Seems that wstar_temp.zip didn't really do anything, except make it so the 2nd Manual Restore has a delay.

This attitude is very strange.
LibertyForce  [developer] 5 Dec, 2015 @ 10:51am 
Can't think of anything else right now, but I'm also really busy. I'll try to look into this later.
Big Black Boss 5 Dec, 2015 @ 11:19am 
I can live with that. Please keep me posted if this "problem" is fixed.
Knife Kitty 18 Dec, 2015 @ 6:35pm 
CW2 Mag System seems to have serverside init issues after loading to next map

[ERROR] lua/cw/server/magsystem_core.lua:99: attempt to call method 'usesMagazines' (a nil value) 1. func - lua/cw/server/magsystem_core.lua:99 2. processCategory - lua/cw/shared/cw_callbacks.lua:34 3. resetPostDetach - lua/weapons/cw_base/sh_attachments.lua:183 4. _detach - lua/weapons/cw_base/sh_attachments.lua:198 5. detach - lua/weapons/cw_base/sv_attachments.lua:94 6. attach - lua/weapons/cw_base/sv_attachments.lua:35 7. unknown - lua/weapons/cw_base/sv_attachments.lua:153 8. unknown - lua/includes/modules/concommand.lua:54 [ERROR] lua/cw/server/magsystem_core.lua:99: attempt to call method 'usesMagazines' (a nil value) 1. func - lua/cw/server/magsystem_core.lua:99 2. processCategory - lua/cw/shared/cw_callbacks.lua:34 3. _attach - lua/weapons/cw_base/sh_attachments.lua:133 4. attach - lua/weapons/cw_base/sv_attachments.lua:66 5. unknown - lua/weapons/cw_base/sv_attachments.lua:153 6. unknown - lua/includes/modules/concommand.lua:54
happens when you use mag system, load to next map and then try to change attachments on weapon
Last edited by Knife Kitty; 18 Dec, 2015 @ 6:38pm
(bees) 27 Feb, 2016 @ 7:29pm 
This is less of a problem with your addon, and just a simple incompatibility.

https://steamhost.cn/steamcommunity_com/sharedfiles/filedetails/?id=167545348

When you have both together, it causes the loadout system to screw up with with cw2, so whenever spawning a loadout (or respawning after death) attatchments aren't saved, so you have to redo your attatchments every time.

I know it's asking a lot, but both manual weapon pickup, and this addon are important. So if you feel like looking into it, (or making your own manual weapon pickup ;)) Please do.
< >
Showing 1-15 of 43 comments
Per page: 1530 50