View Full Version : A little help please
WaSp KiNg
19th June 2011, 14:38
Hi, i have lapper running on my drift servers.
On my AutoX layout someone got out the track, got back in and ended up with the top score. I don't think he did it on purpose and I have edited the layout to prevent this happening again.
My question is, how do i remove this score from the database (driftpb.dbs) as its not fair on other users?
I don't even know how to open it lol. (i opened it with notepad and cant see where to remove the entries).
Any help will be much appreciated!
sinanju
19th June 2011, 22:00
SQLite Manager add-on for Mozilla Firefox will allow you to look at the database.
WaSp KiNg
20th June 2011, 01:05
SQLite Manager add-on for Mozilla Firefox will allow you to look at the database.
Thank you very much. Problem solved.
:D
WaSp KiNg
26th June 2011, 14:47
i was thinking it would be good to have a button showing the name of the current layout, maybe several allowing admins to change the layout.
i am new to lapper, but have configured it a bit for our servers. i have looked through all the config files and add ons (including the docs) but cant seem to find a variable i can use. in lfs you can use the commands /axlist /axload etc and in the insim.txt file contains references to autocross layouts, but i dont understand it!
all i want to know is if its possible to use the layout information in lapper without editing the source code?
thank you in advance and sorry if i have missed something silly.
:)
sinanju
26th June 2011, 17:57
Likely you'd have to do something with a CASE command (e.g. !axlist) that takes you to a sub-routine that uses
cmdLFS("/axlist ");
within it.
WaSp KiNg
26th June 2011, 19:32
i already tried that. it doesn't output anything, however if i change the command from /axlist to /say hello it works.
also if i type /axlist in to lfs it does work so i dont know what im doing wrong :shrug:
thank you for your quick response :)
sinanju
26th June 2011, 22:42
Hi
I left a space in my code by mistake!
Try
CASE "!axlist":
IF ( UserIsAdmin( $userName ) == 1 )
THEN
cmdLFS("/axlist");
ELSE
openPrivButton( "main_notadmin",73,1,52,5,4,8,0,langEngine( "%{main_notadmin}%" ) );
ENDIF
BREAK;
Assuming you're the Admin, should work; worked for me.
Should be easy enough to change the cmdLFS to a button.
WaSp KiNg
26th June 2011, 23:09
right it does work, but it only outputs the result to the dedicated server and not to the game window. i think i need to store the result of /axlist in a variable in order to use it to display?
thank you for taking the time to help me. :)
DarkKostas
27th June 2011, 07:41
/axlist Is available from any connection even if you are not an admin. So why do you want to have a seperate !axlist command?
WaSp KiNg
27th June 2011, 13:21
/axlist Is available from any connection even if you are not an admin. So why do you want to have a seperate !axlist command?
you dont, i am testing it from the test sub to make sure its not a problem with my code. it only outputs to the dedicated host, if you're admin or not. if typed directly into LFS, it outputs to screen fine.
im losing sleep over this, lol!
edit:
here is my code
Sub MyTest()
privMsg( GetCurrentPlayerVar("NickName") . " ^7is testing...");
cmdLFS( "/axlist");
EndSub
when i give the command !test in lfs, the private message appears but not the result of /axlist, however it does output the layouts in the dedicated host window.
what im thinking is, that it is because i am asking the host to give the /axlist command, when i somehow need to get the current player to give the command. i just dont know how. :shrug:
i hope that makes sense, im very tired!
time for coffee i think :razz:
Whiskey
27th June 2011, 13:41
when i give the command !test in lfs, the private message appears but not the result of /axlist, however it does output the layouts in the dedicated host window.
I guess your problem is that if you connect your insim program to the host, those admins commands are performed by the host, hence the host is displaying the axlist. You need to tell LFS what user should get the answer I think.
PS: that's all I can think and help :x
WaSp KiNg
27th June 2011, 14:06
I guess your problem is that if you connect your insim program to the host, those admins commands are performed by the host, hence the host is displaying the axlist. You need to tell LFS what user should get the answer I think.
PS: that's all I can think and help :x
yes i think so too, but i dont know how. i will figure it out eventually!
thanks for your input. :)
DarkKostas
27th June 2011, 15:10
What i mean is that EVERYONE can type /axlist. You won't get a message that you are not an admin if you type it. Try to join a dedicated server without being an admin and type /axlist :thumb:
WaSp KiNg
27th June 2011, 15:41
What i mean is that EVERYONE can type /axlist. You won't get a message that you are not an admin if you type it. Try to join a dedicated server without being an admin and type /axlist :thumb:
i understand that thank you. :)
im not using admin in my test code, if you read the other posts you will see why he has included admin.
the admin thing isnt the problem anyway, i think im on the right track, im not sure what im trying to do is possible though.
thanks anyway :)
vBulletin® v3.8.6, Copyright ©2000-2012, Jelsoft Enterprises Ltd.