Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Managing results/championship table: offering help :)
#1
Hey guys!

Not sure how you manage the results and championship table at the moment, but it seems that Tim has to do a lot "by hand". Now I have some programming skill because thats what I learned initially and would be happy to write a little programm to help managing the championship table if you feel this would make it easier. Smile

I saw we are using simresults.net to show the race results at the moment which is a nice way and I think there is no need to do something on our own in this case. Recently I made a little "program" using open office and simresults.net to manage a championship in AC. The way the program is written it doesn't make a difference if it is rf2 or AC though. Attached is a .zip containing the program and a little manual. The manual should give you an idea how it works. This would be one way to handle it although I don't like Open Office Calc/Excel and I just choosed to do it that way because the guy I made it for wanted to use open office.

The other way to do it would be to write a "standalone" offline program (using C# most probably) which handels the championship table. This way gives me a lot more control over the whole program because I'm not limited to the functionalities offered by Open Office/MS Office. I think rf2 saves results as xml which I'm familiar with. Shouldn't be too big a problem Smile

I don't do much programming these days, either because I don't have the time or I don't have a nice project and I don't like programming just for the sake of it ...
But I really enjoy it and I think this would be great fun Smile

In case you want me to write a program I would like you to gather the needed functionalities and maybe do this quickly because at the moment I have bit of spare time before the exams start again Smile


Attached Files
.zip   LeagueManager.zip (Size: 243.68 KB / Downloads: 2)
Reply
#2
If you think this is good Christophe go for it, Tim can keep doing his stuff too, we do need a backup anyway.
[Image: p8xN8ZK.png]
Reply
#3
Ok Nikos Smile

Functionalities:
- configuration of the point system for the whole season with the option to set a race as double-points
- extra-point(s) for winning Quali
- extra-point(s) for fastest lap in race
- check if driver finished x-% of race-laps
- check for mandatory pit-stop, if not disqualify and/or time-penalty driver
- option to disqualify a driver afterwards
- discard x race(s) of championship with the worst result(s)
- possibility to set-up/manage teams

anything else?
Reply
#4
Discard 1 race of championship with the worst result.
[Image: p8xN8ZK.png]
Reply
#5
Yes, let him do this as it gives him less time to practice for league races. He too fast Big Grin
Reply
#6
LOL DJC Big Grin

- extra-point(s) for fastest lap in race
- possibility to set-up/manage teams
Reply
#7
hi Chris I messed with this a bit and it looks awesome.
looks like it could work pretty much as is and if you make the program I am happy to enter data.
I think you have to finish 80 % for points
2 for fastest lap
2 to complete 100%of laps
1 for pole only in first race of two race weekend
25,21,19,17,16,15,14,13,12,11,10,9,8,7,6,5,4,3,2,1
I would love to work in this program makes life easy for me thank you for offer
Reply
#8
please include team computing also
Reply
#9
If I just knew some php (the code the forum is based) along with the Database diagrams I could dothings to improve the site, but sadly I've been working on "java" since I was changed from "operations" to "programimng" more than a decade ago.
Maybe I should start learning it.
SR4L discord channel: https://discord.gg/h5RZTcEcbA
Reply
#10
Some questions:

If one doesn't make the mandatory pit-stop will this result in DQ or time-penalty?
If a driver gets disqualified do the drivers behind him move up in position?
If ones doesn't make x% (lets say 80%) of the race will he still get the extra-point if he ran the fastest lap?

Edit:
And could someone please provide me with the server results-files of the Brianza races, thanks Smile
Reply
#11
don't know above answers, but I have some questions or comments..

if you exit the game - before the race is completed - all of your race points go with you - right??? you are then NOT listed at all.

example a guy completes two laps wrecks into the trees - but STAYS in game until the end. he is listed as a finisher and collects points.

another guy, in same race, completes ten laps - wrecks - cusses and hits exit button and leaves the game and goes take a shower to try to cool off, tries to kick the wife, but she kicks back - so he goes sulks in another room and watches golf on tv.. >Sad this guys gets NO points, like he wasn't even there..

just wanted to know for me and anybody else in the future...
above accounts are fictional and do not related to anybody - at all.......... Wink
Reply
#12
my opinion is no pit stop DQ
maintain position if someone DQ
if you have fast lap you get points period
simresults 150215-5Xq.

my thoughts only

jerry if you complete 70% of race you get points if not you don't.
Reply
#13
Yes Jerry, I think Tim is right:

The result-file will show you regardless if you stayed on the server till the end or not. If you have done enough laps to get the points you should get them Smile Think you mentioned that you quitted early on first/second Brianza race and didn't get points? Could you check if you have done enough laps?

@Tim:
I would need the rf2 .xml result files (the one you uploaded on simresults.net) from the server. I do have the result files from the two races but positions are all messed up, think the only reliable result files are the ones from the server. In this case I would need them for testing purpose to see if I can replicate your championship-tables after the Brianza races.
Reply
#14
I think Paul may be the only one with access to that since it is not on the league site. I can send you my results they seem correct.


Attached Files
.xml   2015_02_15_15_06_05-99Q1.xml (Size: 177.02 KB / Downloads: 1)
.xml   2015_02_15_15_49_40-93R1.xml (Size: 310.32 KB / Downloads: 2)
.xml   2015_02_15_16_35_59-98R1.xml (Size: 180.85 KB / Downloads: 1)
Reply
#15
Thanks Tim Smile

Unfortunately they look the same as mine:
Race 1 for instance, it shows
<GridPos>5</GridPos>
<Position>10</Position>
for me.

But maybe I'm missing something, because obviously they show the right result when uploaded at simresults.net :o

In this line, the right position is shown:
<Lap et="1776.9564" rcompound="0,Slicks" fcompound="0,Slicks" fuel="-1.000" s3="28.8195" s2="29.4231" s1="26.8171" p="3" num="21">85.0597</Lap>

Maybe the isiforums has an answer to this Smile

EDIT:
http://isiforums.net/f/showthread.php/23...esults-xml
obviously something wrong there and simresults.net is correcting this issue ... so I will do the same for the time being and ask ISI to fix this Smile

EDIT 2:
Would still want to see the result files from the server if possible, thanks Smile
Reply
#16
I read that simresuls does not go by the position thing is looks at total time for positions it is at end of each drivers section with fastest lap
Reply
#17
Yes, I think I will go by that too =)

