Author Topic: How can I get my models to download?  (Read 3487 times)

0 Members and 1 Guest are viewing this topic.

Offline Deathtitan77

  • Jr. Member
  • **
  • Posts: 63
  • Karma: 6
How can I get my models to download?
« on: April 28, 2013, 07:40:45 PM »
All the help I got so far is make a resources.lua file located in lua/autorun/server but what do I place in this .lua file?

Offline JamminR

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 8096
  • Karma: 390
  • Sertafide Ulysses Jenius
    • Team Ulysses [ULib/ULX, other fine releases]
Re: How can I get my models to download?
« Reply #1 on: April 28, 2013, 08:01:16 PM »
You should really check out Gmod Wiki, and the mauritus archive of the old one.
It contains several 'gmod server 101' articles, including, a direct mention of the file you're asking about.
http://maurits.tv/data/garrysmod/wiki/wiki.garrysmod.com/index411f.html#Forced_Downloads

ULX also has a downloads.txt, but, it's questioned in another thread whether it's working or not.
Our readme files give a path to check out for many options.

No truly good server admin should rely on XGUI alone.
Learn and know the behind the scenes capability of any mod you use.
« Last Edit: April 28, 2013, 08:03:32 PM by JamminR »
"Though a program be but three lines long, someday it will have to be maintained." -- The Tao of Programming

Offline MrPresident

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 2728
  • Karma: 430
    • |G4P| Gman4President
Re: How can I get my models to download?
« Reply #2 on: April 28, 2013, 08:57:18 PM »
Here is an example of my resources.lua file:

Code: [Select]
/*
People are too cheap to buy CS:S and EP2
*/
resource.AddFile("models/props_foliage/bush2.mdl")
resource.AddFile("models/props_foliage/rock_forest01b.mdl")
resource.AddFile("models/props_foliage/rock_forest01c.mdl")
resource.AddFile("models/props_foliage/rock_forest01d.mdl")
resource.AddFile("models/props_foliage/tree_pine04.mdl")
resource.AddFile("models/props_foliage/tree_slice_chunk01.mdl")
resource.AddFile("models/props_foliage/tree_slice_chunk02.mdl")
resource.AddFile("models/props_foliage/tree_slice_chunk03.mdl")
resource.AddFile("models/props_mining/caverocks_cluster01.mdl")
resource.AddFile("models/props_mining/caverocks_cluster02.mdl")

resource.AddFile("models/props_junk/gnome.mdl")
resource.AddFile("materials/models/props_junk/gnome.vmt")
resource.AddFile("materials/models/props_junk/gnome.vtf")
resource.AddFile("materials/models/props_junk/gnome_normal.vtf")


/*
Cooking Icons
*/
resource.AddFile("materials/vgui/pie/arctus_pie.png")
resource.AddFile("materials/vgui/cooking/bread.png")
resource.AddFile("materials/vgui/pie/guacca_pie.png")
resource.AddFile("materials/vgui/pie/liechi_pie.png")
resource.AddFile("materials/vgui/pie/lum_pie.png")
resource.AddFile("materials/vgui/pie/pypa_pie.png")

resource.AddFile("materials/vgui/fish/bass.png")
resource.AddFile("materials/vgui/fish/cod.png")
resource.AddFile("materials/vgui/fish/herring.png")
resource.AddFile("materials/vgui/fish/lobster.png")
resource.AddFile("materials/vgui/fish/salmon.png")
resource.AddFile("materials/vgui/fish/swordfish.png")
resource.AddFile("materials/vgui/fish/trout.png")
resource.AddFile("materials/vgui/fish/tuna.png")

/*
Shop Icons
*/
resource.AddFile("materials/vgui/relic.png")
resource.AddFile("materials/vgui/seed.png")
resource.AddFile("materials/vgui/gems/diamond.png")
resource.AddFile("materials/vgui/gems/sapphire.png")
resource.AddFile("materials/vgui/gems/ruby.png")
resource.AddFile("materials/vgui/gems/emerald.png")

/*
Alchemy Icons
*/
resource.AddFile("materials/vgui/potions/farming1.png")
resource.AddFile("materials/vgui/potions/farming2.png")
resource.AddFile("materials/vgui/potions/hp1.png")
resource.AddFile("materials/vgui/potions/hp2.png")
resource.AddFile("materials/vgui/potions/hp3.png")
resource.AddFile("materials/vgui/potions/hp4.png")
resource.AddFile("materials/vgui/potions/mining1.png")
resource.AddFile("materials/vgui/potions/mining2.png")
resource.AddFile("materials/vgui/potions/smithing1.png")
resource.AddFile("materials/vgui/potions/smithing2.png")
resource.AddFile("materials/vgui/potions/xp1.png")


/*
Furnace Icons
*/
resource.AddFile("materials/vgui/furnace/iron1.png")
resource.AddFile("materials/vgui/furnace/iron5.png")
resource.AddFile("materials/vgui/furnace/iron10.png")
resource.AddFile("materials/vgui/furnace/silver1.png")
resource.AddFile("materials/vgui/furnace/silver5.png")
resource.AddFile("materials/vgui/furnace/silver10.png")
resource.AddFile("materials/vgui/furnace/steel1.png")
resource.AddFile("materials/vgui/furnace/steel5.png")
resource.AddFile("materials/vgui/furnace/steel10.png")
resource.AddFile("materials/vgui/furnace/trin1.png")
resource.AddFile("materials/vgui/furnace/trin5.png")
resource.AddFile("materials/vgui/furnace/trin10.png")
resource.AddFile("materials/vgui/furnace/metal5.png")
resource.AddFile("materials/vgui/furnace/metal25.png")
resource.AddFile("materials/vgui/furnace/vial.png")
resource.AddFile("materials/vgui/furnace/flask.png")
resource.AddFile("materials/vgui/furnace/hflask.png")
resource.AddFile("materials/vgui/furnace/imbflask.png")
resource.AddFile("materials/vgui/furnace/glass1.png")
resource.AddFile("materials/vgui/furnace/glass5.png")

