AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Plugins (https://forums.alliedmods.net/forumdisplay.php?f=108)
-   -   SM File/Folder Downloader and Precacher (https://forums.alliedmods.net/showthread.php?t=69005)

SWAT_88 04-19-2008 10:25

Re: SM File/Folder Downloader and Precacher
 
Does it works?

FunTF2Server 04-19-2008 10:28

Re: SM File/Folder Downloader and Precacher
 
Quote:

Originally Posted by SWAT_88 (Post 613595)
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 04-19-2008 10:29

Re: SM File/Folder Downloader and Precacher
 
Quote:

Originally Posted by SWAT_88 (Post 613599)
Does it works?

nopes

SWAT_88 04-19-2008 10:30

Re: SM File/Folder Downloader and Precacher
 
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?

FunTF2Server 04-19-2008 10:34

Re: SM File/Folder Downloader and Precacher
 
Quote:

Originally Posted by SWAT_88 (Post 613603)
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.

SWAT_88 04-19-2008 10:39

Re: SM File/Folder Downloader and Precacher
 
Ok I will edit the plugin.
The plugin will log everthing.

So we can find the bugs.

FunTF2Server 04-19-2008 10:41

Re: SM File/Folder Downloader and Precacher
 
Quote:

Originally Posted by SWAT_88 (Post 613608)
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

SWAT_88 04-19-2008 11:12

Re: SM File/Folder Downloader and Precacher
 
1 Attachment(s)
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.

FunTF2Server 04-19-2008 11:30

Re: SM File/Folder Downloader and Precacher
 
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


SWAT_88 04-19-2008 11:35

Re: SM File/Folder Downloader and Precacher
 
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.:up:


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

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