Thanks Tim!
Reply
#18
You have bumped into the same problem that Paul encountered when uploading the results to the league site. People names missing etc.
Not the league site problem just rFactors .xml files. With Paul short of time, it's just too much for him to mess and faff on with.
I took over one of the seasons, just like bullwinkle took over this season, with spreadsheet.
I used simresults.net, then I just copy and paste the page direct to my spreadsheet. I used vlookups in my spreadsheet to link up everyones races. Points were almost there straight away, no manual calculating or sorting.
I found even simresults.net would show sometimes missing drivers so had to use screen grabs as a backups to copy in missing drivers.
Problem also when people change the spelling of their name, so then I end up with 1 driver with 2 names ( the silly pokes ).
http://www.simracers4life.com/index.php?topic=814.0
Reply
#19
Yes, obviously there are some problems with the .xml file, hope ISI will fix them in future. Smile

Well, program is coming along nicely. This should help Tim or whoever is going to maintain the championship table alot hopefully. While more or less all will be handled automatically it will be necessary to cross-check due to the problems with the result-files. I think most of the time it will be ok. Mauserrifle (the one who made simresults.net) suggest to get someone else's xml file if a fulll driver entry is missing. This program will "combine" the two different xml-files when both are imported (so if the first xml-file is missing driver x and the second driver y you will have both drivers in the final result). This should allow to get the right result most of the times, and as I said I hope ISI will fix this in the future Smile
Also there is always the possibilty to change the database-entry by hand to get the right result.
Its probably favorable to use servers xml-file, this should be the most reliable one.

Players changing their name will be a problem too, but all will be stored in a database and the entry can be changed to reflect the change of name. This will need someone with database knowledge at the beginning though, maybe later I could add a feature which allows this in an easy way so everyone can do it.
Reply
#20
yes DJ we are following the same path with screenshots results and simresults to try and as accurate as possible. Chris is writing a program that will make life really easy to keep the facts and I will just have to make sure everyone who raced is there. thanks. what do you think about awarding points even if you crash out early just as long as you start the race.
Chris I am very excited to start using it.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)