Raised This Month: $32 Target: $400
 8% 

SM File/Folder Downloader and Precacher


Post New Thread Reply   
 
Thread Tools Display Modes
SWAT_88
SourceMod Donor
Join Date: Jan 2008
Location: Austria
Old 04-19-2008 , 10:25   Re: SM File/Folder Downloader and Precacher
Reply With Quote #21

Does it works?
SWAT_88 is offline
FunTF2Server
Veteran Member
Join Date: Apr 2008
Old 04-19-2008 , 10:28   Re: SM File/Folder Downloader and Precacher
Reply With Quote #22

Quote:
Originally Posted by SWAT_88 View Post
Can you see the server output?
If you can see it I will edit the plugin.
Then the plugin will print to the server the found files.

So we can find the bugs.
Not sure what you mean by output. I have logging enabled, and can access the sourcemod logfiles and error logfiles...
__________________
FunTF2Server is offline
FunTF2Server
Veteran Member
Join Date: Apr 2008
Old 04-19-2008 , 10:29   Re: SM File/Folder Downloader and Precacher
Reply With Quote #23

Quote:
Originally Posted by SWAT_88 View Post
Does it works?
nopes
__________________
FunTF2Server is offline
SWAT_88
SourceMod Donor
Join Date: Jan 2008
Location: Austria
Old 04-19-2008 , 10:30   Re: SM File/Folder Downloader and Precacher
Reply With Quote #24

The dedicated Server has a console.
If I write PrintToServer("bla bla") then SM will print bla bla to the server console.
Then I can read it from there.
If you cannot read the Server Console then I can write the output to a file.

Edit:
Can you read the server console?

Last edited by SWAT_88; 04-19-2008 at 10:34.
SWAT_88 is offline
FunTF2Server
Veteran Member
Join Date: Apr 2008
Old 04-19-2008 , 10:34   Re: SM File/Folder Downloader and Precacher
Reply With Quote #25

Quote:
Originally Posted by SWAT_88 View Post
The dedicated Server has a console.
If I write PrintToServer("bla bla") then SM will print bla bla to the server console.
Then I can read it from there.
If you cannot read the Server Console then I can write the output to a file.
Ok I don't think I can read the console. Server is hosted in another location.
__________________
FunTF2Server is offline
SWAT_88
SourceMod Donor
Join Date: Jan 2008
Location: Austria
Old 04-19-2008 , 10:39   Re: SM File/Folder Downloader and Precacher
Reply With Quote #26

Ok I will edit the plugin.
The plugin will log everthing.

So we can find the bugs.
SWAT_88 is offline
FunTF2Server
Veteran Member
Join Date: Apr 2008
Old 04-19-2008 , 10:41   Re: SM File/Folder Downloader and Precacher
Reply With Quote #27

Quote:
Originally Posted by SWAT_88 View Post
Ok I will edit the plugin.
The plugin will log everthing.

So we can find the bugs.
alright let me know when it's done thanks for all the help so far
__________________
FunTF2Server is offline
SWAT_88
SourceMod Donor
Join Date: Jan 2008
Location: Austria
Old 04-19-2008 , 11:12   Re: SM File/Folder Downloader and Precacher
Reply With Quote #28

Ok its done.

Install the plugin.
Write sm plugins (re)load sm_downloader. via Rcon.
Write sm plugins unload sm_downloader.

Then look into addons\sourcemod\configs
and give me the downloads.log file.
Attached Files
File Type: sp Get Plugin or Get Source (sm_downloader.sp - 1396 views - 8.0 KB)
SWAT_88 is offline
FunTF2Server
Veteran Member
Join Date: Apr 2008
Old 04-19-2008 , 11:30   Re: SM File/Folder Downloader and Precacher
Reply With Quote #29

ok here is whats in the logfile

Code:
Open downloads_simple.ini
materials/models/player/demo/demoman_blue.vmt

Start ReadFileFolder
Start ReadItemSimple
Add File Simple: materials/models/player/demo/demoman_blue.vmt
ReadItem Simple
materials/models/player/demo/demoman_blue.vtf

Start ReadFileFolder
Start ReadItemSimple
Add File Simple: materials/models/player/demo/demoman_blue.vtf
ReadItem Simple
materials/models/player/demo/demoman_hands.vmt

Start ReadFileFolder
Start ReadItemSimple
Add File Simple: materials/models/player/demo/demoman_hands.vmt
ReadItem Simple
materials/models/player/demo/demoman_hands.vtf

Start ReadFileFolder
Start ReadItemSimple
Add File Simple: materials/models/player/demo/demoman_hands.vtf
ReadItem Simple
materials/models/player/demo/demoman_head.vtf

Start ReadFileFolder
Start ReadItemSimple
Add File Simple: materials/models/player/demo/demoman_head.vtf
ReadItem Simple
materials/models/player/demo/demoman_head_blue.vmt

Start ReadFileFolder
Start ReadItemSimple
Add File Simple: materials/models/player/demo/demoman_head_blue.vmt
ReadItem Simple
materials/models/player/demo/demoman_head_red.vmt

Start ReadFileFolder
Start ReadItemSimple
Add File Simple: materials/models/player/demo/demoman_head_red.vmt
ReadItem Simple
materials/models/player/demo/demoman_red.vmt

Start ReadFileFolder
Start ReadItemSimple
Add File Simple: materials/models/player/demo/demoman_red.vmt
ReadItem Simple
materials/models/player/demo/demoman_red.vtf

Start ReadFileFolder
Start ReadItemSimple
Add File Simple: materials/models/player/demo/demoman_red.vtf
ReadItem Simple
materials/models/player/demo/hwm/demoman_head.vtf

Start ReadFileFolder
Start ReadItemSimple
Add File Simple: materials/models/player/demo/hwm/demoman_head.vtf
ReadItem Simple
materials/models/player/demo/hwm/demoman_head_blue.vmt

Start ReadFileFolder
Start ReadItemSimple
Add File Simple: materials/models/player/demo/hwm/demoman_head_blue.vmt
ReadItem Simple
materials/models/player/demo/hwm/demoman_head_compress.vtf

Start ReadFileFolder
Start ReadItemSimple
Add File Simple: materials/models/player/demo/hwm/demoman_head_compress.vtf
ReadItem Simple
materials/models/player/demo/hwm/demoman_head_exponent.vtf

Start ReadFileFolder
Start ReadItemSimple
Add File Simple: materials/models/player/demo/hwm/demoman_head_exponent.vtf
ReadItem Simple
materials/models/player/demo/hwm/demoman_head_red.vmt

Start ReadFileFolder
Start ReadItemSimple
Add File Simple: materials/models/player/demo/hwm/demoman_head_red.vmt
ReadItem Simple
materials/models/player/demo/hwm/demoman_head_stretch.vtf
Start ReadFileFolder
Start ReadItemSimple
Add File Simple: materials/models/player/demo/hwm/demoman_head_stretch.vtf
ReadItem Simple
Close File
__________________
FunTF2Server is offline
SWAT_88
SourceMod Donor
Join Date: Jan 2008
Location: Austria
Old 04-19-2008 , 11:35   Re: SM File/Folder Downloader and Precacher
Reply With Quote #30

As you can see the plugin adds the files to the DownloadTable.

The line Add File: file. is the log from AddFileToDownloadTable.
So the file is added and the plugin works fine.

I have no idea why this doesn't work.
I will try to find a answer.

Thank you.
SWAT_88 is offline
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 19:13.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode