#programming
1 messages · Page 3 of 1
Aren't your eyes hurting after a while? 🙈
Have I ever said in any of my sentences that I am going to hate you? 😛
I meant it this way 
I never really tried it...
I am coding soon anyway, just setting up my new dedicated 
you wouldn't be able to tell it's different from others when you get used to it 
it caught my eye at first too. but now I'm too used to it to notice it and say "oh it's a minecraft font" 
Well, as of right now I am using JetBrains Mono Font 😄 before that I used the Consolas Font 😄
they did? 
monaspace
Well, I call myself a font collector. any font I do like I try to get 😂
Does it have something to do with your return statement at the top of the image 
Typescript compiler L though
mhm
it breaks because of it
Hi Is there a bot who connects my vtc with discord i mean to get notifications if someone applied to my vtc on my discord server or role change or about hired or fired someone
Hello, is there any way to see which DLCs (from ETS2) a user has through the Steam API?
https://partner.steamgames.com/doc/api/ISteamApps Potentially check this out? looks like this needs dedicated accounts and stuff, but worth perusing nonetheless
hey guys,I want to extract player online status and location,is there an official API?
I don’t suppose anyone would know why a php query to insert data into an SQL table would cause a 500 error or a blank page upon loading, would they?
Hey guys,
Does any of you know how to prevent Google Translate to translate a specific section of a string?
So as an example,
Recover :code would be Recuperar :código in spanish.
But only the recover should be translated no the :code
500 would be Internal Server, meaning your logic for inserting is likely being handled incorrectly
Yikes.
It’s as generic as errors go so have fun
see if you can throw some logging in the PHP file
Yeahh..
Also a bit more nuanced but make sure errors that could be originating from the database aren’t being whacked into 500 errors before they’re sent back to you
Logging would show that
That’s very true.
I’ll have a peek in the error logs file and see what it spits at me
Recover <span class="notranslate">:code</span> would be Recuperar :código in Spanish.
That's wrong tho. It should stay as :code
guess they interpreted it wrongly 
I manage to remove the dynamic value and use the dynamic value index number and than covert it back and it seems to work
some google answers also say <span translate="no">text</span>
Yeah but it doesn't work
It doesn't work here either
https://translate.google.ca/?sl=en&tl=es&op=translate
Google's service, offered free of charge, instantly translates words, phrases, and web pages between English and over 100 other languages.
Since I'm sending request to Google API to translate english content to spanish but it translate even dynamic value that are updating by the code

