Xtreme Gaming Network

Simulation Racing Leagues => Assetto Corsa => Australian Assetto Corsa League, Tuesday nights => Topic started by: Wally on January 01, 2017, 09:43:46 AM

Title: Test server - pit stop hold delay
Post by: Wally on January 01, 2017, 09:43:46 AM
I am running a test server called "XGN Pit Server", to test a driver-specific hold in the pits, where different drivers have to sit in the pits for so many seconds before the pit stop starts. This is what I hope to use if we do a Praga season, like they do in real life.


I have arbitrary time delays configured for the following test drivers:
Marty - 10 seconds
Phil.8 - 8
Joe - 6
Bacchulum - 4
Kcender87 - 10


To install
Unzip the attached zip file into steamapps\common\assettocorsa\apps\python\PitConfig, replacing files. This is a modified version of PitConfig which adds the configurable hold delay. It will work just like the normal app on any other server.


To run
When you join the server (which is in a perpetual race cycle), enable the PitConfig app. When you pit in the race, you should see a big countdown timer near the centre of the screen, which counts down how many seconds you are held for before your pit stop starts automatically. Note - you can drive out of your pit box while the countdown is happening, so sit on your brake.


Let me know how it goes.
Anyone else who's GUID is in the entry list, other than the drivers above, should be able to pit without any delay.
Title: Re: Test server - pit stop hold delay
Post by: marty on January 01, 2017, 12:52:12 PM
I just tried the server and on join it has at top connection issue, I installed the modified pitconfig app and even with connection issue did a lap and entered the pits. I saw no timer or anything different so seems to not be working atm.
Title: Re: Test server - pit stop hold delay
Post by: Wally on January 01, 2017, 02:06:47 PM
I just tried the server and on join it has at top connection issue, I installed the modified pitconfig app and even with connection issue did a lap and entered the pits. I saw no timer or anything different so seems to not be working atm.
Hmmm, it worked flawlessly for me this morning and again just now when I joined the server. There's no weird errors in the server log, except for a message that says "Car already in used by another driver" the second time you joined. You joined twice, 3 minutes apart, according to the log. Maybe you caught it just when it was looping to a new session?

It would be good to see what happens if someone else joins.
Title: Re: Test server - pit stop hold delay
Post by: marty on January 01, 2017, 03:01:15 PM
Probably better to set the server for qual and race then and people can skip to race. Shouldnt this timer also work in other sessions as you can know pit in any session. I will try join and restart or skip session see if it makes a difference.

I joined twice as I had the connection issue with server, I left then came back but still had the same thing. I did a lap entered the pit and nothing happened but will try again.

I have never noticed the server connection error on top of the screen but its there as soon as I get in the car and stays there the entire time both times I entered the server.
Title: Re: Test server - pit stop hold delay
Post by: marty on January 01, 2017, 03:12:38 PM
I tried again, first I tried to login to the server as admin and it crashed me out of the game. I then rejoined and voted for next session to see if it made a difference with the join bug and the vote ended then started me back in the pits which is odd as its meant to be a race.

I did a lap went to pits and this time noticed the timer for 10 seconds when I first braked and stopped. The white text is very hard to see where it was as it blended in with some white so maybe it needs to be inside a black box or something. I rolled forward then stopped again and it went to my pit.

I still had the connection issue on top of the screen so no idea whats going on there but maybe this plugin is more hassle then its worth but will need to see others try it. It seems a rather complicated way of doing something fairly simple, simple timer poping up on the pitstop and people being informed their min stop time should be enough. Then simply having a method of checking who didnt stop long enough and is given a penalty. Ptracker can monitor this already but if you dont want to run stracker on race nights for whatever reason you could find another method.

Title: Re: Test server - pit stop hold delay
Post by: Bacchulum on January 01, 2017, 03:15:57 PM
"Connection Issue - the server is not available"
Still did a lap and stop, no timer. :-\
Title: Re: Test server - pit stop hold delay
Post by: marty on January 01, 2017, 03:21:59 PM
"Connection Issue - the server is not available"
Still did a lap and stop, no timer. :-\

