Hello. I've got next problem: some model replacements making my server unstable(it crashes after first round start). I am not sure why it happens. As example: i download match_m249 machinegun from fpsbanana.com, upload all files(materials and models), rename v_match_m249para.* to v_m249para.* and replace model name in v_m249para.mdl(from v_match_m249para.mdl). Then, by analogy with the files doing the w_match_m249para .*. After that i change model names in shared.lua(orangebox\garrysmod\gamemodes\ttt\entities\weapons\weapon_zm_sledge\shared.lua), and finally i add all files to resources.lua like that:
--m249
--models
-- v_ models
resource.AddFile("models/weapons/v_m249para.dx80.vtx")
resource.AddFile("models/weapons/v_m249para.dx90.vtx")
resource.AddFile("models/weapons/v_m249para.mdl")
resource.AddFile("models/weapons/v_m249para.sw.vtx")
resource.AddFile("models/weapons/v_m249para.vvd")
-- w_ models
resource.AddFile("models/weapons/w_m249para.dx80.vtx")
resource.AddFile("models/weapons/w_m249para.dx90.vtx")
resource.AddFile("models/weapons/w_m249para.mdl")
resource.AddFile("models/weapons/w_m249para.phy")
resource.AddFile("models/weapons/w_m249para.sw.vtx")
resource.AddFile("models/weapons/w_m249para.vvd")
--materials
--v_ models
resource.AddFile("materials/models/weapons/v_models/Tactical_m249/boxmag.vmt")
resource.AddFile("materials/models/weapons/v_models/Tactical_m249/boxmag.vtf")
resource.AddFile("materials/models/weapons/v_models/Tactical_m249/bullet.vmt")
resource.AddFile("materials/models/weapons/v_models/Tactical_m249/bullet.vtf")
resource.AddFile("materials/models/weapons/v_models/Tactical_m249/eotech_normal.vtf")
resource.AddFile("materials/models/weapons/v_models/Tactical_m249/front.vmt")
resource.AddFile("materials/models/weapons/v_models/Tactical_m249/front.vtf")
resource.AddFile("materials/models/weapons/v_models/Tactical_m249/fullstock.vmt")
resource.AddFile("materials/models/weapons/v_models/Tactical_m249/fullstock.vtf")
resource.AddFile("materials/models/weapons/v_models/Tactical_m249/heatshield.vmt")
resource.AddFile("materials/models/weapons/v_models/Tactical_m249/heatshield.vtf")
resource.AddFile("materials/models/weapons/v_models/Tactical_m249/lense.vmt")
resource.AddFile("materials/models/weapons/v_models/Tactical_m249/lense.vtf")
resource.AddFile("materials/models/weapons/v_models/Tactical_m249/lense_ref.vtf")
resource.AddFile("materials/models/weapons/v_models/Tactical_m249/m900A.vmt")
resource.AddFile("materials/models/weapons/v_models/Tactical_m249/M900A.vtf")
resource.AddFile("materials/models/weapons/v_models/Tactical_m249/M900A_ref.vtf")
resource.AddFile("materials/models/weapons/v_models/Tactical_m249/receiver.vmt")
resource.AddFile("materials/models/weapons/v_models/Tactical_m249/receiver.vtf")
resource.AddFile("materials/models/weapons/v_models/Tactical_m249/receiveraddons.vmt")
resource.AddFile("materials/models/weapons/v_models/Tactical_m249/receiveraddons.vtf")
resource.AddFile("materials/models/weapons/v_models/Tactical_m249/sights.vmt")
resource.AddFile("materials/models/weapons/v_models/Tactical_m249/sights.vtf")
resource.AddFile("materials/models/weapons/v_models/Tactical_m249/slidestock.vmt")
resource.AddFile("materials/models/weapons/v_models/Tactical_m249/slidestock.vtf")
resource.AddFile("materials/models/weapons/v_models/Tactical_m249/trijiflex.vmt")
resource.AddFile("materials/models/weapons/v_models/Tactical_m249/trijiflex.vtf")
resource.AddFile("materials/models/weapons/v_models/Tactical_m249/trijiflex_ref.vtf")
resource.AddFile("materials/models/weapons/v_models/Tactical_m249/upper.vmt")
resource.AddFile("materials/models/weapons/v_models/Tactical_m249/upper.vtf")
--w_ models
resource.AddFile("materials/models/weapons/w_models/Tactical_m249/boxmag.vmt")
resource.AddFile("materials/models/weapons/w_models/Tactical_m249/bullet.vmt")
resource.AddFile("materials/models/weapons/w_models/Tactical_m249/front.vmt")
resource.AddFile("materials/models/weapons/w_models/Tactical_m249/fullstock.vmt")
resource.AddFile("materials/models/weapons/w_models/Tactical_m249/heatshield.vmt")
resource.AddFile("materials/models/weapons/w_models/Tactical_m249/lense.vmt")
resource.AddFile("materials/models/weapons/w_models/Tactical_m249/m900A.vmt")
resource.AddFile("materials/models/weapons/w_models/Tactical_m249/receiver.vmt")
resource.AddFile("materials/models/weapons/w_models/Tactical_m249/receiveraddons.vmt")
resource.AddFile("materials/models/weapons/w_models/Tactical_m249/sights.vmt")
resource.AddFile("materials/models/weapons/w_models/Tactical_m249/slidestock.vmt")
resource.AddFile("materials/models/weapons/w_models/Tactical_m249/trijiflex.vmt")
resource.AddFile("materials/models/weapons/w_models/Tactical_m249/upper.vmt")
After that client will download model && materials. But when i start server and start round i see next messages:
Weapon/ammo placement script found, attempting import...
Reading settings from script...
Removing existing player spawns
Removing existing weapons/ammo
Importing entities...
then server crash with access violation. Can anyone help me?
P.S That happens only with some weapons.
[li]Deagle[/li]
[li]Huge[/li]
[li]Knife[/li]
Maybe some other weapons(not sure yet)