Trying to create autoserver for Rally

Discussion related to Turbo Sliders and beta version feedback.

Moderator: Forum Moderators

Post Reply
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 » Mon Jun 03, 2013 7:39 am

too dark for my taste as well.
but if you ask me, id prefer normal road terrain behaviour and looks anyway :P

KiWi
Community User Level: 1
Community User Level: 1
Posts: 60
Joined: Sat Apr 27, 2013 4:27 am

Post by KiWi » Mon Jun 03, 2013 9:44 am

offtopic:
@wolkinger
Sorry for this "off topic" question but i see u use gimp and i use it too.
So here's my question how to do a car with red color in gimp (for to be able to change the color in the game)
I work on a png but it seems i can't have my red value show up in the game.
Thyx for the help and sorry for the off topic:p
I have read there's something with interlaced mode but how to achieve this in gimp?

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

Post by power79 » Mon Jun 03, 2013 10:58 am

Im not Wokinger but you can open car image files with gimp and use Color Picker Tool to get the right color from image.

I don't know about interlaced mode but when you export your image as PNG theres a dialog where you can check Interlacing(Adam7).

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 » Mon Jun 03, 2013 3:28 pm

KiWi wrote:offtopic:
@wolkinger
Sorry for this "off topic" question but i see u use gimp and i use it too.
So here's my question how to do a car with red color in gimp (for to be able to change the color in the game)
I work on a png but it seems i can't have my red value show up in the game.
Thyx for the help and sorry for the off topic:p
I have read there's something with interlaced mode but how to achieve this in gimp?
Just do not leave empty (alpha) space between car and end of picture.

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

Post by Lanz » Mon Jun 03, 2013 3:45 pm

power79 wrote:hmmm.. Do you think this gravel looks nice to drive? Im not that sure, maybe better to just keep it simple - Wokinger style - and not try anything fancy.
Image

Another thing is drawing these tracks. Is it better too have smooth straights and corners or would it be interesting to have rough sides, specially on gravel. I mean I can make the shape just with pen/brush or smoother version with path tool.

At least Mike could give his opinion now that hes most active driver on server after Lanz has been absent for some reason. :(
yep to dark + maybe i could look a bit better as well! :lol:
well i still think your server is one of the best we have atm! only problem is that i don't have much time nowadays! also im no fan of driving alone! usually i drove a rally with szy, thats why i had the idea to drive on a certain time! maybe some more people would join then!

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 Jun 03, 2013 3:54 pm

Well, we can try to make some official ts rally competitions (sth similar to RMPTS) if there are some people interested. Organisation wouldn't be big problem

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

Post by power79 » Mon Jun 03, 2013 5:02 pm

Lanz wrote: yep to dark + maybe i could look a bit better as well! :lol:
Yeah, I stick to the normal ones. Was just trying to come up with something more special but would need some drawing skills for that.
well i still think your server is one of the best we have atm! only problem is that i don't have much time nowadays! also im no fan of driving alone! usually i drove a rally with szy, thats why i had the idea to drive on a certain time! maybe some more people would join then!
szymek66 wrote:Well, we can try to make some official ts rally competitions (sth similar to RMPTS) if there are some people interested. Organisation wouldn't be big problem
I am not available in July or most of August but I guess we could have some rally nights this month? I am trying to find time for track making too and also have other stuff outside of TS :shock: so how about later at night (sometime around 21:00 GMT/23:00 CE(S)T) and maybe a bit earlier on some nights? I guess I don't need that much sleep at summer time. :roll:

I could host my server so that we wait people to join before start. And we can change rallies too. Last time it didn't work out quite so well with Mike but I would be better prepared next time. I don't have any tools to fix things in real time if something goes wrong so I can't organisize any official stuff. So it would be of course better if Szymek can come up with something official and with new stages/rallies.

I try to finish one stage tonight and put it together with some of Wokinger's gravel stages so we could practice for tomorrow's final RMPTS rally. Is anyone available at that time? Well, I practice alone if no one appears...

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 Jun 03, 2013 5:11 pm

@Power

Of course I can organise it officialy and help with preparing new rallies. But if you want to start this series in June, I'm nearly sure I will find no time for track making.

If it's impossible to find solution which can make everybody happy, we just should wait till September/November.

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

Post by power79 » Mon Jun 03, 2013 5:19 pm

szymek66 wrote: Of course I can organise it officialy and help with preparing new rallies. But if you want to start this series in June, I'm nearly sure I will find no time for track making.

If it's impossible to find solution which can make everybody happy, we just should wait till September/November.
That would be ok. My server is meant for just fun record chasing anyway, so we do that this month and you organize some nice Rally series for us in autumn.

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

Post by Lanz » Mon Jun 03, 2013 6:05 pm

power79 wrote:sometime around 21:00 GMT/23:00 CE(S)T)
ill try to show up!

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

