rejetto forum

scripts and events in hfs

Mars · 22 · 15530

0 Members and 1 Guest are viewing this topic.

Offline Kremlin

  • Tireless poster
  • ****
    • Posts: 137
    • View Profile
By hfs.events I suppose you meen the log that show in HFS (requests, download completed, etc..). If so that's just it, nothing shows about the set ini command, not like when I do it via http with a button option. If not then please explain how to get the hfs.events file.


Offline Mars

  • Operator
  • Tireless poster
  • *****
    • Posts: 2059
    • View Profile
into the same folder as hfs.exe you have hfs.tpl the current template, you can modify it from hfs by using the key F6, to modify or create the file hfs.events, use the same way by usint keys: ALT+F6

in it put the section

[every 10]
{.add to log|KREMLIN.}


then every ten seconds the word KREMLIN appear in hfs log-box

all posts about events reffer them to the file hfs.events


Offline Kremlin

  • Tireless poster
  • ****
    • Posts: 137
    • View Profile
Ok, so I've actually tested something, opened threw ALT+F6 the hfs.events and added the commands that were previously in the template file (that didn't trigger the set ini command), and now it works.

these were the commands:
Code: [Select]
[at 21:45]
{.set ini|speed-limit=100.}
[at 21:46]
{.set ini|speed-limit=-1.}

So why does it work in hfs.events and not in the template file?

PS. my hfs.events was clean before i added these commands.


Offline Mars

  • Operator
  • Tireless poster
  • *****
    • Posts: 2059
    • View Profile
sections in template hfs.tpl are running only when a user is connected on the server and refresh his browser.

events (sections) in hfs.events are working when some sections are visited in hfs.tpl, but since some older build some events are associate with hfs.exe comportement [start] [quit]  [upload-name] [archive-name] [download-name] .....

some bugs are not resolved with [upload completed] and [download completed] with build 232,

build 232 give events with  every xx  or at xx  times


Offline Kremlin

  • Tireless poster
  • ****
    • Posts: 137
    • View Profile
At least now we know what was happening, anyway posted the tutorial for the schedule set ini in it's proper topic.


Offline rejetto

  • Administrator
  • Tireless poster
  • *****
    • Posts: 13510
    • View Profile
template and events are something totally separated.
they are used for different things.
they just share the syntax.

the whole "events" system is not documented yet, not only the scheduling.