Ulysses

General => Off-Topic => Topic started by: Vendaar on January 25, 2014, 09:52:55 AM

Title: Force RE-Download of Files
Post by: Vendaar on January 25, 2014, 09:52:55 AM
Hello,
I changed a playermodell which is allreasy present on the server. The Problem is, the new modell will only load for new people who doesnt had the old skin.

What can I do to force everyone to redownload the specific vtf-File(s)? Would be nice if this would happen just one time per person, but I think that isnt possible

my lua in autorun/server:

if (SERVER) then
resource.AddFile( "models/german/ssofficer.mdl" )
resource.AddFile( "models/german/ssofficer_playermodel.mdl" )
resource.AddFile( "materials/models/german/ssofficer/german_body.vmt" )
resource.AddFile( "materials/models/german/ssofficer/german_body2.vmt" )
resource.AddFile( "materials/models/german/ssofficer/german_body2.vtf" )
resource.AddFile( "materials/models/german/ssofficer/german_gear2.vmt" )
resource.AddFile( "materials/models/german/ssofficer/german_gear2.vtf" )
resource.AddFile( "materials/models/german/ssofficer/german_gear2_normal.vtf" )
resource.AddFile( "materials/models/german/ssofficer/ss_skull.vmt" )
resource.AddFile( "materials/models/german/ssofficer/ss_skull.vtf" )
end

The edited files are german_body2.vtf and german_gear2.vtf


I'm using Fast-Download


Rrgards
Title: Re: Force RE-Download of Files
Post by: Bytewave on January 25, 2014, 10:03:19 AM
Hello,
I changed a playermodell which is allreasy present on the server. The Problem is, the new modell will only load for new people who doesnt had the old skin.

What can I do to force everyone to redownload the specific vtf-File(s)? Would be nice if this would happen just one time per person, but I think that isnt possible

my lua in autorun/server:

if (SERVER) then
resource.AddFile( "models/german/ssofficer.mdl" )
resource.AddFile( "models/german/ssofficer_playermodel.mdl" )
resource.AddFile( "materials/models/german/ssofficer/german_body.vmt" )
resource.AddFile( "materials/models/german/ssofficer/german_body2.vmt" )
resource.AddFile( "materials/models/german/ssofficer/german_body2.vtf" )
resource.AddFile( "materials/models/german/ssofficer/german_gear2.vmt" )
resource.AddFile( "materials/models/german/ssofficer/german_gear2.vtf" )
resource.AddFile( "materials/models/german/ssofficer/german_gear2_normal.vtf" )
resource.AddFile( "materials/models/german/ssofficer/ss_skull.vmt" )
resource.AddFile( "materials/models/german/ssofficer/ss_skull.vtf" )
end

The edited files are german_body2.vtf and german_gear2.vtf


I'm using Fast-Download


Rrgards
Rename the files in both the code and the actual file names.
Or just put them in a new subdirectory and update your code.
That's how I do it.
Title: Re: Force RE-Download of Files
Post by: Vendaar on January 25, 2014, 10:59:49 AM
Thank u again Mr!
I alleady tried this with the vtf and vtf but I dont know what other files I have to edit. The Model-Files I guess? Which ones? And I don't know how to open any other.  :( Googled a bit but no solution found
Title: Re: Force RE-Download of Files
Post by: Neku on January 25, 2014, 11:04:37 AM
Rename the files in both the code and the actual file names.
Or just put them in a new subdirectory and update your code.
That's how I do it.

Renaming materials will make it not show on the model.
I suggest you just make the client download directly from the addon's page.
Title: Re: Force RE-Download of Files
Post by: Vendaar on January 25, 2014, 11:25:27 AM
But how  :o
Title: Re: Force RE-Download of Files
Post by: Neku on January 25, 2014, 12:28:10 PM
Code: [Select]
resource.AddWorkshop( workshopid )