Did you use the updated Pit config? I found it quite hard to see the timer over the car and pitlane so maybe you just missed it too.
Title: Re: Test server - pit stop hold delay
Post by: Wally on January 01, 2017, 03:23:25 PM
Can you imagine the chaos of me saying over TS to 24 people how long they have to stop in a pitstop for? And then people remembering that when they pit? It would never work. The app is a simple, automated technique, where the player doesn't have to do anything at all. The pit stop hold should lead to a more interesting way of handicapping that doesn't alter the car handling, so it's worth perservering with. The plugin is basically written by Minolin - I have just tacked a little bit onto it to configure the PitConfig app when you join - so should be working OK.

There's no point enforcing a delay if you pit in a practice session.

I could make it a red number (I don't think I can change the background). You don't really have to do anything while you wait - the app automatically just waits that long and then does the pit stop. The countdown is more of a "courtesy" thing - just some feedback so you can see how long you're waiting for.
Title: Re: Test server - pit stop hold delay
Post by: Wally on January 01, 2017, 03:34:33 PM
"Connection Issue - the server is not available"
Still did a lap and stop, no timer. :-\

I can see in the server log that as soon as you joined, it said "No cars connected, move to next session". Maybe again it was just looping? As Marty suggested, I might have to set up the server with a practice and a race session, rather than a looping race session alone.

I'm just restarting the server...

admin password is the usual password. You can skip to the next session by entering chat commands:

/admin <password>
/next_session
Title: Re: Test server - pit stop hold delay
Post by: Bacchulum on January 01, 2017, 03:51:20 PM
"Connection Issue - the server is not available"
Still did a lap and stop, no timer. :-\

Did you use the updated Pit config? I found it quite hard to see the timer over the car and pitlane so maybe you just missed it too.
Yep (1st to d/l it ;) )
But not only was there no timer, more importantly, there was no delay.
Title: Re: Test server - pit stop hold delay
Post by: Wally on January 01, 2017, 04:17:07 PM
"Connection Issue - the server is not available"
Still did a lap and stop, no timer. :-\

Did you use the updated Pit config? I found it quite hard to see the timer over the car and pitlane so maybe you just missed it too.
Yep (1st to d/l it ;) )
But not only was there no timer, more importantly, there was no delay.


I've updated the download in the 1st post to make the timer red, and to fix a little bug (where the timer would stay on screen if you stopped again in pits after your pit stop ended). Please re-download it.


I think you weren't really connected to the server before, because it looped to the next session just as you were joining. Try again with a practice/race session cycle.
Title: Re: Test server - pit stop hold delay
Post by: Joe on January 01, 2017, 04:22:00 PM
Literally just tested it before you posted the new one. The delay worked fine, I just couldn't see the timer.
Title: Re: Test server - pit stop hold delay
Post by: Bacchulum on January 01, 2017, 04:40:48 PM
So if this doesn't work we can't drive the Prada???? :D









It works. :(
Title: Re: Test server - pit stop hold delay
Post by: Wally on January 01, 2017, 04:52:06 PM
Yeah, I think the hassles were from trying to join a server that was just looping in a race session.

Bacchulum, mount a PR campaign, buy some votes, spread some fake news, bribe an admin... you know how democracy works ;)
Title: Re: Test server - pit stop hold delay
Post by: marty on January 01, 2017, 07:49:36 PM
With the text can it be made say white with a black outline, the issue with a single colour of text is if your car happens to be that colour it will blend in. Red I suspect may be worse in the red Ferrari's not sure about the Prada's.  ;)
Title: Re: Test server - pit stop hold delay
Post by: Bacchulum on January 01, 2017, 08:01:29 PM
Yeah, I think the hassles were from trying to join a server that was just looping in a race session.

Bacchulum, mount a PR campaign, buy some votes, spread some fake news, bribe an admin... you know how democracy works ;)
That's the catch-22 Wally.
I only have subtle influence, if I try harder it's no longer subtle. :-\
Title: Re: Test server - pit stop hold delay
Post by: Wally on January 01, 2017, 08:13:23 PM
With the text can it be made say white with a black outline, the issue with a single colour of text is if your car happens to be that colour it will blend in. Red I suspect may be worse in the red Ferrari's not sure about the Prada's.  ;)
For me, the timer comes up over my cockpit, but I realise that will vary from person to person. I don't think there's much control over fonts in apps other than size and colour, but I'll dig around.
Title: Re: Test server - pit stop hold delay
Post by: Wally on January 01, 2017, 10:11:47 PM
New version in first post - this has the timer in red text with a subtle black "drop shadow" effect, which should make it quite visible on any background.
Title: Re: Test server - pit stop hold delay
Post by: marty on January 01, 2017, 11:10:51 PM
Tried it again, login in as admin using admin app kicked me from the server. I then joined again and used the command line to lgoin as admin again it kicked me from the server. Next join I just went to vote for session change to move it to race and this worked.