Post by power79 » Mon Jun 03, 2013 6:52 pm

Here is my rally stage of tonight. It's nothing special. Extract to its own folder. I do use Wokinger's tiles/terrains but I made my own .til and .ter files in case I come up with some new tiles later.

http://www.kolumbus.fi/arilai79/P79_Rally.zip

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

Post by power79 » Tue Jun 04, 2013 1:58 pm

Code: Select all

1.	Wokinger 	6:58.490		10
2.	Wokinger 	7:00.494	+2.004	6
3.	power79 	7:01.327	+2.837	4
4.	Lanz 	7:06.416	+7.926	3
5.	lanz 	7:06.625	+8.135	2
6.	Szymek66 	7:17.545	+19.055	1
Nice to see that some of you are driving bit more actively, but seriously: How many profiles do you have? And with same name, what is that about? Or is other Wokinger fake or something, times at least are quite similar.

Makes my nice rankings all messy. :(

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 » Tue Jun 04, 2013 2:14 pm

since i doubt your script differs players by ip, its likely about different player hash values..(usually players using different ts folders and create new nick instead of copying old players data file to new folder)

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 Jun 04, 2013 2:24 pm

power79 wrote:

Code: Select all

1.	Wokinger 	6:58.490		10
2.	Wokinger 	7:00.494	+2.004	6
3.	power79 	7:01.327	+2.837	4
4.	Lanz 	7:06.416	+7.926	3
5.	lanz 	7:06.625	+8.135	2
6.	Szymek66 	7:17.545	+19.055	1
Nice to see that some of you are driving bit more actively, but seriously: How many profiles do you have? And with same name, what is that about? Or is other Wokinger fake or something, times at least are quite similar.

Makes my nice rankings all messy. :(
lol

I have 2 profile's. One red and one white-blue ;)

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

Post by power79 » Thu Jun 06, 2013 7:01 am

I made AI lines for the current server rally (Rally Poland Part I). Stages are here: http://student.agh.edu.pl/~wokinger/RMPTS/RMPTS_RP.rar. Remember to extract them to SL_Rally_Tiles folder.

Some problems occur because of Wokinger's gravity hack style starting system. AI works usually only from couple first starting positions and even from them sometimes messes up at start. If I would know how AI records are implemented technically maybe I could make it work better. But now the aifill is set to 2. Also apparently you can't set startpos for AI players. I don't think i am making any more AI lines if I can't get start to work 100%. But fun experiment anyway. AI driver's times won't get saved to database but you can compete a whole session against it. Not much challenge though unless you are worse driver than me + usually AI screws up at least one start/stage in rally. :cry:

Another new feature on server is that if at least 3 players finishes stage then winner is rewarded with special point(s). Also if rally is finished at least with 3 players then top-3 is rewarded with medals (gold-silver-bronze). I haven't yet implemented a way to show these statistics (not that much screen space after all other listings) but points/medals information should be saved in database. And thinking how rare it is to get 3 players to server at same time, those points could become rare collectors items. :lol:

And this is how 1500x and 2000x tracks (with zoom 1.0) looks at my screen:
Image

vs.

Image

pretty annoying.

User avatar
Ande
Game Developer
Game Developer
Posts: 487
Joined: Thu Oct 14, 2004 9:43 pm

Post by Ande » Sun Jun 09, 2013 8:49 pm

I spent some time debugging that StartPos problem. I think I finally found the reason.

In RaceStats.log, StartPos for the first player is actually the index of the player who started in the first pos (so if it is 3, the third player listed in RaceStats.log was the one who started in pos 1). StartPos for the second player is the index of the player who started second etc.

This will be fixed if I manage to one day make a new version of the game...

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 » Mon Jun 10, 2013 5:38 am

Nice! I think this is already enough information to fix our scripts. Thanks Ande :)

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

Post by power79 » Mon Jun 10, 2013 5:46 am

Thanks Ande! I really appreciate your efforts.

Now just complete the other 538 requests we have for the game and we'll leave you alone for the next 5 years...maybe. :wink:

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 » Mon Jun 10, 2013 6:22 am

power79 wrote:Now just complete the other 538 requests we have for the game and we'll leave you alone for the next 5 years...maybe. :wink:
No, wtf! Last time we said that he disappeared for 5 years exactly :D

User avatar
Whiplash
Community User Level: 5
Community User Level: 5
Posts: 2325
Joined: Sun Apr 19, 2009 4:57 pm

Post by Whiplash » Mon Jun 10, 2013 10:09 am

dede wrote:
power79 wrote:Now just complete the other 538 requests we have for the game and we'll leave you alone for the next 5 years...maybe. :wink:
No, wtf! Last time we said that he disappeared for 5 years exactly :D
:) Yeah, that guy is taking things too seriously. So, be careful when suggesting anything. :P
Btw, I 'll say here that Ande already fixed this bug (tested by power79). I didn't want to bother you all with a private messages to inform you about it. :wink:

