you can check it out on our server, [FG] Racing. i've allowed anybody to access the menu, so you don't have to be an admin on our server to test out the program right now.
that's what i thought too, but if someone could explain why these problems are happening, that'd be great. could it be a limitation of the LFSLib being used?
as far as my testing has gone, i think that buttons only work with a dedicated server, not a local game or non-dedicated, self hosted game. you'll notice that it says that it's connected, but the normal track and pitlane buttons that are on all the time do not show at all, despite trying to type $ovalAdmin.
EDIT: i think the reason why it doesn't work locally is because LFS sends the buttons to a specified connectionid, and a local or self hosted game doesn't have the connectionid's. but don't quote me on that , as that's what i've gotten from my testing. i tried running it locally, not connecting it to a server, and found the same problems.
Race Director is a subset of our still under-development program intended to give admins a whole host of additional functionality to their servers. The idea of this subset came from a request for a program that would control the track condition and pit lane condition. There are buttons visible to every racer detailing if the pit lane is open or not, and if the track is green, yellow, red, or about to restart after a yellow. A racer will incur a penalty if they enter and exit the pit lane while it is closed. Subsequently, if said driver enters the pit lane while it is open, but leaves when it's closed, said driver will not incur a penalty.
All chat, RCM, button text, and penalty text are configurable. There are comments in the config.ini file explaining what each option does. The penalties for exiting the pit lane while closed is configurable in game while the program is running. You access the Race Director menu by combining the prefix and admin command (configurable to your desire) from the config.ini file. There you can change the penalty, change the track condition, and open and close the pit lane.
Please leave any comments and/or suggestions. They're always helpful to fix/add things that were not thought of.
NOTE: for use with a dedicated server only.
Changelog
1.2.0.0
Added Hardcore qualifying mode. Configurable on/off in-game/in config file. Keeps track of racers, and spectates them if they have Shift+P/S during qualifying, and does not allow them to continue.
Added Yellow Flag admin alerter. Configurable on/off in-game/in config file. Alerts admins of the server that a particular racer is causing a yellow flag and in what sector of track.
1.1.0.0
Added Restart Button - Button to show message to racers, for example, that the Safety Car is coming in this lap, and the race is restarting to green flag.
Various fixes and improvements.
1.0.5.0
Fixed Bug: while the track is green and the program is configured to hide the buttons, if a racer connects to the server, they are shown the buttons.
1.0.4.1
Program no longer pauses after clicking a button.
Option to hide buttons during green flag condition.
Ability to position the pit and track buttons.
Chat/RCM messages and button text are now separate.
that way they can continue to click buttons, while it waits the specified time they set until it clears the RCM messages in game. could probably do it with a timer too, but henry likes to make programs complicated
yeah, that error is because the program cannot connect to the specified ip address or port number you gave in the config.ini. make sure that both are correct for the specific server you want it to connect to. the insim port number to fill in the config.ini file is the one enabled in your dedicated server's setup.cfg file. and if you're running the program on your computer, you need to find out what the ip address of the server is to allow it to connect, otherwise if you've uploaded it along side the server, just leave it at 127.0.0.1.
you don't necessarily need to be the owner, but yes, you need to know the ip address, the insim port number enabled in the config file of the server, and the admin password in the config file. you'll have to ask the person who owns/rents it to tell you the ip address.
the other thing you could do is make the ip address 127.0.0.1 in the config.ini file, and run the program along side the dedicated server program on the physical server.
basically you need to know the ip address if you're gonna run the program on your computer to connect it to the server, or leave it at 127.0.0.1 if the control program is uploaded to the server.
obviously you said it clearly enough, as i understood. ok, i'll see what i can come up with. having henry right now help me with some threading in the program to help speed it up.
not sure i follow you. are you saying that if a racer enters the pits while the pitlane is open, but then the pitlane is closed, the racer gets no penalty?
i believe you can still do your normal pitstop, you have to complete the penalty the next time you go around to the pits, but yes, it can be changed to have it give the penalty on the pit exit if you'd like.
edit the config.ini file for the ip, insim port number, and admin password used on the server you want it to connect to.
then the other options allow you to change other optional functionality.
rcm clear - enter the time in milliseconds to wait to clear the RCM messages on screen
admin command - change this to whatever you want to access the admin menu, whatever you change it to, you add $ in front
the language translations allow anybody to use the application with any language, and to change what the messages and buttons say
ok, here's the final version of the program. let me know if you'd like any changes to it, i'd be happy to do it. definitely give it a try and find any bugs that i wasn't able to. i tested it thoroughly, but bugs are sticklers. will be adding this to our main program as well.
i'll be on our server, [FG] Racing, testing it out right now if you'd like to stop by and see it, and if you have other ideas, can tell me there. plus it'd help with bug finding.
ok, give me a little bit, got most of it done, just need to position the buttons, and make sure that racers are added to the db correctly. first, spend a little time with family, as it's easter.
i think this program may come in handy for other people too.
EDIT: just thought of something else to put in it...
right now, it's hardcoded to stop allowing votes after 2 laps, but if you have a compiler, just delve into the source and change it to whatever you want. the program also adds other functionality to your server if you enable them in the config.ini file. NOTE: this program is still under heavy development, and bugs may still exist.
no problem. you can change that agreement.txt file how you like. you use the [H] before a sentence to indicate that it is a heading and it'll show that sentence in a different color. but if you do change the agreement.txt file, you must make sure you count the lines, and change the number of lines in the config.ini file, otherwise it'll either cut off the lines, or add extra lines.
the prefix is for typing commands used with the program that are not shown in the chat messages. right now, $rules works to redisplay the user agreement thingy. i have plans for a $help menu to contain buttons to the other menus that are in my head . but right now, henry and i need to start migrating to mysql/sql express as we've kinda reached the limit of in-program hashtables and such (lots of asynchronous accessing problems going on). give us a some time, and many more features will be added soon, along with the fixed idle racer spectate feature (guess i'm not as smart as i thought ).
you could try out the program we're making. it's no where near finished, but has what you want. you could turn off the other stuff in the program to have just the auto restart. or you could download the source and compile just the restart function. http://code.google.com/p/lfsservercontrol/