Trying to create autoserver for Rally

Discussion related to Turbo Sliders and beta version feedback.

Moderator: Forum Moderators

Post Reply
User avatar
szymek66
Community User Level: 2
Community User Level: 2
Posts: 195
Joined: Sun Aug 28, 2011 4:19 pm
Contact:

Post by szymek66 » Tue Mar 26, 2013 10:49 pm

HUEHUEHUEHUEHUEHEUHEUHEUHEUEHUE :D

User avatar
Lanz
Community User Level: 4
Community User Level: 4
Posts: 821
Joined: Sun Sep 27, 2009 12:27 pm

Post by Lanz » Wed Apr 03, 2013 6:00 pm

to get more attention to the server:
you could organize 1 hour of rally action on TS every 2 weeks or so! you don't even have to make new tracks for it! we race current rallys or you just put something together from all existing tracks!
make the server stats more visible! so that people know how many rallys exist and who has the rec! +include the dl link! maybe you put something up on forum that you update once a week!
would be nice if people could choose the rally they want to race by themselves! but i'm no expert in those things, don't know if thats even possible!?
.........gtg

User avatar
Mike Nike
Community User Level: 5
Community User Level: 5
Posts: 1132
Joined: Sat Oct 30, 2004 3:11 pm
Contact:

Post by Mike Nike » Wed Apr 03, 2013 6:28 pm

certainly bad is if players join the server, get trackhash in 1st race, crash in invisible spots, like i did before and then leave a bit nerved the server, too lazy to find out where to download the server track pack and actually installing it -.- ^^

power79
Community User Level: 3
Community User Level: 3
Posts: 465
Joined: Sun Dec 16, 2012 11:10 pm

Post by power79 » Wed Apr 03, 2013 6:56 pm

Lanz wrote: you could organize 1 hour of rally action on TS every 2 weeks or so! you don't even have to make new tracks for it! we race current rallys or you just put something together from all existing tracks!
Im quite bad at this oranizing stuff. Thats why I created AUTOserver :D
And we have great RMPTS by Woki and Szymek. Maybe if we get improved TS 2.1 someday which could make things easier. I also don't have that much extra time in following months.
make the server stats more visible! so that people know how many rallys exist and who has the rec! +include the dl link! maybe you put something up on forum that you update once a week!
I don't know how to make stats more visible on server. Maybe I should build simple web page where you could see all records and stats. Dl link(s) I would like to put there but I also want to promote http://f1sl.thegoo.us/ site because all tracks and cars are theirs. I think they should make the links visible/available on their site so visitors can find them easily(english, please).
would be nice if people could choose the rally they want to race by themselves! but i'm no expert in those things, don't know if thats even possible!?

I have thinking about this but it would surely be quite difficult. And how to logically make it work if there are more than 1 player? Or someone connects later in rally?

Thanks for suggestions.



I have been thinking this random rotation of rallies and maybe it would be better to keep just one rally at a time and change it like once a week so players could concentrate to drive good records for that and then move to another rally next week.

Also Dakar I (2012) feels quite boring (sorry Woki) even without the longest stages so maybe I should remove it or at least shorten it.

Some drivers have had problems with hash values of Dakar II (2013) test stages so there are probably different versions of it out there. I like that rally so I wouldnt want to take it down, hopefully players find the right version so they can drive it.

power79
Community User Level: 3
Community User Level: 3
Posts: 465
Joined: Sun Dec 16, 2012 11:10 pm

Post by power79 » Wed Apr 03, 2013 7:01 pm

Mike Nike wrote:certainly bad is if players join the server, get trackhash in 1st race, crash in invisible spots, like i did before and then leave a bit nerved the server, too lazy to find out where to download the server track pack and actually installing it -.- ^^
I noticed that and Im sorry. Those test stages probably have different versions existing.

Downloading tracks and cars is big problem because its almost impossible to do on my slow server specially when rallies change all the time. But i don't really know a good solution for this.

power79
Community User Level: 3
Community User Level: 3
Posts: 465
Joined: Sun Dec 16, 2012 11:10 pm

Post by power79 » Thu Apr 04, 2013 2:09 pm

power79 wrote: All tracks are provided by Wokinger. You should download them if you don't have them already.

