rejetto forum

Requests

raybob · 15 · 3482

0 Members and 1 Guest are viewing this topic.

Offline raybob

  • Tireless poster
  • ****
    • Posts: 453
    • View Profile
    • FileSplat.com
I still have a desperate request I've been wanting for a while.  I haven't worked on FHFS at all in a long time but I see now why I stopped!

It would be great if you could make it so that regular variables could be used under [server start] in hfs.events even though they're not tied to a connection.

THANKS!  :)


Offline rejetto

  • Administrator
  • Tireless poster
  • *****
    • Posts: 13294
    • View Profile
"regular" vars live inside the connection.
Why do you need them?
A possible way is to put them in a temporary enviroment that's lost at every execution. I mean, of the single [section]


Offline raybob

  • Tireless poster
  • ****
    • Posts: 453
    • View Profile
    • FileSplat.com
I need them because I have a very large chunk of code that is impractical to rewrite.

I don't quite understand your solution, can you elaborate?


Offline rejetto

  • Administrator
  • Tireless poster
  • *****
    • Posts: 13294
    • View Profile
Would that work if variables are lost as I said?


Offline raybob

  • Tireless poster
  • ****
    • Posts: 453
    • View Profile
    • FileSplat.com
Well yeah, I wouldn't need to keep the variables after the script is complete.  But when does that ever happen? 

Also I didn't understand what you were saying I should do.


Offline rejetto

  • Administrator
  • Tireless poster
  • *****
    • Posts: 13294
    • View Profile
But when does that ever happen? 

what?

Quote
Also I didn't understand what you were saying I should do.


you? nothing.
to get it working with current version you should prefix every variable with a #


I'm about to leave for a month, and I doubt i will get it done before i leave.
NY, not very far from you, isn't it? :)
« Last Edit: September 27, 2013, 02:48:15 PM by rejetto »


Offline raybob

  • Tireless poster
  • ****
    • Posts: 453
    • View Profile
    • FileSplat.com
Yeah I'm in NY.

I already use #variables like that but I was looking for a way around it.


Offline raybob

  • Tireless poster
  • ****
    • Posts: 453
    • View Profile
    • FileSplat.com
So what's the conclusion, can you make it so that regular variables can be used under [start] and [stop] ?


Offline rejetto

  • Administrator
  • Tireless poster
  • *****
    • Posts: 13294
    • View Profile
i can try, but as i told you, i'm not home and don't have the stuff with me to work on it.


Offline raybob

  • Tireless poster
  • ****
    • Posts: 453
    • View Profile
    • FileSplat.com
Okay.  It's not high priority, I was just wondering  :)


Offline raybob

  • Tireless poster
  • ****
    • Posts: 453
    • View Profile
    • FileSplat.com
If you can't do the above, it would also be helpful if you could make a way to unset all global variables after a script has finished.  Could be useful :)


Offline rejetto

  • Administrator
  • Tireless poster
  • *****
    • Posts: 13294
    • View Profile
it's not that. I didn't work on it, i wasn't home for a month. Came back a week ago.


Offline rejetto

  • Administrator
  • Tireless poster
  • *****
    • Posts: 13294
    • View Profile