Welcome, Guest. Please login or register.
Did you miss your activation email?
November 22, 2024, 01:26:37 PM
Home Help Login Register
News: Zombie Master 2 discussion

Zombie Master  |  Other  |  Trouble in Terrorist Town  |  Topic: Need help with models replacement.
Pages: [1]
Author Topic: Need help with models replacement.  (Read 2901 times)
morfin
Poster

Posts: 1


« on: January 15, 2011, 08:43:50 PM »

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)
« Last Edit: January 16, 2011, 10:03:12 AM by morfin »
Raneman
Poster

Posts: 219

Shitposter


« Reply #1 on: January 17, 2011, 10:53:10 PM »

Serverside custom models will just make people not want to play on your server. My solution would be to remove them.
Pages: [1]
Zombie Master  |  Other  |  Trouble in Terrorist Town  |  Topic: Need help with models replacement. « previous next »
Jump to:  


Login with username, password and session length

Powered by SMF 1.1.21 | SMF © 2015, Simple Machines
Page created in 0.008 seconds with 17 queries.