http://student.agh.edu.pl/~wokinger/rajdy/ - #1 Baja Poland + #1 Dakar (2012)

http://student.agh.edu.pl/~wokinger/sldakar2013/ #2 Dakar (2013)

http://student.agh.edu.pl/~wokinger/RMPTS/ RMPTS tracks
Links again. Mike Nike seemed to miss at least #1 Baja Poland when he visited server. Sad that there is so much hassle with these. :cry:

User avatar
Mike Nike
Community User Level: 5
Community User Level: 5
Posts: 1132
Joined: Sat Oct 30, 2004 3:11 pm
Contact:

Post by Mike Nike » Thu Apr 04, 2013 3:33 pm

so..should all come in one folder or whats the plan?
sandtrack.png from #2 dakar for example is different to another version of the file from another pack.

power79
Community User Level: 3
Community User Level: 3
Posts: 465
Joined: Sun Dec 16, 2012 11:10 pm

Post by power79 » Thu Apr 04, 2013 4:27 pm

Mike Nike wrote:so..should all come in one folder or whats the plan?
sandtrack.png from #2 dakar for example is different to another version of the file from another pack.
I have all RMPTS files(+mini dakar) in SL_Rally_Tiles folder and others in their own folders (SL#1 BajaPoland,SL#1_Dakar, SL#2_Dakar(also test stages)).

edit: It seems Mike is getting warps when I use my computer(net) at the same time. Does anyone know some good software or other solutions how I could set sliders priority for net connection so there would be no warps while I use internet?

power79
Community User Level: 3
Community User Level: 3
Posts: 465
Joined: Sun Dec 16, 2012 11:10 pm

Post by power79 » Fri Apr 05, 2013 7:55 pm

Rally Karkonoski is now added to rotation. All stages(13), including prologue. Woki also changed tree1.png so thats changed on server too. I don't know how many rallies that is used but better to update.

Download rally here:
http://student.agh.edu.pl/~wokinger/RMPTS/
filename: RMPTS_RK.rar
Save to folder: SL_Rally_Tiles

Server will be down for the weekend and Im still considering changing rally rotation from random to one per week. I think thats better system specially now that there are already 12 different rallies. Mini Dakar would be the first one, starting monday. If you think this is bad idea then now is time to tell me that.

Code: Select all

Message: Track 1/5 will be SLD2_00 (by Wokinger (F1 SPEED LEAGUE - www.f1sl.thegoo.us)).
Message: Starting to send track files...
Message: Mike Nike disconnected.
Mike, you really need to download all the tracks! It isn't that difficult. Links are here. :lol:

User avatar
Mike Nike
Community User Level: 5
Community User Level: 5
Posts: 1132
Joined: Sat Oct 30, 2004 3:11 pm
Contact:

Post by Mike Nike » Fri Apr 05, 2013 8:24 pm

lol...i had the sld2 already, kinda...
sld2 00 a to f, but not the sld2 00.trk and few other files the current version of the sld2 pack has. so either i dl-ed an old version or dl-ed from the server. either way..these looong tracks with bumps in it are so bah and i cant rly stand those bump tracks anyway. i hope there are none of these in the rmpts season..

User avatar
Wokinger
Community User Level: 3
Community User Level: 3
Posts: 310
Joined: Sat Aug 15, 2009 5:00 pm
Contact:

Post by Wokinger » Sat Apr 06, 2013 6:56 am

Mike Nike wrote:lol...i had the sld2 already, kinda...
sld2 00 a to f, but not the sld2 00.trk and few other files the current version of the sld2 pack has. so either i dl-ed an old version or dl-ed from the server. either way..these looong tracks with bumps in it are so bah and i cant rly stand those bump tracks anyway. i hope there are none of these in the rmpts season..
Those bumps are only occasionally in rmpts. Yhey are common in dakar (just watch movies and u will know why). ;)

power79
Community User Level: 3
Community User Level: 3
Posts: 465
Joined: Sun Dec 16, 2012 11:10 pm

Post by power79 » Mon Apr 08, 2013 7:39 am