KiWi
Community User Level: 1
Community User Level: 1
Posts: 60
Joined: Sat Apr 27, 2013 4:27 am

Post by KiWi » Mon Jun 10, 2013 11:55 am

@wokinger i 'll pm you for the alpha don't want no more off topic...
@ power i like the sliding style of you're rally car but road aren't large enough for my driving skills :p

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

Post by power79 » Mon Dec 02, 2013 8:49 am

I have added new rally for my server. I use TS Beta version now as server because I wanted to try different starting system and it works better with beta version. So now it is ghost rally and everyone start from same position. There is small start delay to ensure equal start for everyone. If ghosts distract you then just set them invisible as you can do with the Beta version. But mostly you probably drive there alone anyway as it was before.

Stages are not anything great but they use couple of my self made tiles for visual variety.

I think I prefer this starting system at least for server rallies. Competitions might still be better with the old system?

Get package here (I have disabled server download as it is quite big file) and copy content to it's own folder:
http://www.kolumbus.fi/arilai79/P79_Rally2.zip

Server will be up quite randomly, depending of popularity and my computer's availability.


And another thing:

I made a program that generates rally stages automatically using Wokinger's great SL_Rally_Tiles tileset. Algorithm is quite slow and tracks are not so great but it can be improved. For now I just wanted to finish and publish it for testing.

Snow and sand surfaces are not available because it seems that their corner tiles don't match gravel ones which is the surface I based the algorithm.

Just unzip files and copy them to turbosliders main folder (same folder with editor.exe) and my program can even create hash values for stages using TS track editor. So they are created ready for driving. With exception of bigger than 2000px tracks which cannot be handled by the editor without mod.

Remember to also have Wokinger's "SL_Rally_Tiles" folder installed. With that exact name.

Im hoping that with improvements this program could help make rally competitions much easier to organize. You could just let the program create bunch of stages and then select the best ones. And even if the stages need a bit(lot) of editing it should still be less work than making tracks manually from the start.

I think I try to focus next to creating better algorithm for track "shapes" and control points but all comments and bug reports are very welcome.

Rally Track Generator:
http://www.kolumbus.fi/arilai79/RTGen.zip

Get Wokinger's rally tileset here:
http://student.agh.edu.pl/~wokinger/RMP ... _Tiles.rar

User avatar
Whiplash
Community User Level: 5
Community User Level: 5
Posts: 2325
Joined: Sun Apr 19, 2009 4:57 pm

Post by Whiplash » Mon Dec 02, 2013 2:38 pm

- Where are the cars, you amateur?
- Instead of /say, use /sayadmin for the initial info.
- Instead of /say, use /sayadminmono for the stats.

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

Post by power79 » Mon Dec 02, 2013 2:50 pm

Whiplash wrote:- Where are the cars, you amateur?
First post has the links. 3rd link has (also) the cars.
- Instead of /say, use /sayadmin for the initial info.
- Instead of /say, use /sayadminmono for the stats.
Yeah, I change those later.

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

Post by power79 » Mon Dec 09, 2013 5:01 pm

Major update for my Rally Track Generator:
http://www.kolumbus.fi/arilai79/RTGen.zip

- Now tracks have decent ending
- Snow tracks available
- 500x500 track size option added
- Two algorithms for track shape

Just unzip files and copy them to turbosliders main folder (same folder with editor.exe).

Remember to also have Wokinger's "SL_Rally_Tiles" track folder installed. With that exact name. http://student.agh.edu.pl/~wokinger/RMP ... _Tiles.rar

Unfortunately both algorithms are very slow. Do not try to make too many tracks at one sitting. Depending on your computer speed it might take several minutes for one track. Slow algorithm tends to make more long straights and slower one seems to give more curves. It is also possible that track fails completely but that is quite rare I think.

Program still requires some tweeking, specially Im not that happy with control points (snow tracks might have some problems with them, let me know if so).

Would be nice if you guys have some time to test this.

Post Reply