So, I've recently set up a pointshop on the Server.I have a custom player model Problem is, every other player sees an error sign... I need help I tried adding the models directly to the root model folder. I tried adding it on my fast dl, nothing.
here's the playermodel lua file from the pointshop
[CODE]ITEM.Name = 'Cloud'
ITEM.Price = 1000
ITEM.Model = 'models/player/cloudp.mdl'
function ITEM:OnEquip(ply, modifications)
if not ply._OldModel then
ply._OldModel = ply:GetModel()
end
timer.Simple(1, function() ply:SetModel(self.Model) end)
end
function ITEM:OnHolster(ply)
if ply._OldModel then
ply:SetModel(ply._OldModel)
end
end
function ITEM:PlayerSetModel(ply)
ply:SetModel(self.Model)
end
--// File Generated By Fox-Warrior's Resources Generator Version 2.06 \\--
if (SERVER) then
resource.AddFile( "models/player/cloudp.mdl" )
resource.AddFile( "materials/vgui/playermodels/player/cloud.vmt" )
resource.AddFile( "materials/vgui/playermodels/player/cloud.vtf" )
resource.AddFile( "materials/cloud/eyeball_l.vmt" )
resource.AddFile( "materials/cloud/eyeball_l.vtf" )
resource.AddFile( "materials/cloud/eyeball_r.vmt" )
resource.AddFile( "materials/cloud/eyeball_r.vtf" )
resource.AddFile( "materials/cloud/part1.vmt" )
resource.AddFile( "materials/cloud/part1.vtf" )
resource.AddFile( "materials/cloud/part1_normal.vtf" )
resource.AddFile( "materials/cloud/part2.vmt" )
resource.AddFile( "materials/cloud/part2.vtf" )
resource.AddFile( "materials/cloud/part2_normal.vtf" )
resource.AddFile( "materials/cloud/part3.vmt" )
resource.AddFile( "materials/cloud/part3.vtf" )
resource.AddFile( "materials/cloud/part3_normal.vtf" )
resource.AddFile( "materials/cloud/part4.vmt" )
resource.AddFile( "materials/cloud/part4.vtf" )
resource.AddFile( "materials/cloud/pupil_l.vtf" )
resource.AddFile( "materials/cloud/pupil_r.vtf" )
end[/CODE]
[QUOTE=fappymcfap;43506890]So, I've recently set up a pointshop on the Server.I have a custom player model Problem is, every other player sees an error sign... I need help I tried adding the models directly to the root model folder. I tried adding it on my fast dl, nothing.
here's the playermodel lua file from the pointshop
[CODE]ITEM.Name = 'Cloud'
ITEM.Price = 1000
ITEM.Model = 'models/player/cloudp.mdl'
function ITEM:OnEquip(ply, modifications)
if not ply._OldModel then
ply._OldModel = ply:GetModel()
end
timer.Simple(1, function() ply:SetModel(self.Model) end)
end
function ITEM:OnHolster(ply)
if ply._OldModel then
ply:SetModel(ply._OldModel)
end
end
function ITEM:PlayerSetModel(ply)
ply:SetModel(self.Model)
end
--// File Generated By Fox-Warrior's Resources Generator Version 2.06 \\--
if (SERVER) then
resource.AddFile( "models/player/cloudp.mdl" )
resource.AddFile( "materials/vgui/playermodels/player/cloud.vmt" )
resource.AddFile( "materials/vgui/playermodels/player/cloud.vtf" )
resource.AddFile( "materials/cloud/eyeball_l.vmt" )
resource.AddFile( "materials/cloud/eyeball_l.vtf" )
resource.AddFile( "materials/cloud/eyeball_r.vmt" )
resource.AddFile( "materials/cloud/eyeball_r.vtf" )
resource.AddFile( "materials/cloud/part1.vmt" )
resource.AddFile( "materials/cloud/part1.vtf" )
resource.AddFile( "materials/cloud/part1_normal.vtf" )
resource.AddFile( "materials/cloud/part2.vmt" )
resource.AddFile( "materials/cloud/part2.vtf" )
resource.AddFile( "materials/cloud/part2_normal.vtf" )
resource.AddFile( "materials/cloud/part3.vmt" )
resource.AddFile( "materials/cloud/part3.vtf" )
resource.AddFile( "materials/cloud/part3_normal.vtf" )
resource.AddFile( "materials/cloud/part4.vmt" )
resource.AddFile( "materials/cloud/part4.vtf" )
resource.AddFile( "materials/cloud/pupil_l.vtf" )
resource.AddFile( "materials/cloud/pupil_r.vtf" )
end[/CODE][/QUOTE]
Put the resource.AddFiles in lua/autorun
You have sv_allowdownload set to 0, change it to 1.
But, this is a FastDl Server. Isn't it suppose to stay at 0?
It might be possible then that your fastdl is misconfigured or not working.
I can't see your FastDL because I don't have access, so can you please take a screenshot of your file structure and tell me if your files are packed in .bz2 format or not?
Well, I was using SourceRSC to compress and bz2 all my files. There's like 5000 files left,that's probably the problem. I'll try finishing that asap. Anyways, here is the ScreenShot.
[IMG]http://gyazo.com/62d006fc46937fc53ba0078d7454d4f5.png[/IMG]
Your file structure should only be
models
materials
maps
models
resource
sound
Delete everything else.
You only need the only nee what code_gs said above, but also your first post said that you added the files dirrectly to the model folder, but you can actually keep everything in the addons folder. As long as it keeps the correct file pathing it will work.
Example
Garrysmod/addons/AddCloud/lua/item/categoryname/cloud.lua (would be your pointshop page)
Garrysmod/addons/AddCloud/lua/autorun/resource.lua (would download for clients)
Garrysmod/addons/AddCloud/materials/cloudfiles (all materials would go in here with proper file pathing)
I think you'd get the point. Also I don't believe you can combine your item with your resources, but I am not entirely sure about that.
He doesn't need to send lua files. Also, addons mimic the normal directories, so it would still be materials/cloud/eyeball_l.vmt. His resource.AddFile is fine.
Alright I'll try that, Im just uploading everything at once so i dont forget a file. So just double checking, my lua file is good? I added the playermodel folder under addons. And, do i put all the materials from the addons section on my server to the normal material folder on my fastdl?
Edit*
If it wouldn't be any trouble for you, could you guide me step by step on how to download a model to my server?? You don't need to.
Bump~
[url]http://maurits.tv/data/garrysmod/wiki/wiki.garrysmod.com/index70e8.html[/url]
Just ignore the part where it talks about cache.
Uhm. So it still doesn't work... I added the playermodel in my addons on my host server. then i made a lua file file in autorun.
here's the code.
[CODE]if (SERVER) then
player_manager.AddValidModel( "Cloud", "models/player/cloudp.mdl" );
AddCSLuaFile( "LeCloud.lua" )
end
list.Set( "PlayerOptionsModel", "Cloud", "models/player/cloudp.mdl" );[/CODE]
And still the same pointshop model file here
[CODE]ITEM.Name = 'Cloud'
ITEM.Price = 1000
ITEM.Model = 'models/player/cloudp.mdl'
function ITEM:OnEquip(ply, modifications)
if not ply._OldModel then
ply._OldModel = ply:GetModel()
end
timer.Simple(1, function() ply:SetModel(self.Model) end)
end
function ITEM:OnHolster(ply)
if ply._OldModel then
ply:SetModel(ply._OldModel)
end
end
--// File Generated By Fox-Warrior's Resources Generator Version 2.06 \\--
if (SERVER) then
resource.AddFile( "models/player/cloudp.mdl" )
resource.AddFile( "materials/vgui/playermodels/player/cloud.vmt" )
resource.AddFile( "materials/vgui/playermodels/player/cloud.vtf" )
resource.AddFile( "materials/cloud/eyeball_l.vmt" )
resource.AddFile( "materials/cloud/eyeball_l.vtf" )
resource.AddFile( "materials/cloud/eyeball_r.vmt" )
resource.AddFile( "materials/cloud/eyeball_r.vtf" )
resource.AddFile( "materials/cloud/part1.vmt" )
resource.AddFile( "materials/cloud/part1.vtf" )
resource.AddFile( "materials/cloud/part1_normal.vtf" )
resource.AddFile( "materials/cloud/part2.vmt" )
resource.AddFile( "materials/cloud/part2.vtf" )
resource.AddFile( "materials/cloud/part2_normal.vtf" )
resource.AddFile( "materials/cloud/part3.vmt" )
resource.AddFile( "materials/cloud/part3.vtf" )
resource.AddFile( "materials/cloud/part3_normal.vtf" )
resource.AddFile( "materials/cloud/part4.vmt" )
resource.AddFile( "materials/cloud/part4.vtf" )
resource.AddFile( "materials/cloud/pupil_l.vtf" )
resource.AddFile( "materials/cloud/pupil_r.vtf" )
end[/CODE]
Can you allow access to your FastDL server? Also, your playermodel code is horribly broken. Use this:
[code]list.Set( "PlayerOptionsModel", "cloudp", "models/player/cloudp.mdl" )
player_manager.AddValidModel( "cloudp", "models/player/cloudp.mdl" )
player_manager.AddValidHands( "cloudp", "models/weapons/c_arms_refugee.mdl", 1, "00000000" )
[/code]
> list.Set( "PlayerOptionsModel", "cloudp", "models/player/cloudp.mdl" )
You don't need this line at all, I made it obsolete like forever ago.
You only must call player_manager.AddValidModel shared.
[QUOTE=Robotboy655;43531571]> list.Set( "PlayerOptionsModel", "cloudp", "models/player/cloudp.mdl" )
You don't need this line at all, I made it obsolete like forever ago.
You only must call player_manager.AddValidModel shared.[/QUOTE]
When did it become obsolete?
Tried that code ^ Still an error for certain people. For others it works.
[QUOTE=code_gs;43533548]When did it become obsolete?[/QUOTE]
[URL="http://github.com/garrynewman/garrysmod/commit/20f57b2e76e8c6cb3855273c785e2862af758504"]8 Months ago.[/URL]
[editline]14th January 2014[/editline]
[QUOTE=fappymcfap;43537629]Tried that code ^ Still an error for certain people. For others it works.[/QUOTE]
Ask those certain people to give their console logs, there gotta be something there.
Could it be that I actually need to put my sv_download to 1? In order for the players to download everything?
[QUOTE=fappymcfap;43538584]Could it be that I actually need to put my sv_download to 1? In order for the players to download everything?[/QUOTE]
Can you allow access to your FastDL link? I have a feeling I know the issue.
It's all via FTP. So I'd have to give you the user pass port etc.
The owner of the server said he'd make you a FTP account just for you. Is that basically what you need?
No, if you click on the link normally, it gives a 403 error. If you have a host, then ask them to make it public.
I think a major problem is that your FastDL is not public. For anyone to actually be able to download anything from it, it would need to be public. Basically you need to make it available over HTTP as well as FTP, and set your sv_downloadurl to the HTTP site.
-I'm dumb-
Give me a second. Trying to figure out how to do so.
[editline]15th January 2014[/editline]
It says this when i change it over ftp
Status: Set permissions of '/mudgaming.org/wwwroot/Jailbreak' to '777'
Command: SITE CHMOD 777 Jailbreak
Response: 504 Command not implemented for that parameter
Response: 421 Connection timed out.
K it's public. Go to: [url]http://mudgaming.org/TTTFastMine/[/url]
[editline]15th January 2014[/editline]
Do you think that making it public will increase the download speed of maps aswell?
Sorry, you need to Log In to post a reply to this thread.