Server rally for weeks 15 and 16 is Rally Karkonoski. Two weeks because:
a) Its newest rally and b) Due to my travelling, server will be down for next friday to monday + following weekend. After that its one rally per week.

I also try to create a very simple web page that lists rankings for all rallies and stage records and maybe some kind of championship points system.

User avatar
szymek66
Community User Level: 2
Community User Level: 2
Posts: 195
Joined: Sun Aug 28, 2011 4:19 pm
Contact:

Post by szymek66 » Mon Apr 08, 2013 5:02 pm

Tomorrow next rally of RMPTS (Rajd Rzeszowski), on the tarmac too. So it's great opportunity to test a bit before this event ;)

power79
Community User Level: 3
Community User Level: 3
Posts: 465
Joined: Sun Dec 16, 2012 11:10 pm

Post by power79 » Mon Apr 08, 2013 7:57 pm

Here is very rudimentary html-page where you can see rankings for every rally on server, top-3 for every stage and at bottom of page there is total points ranking and ranking based on number of stage records.

http://www.kolumbus.fi/arilai79/rallyranks.html

power79
Community User Level: 3
Community User Level: 3
Posts: 465
Joined: Sun Dec 16, 2012 11:10 pm

Post by power79 » Tue Apr 09, 2013 7:32 am