Using the latest version I did 3 stops, the first one it did nothing I pulled into the box stopped and the normal pit window opened. Pitconfig seemed disabled even though I set it to change tyres and add fuel, I clicked the normal pit button with the mouse and it did the stop as normal without pitconfig.

Next lap I came in again and this time as I stopped the red text came up with 10 and once the timer ran out my pitconfig stop worked as expected.

I pitted again on the next lap and again nothing happened like on the first stop, the idea is fine but will need to be reliable and work every stop for every person or its just going to cause more issues then it solves.
Title: Re: Test server - pit stop hold delay
Post by: Joe on January 01, 2017, 11:30:26 PM
I made myself admin and it worked 3 times in a row. Weird you're having so many issues. The normal pit window will pop up but after your time delay the auto pitstop kicks in.
Title: Re: Test server - pit stop hold delay
Post by: marty on January 02, 2017, 12:14:56 AM
I made myself admin and it worked 3 times in a row. Weird you're having so many issues. The normal pit window will pop up but after your time delay the auto pitstop kicks in.

Strange how it works different for me, did it work for you on multiple pit stops. The logging as admin is an unrelated issue but Ive never had that happen in a server before so its something odd to do with the plugin.

If Thursdays are still on a fun run it may be good to give the app a try there with more people.
Title: Re: Test server - pit stop hold delay
Post by: Wally on January 02, 2017, 08:39:36 AM
I made myself admin and it worked 3 times in a row. Weird you're having so many issues. The normal pit window will pop up but after your time delay the auto pitstop kicks in.

Strange how it works different for me, did it work for you on multiple pit stops. The logging as admin is an unrelated issue but Ive never had that happen in a server before so its something odd to do with the plugin.

If Thursdays are still on a fun run it may be good to give the app a try there with more people.

It's worked every time for me, on numerous connections to the server. I haven't seen a single problem. I've become admin, Joe's become admin, and it's worked for us.


I can see this in the server logs every time you become an admin (I removed IP addresses):




22:58:01.600759 Making Marty [Achilles Heels] admin
22:58:05.079676 read tcp x.x.x.x:nnnn->x.x.x.x:nnnn: wsarecv: An existing connection was forcibly closed by the remote host.
22:58:05.081661 Connection is now closed for Marty [Achilles Heels]


I have no idea why becoming admin doesn't work for you. Don't become admin, and you won't have a problem ;)
I'm still looking into why you might be getting this error though.



This post of yours Marty is interesting: http://www.assettocorsa.net/forum/index.php?threads/minorating-com-drivers-thread.25732/page-104#post-720745
Title: Re: Test server - pit stop hold delay
Post by: marty on January 02, 2017, 10:28:56 AM
I have no idea why it doesnt work for me but as Im not going to be here most of the season its not a big deal for me. I just wonder if it will work for everyone else or pick 1 or 2 random people to decide to play up with.

The admin thing I suspect its just a mutiny and when I return I would have lost full control of my servers.  ;D
Title: Re: Test server - pit stop hold delay
Post by: Wally on January 02, 2017, 12:13:40 PM
I'll be the only admin on Tuesdays so no biggie.

I promise to hand your server back in good working order :)
Title: Re: Test server - pit stop hold delay
Post by: Wally on January 11, 2017, 09:25:52 PM
I've got a new version of the server admin tool running the "XGN Pit Server" (now at Nurburgring), with a potential fix for the server log file problems I had. It would be good if a few people could jump on it (if you're in the entry list), and run a few laps/sessions.
Title: Re: Test server - pit stop hold delay
Post by: Dave O on January 11, 2017, 11:40:31 PM
Did some laps Wally and all went well.. nice big red counter worked as well  ;D
Title: Re: Test server - pit stop hold delay
Post by: Wally on January 12, 2017, 07:50:08 AM
Did some laps Wally and all went well.. nice big red counter worked as well  ;D
Thanks Dave. There's no change to the behaviour of the counter - it's all about the server log file being written correctly so I can parse it for results, penalties, setting grid etc.
SimplePortal 2.3.5 © 2008-2012, SimplePortal