#programming
1 messages · Page 5 of 1
this is the code i used 2 months ago and it worked just fine
fetch(vtcAPI)
.then((response) => response.json())
.then((json) => {
let driverCountRes = json.response;
driverCount.innerHTML += `${driverCountRes.members_count}`
});
but when i use this code now its just undefined
☝️
how do i fix it then
rules were changed for the api iirc
bruh ...
then how can i make use of the API in JavaScript if it keeps triggering the cloudflare captcha page??
messing around with the headers could help i think, because it works fine when fetching the api thru the terminal (for me)
i literally have to use a proxy which automatically sets the headers and stuff
if TMP would finally release an library for javascript this would be much easier
Provide the full code with the api so it could be tested by someone and they can help you a little bit more
I don’t think it gets caught with cors on axios but idk
includes links to external proxies, the message might get deleted and i can get warned for it
const vtcAPI = 'PROXYLINK' + encodeURIComponent('https://api.truckersmp.com/v2/vtc/68863');
const membersAPI = 'PROXYLINK' + encodeURIComponent('https://api.truckersmp.com/v2/vtc/68863/members');
const eventsAPI = 'PROXYLINK' + encodeURIComponent('https://api.truckersmp.com/v2/vtc/68863/events');
const userAPI = 'PROXYLINK' + encodeURIComponent('https://api.truckersmp.com/v2/player/');
const driversArea = document.querySelector('.drivers-area');
const driverCount = document.querySelector('.driverCount');
const eventCount = document.querySelector('.eventCount');
fetch(vtcAPI)
.then((response) => response.json())
.then((json) => {
let driverCountRes = json.response;
driverCount.innerHTML += `<span data-purecounter-start="0" data-purecounter-end="${driverCountRes}" data-purecounter-duration="1" class="purecounter"></span>`
});
full code im using
It's scary, who would add 167 tables of data, this is ridiculous 
Am i the only one who uses mongodb? 
i used to hate sql but now im in love with postgres
pupeteer/hardcoded cf_clearance & user agent
Used to, I primarily use Postgres now, but Mongo has its merits
I've only ever used mongo tbh, I guess it all comes down to use case and personal preference at the end of the day
I do love hbs tho 
I'm more of the SQL / MariaDB guy 
LuaU is totally different to python
if we apply that logic then c++ is similar to js 
Barley
wow, such helpful information!
i need an actual solution!!
explain to me then how i'm supposed to implement puppeteer/hardcoded cf_clearance into an plain html website?
Just add the cookie to the header, when making the fetch request. The puppeteer implementation is a bit longer
what's the cookie i have to add tho
i never worked with headers in an API request as i use proxy
got an example for that??
Should be something like this
fetch(
vtcAPI,
{
headers: {
"User-Agent": ``,
Cookie: `cf_clearance=`,
},
},
);
and how do i get the cf_clearance cookie
go to tmp api website in your browser, and grab your user agent and the cookie from the cookies tab
Dev tools > Network > pick any request > Cookies tab
yeah still not working
even with the headers set its not working e.e
make sure you use the proper user agent/cookie and you are on the same ip
im literally trying it on my localhost with my user agent + cookie from the tmp api
still giving me the undefined error
So in that case is it even finding the data your referring in the code
Im sure I had a similar issue when trying to do the driver count for ours, got it working eventually but never ended up using it will take a look when I’m Home
if cloudflare wouldn't keep on sending me to the captcha upon request it would all be fine
but now i have to do some workarounds and actually start working with headers
const vtcAPI = 'PROXYLINK' + encodeURIComponent('https://api.truckersmp.com/v2/vtc/68863');
const membersAPI = 'PROXYLINK' + encodeURIComponent('https://api.truckersmp.com/v2/vtc/68863/members');
const eventsAPI = 'PROXYLINK' + encodeURIComponent('https://api.truckersmp.com/v2/vtc/68863/events');
const userAPI = 'PROXYLINK' + encodeURIComponent('https://api.truckersmp.com/v2/player/');
const driversArea = document.querySelector('.drivers-area');
const driverCount = document.querySelector('.driverCount');
const eventCount = document.querySelector('.eventCount');
fetch(vtcAPI, {
headers: {
"User-Agent": "",
"Cookie": "cf_clearance=",
},
})
.then((response) => response.json())
.then((json) => {
console.log('JSON response:', json);
let driverCountRes = json.response;
if (driverCountRes) {
driverCount.innerHTML += `<span data-purecounter-start="0" data-purecounter-end="${driverCountRes}" data-purecounter-duration="1" class="purecounter"></span>`;
} else {
console.error('driverCountRes is undefined:', driverCountRes);
}
})
.catch((error) => {
console.error('Error fetching data:', error);
});
Can’t do much on my phone but try this and see what it logs
{
"error": false,
"response": {
"id": 68863,
"name": "VTC Name",
"members_count": 40
}
}
Should log something like that if it’s being received
Usually works on axios for me but not sure
still logs "undefined"
Press the arrow on undefined and status
Why is it still catching on cloud flare
What proxy are you using
2 months ago i was using corsproxy
now im trying it with allorigins
neither of them work
Hmm I have used corsproxy on tmp before and it has worked
Will take a look when home for you
exactly! 2 months ago it was working just fine
now i keep hitting the cloudflare captcha
i just tried it with corsproxy again and now im getting this
reset your token
thanks for the helpful advice, do you have instructions on how to reset it aswell?? -.-
I would suggest to look what it gives you back since that doesnt look like json if it starts with <!DOCTYPE "...
thats the result of using corsproxy now
Try it without proxy. Don't understand why you do it that way
doesnt work without proxy
no proxy
have you forgot about me? lol
Honestly didn’t touch my pc last night
Wth... I don't have a proxy as well and I can access the API with no issues
it'll work if requesting it from the server but not browser 
I mean from my bot who's hosted on a server in germany
not trying to access the API via a server tho nor am i trying to access it via some bot
im trying to implement it into an website that im currently coding
plain HTML, css and js
if i wanted to use the API on a bot i can just use the typescript library
The TMP API does not include the appropriate CORS to be used directly in client browsers. You need to create your own endpoints with the requests to the TMP API and then load them in the client through the domain of your choice
Idk how
To do this you have to create a backend in the technology of your choice and make the query to the TMP API in this backend and then send it to the client through your own endpoint and domain.
Simple example: https://github.com/CoffeSiberian/losandes-express-site/blob/main/routes/tmp_queries/getEvents.ts
It was immediately available in the game https://forum.truckersmp.com/index.php?/topic/91077-vtcworld-—-for-real-fans-of-cargo-transportation/page/7/#findComment-1156059

That made absolutely zero sense
Okay!
Hi dews, I was wondering, you know how to make a delivery software for a company? and that it transcribes deliveries on discord is via a bot or webhook?
You mean like TrackSim?
you really need to make a tracker? there are many already built, with Trucky you can implement API and webhooks creating your Driver's Hub or use something like CHub
I just want to make my own tracker for a personal challenge, and be able to have more personal experience
you can, surely, is not really straightforward, you must have c++ knowledge

Yes, I do know how to make it. Any other question? 
Anyway, as pointed out above, if you want to make an own job tracker, you must use the telemetry SDK: https://modding.scssoft.com/wiki/Documentation/Engine/SDK/Telemetry
Another option is reading the game memory but that involves reverse engineering. Which is not maintainable in the long run unless you have tools for it.
Would also be unnecessary effort 
But then you can do more than just "reading" game memory, no?
You can read much more data in that case.
You misunderstood me - If you have access to the game memory, you can do more than "just" reading, no?
that's how trainers/cheats work 