log.txt wrote: Message: <Lanz> argghhh
Message: <Lanz> maybe power join
Message: <Lanz> then he can reset
Message: <Szymek66> maybe
Message: <Lanz> patetic
Message: <Szymek66> yep :(
Message: <Lanz> joined to early
Sorry, bad timing. Sometimes I can join but not this time.
Message: <Lanz> server rests if we log out for a moment?
.
Message: <Lanz> should we log out?
Message: <Lanz> and reconnect
Message: <Szymek66> don't think so
This does work. So you both logout and let (empty)server restart and then you can join again from beginning of rally. I wish there would be better solution for this. Maybe TS2.1 ...
Message: <Szymek66> every stage is broken for me
Message: <Szymek66> dunno why
:cry:
Hope theres nothing wrong with server.

power79
Community User Level: 3
Community User Level: 3
Posts: 465
Joined: Sun Dec 16, 2012 11:10 pm

Post by power79 » Tue Apr 09, 2013 10:19 am

Wokinger / [Merc] Wokinger
Lanz / #18 Lanz Busch
Szymek66 / #24 Szymek
Mike Nike / Mike@ROFLaptop
I try to find a way to combine these aliases in database, but it would be better if you would just drive with one profile at this server.

User avatar
Wokinger
Community User Level: 3
Community User Level: 3
Posts: 310
Joined: Sat Aug 15, 2009 5:00 pm
Contact:

Post by Wokinger » Tue Apr 09, 2013 4:31 pm

power79 wrote:
Wokinger / [Merc] Wokinger
Lanz / #18 Lanz Busch
Szymek66 / #24 Szymek
Mike Nike / Mike@ROFLaptop
I try to find a way to combine these aliases in database, but it would be better if you would just drive with one profile at this server.
Sure. I drove with "Merc" by accident.

power79
Community User Level: 3
Community User Level: 3
Posts: 465
Joined: Sun Dec 16, 2012 11:10 pm

Post by power79 » Tue Apr 09, 2013 7:44 pm

Another bug today which gave Lanz wrong time. I fixed the time but bug is more difficult. Luckily its quite rare.

This is the situation:

Code: Select all

Message: Lanz connected, 2/6 players.
Message: Lanz connected.
Connecting from 89.76.158.79.
Message: Wokinger connected, 3/6 players.
Message: Wokinger connected.

Message: Start position for Wokinger: 2
Message: Start position for Lanz: 3
Message: Start position for Mike Nike: 1

Message: Wokinger quit.
Message: Wokinger disconnected.
Message: Wokinger kicked from the cup.
So Woki was given startpos that was ahead of Lanz but he was kicked before race so Lanz ended up as driver 2 but my script kept him as driver 3(as was set).

I don't really know any fail proof system for this kind of situations but I think its quite rare that driver(who is not set for last position) gets kicked from race after startpos has been set. If someone has idea how to prevent this in future please tell me. But for now I think we are ok with this rare event that causes error.

power79
Community User Level: 3
Community User Level: 3
Posts: 465
Joined: Sun Dec 16, 2012 11:10 pm

Post by power79 » Tue Apr 16, 2013 9:04 am

Bug mentioned in above post should now be fixed for good. Also printed top lists should update even when server is restarted before finish (database is always updated but lists weren't). Of course all this in theory. We'll see how those things work when put to test. Driver aliases I haven't had time to figure out but its minor problem if you just remember drive with one profile in future.

Now we have until weekend to try break Mike's crazy records at Karkonoski. Next week we switch to gravel rally(Baja Poland) to practice for the upcoming RMPTS(Rajd Polski).

power79
Community User Level: 3
Community User Level: 3
Posts: 465
Joined: Sun Dec 16, 2012 11:10 pm

Post by power79 » Thu Apr 18, 2013 4:41 pm

I got a big warp on my own server when someone joined middle of the race, lol. Is this a bug or can i change some settings to prevent this?

On sliders.ini there is this setting: ProcessPriority
And command line parameters:
-priority <0|2|4> sets process priority, 0-2 normal, 4 high (default: 2)
These are probably same thing, but what it does in practice? Would it help to set server process priority to 4?

Also Im considering preventing downloading from server all together, because I don't think anyone has succeeded finishing the download.

User avatar
dede
Community User Level: 5
Community User Level: 5
Posts: 3314
Joined: Mon Apr 10, 2006 10:29 am
Contact:

Post by dede » Thu Apr 18, 2013 5:15 pm

Hmm, if you get a warp it might be a client problem. You should ask other players if they had the same warp. Maybe they were OK since the autoserver process handled it well because of high priority (then, your client warped because of lower priority).. Not sure if I'm clear enough, I can't even speak in Italian today..

Tijny
Community User Level: 5
Community User Level: 5
Posts: 1514
Joined: Sat Nov 06, 2004 7:59 pm

Post by Tijny » Thu Apr 18, 2013 5:24 pm

There could be many reasons for this. Something similar was happening a while ago on the LVP servers, sometimes when the server wrote a message to the log file, the process would stall because the hard disk was too busy to immediately flush the data buffer. Was fixed by upgrading the hardware. In your case though it could simply be a one-time thing, I wouldn't worry about it unless it happens more frequently.

power79
Community User Level: 3
Community User Level: 3
Posts: 465
Joined: Sun Dec 16, 2012 11:10 pm

Post by power79 » Thu Apr 18, 2013 5:47 pm

dede wrote:Hmm, if you get a warp it might be a client problem. You should ask other players if they had the same warp. Maybe they were OK since the autoserver process handled it well because of high priority (then, your client warped because of lower priority).. Not sure if I'm clear enough, I can't even speak in Italian today..
I was driving alone. And at the moment processpriority is set the same(2) for both the server and my client.
There could be many reasons for this. Something similar was happening a while ago on the LVP servers, sometimes when the server wrote a message to the log file, the process would stall because the hard disk was too busy to immediately flush the data buffer. Was fixed by upgrading the hardware. In your case though it could simply be a one-time thing, I wouldn't worry about it unless it happens more frequently.
Yeah, maybe. I thought that usually its because connected player starts downloading track files, but I shouldn't have any network problems since server is on my local computer.



But could you explain how that processpriority setting works? Would it do any good to set it to high(4) for my autoserver? I know that at least Mike get warps sometimes when he drives, but I don't know if thats because of my simultaneus internet surfing or something else that causes those.

Thanks.

User avatar
Mike Nike
Community User Level: 5
Community User Level: 5
Posts: 1132
Joined: Sat Oct 30, 2004 3:11 pm
Contact:

Post by Mike Nike » Thu Apr 18, 2013 5:58 pm

well, the last (or last few times) i had warps on the rally server were very likely not caused due to my own connection, i think.
just like on whips server. sometimes no warps, sometimes undriveable to beat recs.

User avatar
Wokinger
Community User Level: 3
Community User Level: 3
Posts: 310
Joined: Sat Aug 15, 2009 5:00 pm
Contact:

Post by Wokinger » Thu Apr 18, 2013 6:08 pm

I have ~100ms ping, while on lvp2 I have ~30.

Post Reply