Sure put the coordinates in an array, as well as the track names.
Then read the current loaded track, find the number in de track array and load the coordinates using the same number from the coordinates array.
They all going to the exact same location is because the same location is used. A solution could be to add a globalvar $pos_offset and set it to 0.
Then after every teleport, add to that globalvar, while adding the global it self to the X or Y variable.
Why on earth would you link an image from Discord, while you can upload files here?
Made a screenshot of the image and have uploaded it here, so this whole thread will still make sense in the future.
Logfile is very clear and says there is an undefined variable in line 174 of file 'LFSLapper.lpr' so you might want to start looking at that particular line to see what is going on.
Thanks for this update and all the work you did for Lapper.
Hopefully someone will take over, so that this wonderful program will keep receiving updates and bugfixes.
Can you show me one (or maybe a few) screenshot(s)?
It should be like this:
3 admins connected, button 1, 2 and 3 are used (starting at the bottom and going up)
Then admin 2 goes away, leaving an open space in the list.
When another admin connects, the programs knows that spot 2 is free and will add the admin there.
In the previous system a counter was raised every time an admin connected and therefor big gaps would be possible and the counter only went back to zero, when the last admin would leave.
With the new code the gaps will be filled once new admins come in.
I have tested that and it worked, but maybe I am not understanding the issue correctly.
- Added GlobalVar $admin_array
- Added code to find free spot in array when admin connects
- Added code to make spot in array free again when admin disconnects
- Added code to dynamically calculate button position for connecting admin
- Renamed GlobalVar $top_bot_adm_not_default to $top_bot_adm_notify_default
- Renamed GlobalVar $top_bot_adm_not to $top_bot_adm_notify
- Removed code to restore default button position when number of admins goes to zero
The position of the buttons gets only reset when no admin is present.
It could be solved by closing all buttons once an admin enters and then draw them again, but I opted against it to prevent buttons popping on and off all the time.
Last couple of days we see an increased number of questions about Lapper that are all coming from Turkish players that haven't been online at all or in ages.
In this case - Last online : Sat 26 Mar 2022, 21:38
Still they are talking about server, have requests and so on.
Something fishy is probably going on here.
It never ends because the code keeps going back and forth between sub "jailspec" and sub "jailspec2"
The code is missing an action that's triggered when the time ran out.
As a side note, why using a GlobalButton while a player is send to jail?
I would expect that only that player should see the button, instead of all players.
If you are only seeing one admin, you haven't read my changelog careful enough.
To see all admins you have to set $style to value 'list'
You also have to make sure that the path to your admin file is correct.
I did realize I made a mistake in my thought process last night, so here is version 1.04
I've never posted any broken code, so if it is broken for real, the only cause could be newer releases of Lapper, as all code posted by me, was working at the time of posting.
I doubt that newer released of Lapper aren't working with the code, as I would probably have heard about it and tried to fix it.
To cut a long story short, I am done with your attitude and since I think it's too big of a step to give you a ban from the forum, I will from now on close every thread you start in the Lapper section.
Enough is enough.
Valve?
That's a completely diffent company that has not got anything to do with LFS.
The LFS server can be reset by the owner (or people that got the right to do so) using the "Hosting" tab on this forum.
You clearly have no idea what a MAC address is.
That's a unique number that cannot be changed in any way.
You are confusing it with an IP address, which can be changed or spoofed.
I get it, the webpage should send a variable to Lapper, but I am not sure if that's possible.
You could try to add this to your PHP-script:
echo "0";
Or 1 if that is the outcome of the check.
But again, I am not sure if it's possible to start with.
If I am in de mood this weekend, I will give it a try and come back on it (no promises though).
In case this isn't fixed, I would start to dump every action into a logfile.
The error is clear as it states that at some point the textfile that you want to edit, is empty.
Now you need to find why it is empty and at what point it is or becomes empty.
Maybe the name (that is made from variables) gets funky and when it then tries to open it, the code 'think' it is empty because it cannot find that particular file.
Things like this causes huge headaches, but once you figured it out and was able to fix it, you will get a boost.