The online racing simulator
Searching in All forums
(951 results)
Yisc[NL]
S3 licensed
I made a system to set and manage handicaps, see: https://www.lfs.net/forum/post/1926949#post1926949
Yisc[NL]
S3 licensed
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.
Yisc[NL]
S3 licensed
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.
Yisc[NL]
S3 licensed
Quote from buntidondo :Can you see the image? because i cant

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.
Yisc[NL]
S3 licensed
Logfile can be found in: [your path to Lapper]\bin\default\logs
Then you need to look at this file: [an IP address]-[port nbr]-ERR.log
Yisc[NL]
S3 licensed
No errors in chat doesn't say much.
What is the Lapper error log showing you?
Yisc[NL]
S3 licensed
Start by showing what you have made and what issues you ran into.
Yisc[NL]
S3 licensed
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.
Admin notify V1.06
Yisc[NL]
S3 licensed
Thanks for the screenshots and explanation.
Made the issue clear to me.

Admin notify V1.06 04-08-2024

- Fixed bug in calculating button position (should use default to start with)
Yisc[NL]
S3 licensed
Quote from AL.OZCAN :but still the same problem persists

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.
Admin notify V1.05
Yisc[NL]
S3 licensed
Admin notify V1.05 03-08-2024

- 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
Yisc[NL]
S3 licensed
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.
Yisc[NL]
S3 licensed
Quote from sinanju :In future, I think I'll ignore every demo player's posts for info / help.

If they are legal, and they're using lapper, then they're able to afford renting a server, so should be able to afford a license.

I think that's a good idea or at least check their LFS profile to see if there is any recent online activity.
Yisc[NL]
S3 licensed
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.
Yisc[NL]
S3 licensed
That's not possible.
A command can only be issued when a car drives into the circle.
Yisc[NL]
S3 licensed
I think I already helped you by pointing to what's causing the issue.
Now it's up to you to come up with a solution.
Yisc[NL]
S3 licensed
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.
Admin notify V1.04
Yisc[NL]
S3 licensed
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

Admin notify V1.04 16-07-2024

- Added GlobalVar $top_bot_adm_not_default
- Added GlobalVar $top_bot_adm_not
- Restructured code to display / remove admin button

Also added instructions what has to be edited at what line number:

If you want all admins to be displayed, change line 39
Make sure to have set the correct path to your admin file in line 48
Last edited by Yisc[NL], .
Admin notify V1.03
Yisc[NL]
S3 licensed
I think this does what you want.
Read the changelog carefully.

Admin notify V1.03 15-07-2024

- Added GlobalVar $style (value can be "last" (default) or "list")
- Added routine to display a list of online admins
Yisc[NL]
S3 licensed
Quote from RealistAdam :The original code is already broken. Anyway, I won't bother with you.

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.
Last edited by Yisc[NL], .
Yisc[NL]
S3 licensed
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.
Yisc[NL]
S3 licensed
Quote from RealistAdam :It is very easy to change the MAC address and SSD-HDD serial. In Windows, you can do this with programs. You can even change your MAC address by contacting your internet provider. this is possible. If you are considering a ban method, it should be motherboard ban.

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.
Yisc[NL]
S3 licensed
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).
Yisc[NL]
S3 licensed
Have a look at this message: https://www.lfs.net/forum/thread/93714
Yisc[NL]
S3 licensed
Quote from Bass-Driver :this post is really unnecessary(You can delete this post if needed), but want to show an example how i debug my code.
Last week some random errors occur on my timeattack script, when it tries to save the local saved stagetimes to the textfiles. The Timeattack server is down due to this bug. Testing during development went fine BTW

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.
FGED GREDG RDFGDR GSFDG