Hello, I'm maybe coming with a newbie's question.
How can I know the next/current/last trackname?
I mean: how can the bestlaps script of lvp2 know which is the next trackname?
How to know the next/last track?
Moderator: Forum Moderators
Re: How to know the next/last track?
/tracklux2 wrote:Hello, I'm maybe coming with a newbie's question.
How can I know the next/current/last trackname?
I mean: how can the bestlaps script of lvp2 know which is the next trackname?
Re: How to know the next/last track?
Please try to understand the question.
Any other answer?
Any other answer?
Uh, forget this!
My question is more and more stupid than that you can imagine.
I was asking how to know tracknames while the tracknames list comes from my own script... what an idiot!

The main problem can be solved.
Anyway, if there is a more simple way for a script to know next/last track, I'll be happy to know it.
My question is more and more stupid than that you can imagine.
I was asking how to know tracknames while the tracknames list comes from my own script... what an idiot!
The main problem can be solved.
Anyway, if there is a more simple way for a script to know next/last track, I'll be happy to know it.
That's not stupid at all, if I were in your shoes I would also try to find a more direct way to get the next track at first. Only after that would I start looking for workarounds.lux2 wrote:My question is more and more stupid than that you can imagine.
I was asking how to know tracknames while the tracknames list comes from my own script... what an idiot!
On LVP #2 this isn't really handled by a server script as such. How it works is that the IRC bot reads the "Next track will be..." line in the log file, but this was really easy to do since the bot has to continuously read from the log anyway. As far as I know there isn't really an easier way to do this, other than having your track selection script remember which tracks it's chosen like you said.
My problem was exactly that I have trouble to easily read from the log.
Anyway, workaround costs only 5 lines more in the bestlap scrpt and other 3 lines more in the randomtrack one.
Since i'm not that good in php programming, i'm quite ok with my work. It's not the top, but it's enough.
Actually the script is running (or i hope so
) on tsb f2 server and seems to produce a correct output.
I'll surely come back again with other newbie's questions.
Thank you all
Anyway, workaround costs only 5 lines more in the bestlap scrpt and other 3 lines more in the randomtrack one.
Since i'm not that good in php programming, i'm quite ok with my work. It's not the top, but it's enough.
Actually the script is running (or i hope so
I'll surely come back again with other newbie's questions.