Ah okay 😄
can i have permission to share screen?
Hey @somber isle! 
You can get the Verified role by linking your Discord account with your TruckersMP account.
Click on the server name "TruckersMP",
Select "Linked Roles" in the dropdown-menu,
Click on "Verified" and follow the steps.
If verification process is successful, you will be given the Verified role, which will grant you access to more channels, posting images, reacting to messages and more!
You play ETS at work? 
me looking at this channel wondering what kernelbase.dll error is
in the end it was the eroor that we had no db connection (db server was in an different subnet). but nice that it threw a kernelbase.dll exception 
eroor 
Hi, has anyone heard of displaying in-game mirrors on another display?
I’m working on a university team project to create a truck simulator, and it’s shaping up to be a pretty massive setup. We’ve got a motion platform, a steering wheel, a gearbox, and even a truck hull that’s going to be mounted on the platform. My task is to integrate all of this and add some extra features.
One of the challenges I’m tackling is figuring out how to display in-game mirrors on two external screens. Has anyone done something like this or knows where to start?
Additionally, I’m planning to disable the cockpit rendering in the game and adjust the in-game camera position to the center of the truck. This way, the visuals won’t be limited to the driver’s perspective, which makes more sense since we’ll have the physical truck structure around the setup. If anyone has experience , I’d especially appreciate pointers on any config file tweaks or mods that could help.

Oh, you need to put no-cors in your fetch api
if you're using fetch in JS for example.
It happens
Problem is already solved
Oh lol

Your best guess is using multimon and trying to bend it to your needs: https://eurotrucksimulator2.com/multimon_config.php
For disabling the cockpit and adjusting the camera position, you might succeed with just using a different camera mode. Try to cycle through them by pressing the 0 key (on top).
Otherwise, you will have to reverse engineer the engine; this might be an overkill for your solution, but this game is not very moddable, really.
Setting r_interior and r_steering_wheel to 0 in the config file or console will make it so it doesn't render the interior, as for camera position there's a mod on the steam workshop to disable the seat adjustment limits so you can place the camera anywhere.
Is it snowing in TruckersMP yet?
false
very dev related answer 
!true && 0 && !1
!false 
How is that programming-related?
You're verbally warned for violating #discord-rules specifically
2.2. Channels, threads & forums should only be used for their intended purpose.
2.3. Channel descriptions constitute as part of the Discord rules.
uuuu new channel name
Rename channel
I hope it as well
At least, odds are better now 
Thanks everyone who upvoted the suggestion 
:maurice tried: 
Unfortunately, I did 🤣

Dayum bro i thought this was the normal chat
can someone help me with making my bullbar black with ''save edit''?
That's far away from programming
I don't save edit, I don't play TMP
Y love api TMP 
Very nice
chatgpt
No
Yes?
ta believed as you did not know dev I use chatgpt?
its been 4 years I develop bots discord, I never use chatgpt
I’m not as stupid as you, sorry for not used chatgpt, and then I think with my discord bot certified I do not need chatgpt, so do not accuse without proof the jealous
yes u are
What is your issue. It’s a simple embed which gathers info from a res api. I’m sorry but if you can’t code then state that but don’t go accuse someone of using gpt when you don’t even know.
Thanks you 
bro
Explain what your issue is
There wasn’t a need for it tho was there
say that it is a joke after criticizing is not forgivable, you criticize a job while its located you do nothing level api and bot discord, so look for no excuse you are wrong
The other alternative would be for you to keep your cake hole shut and not come and start problems

Technically you should stop with aggravating, provoking and offending others without the need to do it.

