ULX

Author Topic: Force RE-Download of Files  (Read 2674 times)

0 Members and 1 Guest are viewing this topic.

Offline Vendaar

  • Newbie
  • *
  • Posts: 7
  • Karma: 0
Force RE-Download of Files
« 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

Offline Bytewave

  • Respected Community Member
  • Hero Member
  • *****
  • Posts: 718
  • Karma: 116
  • :)
    • My Homepage
Re: Force RE-Download of Files
« Reply #1 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.
bw81@ulysses-forums ~ % whoami
Homepage

Offline Vendaar

  • Newbie
  • *
  • Posts: 7
  • Karma: 0
Re: Force RE-Download of Files
« Reply #2 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

Offline Neku

  • Hero Member
  • *****
  • Posts: 549
  • Karma: 27
Re: Force RE-Download of Files
« Reply #3 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.
Out of the Garry's Mod business.

Offline Vendaar

  • Newbie
  • *
  • Posts: 7
  • Karma: 0
Re: Force RE-Download of Files
« Reply #4 on: January 25, 2014, 11:25:27 AM »
But how  :o

Offline Neku

  • Hero Member
  • *****
  • Posts: 549
  • Karma: 27
Re: Force RE-Download of Files
« Reply #5 on: January 25, 2014, 12:28:10 PM »
Code: [Select]
resource.AddWorkshop( workshopid )
Out of the Garry's Mod business.