Wrote this:
{
preg_match_all('/:([a-zA-Z0-9_-]*)/', $content, $matches);
foreach ($matches[0] as $key => $match) {
if(empty($match)) {
continue;
}
$this->array[$key] = $match;
$content = str_replace($match, '<:' . $key . '>', $content);
}
return $content;
}
public function decodeValueForSaving(string $content): string
{
foreach ($this->array as $key => $value) {
$content = str_replace('<:' . $key . '>', $value, $content);
}
return $content;
}```
And did the trick
ah fair
I learned rudimentary PHP for a web dev class, but abandoned it about as quick as I abandoned web dev 
see reactjs looks nice to learn but im not sure
it indeed is
React is certainly something
I just don't have the time to dedicate to it
Same with Rust
LMAO love it
the non ac version 👀
The safest way is either playing legit or using kdmapper to safely execute an internal system driver to then open your application
this
When I tried react, i grasped like some concepts but then i just got confused with client and server components
100% it’s definitely involved
Plus I’ve had to pick up Python and all the Huggingface stuff for research so that ended up dominating my time anyway
Why can't I control the perspective while I'm inside the truck with the mouse?
how is that related to development?
Because you use a mouse on a computer and you have to develop a operating system so you cam actually use the mouse and if you want to use a mouse on a game you have to first develop that game in order to use your mouse

Can I use my mouse without a mouse? 
Yes
Hello
Lenovo has got u covered 

My very first Laptop had it
Used it for a few mins, swotched back to a normal 🐭 again 
Got a weird request, anybody got an AEB chime?
Who uses livewire filament?
Hey, is there an api available for all available cargo to this date in TMP/Single player for both games?
don't think so
Probably not an API, but you can go through either the Wiki or the cargo definition files in the source folder of the game
Ahh! Allgood!

advertising is not allowed outside of the advertisement channels. Please refrain from doing so.
heya does anyone know which gamengine to use when making prefabs for ets2
I'd say that belongs in #ets2-modding

Still gotta learn it 
❤️
you've got a lot of friendly (i hope) people here to help 🙂
Anyway, even the best developer here still learning so you're not the first or the last one. Every time, there is a thing to learn
For sure! Just haven’t had time to learn php since my web dev class haha
on my birthday 
I agree! 🙂
happy (early) birthday!
thanks 
Are you friendly? 
I guess the "i hope" anwers your question 
hey you guys on
i wanna ask the developer some stuff
its about loading getting loaded and un loaded
Hey there, this isn't the spot to talk with the SCS developers, it's just for members of our community who are avid developers for their own projects
whould be nice if they had live loads where you can see them loading you up
they should make the ports also little more real like doing live loads or they should show the craine loading the truck
Still has not anything to do with development.
Does anyone know how long attendance users are cached for when querying an event via the API?
5 Minutes
Thankyou! I thought it was xD
hi is anybody from czech republic
how is that development related then?
Yes
to bad the cb dont work for this game when your stuck
Again not developer related
is there a public api endpoint for changing user profile pictures
no
Why should you have the ability to change another user‘s profile picture? 
he might be on about checking when its been changed but im not sure
ive got a question though, what would be the best way of displaying data from the TMP API. For example, displaying all drivers on a teams page using js, html, css
cache & revalidate every day or so
div.flex 🔛 🔝
idk what else to include 
saying this as a nextjs + tailwindcss developer as I never used anything else 
next 🤢
why not
Why?
that's our drivershub (api) until I discovered nestjs and redis caching 
Caching 
Nuxt is better? 
we all know whats best 
i will take a look
not php 
Bingo!
Unpopular opinion: EJS is just PHP with extra steps 😏
tbf ejs is quite similar to blade.
i'm having good time with vue3 + laravel as api
what would you guys prefer PHP or EJS or React?
react
it's the only thing I really know tbh. did a discord bot dashboard with ejs back in the day but it's 
didn't enjoy it 
react or vue3 for the frontend, definitely
vue3+quasar is a piece of cake, while for React i not sure what UI framework is better because there are so many
Time to see whose brains I can rack..
I’m trying to create an installer .exe for my logger that we’ve got, and want to take a Navio/TrackSim approach.
Anyone have any ideas on what tools or something I could possibly use?
I will be aiming to try and make it place the files into the correct place, for reference.
Navio/Tracksim don't put the plugin into the game plugins directory
They store the dll in their own directory and then just add it to ETS2/ATS plugins via registry
Using visual studio and pulling the files from an external id imagine
so got a fast thing to ask im gonna put some code here as the old tracker we have had a bot we used to link would anyone be able to make this bot back ?
this is the code i would need to make the bot to do the linking
var links = [];
var scanned_links = [];
function linkScanner() {
// Checks if links have existed for more than 20 seconds
for (let i = 0; i < links.length; i++) {
const link = links[i];
if (scanned_links.includes(link)) {
links.splice(links.indexOf(link), 1);
scanned_links.splice(scanned_links.indexOf(link), 1);
console.log([!] Link ${link} has been deleted);
continue
} else {
scanned_links.push(link);
}
}
}
setInterval(linkScanner, 20000);
app.post(${prefix}/installer/generatelink, (req, res) => {
var link = crypto.randomBytes(3).toString("hex");
links.push(link);
res.send(link);
});
app.get(${prefix}/installer/checklink/, (req, res) => {
var clink = req.query.link;
for(i = 0; i < links.length; i++) {
if (!links[i].includes(":")) {
continue;
}
var link = links[i].split(":")[0];
if (link == clink) {
var data = ${links[i].split(":")[1]}:${links[i].split(":")[2]}
res.send(data);
return;
}
}
res.send("Error");
});
app.post(${prefix}/installer/setlink/, (req, res) => {
var data = {
id: req.body.linkId,
did: req.body.discordId,
name: req.body.discordName
}
for (let i = 0; i < links.length; i++) {
const link = links[i];
if (link.includes(data.id)) {
links[i] = ${data.id}:${data.did}:${data.name};
res.send("Success");
return;
}
};
res.send("Error");
});
app.get(${prefix}/installer/getall/, (req, res) => {
var links_to_send = [];
for (let i = 0; i < links.length; i++) {
const link = links[i];
if (link.includes(":")) {
continue;
}
links_to_send.push(link);
}
res.send(links_to_send);
});
// Job Tracker API
var total_users_online = 0;
var ids_online = [];
yes i know brad
Lmao
no codeblock 
In the future I absolutely beg you to use a Hastebin 
I also don't exactly think this is a self-contained block of code, it requires a fair bit of additional context beyond "can someone make this"
If you want only the installer, you may want to take a look at Inno Setup. It's easy to use/configure
Hastebin or pastebin? 
Alright, cheers.
Hastebin is elite 


Though, if you don't have this particular hastebin in your arsenal, highly suggest using it - https://hastebin.skyra.pw/
Very clean very nice
well so with that the tracker is working the dev that made it made it so we have to run a command in the discord but we lost the bot that was running the command thats why i was asking if anyone could make the bot back so it links
Could you not just remake a bot, host the same code, and just restart it? I'm confused where the dependency lies
If it's a matter of duplicating code that you no longer have, that's a bit more of an involved task
yes that
if i had the code it would be up we lost it as the backup was wiped unfortunately
Ah, in that case maybe your best bet is to independently search for a new dev as opposed to trying to get an entire file or two written up here
well was just asking as we are in in proces of trying to get new devs but just wanted to try and get that back up and running asap thats all
Oh for sure it's just likely a bit more involved than a bit of boilerplate hence my suggestion
fair
Was abt to say
I have a handy person in mind but he might cost a tad penny
fair i think i have found someone thx anyways peeps
Make sure you get to know them before trusting them 👊
yep will do
The good ol Junior Dev role
I'll take 3 am "hey can you throw this on the VPS" messages over unrestricted access any day 
😭

was thinking about making a PyPi truckersmp lib and that question came up to me
I assumed truckersmp had some user control public APIs but hidden from docs
Nope. You can only read data but not change them

Would there be any advantages to user specific APIs? IMO I don't think it would be useful for TruckersMP
wouldn't vote for user management but managing a VTC/its events would be useful 
e.g. creating an invite link to join the VTC, mark VTC attendance on events 
But then more people would rely on the API rather than actually going to the TMP website
wouldn't that save some CDN traffic 🙈
and it'd just be more convenient imo 
making automated things more automated, less human fuss
Don't think that would be an issue lol
why do you want people specifically to use the website then?
It depends what people would use it for
Roblox does that for example
Plus, I could see some handy features if user APIs were to exist
btw i have a question
How come GIFs wont work for profile pictures
like it doesnt animate once uploaded
Why static only tho

Able to expand on that?
It says that it supports GIFs. Although, once you upload and save your settings, it doesn't animate through your profile or anywhere else that shows the profile picture
OH
you mean the API
sorry
For example, someone could make it so it'd change someone's profile once they join a VTC (if that API endpoint was to exist) using oauth
ofc the user would be given the choice to either authorize or not
and they can deauthorize anytime
Seems like a lot of work for one little feature. IMO it's not viable
well not for one little feature, could be other stuff as well
that one was an example, but yea
With Discord API, you can basically build your own client. And people are still using the default one. 
User specific apis are fine but it's more about vtcs
except that would be against the ToS 
using user tokens in API is not allowed iirc, classed as selfbotting
don't think they have any checks to find out selfbotters though
Maybe that EU law will change the situation somehow? Now that Facebook Messenger, Telegram, iMessage, and WhatsApp technically need to allow sending messages to each other.
Imagine replying to your mom's WhatsApp on Discord 
The ultimate integration 

not gonna lie, that would be awesome. Not that she has already discord anyway, because the whole Meta is..... belongs somewhere I can't mention in here 
hey can we make the rail yards or the loading part little more better like the ports i whould love to load my self to or watch the craine load me they need to make it little better
How is that development related
why they should be able to do it
but i whould like to see them come out with georgia
but i see they are maken there way east
whould be nice to drive on the east cost
I think you may have misunderstood just a tad - this is for community developers (who work on their own projects), not the actual developers of the game. We don't really have any control over that stuff 😅
can we talk to them on that stuff
right pepole that are in this chat try to make sugestions
so okay you guys are not the big shots so can we get them to talk
no - community developers are mostly neither SCS modellers nor TMP AOT
XD
are we allowed to ask for help about stuff that isnt related to truckersmp api
Yea ofcourse
So basically, I was trying to make a discord RPC connect to electron, but this error appeared
(wont let me upload the js file here for some reason)
Basically, that error shows cause it's trying to auth using discord-rpc's (lib) client.login
but im not sure why
Pastebin.com is the number one paste tool since 2002. Pastebin is a website where you can store text online for a set period of time.
i looked through electrons docs and saw their IPC example, but i was confused from it
shouldn't you login before attempting to set the presence?
what
it detects the RPC
mb
not rpc
it detects the Discord app
thats how it sets the activity
ive tested it without electron and it worked fine
plus, the parameter only has options for scopes
you could try
const DiscordRPC = require('discord-rpc');
const RPC = new DiscordRPC.Client({ transport: 'ipc' });
const clientId = "YourClientID";
RPC.on("ready", () => {
RPC.setActivity({
details: `Your Details`,
largeImageKey: `ImageThing`,
largeImageText: `Text`,
instance: false,
});
});
RPC.login({ clientId }).catch((err) => console.error(err));
Should work
thats the different discord-rpc
im using the forked one cause the one made by d.js isnt maintained anymore
I know that way works atleast, so might be worth giving it a try still
wait
nvm yea that error happens
wait what
it works
hold up
so apparently if i turn it off and back on, it works?
lemme check my code
dont mind the client thing not being defined
im honestly so confused
when i turn it on for the first time it works, but if i turn it off and then turn it back on, it starts to work
nvm its not working now
but its not throwing any errors tho
Okay so it seems like its because rpc.destroy()
but
it doesnt show it again when i turn it on if i include rpc.destroy
alr so
i added a temp fix
basically, i added setTimeout between the login and setActivity
which for some reason gets rid of the error
Can't say for sure because I've never played with it, but sounds like it could be an async related issue? If a fix for what seems like a literal race condition works, maybe so does adding await
You could have literally just been beating the instantiation of the client in your old code hence the reference errors - I'd be inclined to think await would fix that
yea possibly
Me: "man, I'm sure that people who develop a genetic programming library are very careful about how they select their random seeds and sample parameters"
DEAP devs:

that's what I told you to do before
You didn't tell me to put in setTimeout
changing the order is the same thing as putting a setTimeout
and I assumed that you already knew that both of those possibly return a Promise which should be awaited
Is there a way to check how many TMP accounts this computer has logged into?
probably not
The loop function isn't suitable for my needs. I'm looking for a function to assist in updating the data of a newly added person. Does anyone have any ideas or details about such a function?
( Am a noob dev)
While not explicitly required by rules or anything thanks to the nice foldout embed, I would highly suggest using a site like Hastebin to upload your code and then sending us the link here
It makes it a LOT easier for us to look through & help with
okey
Though, to answer your question, have you considered converting it from a loop event to a command that you can run with your bot?
I don't use Python for bots, but I'd imagine the logic would be the same
https://hastebin.com/share/iketomalaq.python
like this right
Hastebin is a free web-based pastebin service for storing and sharing text and code snippets with anyone. Get started now.
Perfect!
what exactly are you trying to do?
I think he try to fetch the member from his VTC and post it on discord with a bot
I would like the bot to fetch members data and send it to the discord channel, without command (automatically). This is basically the purpose of this code. However, as a loop is involved, the information once published, gets repeated.
I want the bot not to repeat the data once published, but to post the details of only newly joined members in VTC.
lol if it was JS id be able to help you, havent got a clue with python
you'd have to store your members in a database, then check for members which aren't in your database (aka new members) and log them
with js youd fetch the data and editReply i think
The present technique that I use is to delete the old data every twelve hours and get the new one published.
Ok...let me try this.
make your own websocket
why are we talking about websockets now
its an idea for their code
websockets are helpful for getting data without delays
wait nvm
i realized they meant tmp api
Hi developers, for those who want the bot of VTC to be in multi-languages made like me, I use the i18n module for the automatic translation of one of my European multi-function project 😄


single file localisation 
I do that via DB 
unfortunately for this kind of thing I can’t use schemas or anything with mongodb, it’s the easiest thing I can find ( I think )
At the moment I have that French and English to be translated, soon will be the languages: German, Bulgarian, Croatian, Danish, Spanish, Estonian, Finnish, Greek, Hungarian, Irish, Italian, Latvian, Lithuanian, Maltese, Dutch, Polish, Portuguese, Romanian, Slovak, Slovenian, Swedish and Czech
yes I like to have a headache, I will need a lot of dafalgan 🤣
we never gonna be friends 
I was a sql hater at first but after i discovered relations its 
ShawnCZek gave me the taste of SQL - and I'm still glad he did 
SQL's pretty great
Personally I'm more partial to PostgreSQL but to each their own
I've let inspired me from the TMP Voice thingy and I made it working 
Any livewire people out there, remember to update https://github.com/livewire/livewire/releases/tag/v3.4.9
Sorry, may this channel is not fit for my request or may I will be considered as the most nub of nubs but do anyone know how to let Gitlab automatically make an update to the "online" project (production environment)?
Yeah sure... wait I think I didn't read correctly what I have seen on my Gitlab project
(Auto DevOps)
Deployments?
Yeah, I was looking at Laravel Envoy
depends on how you're currently hosting your site
I use https://ploi.io/ for most of my Laravel projects, works perfect.
Use Ploi.io for easy site deployments. We take all the difficult work out of your hands, so you can focus on doing what you love: developing your application.
It's comparable to Laravel Forge but cheaper (and imo easier to use with more features)
Good to know, will take a look
Thank you Diego!
np!
Been using it since like 2019, can recommend it
just keep in mind tho that you still need your own server (e.g. from Hetzner, etc). This is just a server management tool
Yeah Ikr, I have bought a server. But still searching about anything that would allow me to gain time when I deploy something from my local environnement to my production environnement passing by Gitlab
aha yeah
they have a free plan for 1 server & 1 site, to try their service
it's definitely a lot better than manually SSH'ing into your server every time you wanna deploy a change xd
Yeah. I will try first with Laravel Envoy, but I have to familiarize myself with it, which is not simple as a "beginner"
Yeah I got you, thats why I would do it. Because previously I was doing everything manually... what a hell
xD
i've never used Envoy tbh
Well, I'm testing it but it's a mess because I would love to make it in Envoyer but the thing is that the most tutorial I'm watching are not really recent or those tutorial are in indian... it's true that I can speak some languages but not Indian unfortunately 
I was looking at the tutorial in Laravel documentations itself but I was like... lost
just post your question(s) here and someone might be able to help
it doesn't look too advanced from what i've seen in the docs
Envoyer is quite good
I'm using a host (not really well known) with CPanel, that's why I have fun with 
ahh
yea shared hosts with Laravel isn't really the best choice
also Ploi won't work with that
for a few euros you can get yourself a more than decent Hetzner VPS
Cloud servers starting at € 3.79. A little money gets you lots of cloud. Our flexible billing model and clever interface make it easy to use our cloud servers for all your IT needs.
Well, for the moment it's close to working fine. I have just a problem with the storage folder doesn't want to be deployed, will take a look
What kind of host are you using? 👀 VPS or something else like the nub I am
?
I don't have any VPSs ATM. Used to use a friends one since he gave my a VPS on his dedi server for free lol
If you want cheap cheap, use contabo
Thank you y'all
Now I'm facing an issue like:
The storage folder is going outside the releases files made by Envoyer
contabo has pretty shit quality and service. You're better off spending a few euros more for Hetzner (can even get their Arm64 servers if your needed packages support it).
especially for webservers i cannot recommend contabo
I cannot recommend Contabo at all to be honest 😅
I'm on Hetzner for a dedicated and webserver is on mc-host24.de and both are very good!
If you've got the money, could always go with AWS or Azure 
Oof, I just got my bill back for nearly $400 CAD from AWS 😅
That's what I get for running GPU servers
I'd call myself rich if I start buying stuff from aws 
Is that a years worth
Month
jesus
IG they do use some old xeons but you do not really need a beast for development. if your going prod, deffo stay off contabo lol
mweh if you compare it to Hetzner pricing, i really don't see a reason to choose Contabo, even for development
unless you really can't spend ~1-2 euros more
contabo provides more resources for 5 dollars, imo
but the ping is eh
hetzner's ping is also around the same tho
roughly the same. Hetzner is 2 euros more, but you have faster network speeds, 2GB more RAM, and unlimited snapshots
purely the faster network speeds is already worth the 2 euros more imo
There are many cheap servers with unlimited traffic...
But well... reaching 20 TB traffic with a normal web-app is rough 
yuh i wasnt talking about the traffic caps
Hello, is there a way to install truckersmp on archlinux? Im not shure if this is the channal where i can find help
i played it back then on windows but now i switched
You could try wine, but you'll possibly get tons of bugs
Steam games aren't meant to be played on linux after all
emphasis on "might" xd
Wine doesn’t work iirc
the official launcher can work with proton/wine, but there's no official support for it
I use the official launcher on manjaro myself
Hello, I have a couple of questions, I don’t know if I’m writing here, sorry if it’s wrong, but I’d like to ask. How to display information about load and speed, etc. I want to try it for my client and can’t find information about it
You can ask your questions here.
Maybe this can help you: https://github.com/Funbit/ets2-telemetry-server
I'm certain that it's not related to development, and thus, you should have kept it to #support where you posted it in the first place.
and here is someone who has done this, just ask what is the best way to make your own telemetry and how it works
future orders of a project for my bot of my VTC 😄
Real

The differences when you will see what's new in 2024.1 will be like opening the bible 
so i have the kenworth 2014 right i wish i can just up grade it right in ti the 76 but i cant i half to buy onther truck
Hey! This isn't quite development related, this may be better suited for a different, game related channel
where
#ats-modding or #ats ?! 
hope the other states are coming out soon
never trust docs
tl;dr; I was migrating from a Ubuntu 20.04 server to a Ubuntu 22.04 one. The former had MariaDB installed via a script (10.11.2) as per docs of a software, but those docs also mentioned that the setup script isn't needed for Ubuntu 22.04. So I obviously skipped the setup script part and installed MariaDB 10.6.16. I didn't realise that at first and it obviously didn't want to start.
Wasted 3 hours until I realised that Ubuntu archives only offer 10.6 💀
Hey, I wanted to change my engine sounds via a plugin
is this also recognized in Truckers MP?
This isn’t development related but yes it does work on tmp
I'm not even reading further after the title 
:D
👉👈
Android App Links are so cool
So simple, and yet I've literally never had so much fun 

and how is that related to development?
apk's?
gotta love crunch
tried to make a wordlist and it was trying to make a 98PB file
XD somehow i dont think that will fit on my device
i tried to 7z it into files that were more manageable but it wanted 82TB
anyone got any ideas how i could get it smaller?
sigh gotta love when github just stops working for no reason 😦
i see for grain you will see the loading prosses
Accidental zip bomb, classic 
Question: Why is there an China Server?
what?
it's an event server

True 😂
How come we don’t get access to the emergency vehicles besides the police in the event server as it’s free for all anyways( someoen of staff with the right answer just ping me as I don’t really be in this channel so I can see the reply
how is that related to development 
oh
Still not related here
Then tell us where it is
Asking it in #general were fine
Well I mean smoky said he didn’t knew and was told here probz he better as it be seen by someone who works on the event atleast
Event management will most likely not see it here, since this channel is for more local and custom development projects, not development of TruckersMP
So where would u needda ask it then
Hey guys, Apologies if its been asked before, Is there a Gumball type of event?
Huh? That is not development related. Please read the channel description
no, we just ask everywhere we can
lol
github

nhb

Intresting website.
There are many Web Devs in here 
Brother ewwww
english devs
I am developer too
i am developer too
I am also developer too
What a surprise! Me too! 
im not.
Bug developers. 
You sure? 
no :(

lel


Hater

excuses
I've said it before and I'll say it again, @sonic jasper doesn't have an outage fix dedicated to him 
Mr. Marketing guy over here smh
the backstory here is that tyler single handedly killed a project of ours for thirty two (32) hours
haters will say i'm lying

🤣
Unleash dev broke it, not me

Hi
Hey
Normal devs
Your here too
ye
not to shavy
for any pterodactyl user reading this, please stop using pterodactyl for discord bots 😭
nothing wrong with ptero
plenty things wrong
u're limited to some stuff when you're using pterodatcyl
ive had 0 issues with it
im not talking about bugs
For example if u want to connect lavalink to pterodactyl, its physically not possible
u can make it possible by editing pterodactyl urself but it'd be a hassle and no point
havent seen a lavalink project in time
its mainly used for discord bots music features
if u go join the lavalink main server, you'll see some people in there using pterodactyl lmao
i see, whats peoples thoughts on websites that show discord info anyway?
Well, nice thing, but I'd be concerned about leaking 😄
if you can turn off stuff, then yes, its a nice idea
ehh, i like showing my status and activity
ive updated the background so it looks better but im happy with it
fetching data with lanyard api (if anyone was wondering)
need to sort the thing rq
huh
you can easily run lavalink on ptero
how
add the egg and done
make a server with it
boom you have lavalink running on ptero
do they even have the egg for it, thats the thing
yes they do lmao
i dont see the egg for it
https://github.com/parkervcp is a magic guy
but the repo got moved to the pelican org
hold on, which egg r u talking about
the java egg or
theres an egg exclusively for lavalink
Lool
It is 🙂
feel like this could be improved. Center all left and use different font weights and sizes
maybe take inspo from discords?
Ehhh I could do
also nice role is tayboost 
One of my good friends Tay is
👀👀
love the stuff he makes
Soundest lad you’d ever meet I’m telling you
ahahhaa
You play Assetto or just watch his content
play assetto
Ahaha have to jump on with you some time 😂
hell yea 😛
I have mine hooked into my Github but that's about it
Ah I see
https://i.imgur.com/QZmWzp9.png happy with that
Eventually I'd build in a scroll feature for the music, in case its too long, so everything stays in one line iykwim
Where will that panel be displayed?
If I have to guess, on their website
Okay 👀 I am just wondering what use cases there are for such tools
Realistically it's hard to justify an exact use case, but you could always do some TMP magic for example and dynamically process some game status
The "use case" though is to brag about your favorite music as I do 
This morning I did the box sizing, so if it’s over 40 characters it’ll make it larger and so on if smaller. Thay is next on my list to change the sizing of the text per length
I did have an idea of building a music bar above the top
Show off I'd say. Nice gimmick kinda.
Nice nice! Do you plan to make that kind of opensource or is it your little treasure? 
I’ll probably make it all open source tbf

the backend is just https://github.com/Phineas/lanyard
you should really fix those requests lmao, you are spamming the shit out of their public API
alsoooo you prolly don't want to hardcode your Lanyard API token plain in your JS code 

Yeah knew I forgot to change something back when I was debugging ffs
Have to wait till tomorrow afternoon now
this 😄
ill remove that anyway, added it if i was gonna use the KV. Havent used it yet so i probs wont
Anyone have history writing basic game integrations for ets2 and ats? I know a while back someone sent something about a custom hook to their drivers hub that they built and I want to work on something along the same realm
Just not sure what resources to look at first
@fast fossil
He’s a smart arse
wouldn't expect him to give out any of his works 
No I know but he’d tell him the where about of it
I don't need anyone to give anything out
I'm more than happy writing my own code
I just didn't know where to start looking cause it's a bit of a mess
What am I needed for
i looked at scs sdk docs at some point and realised my poo poo brain is too small for c++
You know the thing you did for nowt, where it sends info to the game
I don't think scs has any official sdk docs other then examples
He’s looking to try and do something similar but doesn’t know which docs to look through and stuff
Onto the route adviser?
Yes
Yeah that sounds familiar
yh i was on about that
Again just a toy example, just trying to figure out my logical workflow
But shit really they should give more to the docs so more people get creative
Truth be told I'm likely accidentally reinventing the wheel - we're building an in-house dispatcher and I'd like to try my best to emulate the dispatcher in SP without using trucky or speditor
Probably too massive of an undertaking, but forgive my ambition 
Worth a shot
I figured if apps like Trucky, TB etc can do it then where there's a will there's a way
Makes things fair for our SP drivers
Yhhh
The messages on the route adviser is fully private won't be giving info about it
But its not easy to do
To get a basic job logger add the scs sdk and follow the examples to get the base done
Then add CURL for networking etc add event handling for stuff like job end and grab it's values
I'm sure sdk will have examples for it all
Removed it
Fixed that
Thanks ❤️
1 per second is still a lot xd why not just 1 per page load?
if you want the spotify player bar to update, just simulate the time?
E.g. if the API response says that your currently playing song is at 0:16, add a second per second, until the song has ended (ending time is in the response). And then on ending time, do another request to get the new info
🧠 🤯
Could also be good to just set a static refresh time - for things like music, 3-5 mins is fine on the API (20 requests per hour) and can roughly approximate music
static refresh time will a lot of the time cause the play bar to be stuck at the end tho, i assume that the high refresh rate currently is to prevent the bar looking wonky
Currently Its set so it doesn’t jump seconds and goes along smoothly but I need to find some time and I might figure something
I’m making it open src anyway as the apis public so why not
You can mess about with it iyw 👀
Will TMP be updated today?
This is not developer channel related. Please wait until an official announcement is created about the 1.50 update
Anyone know if update 1.50 changes anything in sdk-telemetry?
isee for grain trucking you will load your own load cant wait
Wrong place. Not development related but love the enthusiasm!
its true look it up
huh
grain trucking you will see how they load you up
😂
Yeah but did u read what Greg said
and
So use it, this is for devs we don’t want it cluttered up with useless ats talk bro
does not say that but oky
iam developers so not shure where your getting your news but we are not talking to you
your blind
May one find his brain.
iam in devleopers messge so your int he wrong chat
I give up 😭
good because you know your worng
Yes bro! I am totally wrong
keep it up you will be reported
this chat is developers only so what you talking about

in what way does this imply that this channel is for developers to talk about anything but development related
u talking abt useless stuff that isnt even related to development
Clogging up mans channel blud
but if iam talking about a develpment question how is that not related to a delvelopment question even if i ask somthing you did not like just saying
This isn’t development
some people may not understand on what you can say in a chat rcs could had told me that but iam still new to all the rules so i have no idea
That is the channel description
like how i said i have no idea what the rules are who who makes the rules iam just on here talking i know they have other chats but it says iam in developer chat so i have no idea
Pure waffle
who
i would choose not to
No
isnt it common for people to have 2 ears
yes well you dont ear your self to goodf
I can’t read @split snow
go see a doctor thats your problem
icl you should develop your sense making skills
hello
nice virus
you paste it into google, duh
im pretty sure you have to tell that to your cat
flashbang out
does anyone have experience with connecting the trucky database to your own discord bot?
Trucky Databse to Discord Bot? What do you mean?
I need a bot that is able to do this:
-tracks Trucky Kilometer..
-if it's race miles it's 0,5 points per Kilometer
-if it'S real miles it's 1 point per Kilometer
-we can register events
-gives drivers the chance to confirm attendance
-event points=km made *2 which we can type in manually or automated when registering the event:)
-has a scoreboard where we can see the points
2 Dev's of us have quit on this and now I decided to do it myself but I have no idea how:(
That' possible, yes. Using their API and the Webhooks. 
Do you have any experience/knowledge of this?
I was working on something similar too not too long ago, until I joined another VTC
Yes, I do 'create' bots, yeah.
may I dm u?
What language will you be using? So I know if I can help you or not
german, austrian, polish, english

Haha ye Just noticed hahaha no I actually have no idea tbh ahha
Eh, I was talking about Programming Languages like PHP, Java, JavaScript, C#, C++ and a few hundreds of thousands of alternatives. But OK.
Just fetch it in js from the Trucky api and then display it in a embed
I got that' haha but I basically have no experience only a little bit html
But Iam a very fast learning Person and that's why I would live Somebody showing/Helping me
Well, then learn a language first before you make such a project, as you need to save these stats somewhere (config (less r/w speed but human editable) or database like sql (high r/w speed and only via interface like PMA editable) and and and 😄
When comes 1.50 for truckersmp
in 2001
and now serious
when you read this #guests message
👀
One message removed from a suspended account.
One message removed from a suspended account.
One message removed from a suspended account.
One message removed from a suspended account.
wrong channel, use https://truckersmp.com/support and dont ping staff k thx bye pls
Sometimes things go wrong. Why not raise a support ticket and TruckersMP support will help you get back on the roads?

One message removed from a suspended account.
One message removed from a suspended account.
One message removed from a suspended account.
thats good, then log in with steam and make a support ticket on tmp's website
One message removed from a suspended account.
One message removed from a suspended account.
One message removed from a suspended account.
If anyone is using our TypeScript types for our API, make sure to migrate to the new package @truckersmp/api-types (yes, it has taken a little while to get our official handle).
https://github.com/TruckersMP/API-Types/releases/tag/v1.1.0
i wish i actually read about pgsql before making assumptions 
just discovered that you can actually store objects in sql
Hey devs, question, is it normal for a VTC Website to track IP's when viewing there website? or "fetching" the IP using ipify.org? Cheers!
depends on the use case I'd say 
if they need geolocation data, and it's mentioned in theirs privacy policy, ig it should be alr
Have recently been to a VTC website, and its in the JS that it tracks GEOIP, and more details regarding City etc.
oh
Time to go digging into that policy!
wouldn't say it's a common practice to do it on the client
Usage Data may include information such as Your Device's Internet Protocol address (e.g. IP address), browser type, browser version, the pages of our Service that You visit, the time and date of Your visit, the time spent on those pages, unique device identifiers and other diagnostic data.
So that means it allows them to track the IP etc?
Because I checked out ipify, and holy it tracks IP prettyyy close tbh. I was VPN to my work, and it's on the local exchange to work. so its pretty darn close..
nah geolocation has to be included separately
Nothing in the Privacy Policy about GeoLocation at all.
might be "Geographical location" (taken from TMP's privacy policy) but I'd contact them about the use case regardless 
Was just a wee bit concerned and like hello why is this in the JS, as I am learning JS so I like checking out code etc, and it tracks everything from IP/Geolocation/Browser/System etc.
But negative on the georgraphical either, I might need to do some contacting 🙂 cheers djoh ❤️

the one im thinking of, they dont have the brightest of develper leaving the webhook in pure js haha.
But I have cleared up on the use case of the api. It is apparently used for statistics and also used on the contact sheet to get the basic user info, also the dev did state iP’s are visible but to himself
got karaoke to work (its not perfect cause its only just editing the filter)
Is this using distube?
lavalink
it fetches songs from youtube tho yea
not only youtube, but soundcloud and vimeo
I thought that the karaoke would display lyrics. It would be interesting to create an activity for it: https://discord.com/developers/docs/activities/overview
i already have the lyrics sync command
which uses interactions to edit so it wouldnt ratelimit easily
Ah, how does that work then?
Looks Alr
Activity would be interesting. Showing the following lyrics, too, similarly to Spotify 😄
Some are delayed I did see
Like the full screen Spotify?
Yep
its possible, but im not really good at designing UIs and stuff
Not a bad idea tbf, with the album/song image too
plus i have never touched a game engine before
It is not about a game engine. The game activities are an external web app running inside Discord, basically
yea using iframe
well
idk if it supports iframe
but it does def take from web apps
It is done via iframes, according to the documentation
ping issue within the private server, not a huge problem tho
Ah I see
i thought there are different ways
I use the distube library, has a few filters and add ons you can do but tbf it runs a dream when there’s no networking issues
im not using js
all of that is purely made using python
and using java to run the lavalink server
wait lemme get the updated one
cause the old one used a horrible method where it rounds up milliseconds instead of using a gateway
Would help if I did embed the current song message but I didn’t finish it fully
Ahh
what if... I.....
!play Eminem - Godzilla
😳
rate limit go brr
what about rap god? 
tried it before, there wasnt any problem
interactions arent part of global ratelimits
the ratelimits that interactions have are the same as webhooks
idk if im allowed to show it here
cause the lyrics does contain swearing
if u wanna see it, lmk and ill dm it
Hey team ❤️ can anyone suggest any CloudFlare alternatives? I have multiple domains, coming up nearly 20 domains, from vtc to private to business for my work etc. Don't mind a price etc, I am having serious problems with Cloudflare currently.
I use cf with a few and it’s really reliable
GitHub pages and netlify I don’t see as good
The only other thing I was thinking of is a vps with nginx instances
Depends what you're using from cloudflare, their DDOS protection? Workers, pages or something else
There are plenty of alternatives, but it just depends on what you're using
Hey mate , i use ionos its good for domains
if we're about domain registrars then I've always been using namecheap
some of my friends also recommend porkbun
Porkbun and Namecheap for registrars, but I can't think of an alternative to CF for the amount of things it provides
Never had an issue on my end, sometimes things are down to subtle configuration errors or whatnot
^^
yeah, their developer community on discord are really helpful too in case you can’t resolve the issue yourself
CloudFlare? I am getting this error time and time again, Like this is the only thing thats on my tab.
So are you thinking I should remove the proxy from CloudFlare?
Because its currently proxied
try that and see if it does anything
Well that changed one of my domains, I just put the name servers back onto cloudflare for the domain thats having problems so will wait for propergation to resolve etc

Wow creative!
When is 1.50 coming to TruckersMP??
how is that related to this channel
i didnt know where to ask
You don’t, you read #truckersmp-updates when announced
Sorted!!! Got it working! Was a certificate error! 
ah nice
oml discord formatting is going to kill me
React is so weird 
Partially why I never learned it 
Svelte though 

Advertising isn't allowed here though
smells like scam tbh


hi
Hi
hi
damn that goes hard 😭
I swear this never gets old 
fr
do you consider me as a male if i identify as balls
Advertising is not allowed outside of the designated channels
Keep bonking those naughty advertisers 
Can I advertise this VTC: https://truckersmp.com/vtc/2 ? 
Sure 
Everyone join 
Rec ban feedback to Support Management

How do you even manage that many errors? 
deprecated api calls 💀
then dont use deprecated methods?
but errors are what a developer lives for 
I wouldn't neccessarily say that 🤣
Exactly
kinda like errors with an external tool like unleash
ooo good point, that does sound quite painful
old project from 2017 💀
Does anyone know how to get the name of the event server in: https://truckersmp.com/developers/api#tag/Welcome!
not possible
I've made a suggestion about it some time ago though - https://forum.truckersmp.com/index.php?/topic/114342-api-show-actual-event-server-name
Suggestion Name: API: show actual event server name Suggestion Description: Include actual event server name instead of "Event Server" Any example images: n/a Why it should be added: Better end-user experience. For example, our bot posts info messages about events we attend on a particular day, ...
okay good, great idea
wwwoooowww : Posted - December 21, 2023

mm wouldn't it be nice with green border if this place was 2px instead of 1px 😔
My eyes 
Why what happened
I'm now perpetually focusing on those borders

I always thought it was a straight line
i think we really need the old junction back, i was just in trafic for over 2 hours to get to Düsseldorf
How it looks now👀 ?
This is really development related
Not
read the topic of this channel
and if you checked the website or the forum, you would've noticed an announcement saying that the intersection was reverted by mistake
Just to clarify for you - this is for development enthusiasts who work on their own projects, not the developers of the game :) as djoh said, there's been an announcement about this too!
May I ask when there will be a server update about the 2.70 ProMods map and the rest that is updated?
Read the channel description.
The servers needs to be developed right?
Yes, indeed. But this isnt the channel for that clearly
Because Spoony is a nub 
Rather an unprofessional staff member 
You is a nub
At least I know that ProMods is ready for 1.50, what's your excuse? 
Hey howdy. does anyone know of an alternative to Sii Decrypt? or some more documentation about the process it applies?
The repository documentation is a bit confusing https://github.com/TheLazyTomcat/SII_Decrypt/blob/master/Documents/Binary SII - Format.txt
It gives you the source in the repo so you can have a look at its workings
why is this map messed up like this, because of this I'm losing miles
This is known issue and will be fixed soon.
Thanks for your feedback❤️
🇧🇦

nice cache%
hey if i get cost to cost map should i do that till they come out with the states
This is for development buddy! 🙂 the coast to coast map is cool tho! but I would ask in #guests
busines plan?
free
the attack was still ongoing when the traffic started going down, we just switched from under attack mode to blocking ASNs via WAF
omg
😦
Please remember to use channels for their intended use - if you would like to appeal decisions, you can use the appeal granted with your ban :)
Sowy
But how do I apeal my ban
Hey @waxen tiger! 
You can appeal your ban by following this article. If you have sent an appeal already, please wait patiently for the answer.
A response to your appeal can take up to 3 days.
It is not possible to speed up the appealing process.
If no evidence has been added to your ban, request it in the appeal.
Discussing punishments, reports, tickets, appeals, applications and complaints about staff is prohibited. (Rule §2.10 of #discord-rules).
Had some fun with https://github.com/knuckleswtf/scribe. My whole API documented in 2 minutes
Not a big api but still useful
oooh, looks nice
you can tell i don't like writing docs
😭
I found a similar thing this week, but it works completely without any docblocks/attributes: https://scramble.dedoc.co/
that package I sent doesn't require docblocks/attributes too but it's there if you want to modify it.
but yea that looks good too
I like this though
Oh my god I needed this right now
Like literally about to start writing api docs 
It's a life saver
Figured out how to group routes
but one annoying thing is that subgrouping does not work
I'm still writing OpenAPI specs by hand for Express though, might have to give the JSdoc version a try
Love SwaggerHub the most but god those take ages
imo SwaggerHub is a lil dated
tried similar package on my company project but the number of APIs was too big that the page didn't even load and crashed the browser 😄
Unit testing at its finest 
hello pls help me
Hello, the version of the Euro Truck Simulator game is 1.50.2.3s, but I am getting "incompatible version error" in Truckers MP, can you help me?
Hey @naive sparrow! 
The latest version of Euro Truck Simulator 2 is currently supported.
The latest version of American Truck Simulator is currently supported.
It is not required to downgrade. Select None as a beta in Steam to continue playing on TruckersMP.
You can find more information on how to downgrade your game here.
wow ! did you make that launcher yourself? 
the new new launcher
hello guys
@golden helm a
b
c?
d
e
f ortran
you forgot an r in there 
g
doubt
@golden helm å
Are you using a Minecraft (lookalike) Font? 