/*
Tool Materials
*/
resource.AddFile("materials/models/hatchet/hatchet.vtf")
resource.AddFile("materials/models/hatchet/hatchet.vmt")
resource.AddFile("materials/models/hatchet/hatchet_bmp.vtf")


/*
Tool Models
*/
resource.AddFile("models/weapons/v_rc_hatchet.mdl")

/*
Egg Icons
*/
resource.AddFile("materials/vgui/eggs/brown_egg.png")
resource.AddFile("materials/vgui/eggs/blue_egg.png")
resource.AddFile("materials/vgui/eggs/black_egg.png")
resource.AddFile("materials/vgui/eggs/red_egg.png")
resource.AddFile("materials/vgui/eggs/green_egg.png")
resource.AddFile("materials/vgui/eggs/orange_egg.png")
resource.AddFile("materials/vgui/eggs/yellow_egg.png")
resource.AddFile("materials/vgui/eggs/white_egg.png")
resource.AddFile("materials/vgui/eggs/gray_egg.png")


/*
Farming Seed Icons
*/
resource.AddFile("materials/vgui/farming/pypa_seed.png")
resource.AddFile("materials/vgui/farming/guacca_seed.png")
resource.AddFile("materials/vgui/farming/arctus_seed.png")
resource.AddFile("materials/vgui/farming/liechi_seed.png")
resource.AddFile("materials/vgui/farming/lum_seed.png")
resource.AddFile("materials/vgui/farming/maple_seed.png")
resource.AddFile("materials/vgui/farming/oak_seed.png")
resource.AddFile("materials/vgui/farming/pallie_seed.png")
resource.AddFile("materials/vgui/farming/perriot_seed.png")
resource.AddFile("materials/vgui/farming/pine_seed.png")
resource.AddFile("materials/vgui/farming/tree_seed.png")
resource.AddFile("materials/vgui/farming/wheat_seed.png")
resource.AddFile("materials/vgui/farming/yew_seed.png")
resource.AddFile("materials/vgui/farming/liferoot_seed.png")

/*
Weather Sounds
*/
resource.AddFile("sound/whm/crucial_waterrain_light_loop.wav")
resource.AddFile("sound/whm/lightning_strike_1.wav")
resource.AddFile("sound/whm/lightning_strike_2.wav")
resource.AddFile("sound/whm/lightning_strike_3.wav")
resource.AddFile("sound/whm/lightning_strike_4.wav")
resource.AddFile("sound/whm/thunder_1.wav")
resource.AddFile("sound/whm/thunder_2.wav")
resource.AddFile("sound/whm/thunder_3.wav")
resource.AddFile("sound/whm/thunder_close01.wav")
resource.AddFile("sound/whm/thunder_close02.wav")
resource.AddFile("sound/whm/thunder_close03.wav")
resource.AddFile("sound/whm/thunder_close04.wav")
resource.AddFile("sound/whm/thunder_distant01.wav")
resource.AddFile("sound/whm/thunder_distant02.wav")
resource.AddFile("sound/whm/thunder_distant03.wav")
resource.AddFile("sound/whm/thunder_far_away_1.wav")
resource.AddFile("sound/whm/thunder_far_away_2.wav")

Offline Deathtitan77

  • Jr. Member
  • **
  • Posts: 63
  • Karma: 6
Re: How can I get my models to download?
« Reply #3 on: April 29, 2013, 03:54:30 AM »
Thank you for all the kind replies, will be responding after testing.

Offline Deathtitan77

  • Jr. Member
  • **
  • Posts: 63
  • Karma: 6
Re: How can I get my models to download?
« Reply #4 on: April 29, 2013, 04:40:46 AM »
MrPresident's code seems to work perfectly fine, but any idea why the models are in a T pose?


Used the model over here:
http://www.garrysmod.org/downloads/?a=view&id=127679

Note: I only took out the material and the model files.
« Last Edit: April 29, 2013, 05:25:13 AM by Deathtitan77 »

Offline MrPresident

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 2728
  • Karma: 430
    • |G4P| Gman4President
Re: How can I get my models to download?
« Reply #5 on: April 29, 2013, 10:35:02 AM »
Are you sure that is a player model?

You can't just use any ragdoll as a player model. If it's not set up to be a player model it'll be a T pose.

Offline JamminR

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 8096
  • Karma: 390
  • Sertafide Ulysses Jenius
    • Team Ulysses [ULib/ULX, other fine releases]
Re: How can I get my models to download?
« Reply #6 on: April 29, 2013, 01:59:24 PM »
Additionally, if it's a Gmod12 model, GMod13 are different if I remember reading somewhere correctly.
(ie, most likely won't work)
The Source update Garry used increased some skeleton stuff in gm13.
"Though a program be but three lines long, someday it will have to be maintained." -- The Tao of Programming

Offline Deathtitan77

  • Jr. Member
  • **
  • Posts: 63
  • Karma: 6
Re: How can I get my models to download?
« Reply #7 on: April 29, 2013, 07:56:06 PM »
It was a NPC, that's why it didn't work.