inb4 the people get in here 
worst joke i ever saw on this discord ngl
just because you use ChatGPT for your projects doesnt mean you have to make jokes about others claiming they use ChatGPT
any game dev here ?
No
I would like this more:
return !!false;
}
``` 
hallo
Hello, how's it going? Does anyone know if 3nk file types are still used for game saves? I haven't been able to find a sample to debug, or could it be that I'm mistaken?
No, AFAIK it's not used anywhere anymore.
Any Unity devs 😅
Encrypted isn't used either i think
according to the docs, at least: https://modding.scssoft.com/wiki/Documentation/Engine/Configuration_variables/g_save_format
I'm using ETS2 Dedicated Server on Ubuntu 22.04 x64:
I am missing one of the 2 ports, although the server is running with no error.
27015 (Connects players)
server.log.txt: https://pastebin.com/4UhPKzPc
netstat:
The encryption option if I am not wrong is when it is at 0 and just of these if I have samples to debug, just did not know that there was that link with that information
I even have to have the KEY in order to decrypt the save as shown in the image (which is skipped change the save_format but ignored by many) so I prefer to identify the file type
I'm not sure if this will be of any help to you? https://github.com/CaptainFlint/wcx_sii_decrypt
It is ok. I have several servers and I looked at the same command and only the port for the query appears. I guess it is normal because my servers are listed and you can connect to them
Just here they talk about 3NK being used for “localizations” and I understand by this that they are translations. I relate it to game files and not to game saves. It's just an assumption because I really don't know
Anyway, thank you very much and I will continue to do more investigation 
You're welcome, my area of expertise is Laravel/PHP I'm afraid so can't be much help but didn't want you to go ignored!
the server isnt detected on eurotruck, and you can't connect, firewall is open for 27015 udp + tcp, firewall has been setup and it also uses NAT so it should be forwarded automatically
If the ports are OK then you may have a problem with NAT. In my case I have the public IP assigned directly on the server (Azure). I still recommend you to use the steam TOKEN so that the server ID does not change and you can use the session ID to connect (because through this you can connect even if there is a very strict NAT in your network) 
no
server id dont work either
let me get it for u
85568392933101943/101
without /101: 85568392933101943
server has been running for about 24 hours now
sudo ufw show added
Added user rules (see 'ufw status' for running firewall):
ufw allow 22/tcp
ufw allow 27015/tcp
ufw allow 27016/tcp
That's strange, your ports are fine, there's no doubt about it, did you try to check if your server appears with this tool? https://ismygameserver.online/
Check the real-time status of game servers and retrieve detailed information about them.
the button is disabled
have you entered your IP?
I find it strange since the game server is even able to work with the session ID even through strict NAT and no dedicated public IP is needed when using the ID
I can't check my dedicated as well
that tool is broken ig
yo need add :PORT to IP
143.47.250.6:27015
💀 you get a bomb of info
its normal
the ping was enabled for a different server but ill disable it soon
(same subnet, not same server)
I suspect that the installation of your server is not correct, did you check everything well? https://modding.scssoft.com/wiki/Documentation/Tools/Dedicated_Server
If nothing works anymore, try re-installing the software. I recommend LinuxGSM which makes things much easier https://linuxgsm.com/servers/ets2server/
I cba doing it manually - I let it run with Pterodactyl. handy for controlling it as well 😄
I've reinstalled the ets2 server multiple times, new ip, new vps, it worked only once, the first attempt i ever did. i have done the modding guide for the server
ur not gonna believe this
linuxgsm doesnt work
Well this is a very particular situation. As I said I use LinuxGSM and I'm doing very well. The other thing is that it is some kind of problem with your vps provider, the image you install or some other problem like your provider somehow blocking this kind of traffic. I don't know what else to tell you because anything is possible
is there any way that I can get the svg or ai logo for the tmp logo, i am trying to add the logo to an icon repo for an open-source authenticator app
https://forum.truckersmp.com/index.php?/topic/67280-brand-and-trademark-guidelines/ Hey this should help
Use of our brand assets We are very proud of our logo and other assets, and we require that you follow these guidelines to ensure they always looks their best. Our logo White version Colored version Our small logo (badge) Our mascot (Haulie) Space and size When you’re using the logo or other asse...
all the pictures here are imgur pngs...
because thats what it is. https://truckersmp.com/assets/img/truckersmp-logo-sm.png
didn't they have ai files in a now deleted onedrive folder?
is there really no way to get a vector of this logo???
Just make your own vector
Use an vector generator or smth
you must have open ports, there are 4 of them.
Uhm which
the 10x ones are internal
Is there any chance so u can make more choices and options available in the Freight Market/Cargo Market?
I've had a scroll through the files and looked for some tutorials, but at last I only see the Virtual Speditor.
Can anyone confirm me that there is a possible change if I do this:
def/economy_data.sii --> no_cargo_prob --> 0.1->0.
By what i understand does that change the possibility of the slots in the certain city being empty to 0. Which will give me the MAX number of job choices i can get.
Doesn’t relate to programming?
I'm making a mod out of it but I need to know how it works first
For Trucksbook I made a utility for searching for employees who increase speed. Everything is clearly visible and there is a search by nickname!
Since when Trucksbook has an API?
Congrats!
Suprised no-one's shared it here yet, but this looks interesting in 24hrs: https://www.youtube.com/watch?v=qZRvDqXc2nc
Subtitles are available in many languages!
Follow our Game Developer, ShawnCZek, along his journey at TruckersMP. What are every day challenges and tasks? What did we accomplish in 2024 and what is coming up next?
We are super excited to share this video with you. Thank you for all your support, see you in 2025!
Crew: Vicc & Luna.
Edited by:...
Something I'm playing around at the moment with is https://laracord.com/docs/installation - Seems to be a great way to make Discord bots with a Laravel micro-framework. I'm going to make a penguin tracker with it, so I'll share once I have an update 😛
It is certainly easier 😄
Made by .csv the export file from the site in the standard way
Ahhhhh
That's why I love Trucky. Rich API 
Alas, trucksbook is not so heavily loaded in the form of an interface and it has everything you really need, so this is my choice and the choice of the vtc company
Interesting

Black text on white background is better for your eyes.
Fair enough 🙂
Just VS does not have a nice white mode
It might be better, yet I can't stand a whole room brightener 😂
Just out of pure interest, are items spawned in the game able to persist between server shut downs, or is that a purely temporary thing for events? 🙂
That's a super cool feature
Just temporary for now
Great job, you've done great work with mwl4 🙂
And what happens when an object is attached to a player and then the player leave the game? Whitelodge like this attached objects 😄
Is it?
Im sure ive read the opposite in many research posts
Surprised you haven’t done a custom theme
Mwl4 if you read this, im wondering what happened to your tachograph mod? I recently saw a video for it and ive been wanting to make that exact mod for years now
Just wondering if you ever did release or if its been discontinued
Although im not good at doing modeling i was going to try and code a ui version
Just wanted to show off further to this, have now created a discord bot showing the migrations of penguins using a laravel micro-framework. Had to consider both Google maps' API limits in terms of too long of a URL, and Discord's message embed length - The amount of location data behind each of these lines is massive! Had to cut it down to only those points divisible by 18 😮 And will of course change each line colour before release 😛
i want this in my vtc discord server just to mess with the owner
When it's done I can send you a copy of the source code, it's open source
fr
They're from a penguin tracking API, that I found embedded on a preservation society website 😄
The data key is public, so don't worry that I've included it
oh interesting
But that shows the full location data of each of the penguins. The problem is, it's way too much data for both Google Maps, and Discord. So at first, I found I could do each point divisible by 18, as that cut the data down enough to fit in both Google Maps API and Discord's message length. But this wasn't accurate enough, and there's not enough discord colour emojis to cleanly identify each penguin. So I've now chunked the data into groups of 5, and the data can now be paginated through
And this allows me to do every location point divisible by 3, so a lot more accurate as well ❤️
ty ^_^
Looks good! 😄
Okay that just got automodded
what got automodded? 
As you can see in the original dataset, none of the penguins have names - So I've used laravel's faker facade to generate names for each penguin
I did yes
It's the code that gets automodded lol
So I add the friendly name to the dataset, which is stored in a file so I don't keep hitting the API and I can pull the names from that 😄
Thank you ❤️
What do you mean by "each point divisible by 18"?
if ( $key==0 || ($key+1)%3 == 0 )
So more correctly, I was checking if the remainder of the key divided by 18 was 0. This helped cut down on the number of data points, but reduced the accuraccy of the map
As I was able to chunk the results by groups of 5, I was able to reduce that to $key + 1 mod 3
Google Maps API only allows GET requests, so that needs to be a maximum of around 8500 before encountering a 413 Request Entity too large error, and Discord only allows a 4086 message length iirc. So that severely cuts down on what I'm able to achieve. So instead of attaching the image by URL, I save the image to file, and then upload that as an attachment
It gets round it, and means I at least don't have to worry as much about the length of the URL
Oh I've got you. So the API returns a full track of the penguin's movement, rather than just its current location - and since there are a large number of points per indivdual pengy, you cut down as many intermediate pings, but retaining just enough for a rough approximation of its movement?
You've got it 🙂
Do you currently have a feature to grab the latest penguin locations? So rather than the whole track, just the individual points of each one?
That'll be the next thing I'm adding to it, as well as seeing the track for a particular penguin 🙂
What db are you using to store the tracks?
Not using a database, I use json_encode once I've added the friendly name to the dataset, and then store it as a JSON file using the Storage facade
Then I just read from the file. That file is updated from the API at each boot of the bot, and every 2 hours
Gotcha - have you considered aggregating the points into WKT linestrings and storing these rather than each individual point (useful if you're not bothered about the timestamp of each ping, but rather the whole track)
every two hours from the moment the bot is booted or every two hours like 8am then 10am and so forth?
From when the bot is booted 🙂
Hmm, I haven't heard about linestrings before so I'll do some research on it, thanks ❤️
np i work with mapping data as a job
oh neat 🙂
worked in traffic data for half a decade, now moving onto transit
And your therapy sessions are how many times a week?
/s
hey man so I had a look at the data and it appears the tracks haven't been updated since aug/sep 2024
Thanks, ill email them and find out - Might just be a case of they only update every 6 months or something
If so I don't have to bother fetching the data from the API at all on a refresh
Thank you 🙂
Did you write this? 🙂
pause.
no, it's a gist I found interesting to read 
what's everyone working on atm?
I'd like to get involved in a hobby/open source project... I do Python, mainly data analysis, transformation/wrangling, but have experience with front-end, and of course relational dbs (postgres - with postgis - and other sql flavours).
I'm mostly working on my multigaming community (e.g. discord bots, minecraft plugins) and yeah 😄 nothing too wild
I've only really just joined Discord tbh. Are bots a big thing - I remember being on IRC back in the day and making a few terrible ones for that lol
yeah - they're fun to code with 😄
espicially if you can/want display data or minigames like hangman or such :3
oh cool - what's the usual tech stack for building them?
mmm well, you can use any language - python, java, js, php and probably even assembly 🤣 I use Java 
well minecraft is java - thats why I chose 😂
otherwise... I'd went into web dev (php, etc.)
Ah I started in web dev
I have a love-hate relationship with PHP
I have a soft spot because it's what I started with - but I also hate its guts
like how tf does 0 == '0'
evil

well, I have a hard time learning new stuff - like seriously
it was truly a marathon learning for a drivers license - i dont wanna do it again for yet another coding language

Well am also a web dev but in c#/blazor/razor hate js and php so was an easy decision
oh never heard of blazor/razor but just googled - is it a .net framework? what ide do you use
ah nice, I was gonna ask if you were using rider
JetBrains is just great
I use PyCharm
nothing has come close to the hinting - vs code just sucks
CoPilot + PyCharm improves the code hinting somewhat
Well, I, for my part, use Eclipse IDE
hated by many, I love it
well old workplace was purely vs now since a year im rider + vs (for internal software)
I'm waiting for somebody to proclaim they only code in vim
"it's easy bro trust me"
I start a new PHP developer job on the 13th, and then I'm also starting a volunteer developer position soon in my spare time 😊 so really excited for both!
Oh well done! PHP is having a bit of a rennaisance because so much of the internet still runs on it, but newer devs are turning to Python as the standard
I wish I could be a web developer (front + back end) but no.... 💀
Everyone loves to hate on PHP, but it gets the job done well
you can do it if you believe in yourself (and claude kekeke)
And it's so easy to read and understand as well, as long as it's maintainable
For sure - idk if PHP 7 fixed this but the older versions were too leniant with crappy code and it let you do some really awful things
and the errors made no sense
Yeah, PHP 8+ is much more strictly typed.
well, I tried it - not only once or twice but a few times. Every time I cancelled cuz i got overwhelmed 
thats why I rely on others for my project
just be a full stack dev (front + back + software) 
I have some PHP I wrote sitting on the backend somewhere at the Financial Times lol
Oh nice!
you wanna end me? 
FancyTable I called it
i mean its easy trust me (thats what im doing technically)

Unstructed JSON from SOLR needed to be dynamically displayed in a paginated table
so I built a library that would wrangle it nicely
that was like 2015
just write drivers and kernels
Donald, keep in mind
Whilst I truck around I have to maintain my Project (with its subprojects), Trucky and in my VTC as well. I can't already anymore 😂
Do they still treat null, false and 0 as equal?
Depends on the comparison operator. == yes, === no
py? I've heard more about nodejs/go becoming more popular on backend
Python has a lower barrier of entry. It's quite common for data analysis and Django is a popular web framework. But speed-wise Node or Go would be better.
And I think also LLMs are mostly trained on Python so it's the standard for people starting out when they ask GPT for advice
Python is indeed really friendly with ML
also it's very common as a taught language in uni and college
although I woldn't say a language like JS is harder than python
my internet is taking a walk outside this evening it seems 
I don't think any language is "harder" per se but they have uses for different things
JS is fairly new to the backend world, while Python has always been used for server-side/client applications, whereas JS was adapted from a front-end language
so might not have the same maturity
Better than learning pure C I guess
I would like to learn TypeScript though, seems useful
I started with node myself tbh and never really touched Python to an extent where I'd make something with it
it's gold tbh
the things you could make with the typings sometimes amaze me
and the way some libraries take advantage of that
I've tried my hand at Golang as well, but I do struggle to get my head round it. One day though 🙂
@glass vine
As promised: https://anonymous.4open.science/r/nootnav-5C9E
Best to click on 'Download Repository' in the top right
Ooh a fellow anonymous4open user
Basically the industry standard in my field of research for bundling copious amounts of data 
I only found out about it today! My real name is on my github, so don't want to share that publicly 🙂
It's a great tool for us for the same reason - our peer reviews are double blind so we can't share github repos or have to make a github account per-paper which isn't great
Ah very nice! What field are you in if you're happy to share? Academia or medicine I presume?
Yep - academia! Natural language processing (primarily LLM applications)
It makes for a very nice Google Scholar profile 
Ahaha I bet! Which country are you from?
Canada 💪 🇨🇦
Ah nice! I know a few researchers out there from chance encounters
Conferences are great for that
I bet 🙂
starting a new job on Monday 😎
Oh congrats!! Is this the transit you were talking about the other day? 😊
Yeah!
Gonna be fun I think - will be working with Google and Microsoft
Show-off 😛 Nah, good for you man, well done!
I assume this is to do with transit based mapping data for both companies?
Now that would be telling 🤭
It's definitely a unique job anyway ahaha
thank you, and to you with your new PHP job lol
Thank you! 
Can JetBrains even do PHP?
PHPStorm!
It's ideal ❤️
I remember the olden times when I wrote PHP in notepad ❤️
or nano
without code highlighting
I kinda want to spin up a Symfony install just for old times sake
Been there done that 🤣
which graphic card good for 90+ fps ?
What has that to do with coding?
Yeah fr
How long does it usually take for pull requests to be reviewed? Saw something missing on the API Documentation and added it in a week ago
Mine took 4 days to be merged, so I wouldn't worry 🙂 You can always point your composer.json to your repository if you need it for your project
Which repo?
TruckersMP API Documentation. Contribute to TruckersMP/API-Documentation development by creating an account on GitHub.
what composer.json 🤨
my pull request was merged ^^
https://truckersmp.com/developers/api#operation/get-vtc-id-events-attending
hey so im working on some stuff with prism
and ive seen these pointer types like owner_ptr_t and plain_ptr_t
i guess they work like this prism::plain_ptr_t<prism::...> some_pointer = ...
but i have no idea how they should actually look, how they work, what they are for etc etc
if anyone knows please show 🙏
these are the pointer types i found btw:
namespace prism
{
class owner_ptr_t {};
class plain_ptr_t {};
class auto_ptr_t {};
class auto_vec_ptr_t {};
class link_ptr_t {};
class void_ptr_t {};
class c_item_ptr_t {};
class asset_ptr_t {};
}
(ping on reply!!)
currently trying to design a ticket transcript site for my discord bot 💀
Great start mate! 🎉
Yep 🤣
pretty sure a known developer makes that asleep whilst being in a coma
💀
my browser history be like: how to do, how to do, how to do, chatgpt, w3schools and whatnot 🤣
but php i never will touch 🤣 html is already too steep for me - dont wanna imagine js nor php
Thing is there's no shame in that, everyone learns somewhere! I still refer back to the most basic stuff sometimes because I second guess myself 🤣
That's true yes 
I just try to merge from the old ticket transcript site to the new one the footer and header with the relevant info.... thats a pain

Just don't forget to look at the bigger picture - Although it's great what you've done, you'll need to store data and retrieve it, so you'll need a back-end language for that
Although I'm happy to point you in the right direction if I can help 🙂
there wont be php implemented - I've got my own way to do that 😂
whilst other developers would the hell disagree with my solution - it does work like a charm tho
If it works for you, and it's secure then go for it
Secure - well, that's a good question. Probably no. But I have something in mind which will make it more secure 🙂
Just remember, as I was given this advice by TuxyQ many years ago, never trust the client 🙂
Well, if I could I'd do it the more secure way - but as I said, now learning another language would send me to a code burnout as I already handle everything on my server. And I tried to get Web Developers who could do stuff - preferably voluntarily. But either they are self overloaded with projects or want money - which is understandably as volunteering doesnt give you anything despite a big thank you from me
🤣
Finally figured it out how the base design looks like 
Are you deadset on making your own transcripts? I will admit, unashamed, that I use a library for this 
Fair enough, just wasn't sure if you were doing it out of not having an alternative (like I was haha)
(if you can't tell, I freely admit that I suck at html/css)
Oh 100%
Worth making it if you have the time and patience
that way I can learn HTML better yk?
What lib if you don’t mind me asking? For ours I’ve just done a pretty basic template till I have time
It can either fetch from a channel or you can provide an object for messages, and it renders it into Discord-style MD
well, I use Java JDA - so couldnt use that lib anyway 🙈
Ahhh fair enough
Thx
Yeah we were just looking to move from our old tickets tool to something in house, and transcripts were ultimately my lowest priority consideration at the time
Well, they have no priority for me either cuz whats closed is closed but since someone asked me for my bot (or better the ticket part) I have to do a revision
Yeah that makes sense
but thats okay - so mine is updated as well and then I'll modify everything for the pure ticket bot as mine is a multifeature bot where tickets are just one portion of the feature(s) it has
i have the joys of a college assignment, they basically want me to create a basic 6 page website
My current "joys of university" is writing a project proposal for our SWE course as well as marking advanced OOP assignments
That sounds WELL worse then mine ooh god
cant show more yet as I'd have to black out stuff. But it does work fancy for now. Now time to debug
🐛
Nice 🙂 What are you using for data storage?
MySQL 
Sounds good. Make sure you're protecting yourself against SQL Injection - worth reading up on if you haven't already, as users may try and drop your tables if you're not careful 🙂
Already done because before the data gets sent to DB its not only hashed and only decryptable with a password I also deform such commands so not even JS Injection could happen in the transcript site
Nice one 👍
I'm careful, of course. I mean my nearly 50 member server i know most of and know nothing will happen. But soon I'll have 20k members with that bot under my hands on which I know a handful of people only.
and obviously there I need to be careful
Yeah man, you already sound like you have it covered 🙂
Of course. As the text handling still happens in my bot and I do handle Java very well, so a bit Regex here and there, some if/else stuff and I am good to go. Of course there are still people trying to do shit, but that's why I have an integrated Ticket-Ban command so if I catch people trying shit I simply close the ticket and ban them from the system - if they need help, a mod has to open a ticket manually.
How was everyone's week? 😄
Question for anyone experienced with CSS. It's been a while and I'm just working on a small UI component but I'm noticing some odd behavior with the way border colors are displayed.
For some reason, background-color of an element seems to affect the border color. I swear this is new and never used to happen - and shouldn't happen if transparency isn't used.
Reference code, HTML:
<div class="parent-wrapper">
<h1 class="header">Some Title</h1>
<div class="content-wrapper">
<span>My super amazing content</span>
</div>
</div>
CSS:
body {
color: white;
background-color: black;
}
.parent-wrapper {
height: 700px;
width: 500px;
padding: 15px;
border: 1px solid white;
}
.content-wrapper {
background-color: #212121;
border: 1px solid #007bff;
}
Note that border is set to a HEX value for a nice shade of blue, but modifying the background-color changes the displayed shade of blue. Anyone know what's up? Is my browser just bugging out? How would you mitigate this because it's problematic where you want multiple elements to share a border color despite having a different background color.
Demo pictures that show a change in border color despite only changing background color:
Seems to happen in Chrome but not Edge
Which of those is chrome and which one is edge? or are both the same?
That's a before-and-after-changing-background-color picture taken in Chrome to illustrate the border color is affected despite only changing the background color
hi, with API TMP we can have stats of the genre, number of players on a server etc? like the bot TMP?
https://truckersmp.com/developers/api#operation/get-servers
Here you can find the API. This specific part gives you also the amount of Players that are currently on the Server. (https://api.truckersmp.com/v2/servers)
thanks you RM 
Anybody with experience with the SCS Telemetry SDK? I'm using RenCloud's wrapper for it and can get information no problem using the offsets and byte sizes defined. However, I was hoping to convert the x,y,z coordinates that telemetry gives to cities. Is there a straightforward way to calculate this? I've found a few external tools but I was hoping there would be some implementation I could work into a small project I'm thinking up
out of curiosity, which external tools did you find?
i'm working on something similar for one of my projects, and the only solution i found was to parse the game data to find bounding boxes for cities (because as far as i can tell, a city in the game can have multiple boxes associated with it, probably so that different places/approaches can trigger the "SomeCity Discovered" event), then decide whether a point is at/near a city, based on whether it's within/close to one of those boxes.
This is the tool I've seen mentioned. Your bounding box idea might actually work for me. I'm basically trying to write a "roleplay" style plugin where you're a taxi driver. So it'd just track the starting city, time, mileage, and end city. https://github.com/Koenvh1/ETS2-City-Coordinate-Retriever
a "roleplay" style plugin where you're a taxi driver.
nice! would be interested to see what you come up with. i'll stalk your github for it 🙂
Thanks! I just thought it'd be fun since I like driving around TMP in a taxi and why not have a little RP part built in. It'd be cool if there could be actual jobs you could take
you can always set up a dispatch server that the plugin connects to, to assign + track jobs 🙃
ohhh good idea, i'm gonna write that down
What do Discord embeds have to do with TruckersMP?
impossible
Okay
This is expected, and isn't TMP's fault. Essentially embed data is gathered from the Open Graph description field, which doesn't parse the markdown the user provided
instatntly 
why is my test bot in so many servers
Why not? 👀
fair point
Your bot is in more guilds than mine
but my old bot is still one a big one (3k members - roughly).
oh wow!
i think i have a bigger one tho
but anyways, after 2 hours of doing whatever and trying to get this thing done, this is how far i got 😭

it used to work just fine, but the the API i used to fetch everything i needed ended support for jsonapi, so i had to quickly fix everything to work with GraphQL, and half the levels were are now missing when trying to create a playlist and it needed a rewrite
soo yeah
yea, i have a big server in the list of my non-test bot
daaamn
Well my advice here can't have been that bad 
as in? 
im already scared of having mine with almost admin perms in that zeepkist server
why? 😄
well cause im dumb
and i might aswell delete everything accidentally
with how dumb i am
😂
do it like me
before you do actions log everything and see what does what (espicially with many if/else, for, while statements so you can trace in the console what does what
best approach you can do
yeah its what i always do
logging is important
literally logging everything tthat could trace an error
gud gud - what language is that - if i may ask?
python
sssssss
I hate Python 😂 well, I hate any language which isn't Java
might be because I'm too picky and too reserved to learn a new one 
i feel the same
recently been doing a bit of C# to make some zeepkist mods
got a project on that too
its called playlist importer
and a problem the game has is that to share playlists, you have to share files around
but using codes and a command makes the process a whole lot easier
and i could make a webpage with lists of different themed playlists people can upload, and it'd all be very cool
and they just import playlists with a command
honnestly big project, cause its all learning
learning C#, HTML, JS, CS
thats 4 languages i need to learn for 1 project
grrr im getting nothing done istg, 2 hours and all i have is this 
Python...

skissue :P


my multi language bot and which is mainly for server protection, is on 69 servers and helps 25,000 members in total 
small question, on the API TMP, we do not have the possibility of having an event of the API that allows us information or other on the applications of a specific VTC?
I explain, I would try to create an event that will ping my staffs when someone is going to apply on my VTC, and I would like to know if this is possible or not? Compared to the API?
(ping me for response)
There are discord webhooks for verified VTCs, you can technically parse them but that's about it
and without webhooks it is possible?
Are you thinking about having it notify you via Discord webhook?
If you create a suggestion here for it: https://forum.truckersmp.com/index.php?/forum/285-suggestions/, and it's accepted by community management, I can work on building that in for you ❤️
I’m willing to make this suggestion for api 🙂
It likely wouldn't be an API thing. It would be a case of you providing a webhook URL, and then maybe some checkboxes for events that you wish to recieve
Don't forget it's not possible to receive information about deliveries, but it would be feasible to say you want info about who's joined and left etc. That's possible to do 🙂
for deliveries, I use the vtlog api 😄
but for being notified for an application on a VTC it is in webhook if I understand well?
Same for a member of a VTC who arrives or by a VTC?
Yeah, suggest that on the forums (if that's what you're wanting) 🙂
There's already a Discord webhook feature, but it's limited to verified VTCs only
Do they get alerts of applications tho
Yes
Ah
anyone? 🥺 :)
I don't know much about C++ but I'm sure that these types are to improve the clarity of how to handle memory in a more secure way instead of using the standard library directly
Anyone here that knows a thing about dll mapping on C++ and Python? 
I’m trying to develop a telemetry to link with my API but i am not managing to use dll map to retrieve the data from the telemetry dll 
why is TMP down on ATS?
the API is down. see #support. Just be patient
Here you can see what you need to map in Python with ctypes: https://github.com/RenCloud/scs-sdk-plugin/blob/master/scs-telemetry/inc/scs-telemetry-common.hpp
@shadow marsh dont suppose you could do me a favour in dms could you
Sure 😄
i found a solution with JS using that one 
@golden helm 
you really ping the slowest one of them all
i bet @zealous galleon is faster

Oh perfect! No clue when exactly, but I already starred it on github hahah
No way, I'm the slowest one 
Someone that develob website dm me i need help im starting my carrer
Simply write what your issue is and someone will help you 🙂
- Fact. If you want to make L7 protection against DOS attacks. You need to move towards the ID package. Well, do this not at the level of the operating system, but at the nucleus level.
And in order for this to work with the most minimal losses, it is necessary to study the machine code.
@golden helm
Just saying but wix is great.
❤
Better to get a simple page up and running then gives you time to find a dev etc

Oh yeah for sure lol
The penguin has been triggered
Time to test Eclipse-PHP. Kinda hyped 
Afaik looks like a normal eclipse, just with the needed addons to code... in php 
Yep. It's... Well... Need to get used to it... It's not setting curly brackets ( { } ) like I'm used to, but it's fine yet 
A bit more fun that I had in VS-Code 
is it? 😄
never tried it out really, as I use Eclipse mostly for Java and the rest Notepad++ (except the WebAPI I have written in VS Code)
I used to use eclipse back in the days when I coded in Java, which is why I had good feelings about it.
But it's indeed a bit more fun than VS-Code 
Especially since VS-Code throws some kind of error everytime I close it 
is it the NubbieErrorException? 
How did you know that? 
Was just guessing silly 

@high heart
hi
Thx for deleting it
@golden helm
Bro is forgetting Weebly 
Could anyone help me with CSS ? I'm trying to setup twitch alerts.
What I'm I trying to acheive ?
- On the image below I would like the "This is a test bit alert for ...." to be right next to the username in white
The code:
.widget-AlertBox {
position: relative;
}
body,
html {
height: 100%;
width: 100%;
overflow: hidden;
}
#wrap {
position: relative;
height: 100%;
width: 100%;
}
#alert-box {
height: 100%;
width: 100%;
position: absolute;
}
#alert-box.hidden,
.hidden {
opacity: 0;
}
#alert-text {
padding: 20px;
text-shadow: 0px 0px 1px #000, 0px 0px 2px #000, 0px 0px 3px #000, 0px 0px 4px #000, 0px 0px 5px #000;
bottom: -45px;
left: 200px
}
#alert-message,
#alert-user-message {
text-align: left;
width: 520px; /* Adjust width as needed */
overflow: hidden;
display: -webkit-box;
-webkit-line-clamp: 1; /* Limit to 2 lines */
}
#alert-user-message img {
vertical-align: middle;
height: 1em;
}
#alert-image {
position: relative;
}
#alert-image video {
width: 100%;
height: 100%;
position: absolute;
top: 0;
left: 0;
}
#alert-message > span > span {
display: inline-block;
}
#alert-image {
z-index: 6;
position: relative;
}
#alert-text {
z-index: 6;
position: relative;
}
#alert-text-wrap {
z-index: 6;
position: relative;
}```
Of course we can help, but it will be difficult to do so without seeing the HTML code of the relevant section.
That's all I have
<!-- alert image -->
<div id="alert-image-wrap">
<div id="alert-image">{img}</div>
</div>
<!-- main alert box window -->
<div id="alert-text-wrap">
<!-- alert text -->
<div id="alert-text">
<!-- alert message -->
<!-- messageTemplate will be replaced with your message template -->
<!-- for example : {name} is now following! or {name} tipped {amount} -->
<div id="alert-message">{messageTemplate}</div>
<div id="alert-user-message">{userMessage}</div>
</div>
</div>
Would making the following change in CSS work for you? @quaint cobalt
#alert-message,
#alert-user-message {
text-align: left;
width: fit-content; /* Adjust width as needed */
max-width: 520px;
overflow: hidden;
display: -webkit-box;
-webkit-line-clamp: 1; /* Limit to 2 lines */
}
#alert-text {
display: flex;
z-index: 6;
position: relative;
}
Will do as soon as I'm on my computer
Steam's OpenID system is currently down, causing the inability to log into any third party site with "Sign in through Steam" functionality.
Alongside, Steam trading is having transient issues that prevents confirming trade offers on your Steam Mobile Authenticator.
We'll
Third time I'm having your/this message shown as 'new' 👀
What's happening in here? 
deleted spam messages
basically a ghost message
How often do you recommend getting updates from the API for exchange rate calculations?
As a publication, some API providers update every hour. But I have seen very high-end APIs that can update every 60 seconds. Of course, the costs are high accordingly.
There are APIs that I can get data from every 24 hours, but I think these will cause too many problems.
I'm curious about your thoughts on all of this 
I mean depending on the service and what they have implemented as rate limits I’d guess
Mine is live-updated - e.g. you could request it 1x/s (but is stupid) and get new data.
@golden helm hey nub
@golden helm ^

Anyone know a page where you can see where your stuff got leaked?
If so, feel free to ping me
You can use https://haveibeenpwned.com/ for things like email breaches, that's one I know off the top of my head
I know this page already. The thing is that my(now old) email has been leaked but it's not telling me where tho. It only says that it's on a list that got leaked. So I wanna know if there are other sites like this 
This site should tell you though which is strange, I can see exactly what sites had a breach
Sometimes it does, sometimes not. It depends on what got leaked and where exactly
(They don't really want to give everyone unfettered access to raw leaks either way lol, that could be problematic)
Leak Lookup and Breach Directory are two names I see thrown around
Fair
Depends what sort of stuff 👀
Probably could use intelx to check but I can’t speak more about that website in here I’ll end up getting slapped by a discord mod 
oh right, didn't notice that channel sorry lol
😭
🥲
javascript isn't java 
My js is the bestest tho 
You've got a circus for a colour scheme 
It's not that bad tbf
Dis is the theme I use
github dark dimmed >>>
been using it forever
with minecraft font too 🤤 peak programmer experience
YES minecraft font

Monokai theme on top
This public static void Meme(String[] args) {} made me laugh 
forgot to wrap it in a class 
Oh darn 💀
best font ever 
ngl im so used to it at this point i don't even really see a difference anymore
Good to see you guys use branches as well 
I use JetBrain's Font 😄
I love the font that is used in visual studio, think it's called Cascadia or smth
^^ vs font is very nice
name is Consolas i use basically the same style in notepad++ (ignore the fact currently my vs is not using that font)
oh yeah you just got me addicted to that theme
get a formatter 😭
Organize your code bro 
Tbf, sometimes the HTML formatters mess with SVGs and stuff like that
So i prefer formatting it by hand xD
Can be done yourself whist actually coding it icl
Nuh uh!
@golden helm
what on earth is that indentation
huh
Okay - I always were a big fan of Eclipse IDE for java. But honestly... VSC is even more fun and way quicker! 😄
I use IntelliJ strictly because, being a TA, I’m forced to use it for marking assignments lol
That's okay - I can't figure IntelliJ out... tried 3 times, gave up on it 3 times xD. Stuck to Eclipse - but now tempted to change fully to VSC
LOL I don't blame you, it's a nightmare at times
I just learned to power through it when I got it for free with the student pack
Ah nice! 
one of the best 
Got that one of Erlandsson and I’m addicted 
Always use the default theme but just to try something https://github.com/catppuccin ☕
Hola @bitter bay! 
Por favor entienda que este es un servidor de Discord principalmente en inglés. Usted puede dirigirse a id:customize y seleccionar el idioma o los idiomas que hablas para tener acceso al canal especifico de cada idioma.
Anyone know for HashFS how the file hashes in version.scs are calculated?
Haven't looked much and just wondering if anyone knows
Assume it's something with maybe parts of the files Metadata as city hash 64?
@bitter bay you're now verbally warned for violating #discord-rules
2.1. English is the only language permitted unless stated otherwise.
``` You can speak your national language in the channel selected in <id:customize>
Thank you
Rust mentioned 
I like Rust, even though you have to get used to the compilation times 
Not bad for an electron ui tbf
wails ❤️❤️❤️
I think that shoundt be there 
Thanks for letting us know ❤️ We're aware of the issue, just working on some more urgent features atm 😊
Ye no problem
Hey does anyone here know if you can pull from the API if a user is in game within the vtc? Cheers!
That flag doesn't seem to be exposed in the API response sadly, might be worth a suggestion on the forum as I also thought on a few occasions that that could be helpful
Not from the normal TMP API at the moment - You can get the information from Krashnz's traffic API, but you must only ping a max every 5 seconds: https://traffic.krashnz.com/api/v2/user/<truckersmp_id>
Do I need to contact Krash about getting whitelisted IP etc? As thats what Krash said to me once?
But thanks for that I will test what we are building atm 🙂
I don't think so, but don't abuse it or anything. Always worth reaching out though for sure
I reached out for it once on the forum
Trucky has endpoints if you want to lookup players in bulk, can do so with up to 100 players in a single request iirc
you got any docs for this?
Thanks!
nice deleted message and ghostping

doing a little programming session for a vtc rn in general if anyone wants to pop in
Big nub
Doing good wbu
Is TruckersMP interested in AI / Machine Learning staff ? I'm a Computer Scientist with a strong background in AI & Machine Learning and was curious if there is any help needed, since I could offer my expertise.
What
I'd guess it would be the best idea for you to open a feedback ticket towards Project Management as there isn't exactly a role here for people specifically with AI skills 
Thanks for your answer! How can I open a feedback ticket directly towards Project Management ?
Hey @jolly locust! 
We value feedback from our users as it is an amazing way to hear your thoughts on TruckersMP and to allow us to continue to improve the project.
You should use the feedback system
if you wish to provide feedback on team members,
to discuss a punishment you received that is not game-related,
to ask a question to a certain management team,
if you have a request which contains personal and/or private information which you would like to discuss.
You can provide your feedback by following this guide.
Pro tip: if you like math and want to learn a new language, I've learned that Project Euler is great
It's like leetcode but actually fun
Hey, #truckersmp-updates message
The right variable is -physc, right? : "C:\ProgramData\kylia\TruckersMP\TruckersMP-Launcher.exe" -physx
It's -physx and it should be put in the launcher settings
Oh noice, thank you
I don't think the old launcher supports console options
that looks perfectly normal, idk what ur talking about
That's just normal ETS2 drivers that's all

y love tracker 
Hey dont roast me for the newbie question, I am currently making a page that shows the players/how many is on the servers and its working good. But the problem im facing is I am in game on sim 1 and I do /players, and it comes up for example with 500 players, but according to the API its saying 731 players, how often is the api updated? Or am i doing something wrong here? Thanks in advanced!
Nothing wrong! The API is cached, so it won't display an immediate update when the player count changes 🙂
How long does it take until the cache gets updated? 
I'm at work at the moment so can't check, and I don't know off the top of my head 🙂
Haven't paid close attention to when I refreshed the page but it seems like 30 minutes or something like that
if its that, that's way to slow imho. 5 mins are just fine and displays somewhat accurate stats - but... 30 mins?
https://api.truckyapp.com/docs/#api-TruckersMP-GetV2TruckersmpServers truckyapp provides much faster data update. (I think it's close to 5 minutes or less)
I know
would be bad if you didn't
I'm glad you know that
. I guess itsPeanutttt knows that now too.
That's.... true. I use the API myself, however dow created custom endpoints for me 
I'd be a bad project manager if I didn't knew 
set the user-agent header on your requests to something that allows us to identify the application sending them and you'll get more current results
Thank you! I’ll work on that
Just gonna copy and paste that! I’m trying to make something that updates regularly 🙂
uh then I think you can do what 3v.fi says, they can make a definition for you to get more up-to-date data directly via the TMP API 😇
Has or will that new Partners thing TMP has added be implemented into the API?
Hi, does anyone else not getting their job delivered or cancelled events fired on version 1.54?
Ah seems like something was off with my dll
It's on the list to be added, can't say when that'll be though 🙂 (When you say partners, I assume you mean the VTC Partnerships)
Indeed
That new Partnership System that was invented, can't wait for it to be implemented into the API as that would make listing an VTC's Partner easier for me
Which video graphic card good for ets2?
Sorry
Is the truckers mp website in php?
Yes 🙂
Not just PHP, but that is the base language used
I think that is classified as web scraping, so don't think that is allowed
I retract my statement
Is that against tmp rules?
Isn't it generally illegal? Could be wrong but that's what I was told
It's really just specific to the company, some are okay with it as long as you don't abuse the api while others are just against it
Maybe one of the devs or someone with more knowledge can comment on the above ?
- Laravel (PHP)
- JS
- HTML
- CSS / Bootstrap
- MySQL
I don't know what it is directly, but sources indicate that the software is built on Laravel.
Laravel is basically just a framework for PHP, so yeah still made in PHP as a base
frameworks >>>
Yes, Laravel is basically a framework built on PHP, but this does not change the fact that the site is developed with Laravel infrastructure.
Yes, wasn't arguing that, was just clarifying as you had say you didn't know what it was directly so just added it in
Ah what I was trying to say there was that I saw this on the forum, so I didn't want to say that Laravel was being used directly 😇
Ahhh I see, gotcha, ty for the clarification
Ty
Who pinged me
opens programming channel
realises I'm not taking programming
closes programming channel
No, it’s not an official client so TruckersMP don’t provide support for it.
But the community might 
Not that it's really related to programming, anyway 
How isn’t it programming? TruckersMPCli could be programmed up lol, discussing how it could be made up or coded etc. because I’m interested in working with it tbh and if I blink in #support my chat would be long gone 
Hmm, you're quite right, I stand corrected 🫶
I made this its almost useless but yea
Nice work! 
Do you plan to do anything with it or just for practice?
if i can publish it i would def publish it but idk how
Github is a solid option
used alot of help on this one
Activate ur windows boi 🤣
jks, idc
Yeah, GitHub is a great place to put this stuff
Well done though!
do it free with MAS 
what else should i add
You can try to measure by analyzing the incoming data. For example, it may be useful to add a section showing the uptime data of the servers in the last 24 hours or a wider time period.
In addition, you can also provide a graphical data of how the server population is shaped. You can make the data analysis more meaningful by adding statistics such as the time zones where users are most active, the lowest and highest player numbers in 24 hours.
Such information is useful both in terms of following the general status of the system and provides transparency to the user. At the same time, it can be a very effective study in terms of improving yourself in data analytics and adding value to your project.
Yes, at some point, most of these things are already available and can be found as examples, but at the end of the day, this is your own software, you are both developing yourself and a project, so it does not matter if it already exists. On the contrary, they are great examples for you 
Not sure if the truckersmp api have the first 2
you can accumulate that data over time yourself 
Okay programmers, question, if you think your project is ready for production, what are some steps you do to make sure its ready for production? Is there any tester that you use, obviously multiple tests etc
i test in production

Testing frameworks depend on your language and sometimes your preference - for JS/TS I use jest, for Java I use JUnit, etc. Doesn't hurt to have a coverage measuring package as well to make sure you've got good line coverage, but that's really for large-scale prods imo. Test your databases via load testing, make sure you can't do any injections, data atomicity/general safety (not a real issue if you're using a good connection engine & sensible routing), etc.
Other steps I'd take - go back and remove any "it'll work" code with something that's scalable, clean up weird console logging statements, and I'm a big fan of doing a documentation run at the end to make sure I can wrap my head around my code as well.
- First, your product will never be perfect, and it's never ready to work. The only question is at what stage of development will you decide that the features that you are ready to show work well.
- Secondly, no matter what tests you run with a focus group, real users will find things that you didn't even know about. Be prepared for this.
- Third, don't show something that really doesn't work well.
- Fourth, take risks. Publish it. If you don't do this, no one will know about your project.
How did you make the UI? Windows .net or something else?
It is quite natural to see some mistakes at the first stage. The important thing is to proceed step by step and try to solve these mistakes. To do this, you must first make a good plan and then proceed according to this plan.
We know that this data is not directly provided on the API side, so you will need to process it yourself. There are a few different methods you can follow at this point:
1. Collection of Data
You need to send queries to the API at regular intervals and pull data regularly. In order for this data to be analyzed, it must be stored continuously and consistently.
2. Storage Problem
If data is only processed and stored locally, data gaps will occur during periods when the program is not running, making it difficult to perform sound analysis.
3. Alternative Solutions
I can suggest a few solutions to overcome this problem:
- Website + Database: Save data to your own database by sending requests to the API at regular intervals through a website you created. You can then create your own API to serve this data to different systems.
- Integration with Firebase: You can retrieve API data from your website or directly from a server and store it in Firebase. This can be especially useful for instant data tracking and analysis.
- VDS + Firebase: If you do not want to deal with web infrastructure, you can get API data with the help of a script running on a VDS server and transfer it directly to Firebase.
If the above solutions seem too complicated, simpler methods can be developed for the analysis system. The important thing is to first clarify the main idea and then develop this idea and put it into practice.
thanks but it works after pressing refresh
So the problem is that it does not receive and process the data on the first run?
yes
it didnt happen before i made it exe
Thanks @mossy cloud for adding an endpoint for VTC Partnerships ^^
You made an little mistake on the documentation tho making the partnership endpoint appear as "Fetch all the events from the specified VTC"
I have opened an pull request with a change ;)
Ah thank you! ❤️
Hello coders 😄
Quick question about the API. I'm using it for my VTC, but I am hitting some kind of rate limit when getting data for all of our events. I can't find any info about the rate limits in the docs 😅
Do you guys have any details on what the rate limits are? Would be super helpful to know so I can avoid running into issues. Thanks!
from my own observations it's something like 60r/60s
Alright, will try it and see 🙂
Thank you

On which rate are you getting data from the API?
Even if data is cached in the API itself, you can try and cache it for yourself on your Webserver.
Update your cache every 15 seconds and the data is pretty new and you only need up to 4 requests per minute
Well, we have a system where we add events. I then have to request all the data for the event from the API. If we then have 50 events in our system. It has to do that 50 times... And I also want to update the data for all events pretty often, like every 15 mins
Queue the requests to make 20 per 60 seconds maximum or so
Alright
What's a good way to learn coding at home? I'd like to pick up some stuff even just to be able to mod in general
What type of programming?
Websites or what?
Gaming preferably
Arduino if you are into making home projects or keyboards or whatever you’d wish
You can actually build a aimbot with one
Its not like those pieces you put together, its actual wires and computing
Cheating is cringe 
Is there a version of TruckersMP that works on Linux? It's not mentioned on the website, only Windows 10 is listed.
I’ve tried virtualization software like Wine, but it doesn’t work very well.
Thank you very much, I will try it right away
aimbot on truckersmp? hell yeah
100% precision crashes
hello moderator
Hello Not-Moderator 
could've just said hello, but ok 

Hi community,
I have a doubt. I was recently exploring the TruckersMP API and trying to integrate with my VTC 's webpage
The issue I had was, if an event is created and the API is responding with the details,but once the event is deleted, I get the details of the deleted event too, which I don't want to be there
Can anyone let me know what's the cache time for the data given from the API?
Sort out if it’s deleted or not
Should probably be a «state», «action» or «status» for each event
No that particular deleted event went off from API response after some time.. definitely it's server side cache. I just want to know if someone had figured it out how much time it takes to refresh cache
Is there an info for this? 
Probably not, but if it's very important to you I can measure this data tomorrow.
Not for me, I could measure it myself… but maybe for public 
I’d cache it myself in a 5-10-15 (any of them, don’t know yet) delay, no matter how often the API updates itself
But thanks @small crypt 
Of course, tomorrow I will make measurements for 3 different APIs (I'm also curious about the results
) and then I'll share them here

You're welcome 
how current the information from the API is will vary depending on the information, but in vast majority of cases it's real time or very close to it, as long as you're setting a user-agent specific to your application (#programming message)
Opera?
Cool! 😄
well it does use microsoft edge to run it
still beautiful.
What’s the ui look like
Also wondering if it’s electron/tauri based or something else as it’s nice to see different projects people make
it is so useful for me
APIs are fun, but can sometimes be a nightmare 🖊️
APIs are often a nightmare, when the documentation is bad 
Oh yes, that's exactly it, those documents are going to drive me crazy. Some of them are very good, but some are so bad that I even find errors and mistakes in the data provided by the API, this is terrible, I guess our developer friends love to mess with them 
Just do your own APIs 
I need to run 4 different APIs in a way that can be used on a single system. And yes, later on, I will provide a similar API with the data I receive from these 4 APIs and localize in my own database, and it will definitely be better than these 😄
These things look like fun to tinker with, but there's definitely a problem with the speed data 
Don‘t see a problem 
The progress also looks fine 
what is this wow
oh yeah I did a perfect math there 
yes it has more than one error 😄
In fact, this is something I have had the opportunity to try for the first time. With telemetry, you can obtain dozens of data in ETS2, it's so crazy that you can even see the torque produced by the engine
Am I mistaken or is there no Job-ID defined?
Or do you have 1 table per job?
Among this data, I also saw a location data that looked very comprehensive. Frankly, I wonder if it is possible to create a history record viewer on the web in 3D 🤔
What is actually happening here is taking measurements at 5-second intervals for the same cargo load. In other words, there are no different loads, it is taking data for the same load. I need to assign an automatic ID identifier for the Job-ID in the system, I did not see an ID assigned by default among the data
This was a test attempt. I was testing whether I could transfer data from the client to the website via the API correctly and logically, and yes, this test phase was successful 😇

I'm not sure if I can open the 3D map of the game on the web. Even if I could, it seems like it would cause serious lag. At least I'm aiming to create a 3D viewer with some alternatives I have. At worst, it would resemble games from the 19th century :d
Try a 2D first
In fact, at the end of the day, it feels like something I will have to do with 2D. I can generate a 3D road with a simple creator system from a 2D path, of course it will be a flat road network like paper, and then I can add a simple truck model on top of it. The reason I am thinking of going a little more into 3D here is that there are already so many examples of 2D
Wow how do u get telemetry
I used this https://github.com/Funbit/ets2-telemetry-server for Telemtry, it is very simple to use. The person who made this really worked hard, there is a display in it as well as the Rest API, which allows you to use a vehicle display from the phone within the same network
ETS2/ATS Telemetry Web Server + Mobile Dashboard. Contribute to Funbit/ets2-telemetry-server development by creating an account on GitHub.
I think one of my personal goals at this point will be to process the telemetry data directly from the game without a 3rd party library. Because at the end of the day I can turn this into a real trucker hub system (I mean there are similar ones, but there will be differences in them) 
It looks pretty hard to do good job on it
It's actually quite simple. After downloading it as a ZIP file, you will find an .exe in the server file. After running it, the entire installation is done and the system works 
python!!!
Erreur lors de la récupération des données : Error: API error: 403 Forbidden - <!DOCTYPE html>
<!--[if lt IE 7]> <html class="no-js ie6 oldie" lang="en-US"> <![endif]-->
<!--[if IE 7]> <html class="no-js ie7 oldie" lang="en-US"> <![endif]-->
<!--[if IE 8]> <html class="no-js ie8 oldie" lang="en-US"> <![endif]-->
<!--[if gt IE 8]><!--> <html class="no-js" lang="en-US"> <!--<![endif]-->
<head>
<title>Attention Required! | Cloudflare</title>
<meta charset="UTF-8" />
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<meta http-equiv="X-UA-Compatible" content="IE=Edge" />
<meta name="robots" content="noindex, nofollow" />
<meta name="viewport" content="width=device-width,initial-scale=1" />
<link rel="stylesheet" id="cf_styles-css" href="/cdn-cgi/styles/cf.errors.css" />
<!--[if lt IE 9]><link rel="stylesheet" id='cf_styles-ie-css' href="/cdn-cgi/styles/cf.errors.ie.css" /><![endif]-->
<style>body{margin:0;padding:0}</style>
im' rate limit ? 
How many requests did you make in which amount of time? 
no idea but I realized that my code was wrong 
I would like to partner with someone 💰
Okey
Ok..... I don't. I wonder what that has to do with development though.
They seem to be a Full Stack AI Engineer. Maybe they want a partner for AI coding 
I'd like to cooperate with someone and make many income.
Thanks, I already have plenty of income.
So.... do I.







