#programming
1 messages Β· Page 1 of 1 (latest)
pov plays with no sound 

It look like programming with no screen switched on 
I'm big pro coding a buggy drivers hub π
Sooo, I figured out I want to build a real vehicle tracker.
I will realise it with Arduino, GPS and a GSM Module (Obviously), as well as making it more interesting with a 20x4 LCD Display.
The Display will show the current date/time, as well as the GPS/GSM Signal, the current speed and the driven distance since last reset.
Data will be stored on a MySQL DB, connection will be done over a PHP Json RestAPI. (Get Data & Push Data).
On the website part, I want to show on a map, where I was driving, like... a line where I was, since I push data every 5 seconds of my current location and the current speed of driving.
What do you think? 
Wouldn't it be easier to track the data using your phone? 
Well, I tried it doing so
Buuuut... I failed miserably...
and the code base for the arduino is nearly done
just waiting for the sensors to arrive (amazon, hurry up!!!)
So, the choice is made already 
indeed ^^
but what do you think of the idea overall?
so I also can track my working times and so on π
If it works, it works 
I've actually done this, although instead of using a rest API to push data I use a raw socket to keep a persistent connection.
I also added a can bus module I've connected to my cars can bus so that I can read data from all the modules in it (and even send commands to some).
I have mine connected to power 24/7, so I have put a lot of work into lowering power consumption and having the entire arduino and its modules power off whilst the car is "asleep" only regularly waking up to report back before sleeping again.
well, since I am not allowed to use the OBD2 port, I have to use the "normal" powering way over a 12v dc to a breadboard 5 & 12 v dc line to power everything up
Data is stored in a database and I've made an API that an app I've made for my phone uses. Right now I'm working on sending real time events from the car (and the server) which can be used by the mobile app for in app stuff and push notifications

I dont use the OBD2 port, I'm spliced in on the cars internal can bus. So I am listening in on the communication between modules.. as if I was a module
My entire arduino stack is hidden in the dashboard so you can't tell its there
Yeah, my benefit is that I own the car and that its old so it it breaks it breaks π
I can't modify a rented car π
my company relies on rented cars (soon not anymore) but still, I wouldn't be allowed to change anything
but I might build a second part for my PERSONAL car, where I can do, what I want 

Eventually I want to be able to lock/unlock the car from the app, aswell as turn on the diesel heater (It gets really cold during the winter here) for defrosting
not bad... not bad
well, I mainly just want to build a tracker with speed, location and time π
Now I'm waiting on getting a raspberry pi so I can hook up as a Bluetooth adapter for the radio, but also hook it up to the 4g module the arduino uses to create a hotspot for road trips.
Being hooked up to the can bus I can tell when the buttons on the steering wheel is pressed and use that to integrate next/previous song over Bluetooth π
you've planned much, aye π
Yeah, I've put a lot of time into it π
I can tell π
Did you have also a maintenance status when you're going in stackoverflow?
nvm it's gone
is there an API url for the ETS & ATS traffic?
thx
Im lazy, im bored, im without a style or a vision on how my vtc website should look. Who is creative for such a project?
go on fiverr
There's no shame in using a website builder if you haven't got the skills / time to build your own π
Am using wordpress already, but im too busy to have the time setting up the website itself to make it look Nice and profesionel againπ
It's no secret that Discord's your place to talk; 4 billion messages sent a day have us convinced. But text only accounts for a chunk of the features that Discord supports β learn how Discord optimizes its platform to respond to the high frequency of queries for all types of content and data as quickly as possible.
that's insane
Hey, I've been working on Alfie - An open source Discord Bot for TruckersMP stats programmed in Python using interactions.py. The bot uses Discord's interactions such as slash commands, autocomplete & choices. I also think it displays info in an eye catching and unique way. It's still a work in progress but it's now been deployed :) Source code for anyone interested: https://github.com/SamNuttall/TruckersMP-Info-Bot. Feedback appreciated 
Awesome work 
Alfie? 
What a great name

That's my dogs name
Working on a little hidden object game to learn Godot engine.
Progress so far:
- Splash screen, main menu and main level
- Programmatically compiled levels from manifest and resources
- Resource offsets for wide levels, driven by mouse position
Plans:
- Generate POIs from resources on the fly (to test if it is any viable)
- Pause screen
- Save states
Hello lovely people.
I've just launched a new VTC website. Right now this is just plain HTML/CSS on a really awful host.
https://www.F4A.cc
Long term goals are to use Strapi with a VueJS or React front-end. Has anybody used anything similar for their VTC projects before? How did it turn out?
Welcome to Fun4all - A Welcoming TruckSim & TruckersMP community
Why do you need to have a full AOS lib there when you can just make 3 CSS3 animations?
haha because I didn't take just the ones I needed. AOS gives me a lot to play with
It is quite overpowered for this landing page, tbh
yes it is, do you have a more lightweight anim library you would recommend?
I mean, for this exact page, just CSS3 transform and opacity animation will do
They are max. 2 lines each
I will have a play with those thanks β€οΈ
Does anyone have any recommendations for job loggers etc?
How come api.truckersmp.com/v2/servers has no more pages? i.e, you can't do ../v2/servers/{server_id} else it'll return a nil. Surely it would be much easier for the user, as they would be able to look up individual servers
Why? There is not much info there.
There is no justification for having "pages" for individual servers there.
I'm currently learning web development and damn, it's so confusing and overwhelming xd. At first it only was html, then only a few days later came css, again a few days later came php and once again (for the last time) came js. I feel like i haven't even 'mastered' the basics of html, yet i'm still expected to use everything together π
Well, that's just a tip of this iceberg 
I only can imagine. I've already heard/seen about stuff like angular or react. But i have to better learn the 'basic' stuff first before i consider learning about those. For example, with html i'm at the point where i always think about when to put something as a div or what's the difference between 'class' and 'id'. With css i'm at the point where i'm trying to figure out how the different position options (static, relative, fixed, etc.) work 
Why did you give up, if i may ask? Because it was too difficult?
Well, because I lost the mood to do so. As well as it was too overwhelming for me to learn all the syntaxes, commands, etc. and all the different resources I would've needed to make a good site.
So I kept coding in Java, since that's the language I know and can work with flawlessly - well, mostly. 
I can relate. I enjoy coding in java more as well. Which IDE do you use? I'm currently using netbeans
I'm a "eingefleischter" Eclipse IDE user
(if you dont know what eingefleischt means, it's german
)
Same. But i had to switch to netbeans because of database access. And i'm german as well π
Well, for DB access i have PMA (since Chrome is running anyway for Γ3)
and nice tho 
Didn't know that was possible with eclipse. I was taught i had to use netbeans for it 
Well... I use MariaDB (MySQL) and just use PHPMyAdmin to access the DB - and a mysql adapter for the code internally
Are you using linux?
Because he has me for Web-Development now 
Which I'm very glad and grateful of

JetBrains is the best IDE imo @winter tulip, but is expensiveeeee if you're not a student
JetBrains is a company, not IDE 
True
It's like synonymous with going to "hoover" something - It's a brand but you could well be using a dyson lol
Xerox 
Interesting
has any1 tried this of you? 
Not yet 

with anything popular it's always the most efficient way to get help
with unpopular things you might just get "yeah it's terrible, deal with it"
yeah... I do have two or three parts which are terrible in my codebase... but I cannot really change it, as its due to a dependency I use. Weird but I gotta live with that 
Is it possible to get a TruckersMP user via their Discord ID through the API?
no, tmp id or steam id
Shame, okay thanks
It will be unreliable anyway, because the user can hide their Discord snowflake.
what technically is possible but not really recommended is - you simply make a loop and an integer which increments with every done, save the info in a personal database and in that way you can get the discord-id, however, you would have to do that often, so the data keeps up2date. However, I think TruckersMP would rate-limit that
Yeah.. I've written about why this is bad already as a similar thing could be done for player names. https://gist.github.com/SamNuttall/2530ac8ceccf2f93a8528eff2f820404#creating-a-local-copy
While "The search algorithm" paragraph is out of date, the rest of it is a pretty good read
As I said, CJ - it's not recommended
It should not ever be in consideration, not just "not recommended" 
Well, I don't even plan to do that anyway
If API doesn't explicitly allow you to request multiple entities with pagination, don't even think about it 
Cuz.. why would I need TMP stuff on a MC Server? 
Hmm, I don't think it's out of date. At least the example I gave is still true. Searching for me, "SamN", the result appears on the second page. https://truckersmp.com/user/search?search=SamN
I mean, you're not the only one with SamN* in the nickname
That's true. Though I do think an exact match should be listed first.
It is actually sorted by descending ID
It is not that bad that it used to be though
Ah okay. And yeah, while it may not be that bad the point I was making in that gist is that if someone searched for a player via a Discord bot, and the name was exact, you'd expect that player to be shown.
How can I display traffic info of a particular server in embed?
https://i.imgur.com/NzJUQuS.png
this does'nt work
You first need to filter the response for the particular server
how?
Depends on what exactly your command does
the cmd shows traffic info
For all servers or just one?
1
oh wait I figured it out
thanks btw
@unkempt hamlet can I talk to u in dms for a sec?
No, but you can ask here
I tried filtering and stuff, but it dosent work
can you tell me a way to do that?
What do you need to do?
Like I want to display players/maxplayers of each server in a single embed
JavaScript?
yup
Learn how objects work.
Then you will be able to grab the data you need in a loop.
thats what I don't know, and I am asking it here
You can google it, N times quicker than asking here.
Arr[0] Arr[1] etc
yup, got it. thanks
https://i.imgur.com/GQkMdmA.png
Why does this don't work?
what do you get back from it if anything? is message from discord.js here and where exactly?
I get an error
looks like something wrong with what you're including in the .send
ig the code is correct tho
bc I am sending two messages
and the first one is going normally
but 2nd one gives an error
show the one that works?
btw new err
https://i.imgur.com/Lxrd9IS.png
I meant the code
oh ok wait
the error is just Discord telling you that you're sending data that isn't formatted in the way they expect
Pastebin.pl is a website where you can store code/text online for a set period of time and share to anybody on earth
it might be as simple as data.game_time instead in the addField. There's no response object in that API
one more question
how do I display this like in am or pm thingy?
https://i.imgur.com/S8mkZwX.png
you'll have to write a function to convert it
no, in code
but like this right?
https://truckersmp.com/developers/api#operation/get-game_time the documentation includes the necessary information
it's actually very confusing making that readable
and it's even more odd because the one site that's managed to make it readable https://map.truckersmp.com/, uses a different api π
Well, there is only one source of truth
Who know LUA coding?
Just ask right away, somebody will answer eventually!
You can use Steam login and then get the corresponding TruckersMP account from our API
Alright
Thinking about making a node.js wrapper for trucksrsmp's api
oh nice
the library didn't work for some reason managed to do it via manual fetching though
probably messed smth up
managed to get steam linking to work
looks very good 
I can imagine that π
It's on github
I admit totally it, so annoying but still challenging so that's pretty cool :p
True
Nah, Vue/React vs Svelte 
Angular vs VanillaJS 
Responding to https://twitter.com/benawad/status/1284499418167877634
Checkout my side projects:
If you're into cooking: https://www.mysaffronapp.com/
If you like World of Warcraft: https://www.classicwowbuilds.com/
Join the Discord: https://discord.gg/Vehs99V
Patreon: https://www.patreon.com/benawad
Follo...
what's wrong with svelte for larger projects?
vue, minimal code is the best code
Tried it before and it was hard to overlook my code with svelte
Hello there,
I'm creating a bot for our VTC and I want to ask, how many calls can I do on the news endpoint of the TMP API before I get blocked?
I would say 1 call per Hour, aka 24 calls a day or is that too much?
Kind Regards and TIA^Kit
I'd say: Test it out 
dont want to take the risk getting blocked xD

I'd say if you're scared of getting blocked make a cache system to prevent getting blocked
yet still I have to update the cache
For example I use sessions that expire on my own logging book
Like every 24 hours
Once someone logs in it fetches their profile and caches it
Only when you view a vtc profile it fetches it from the api
that's fine
But i haven't had any rate limits or smth yet during testing so you should be fine probably
A while ago, the unofficial rate limit appears to be maximum of 60 per minute. So, 1 per hour is significantly below that. #programming message
they block via ip right?
if u use a vps without static ip's you might be able to get around it
I don't recommend trying to get around an API limit. I think 60/m is plenty.
please don't try to get around anything. If you have concerns about your API usage, get in touch
Yeah that's more than enough
o o o o 
This looks very pog https://blog.cloudflare.com/turnstile-private-captcha-alternative/
This looks amazing.
It sure does
.
For those devs who know OCR stuff, which package do you use? Do you prefer EasyOCR or Tesseract or something else? Why?
I need your opinion because I'd like to create a software which determine and recognize license plate and ID Card text the most performant and quick as possible
i've heard good things about Tesseract
I'll try first with EasyOCR to see how is it, test it but thanks for your opinion ^^
someone knows how to upgrade Laravel from 8 to 9 without dying under the dependencies hell?
Clone the project into another folder, upgrade in that - Also check breaking changes at https://laravel.com/docs/9.x/upgrade π
Also this service isn't free but will create a PR to upgrade you https://laravelshift.com/
yes i know Shift, looking for it yesterday
actually I was thinking to clone a new Laravel 9 project and then install one by one all packages then copy and paste the old app code
I remember that in the past, somebody here shared a library with TypeScript types for our API.
Well, we now have an official one (which is highly inspired by discord-api-types as it fulfils the same purpose): https://github.com/TruckersMP/API-Types
How can I get the user profile link using the username? (Javascript / Discord.js)
User profile link? Like https://discord.com/users/user_id
Which opens their profile in Discord
tmp/user/123123123
Ohh tmp lol, I guess that makes more sense heh
uu
https://truckersmp.com/user/search?search=YourUsername
Then search through the results for the right username again and then fetch the Profile Link from the correct result.
but I do need to use the api right? there should be an easier way cuz this can get the bot ratelimited
https://truckersmp.com/developers/api#operation/get-player-id
According to the API documentation, you can only fetch a User using the TruckersMP ID or the Steam-ID.
I'll notify you if something goes wrong, I'll try this out. It seems like there is the name string, that works too! Thanks
The name String is part of the response. If you give the API a User's TMP or Steam ID, it gives you some information, including the Player's TMP-Name, back.
Make sure you don't scrap the website or you could get your server banned from accessing our site since it's against our TOS.
wdym "scrap the website"
its a discord bot
https://en.wikipedia.org/wiki/Web_scraping
If you want to get information from our site. Please only use the API.
Web scraping, web harvesting, or web data extraction is data scraping used for extracting data from websites. Web scraping software may directly access the World Wide Web using the Hypertext Transfer Protocol or a web browser. While web scraping can be done manually by a software user, the term typically refers to automated processes implemented...
ahh. you don't have to worry cuz I don't even know basics of javascript. I only know how to code discord bots via discord.js because it is what it is. so I don't have that much knowledge lol, I'll learn how to use API today.
Hii Here I have something nice for them.
a website for free CSS templates. https://www.free-css.com/free-css-templates
Love greetings,
Mo1993
The free website templates that are showcased here are open source, creative commons or totally free. These free CSS HTML templates can be freely downloaded.
And what exactly has that to do with... development?
You apply to a position, when the recruitment is open.
TMP Website.
They will announce it in #announcements as well
Not really a good reason to be staff tbh 
Throwback friday :p
https://aloneonahill.com/blog/if-php-were-british/
Hey, just wondering is it allowed to proxy the truckersmp api so that I can display information onto a website?
What do you mean by needing to proxy it? You can just make a GET request via the REST API in order to display information
You can access the documentation here: https://truckersmp.com/developers/api
Just gets the cors error whenever i try without a proxy for it
You can send requests only to the above documented methods
please restart servers its laggy

F
Can someone teach me how to do a Radar script in LUA? (For Roblox)
Chances are, asking to be spoon-fed won't get you anywhere. Your best bet is places like slack overflow, YouTube, or googling the steps. There's probably an abundance of code examples on GitHub as well.
Currently training an AI to drive on TruckersMP, I have around 1gb of images to test with at the moment, but 15x more is needed before I'm trying it down populous roads.
1gb ain't nothing if the image size is the default 2mb
the images are 100x100...
even less now
75x90
it's only the windscreen + it's compressed...
damn
I'm training it rn on real driving footage
And also the way I'm doing it allows for use on multiple games with you having to change nothing
Just click start and boom
And does anyone know if TruckersMP has any plans to implement rules against AI/bot driving
Hopefully not as it doesn't hinder player experience at all
each photo is 20kb btw
I don't think they plan to ban AI themselves, but the ruleset still applies to them. The ban-evading rule would probably apply to your account and the account on which the AI drives.
Start by declaring variables for the centre position and size of the radar. Then draw the radar background and finally draw the radar dots for each object.
aren't they already forbidden?
Don't think so, it doesn't impose harm or risk to others.
Do we have a support for devs?
I am new to the api's and trying to get familiar with it
I am trying to display the servers, but it keeps spinning in circles
please reply to my message when you respond to me,I am going to sleep
What language are u working with?
just js, working on doing it in express
https://www.npmjs.com/package/truckersmp & https://truckersmp-ts.vercel.app/interfaces/_interfaces_servers_.iserver.html or https://github.com/TruckersMP/API-Types should help you. If you want to send the code you're using someone may be able to spot your problem or where you're going wrong :)
I will get to that point soon
its throwing me a error on the router
can I not seend code?
Players.js
app.js
what's the error
I did it this way on my Main computer last night and it started
im at work computer rn
what version of express are you using?
I just did npm i express
"express": "^4.18.2",
I don't know. Likely something with how you're requiring or exporting the modules
im stuck, not sure why it would work on my home computer and not here
fixed it, but cant pull up the page for the api servers
Does this look right?
When using an Express Router, you need to provide middleware as the error says (router.use). I recommend reading the docs here: https://expressjs.com/en/guide/routing.html
It looks like you don't need a router for your specific needs, and could just use app.get, as shown in the first example
so basically take out the routes? doesnt make sense. I got it going anyways, just need to figure out how to display the info
A router is designed to handle multiple endpoints whereas it just looks like you're using a router per endpoint hence why I suggested it may be redundant for your needs.
You still need routes, but instead of creating a router each time, you could just use .get on the app constant.
const express = require('express')
const app = express()
app.get('/servers', (req, res) => {
// handle logic
})
I got it down, but I am getting confused on how to even work with the api, its just confusing
I mean your pulling from the json portion and parsing it out then re-jsoning it?
What are you trying to achieve?
At the moment all I can see is that you're building an API to interact with TMP's API, but don't do anything with the data
I am trying to just display data tbh, not trying to build a api. I am just learning how to mess around with apis and get their data tbh
Oh. Where do you want to display the data?
anywhere tbh, im not making it a actual app, just testing and seeing how to work with apis
Oh. Wouldn't just making HTTP get requests and logging the response be better then?
im not sure, im new in general tbh
JavaScript isn't my forte, but I'd say making HTTP GET requests and then logging the response is a much easier way to experiment with the TMP API than building what's effectively an API of your own just to call TMP's API.
const request = require('request');
request('https://api.truckersmp.com/v1/players', function (error, response, body) {
console.error('error:', error); // Print the error if one occurred
console.log('statusCode:', response && response.statusCode); // Print the response status code if a response was received
console.log('body:', body); // Print the HTML for the Google homepage.
});
code example taken from: https://www.npmjs.com/package/request
You'll need to install the module request before you can use it.
Do note that package is deprecated
got it
meaning, is there a new one or what?
Not sure if there's a new one but there're certainly other packages like it. However, the current package will not be updated.
Is that what u wanted?
for now thanks
what do you mainly use? PhP?
Occasionally. I mainly use Python and sometimes, js
I gotcha
node 18+ has fetch natively, no need for a requests package
would add, thank god
someone knows how to get all relations from a Laravel Model? I need the relation names, trying with getRelations() but returning always an empty array
oh just found this package adideas/laravel-get-relationship-eloquent-model, did the trick π
Do you mean the same as preventing lazy loading? You can use Model::with('relationname') to achieve that
no π
i want to have an array with all relations names (without loading them). that package worked π
Ah okay, nice π
getRelated() would return something instead of getRelations()? I wonder. Anyway you fixed your problem, I'm kinda late to share some ideas 
didn't tried actually. but also getRelation($name) returned null. If i got correctly how it works, getRelations() works when they are loaded.
I think the tecnique used from that page is pure Reflection
Good evening my fellow devs.
Anyone used AWS lightsail before? Good, bad?
what's the use-case?
it's almost certainly not the best option but it can be just fine
Just a small hobby website, so low traffic and doesn't require many resources
if it can run on the cheapest one it's probably the best option
unless you can make it entirely serverless and host it on something like railway.app for free
or vercel, or netlify
saves you the trouble of maintaining a server for it
Ah ok nice, thanks a lot 3v 
I'm giving a crack at Force Feedback settings and I am trying to wrap up a simple forcefeedback project (could be C#, c++; Windows 10/VS2022...) to first see which effects I can use best in my cheapo wheel. It seems it doesn't support DirectInput as I get an E_NOIMPL from CreateEffect in a c++ project I found on GitHub.
Any directions I could follow to get that working?
Isn't DirectInput a deprecated API that Windows 10 no longer supports?
I don't think it is deprecated, many many hardware supports it. Vut xinput is really the "new standard" an M$ asks to favor this interface in modern programs. But by no means you can oversee DirectInput support to your tool if you want to provide broad compatibility.
Besides, the joywheel I'm fiddling with is 2007, so it knows nothing about XInput.
I might actually need to write the driver to that thing... π
On a different topic, maybe the launcher app don't really need source maps bundled with the webpages (app.asar). Or is that there to help provide launcher bug reports?
dang it, cant share json files here.
I made a pt-BR.json translation for the launcher, if the devs (or anyone) is interested. It works well, but there's something left to enable before I can save the language (I can switch to the language once I open but the choice doesn't get saved).
I used this in LANGUAGE object for the lang: "PortuguΓͺs/Brasil": "pt-BR",.
It is up to date with version 1.3.2 of the launcher.
Best to open a Feedback ticket on the website to probably Project Management
they likely won't see this here
they're not looking for that anyway. it was fun and I learned a bit about what's used to make the launcher.
thanks for the directions though! :]
back to my rumble plugin. I even studied KMDF (windows drivers stuff) to see what I can do to make this wheel rumble in the games.... Not worth reversing the simple HID device, my attempt now is to send FFB commands via RawInput, as it seems DirectInput (much less XInput) should work with the poor ol' wheel.
DDOS
?
no i dont think so
Thanks for your efforts, but the translations are provided by our internal Translation team only and we don't accept community contributions at the moment.
no worries
I found 64-bit drivers for my rumbly wheel. But they are downright broken (access violation). Went back to scratch and am writing the very driver.... I guess I will just have the basic ConstantForce effect working and will probably still need a plug in as ETS2/ATS now use the fancy force feedback effects. Chewing down spring, damper, groove effects in a puny motor with an unbalanced weight is crazy! :P
And I still have the problem of the open source drivers only working in 32-bit. I'll have to figure out how to hook the 64-bit DLL correctly.
What an adventure!
not much going on here it seems. I just tested the game with my driver, I can finally have the stick rumble in echoes to the rumbling truck engine! \o/
although I feel something is amiss with the rumbling effect and the truck behavior... I'd expect a jump while turning truck on, and feel more rumbling than it does when I step deep in the gas
but I can definitively feel the truck now!.. the steering settings all "minnied out" as there's no sense in trembles vs steering right or left. heh
I know, it's not much, but I finally made my very first discord radio playing music bot
well, it only joins and starts playing the hardcoded radio (should not play anything else) π
and I have my "force rumbleback" SCS Plugin working! Much much much better than game's original force feedback stuff. The original FF settings might work for expensive steering wheels, but old PS2-compatible, vibration-only, are no good with ETS2.
Is there any public material on how exactly TruckersMP does its injection with the game? What call they grab and perhaps how do they update the address every new release? Or is that their "trade secret"?
I think that will be the only way to implement something to let me rest anywhere. I basically want to be able to rest at rest stops locations that are broken in the game, and I believe the only way would be to inject code to "toggle" the current truck location as a rest spot.
Those two questions are unrelated. Anyway, the tools we have are a trade secret. But the fact that we hook and call functions is no secret; that is how all these modifications work. If you are interested specifically in TruckersMP, you can take a look at our previous (unfinished) code base from 2013: https://github.com/MRBlueGame95/ETS2MP/tree/master/src/Client/Core/Game
Or you can base your hooks on pattern scan. Like this FMOD plugin does it: https://github.com/dariowouters/ts-fmod-plugin/blob/a999af4/ts-fmod-plugin/dllmain.cpp#L256
FiveM also uses pattern scan: https://github.com/citizenfx/fivem/blob/62cc4c4/code/components/rage-graphics-five/src/RenderHooks.cpp#L74-L92
I would personally recommend pattern scan as that one works better with a fewer amount of hooks; you do not have to port between versions unless there is a breaking change
But that of course depends on the pattern you write
thanks! I will give pattern scanning a shot
Afternoon! Does anyone use AWS S3 for static website hosting?
Hi! The Steam helper has stopped working since a few weeks. It throws a
Uncaught (in promise) Error: Cannot read properties of undefined (reading 'games')
at o (browser-polyfill.min.js:1:9257)
error. Somebody knows an idea about how to fix this?
what steam helper
probably referring to https://github.com/cjmaxik/truckersmp-steam-helper
Chrome / Firefox extension to provide useful information about TruckersMP player in Steam - GitHub - cjmaxik/truckersmp-steam-helper: Chrome / Firefox extension to provide useful information about ...
Anyone know a good tutorial on how to set up the scs SDK for ETS2 and how do i use it with js/python?
Search for SCS modding wiki, all the information and documentation is available there π
Thanks for the help.
Hey there. I see that the examples given in https://download.eurotrucksimulator2.com/scs_sdk_1_14.zip are in C++. Is there anything that i can do to access the API using python or js?
Not too sure mate, I'm only just starting out with this stuff too π
Ohhhh thanks for the help.
The SCS SDK is only in C++. If you want to use it in JS or python you need to use a package/project that provides this for you. For example: https://github.com/RenCloud/scs-sdk-plugin which has a pre-made client for C#, but in makes the data available in a memory mapped file that can be accessed from any programming language.
Thanks. I will check that out.
Yes I was referring to this one. In the meantime it is working again. Probably some temporary issue with some API.
If you're referring to TruckersMP Steam Helper, then it works fine to me, cannot reproduce the issue. (I am the creator of said extension)
If you check I just wrote yesterday that it is working again, probably some API issue
.
anyone know how to make SP interiors into Local mods?
What has that to do with development? That'd fit more in #ets2-modding or #ats-modding (depending for what game you would like to do it)
Hey guys. I was using fastapi together with mongodb. However, I have the issue that whenever i try to insert_one entity with the POST request I get the error "Unprocessable entity". Any ideas on what the problem might be?
For reference
I think you're trying to insert a Pydantic model instance directly into MongoDB, which is not allowed
Dou you have any idea for a fix?
You need to convert all the Pydantic model instances to regular Python dictionaries.
It's been a while since I've used it but I believe with FastAPI, you can use the function jsonable_encoder
I will try that once i get home, thanks!
what has that to do with development? 
idk
you see.... but you apply, to answer your question
just curiosity
you don't pay for it nor you get paid
wow
and also, if you are banned in less than a year from today, you cant apply.

This can't change anything.
You must not have been banned in the last 1 year to create an application.
That fixed it, thanks!
All good :)

XD
As a suggestions to TruckersMP, a simplistic way to guess installation path of both games:
https://github.com/avengerx/SCSClutchFixer/blob/v1.0.0/ClutchFixer/Program.cs#L21-L79
https://github.com/avengerx/SCSClutchFixer/blob/v1.0.0/ClutchFixer/SteamVDF.cs
That's in C# but probably not that difficult to be ported to Node.JS (I think the current launcher is in Electron, right?)
To be safe, this could be attempted just as initial values for the installation. If any part fails, just behave as the launcher does currently.
(disregard this if the launcher already guesses paths on install -- it didn't back when I installed it first time a month or so ago)
in some way you have fixed the situation when the user has moved the game from Steam?
the old installation path remains in the VDF and overall, the whole game content remain in the old folder π
The hardest part is actually finding where steam is installed to find the vdf file
Reading from registry in electron is not trivial especially when we have to walk a tight rope with AV false positives due to the inherently sketchy nature of injecting dlls in running processes
using edge-js and a .net assembly doesn't work?
i read the registry in Trucky from a .net assembly and never had problems.
the real issue is reading the vdf file in a reliable way
I don't think so. The game is supposed to be run from one or another steam library, and steam only supports the game in one library path at a time, as far as I know. If the person moved the game out of steam's control, well, steam lost control over it.
As lots of validation in TruckersMP relies on steam, I believe that to be a safe bet for most cases.
For that I just look up registry key with steam installation path. So if it was installed on a different path, that code should find the VDF.
also if you move the game from steam, the old game path remains in the vdf aswell the game content
yes, you will find always the VDF but it's not really reliable as it could contains many library folders and the game could be in both place
I read the VDF file in a very unreliable way; just like, a best effort attempt. Not proper parsing of the file format.
that's why I was asking you eventually find a way to resolve correctly the "real" game path
I believe steam supports moving the game from a lib to another, but having it in different libs, the person went out of their way to hack through and copy files. Then I'd say for these cases, the user should be tech-savvy enough to type in their path. The code is meant to cover the average user's scenario.
it's indeed the non techy messing with the game location π
No, I didn't focus on that -- at all. Just "if you installed the game on steam, moved it from steam, and run it from steam" it should work.
With your experience in trucky, you see many people install the game to paths outside steam?
i know relatively for sure that it you move the game from the Steam interface, Steam doesn't remove the old game content and will add a new library path
luckily is not so common people moving games multiple times but we have found a good amount to be noticeable, they have 2-3 installations all over the system π
Ya... now I remember... When I moved Fallout4 a few months ago, I needed to:
- copy the files to a temp dir,
- uninstall the game,
- then install it to the new lib dir
- When it started to download and before it actually downloaded much (or anything), I needed to stop the download
- then copy over the files to that dir it creates
- then resume installation (verify files)
But in the end, the VDF should be safe, as steam updates are supposed to go where it points. So whatever is set up with steam should be the default choice (in my tool the only choice lol)
But again, it should work well on truckersMP which has the setting to manually browse for the folder. :P
we found also people running the wrong and outdated version of the game without knowing π
I don't think there will ever be an option to fullfill all scenarios... just the most common or default ones, right?
or even running TMP with an installation and the single player (from Steam) from another
ya, there's not much that can be done to these cases, they went out of their way, out of the box, "to break the system".
Trucky installs plugins in the first path found, when we discover multiple installations, we ask to the user to delete the old one, then everything will work magically π
I mean, some tricks could be done to search all drives, task list, or even windows event logs; perhaps game directory for game.log.txt... but still, guy has 2-3 installations in different places, there's absolutely no telling, they have to make up their mind and choose that path for themselves. :P
and they have also multiple places for -homedir location π
Well, if that weird approach o'mine adds anything to trucky's path finding, you're welcome to use. I just thought it could make a lot of people's lives easier as it always starts as blank.
About being difficult to query registry from nodejs, I don't know, there are even cmd tools to query registry keys, so it totally could be done without even adding yet another of those dependencies that pulls 1000s other dependencies... :P
from .net no issues reading the registry, pretty easy
Nothing's easy in the end, it's just finding reason to dedicate time to them. One day I will fix that wretched turbo gauge in the game! π΅
it can get complicated when you can't tell whether the key you want is in local machine, user config, syswow64, etc.... I think it can get pretty tricky no matter where you go.
Was working with my ol' steering wheel drivers a few days ago. One driver version installed keys here, the other installed there... none of them properly cleared keys on uninstall, and the list goes on. π¬
Back to this path issue of ours, suppose somebody has family access to a computer. So one kid has one steam account, with X DLC, another kid another steam account ... they just log off an switch accounts and use different library paths... what would that VDF or steam key contain at all?..
There are more points of breakage than meets the eyes :P
when you land on user's PC, actually you can find everything, j saw worst things ever, such absurd setups
from my experience, mostly they have different steam accounts but install paths are the same
it may be helpful for you to check out this link: https://forum.truckersmp.com/index.php?/topic/43150-fatal-error-or-crashing-each-5-10-minutes/
Hello. If you encounter this problem, follow these instructions: Quote 1. Start a command line as an administrator (cmd) 2. Run the command: sfc /scannow Spoiler 3. Wait, and then restart your computer 4. Run a single game in x64 DirectX mode (Launch witch DirectX for ATS) Spoiler 5. Drive a shor...
Hello! Next time please ask in #support or dm @opaque oriole for help instead of asking in this channel again. Thank you! 
I was just checking logitech SDK docs. It's only interface to the LEDs (g29, g923.. g27 maybe?) is only to model after RPM gauge and little liberty to go beyond.
I'm thinking on making a plugin to show fuel instead. I already have PoC in c++ playing a few custom effects. Basically my limitation is, I can only light two opposing leds at a time (that is, I cannot light the first green to the left and not the first green to the right, or either red -- but not the other). Other than that, I can even do fancy animation effects if I access the joystick straight via HID interface.
But the other, actual force feedback effects seems to be better off with Logitech API than using DirectInput directly.
First step would be a fancy custom LEDs functionality, but I might give a full force feedback implementation a try, in a second iteration, as I'm not happy with how the game models some feedback from the wheel.
https://www.youtube.com/watch?v=jQsOvMWMGVg
Here's a showcase of the available LED combinations in the wheel I recorded the other day (this was before I wrapped up the c++ code, using the logitech-g29 node module.
This shows how the leds in the Logitech G29 steering wheel as we provide values from 0 (0x00) to 31 (0x1f) to its HID channel.
Values beyond 31 (0x20 onwards) are cropped, so only its first 16 bits are used. The effect of "filling up" is made by only incrementing by doubling or decrementing by splitting the values (0, 1, 2, 4, 8, 16, 8, 4, 2, 1...
I'm wondering if I can do anything more useful than RPM display besides fuel level display. Can, for instance, do a motion effect when refueling if telemetry provides any data when I start refueling.
Probably not possible with telemetry data, but a distance sensor while reversing. Maybe this became a thing with the emergency braking and adaptive cruise control though... that is, if the distance from object/collision became a data passed to telemetry...
I could never imagine how difficult it would be to get a fuel gauge working from a plug in ...thanks to a bug where total fuel capacity is not informed correctly by telemetry callbacks... π©
Does anyone in here have an Arduino with Sim800L Module and got it to working making a connection to a webserver via PHP API?
I've done it with a SIM7600, but I used the https://github.com/vshymanskyy/TinyGSM library. I see they support the SIM800 modules as well. Highly recommend checking it out
Alrighty alrighty - do you also happen to know, how to make a connection to a webserver to "submit" new data to the API (which feeds the database) ?
TinyGSM comes with a lot of examples, they have an example for a https client where they do all the modem stuff.
In their example they used https://github.com/arduino-libraries/ArduinoHttpClient/tree/master to handle the HTTP client stuff, they too have an example on how to do post requests π
ahhhh, awesome
thank you veeeery much! π
Building a GPS Car Tracker π
hence why ^^
https://github.com/vshymanskyy/TinyGSM/blob/master/examples/HttpsClient/HttpsClient.ino (Shows the modem stuff, implements a get request)
https://github.com/arduino-libraries/ArduinoHttpClient/blob/master/examples/SimplePost/SimplePost.ino (Connects via wifi, but shows how to do a post request)
Thats "almost" exactly what I did. I also connected up a can-bus module so I could read telemetry from my car.
Although I chose to use a TCP Socket connection instead of doing HTTP requests to send data as I wanted to stream telemetry data in real time.
well, for me its not only a tracker, also has a LCD screen to show real data locally, too π
Neat! I was experimenting with sending data over the can bus to show stuff directly on the cars built in "text screen". My actual goal with the whole project was to be able to start the diesel heater remotely on cold days.
Ended up buying an EV that already had app stuff and pre-heating before getting that far though π
hehe - well, that's surely been a great project with remote-starting the heater π
I would go for TCP sockets too, mainly because it's faster and you can create your own protocol. Otherwise you don't have too much control because the data exchange is on the SIM side. Decode the data on the server side and send it to whatever application you want. I also recommend you to switch to a better MCU. It's easy to work with Arduino, but for more complex application you might need real time processing. STM32 would be a good start (even with a real time operating system like FreeRTOS).
Good to know 
Suggestion Name: Update for TruckersMP API Suggestion Description: I would like to suggest you to add the ability to take the gallery and convoy API on which the VTC participates Why should it be added?:ο»Ώ It's useful for developers, so they can make more interesting features for VTC. Any example ...
When is someone going to add a Chassis Developments bodied bus into ETS2??
They are super customisable
What has that to do with development?
Making stuff for ETS2
Nah, that has nothing to do.
This channel is meant for getting help with a piece of code and/or a project - as well to show off something you've made. Can but must not be related to ETS2/ATS 
Took a look at the blog forum
Being a web developer websockets are pretty fast imo
Wouldn't smth like a clustered websocket server in node.js or Deno in combination with keydb(built ontop of redis) be an idea
Would allow for horizontal scaling too
Easily
This wouldn't work for many reasons, main ones being:
- Node is way slower when compared to a native low-level implementation in C++
- WebSockets use TCP which isn't exactly known for low latency (and use way more bandwidth than basically anything other than polling)
- Possibility to scale horizontally is completely useless in this case since the game servers run on a single machine (multiple per machine actually)
- What has KeyDB/Redis got to do with any of this
Since thereβs no need for persistency everything can just be stored in memory
Plus high performance servers usually have a bunch of ram so thatβs not really an issue
By sharing data i mean share player positions across clusters
So you don't have to duplicate every single thing across the workers
Again, why would you add a database (which adds latency) to a system that runs on a single machine with no need for persistency? Thatβs the purpose of RAM.
For web servers with load balancers and the need for persistent state of course you need some sort of DB - this doesnβt apply to single-machine game servers.
In web development, yes.
I've also used it for other things than just web development
Blogs rarely update while websockets are used for real-time communication. It doesnβt seem like a good fit
Many of the largest websites in the world run on node so itβs plenty good enough for performance on the web and using low level language is generally just asking for unnecessary trouble
We could do a rewrite for TruckersMP on Java Sockets
will surely end up goodn't.

Also then I could join the dev team, since I work on Java since 7 years 
Garbage collection is a bit too expensive for larger games
I know...
I'm trying to make a small-scaled (aka co-op) mp for OMSI2... not been successful yet.
Thereβs a good interview from Todd Howard about some of the technical challenges in making their game engine made for single player games to work for fallout 76 thatβs somewhat similar to the challenges in mp mods
Unreal has a garbage collection btw.
No wonder star wars ran like garbage 

System.out.println("Hello Soul!");

Java in C++ 
preprocessor abuse 
Ye, avoid it at all cost 
Both is nub.
PHP please, Sir! 
And also please get Git repos for everything so I can download your code 
PHP for the win
I really wanna learn PHP, tried to learn it for a full-stack class I took and I just didn't gel with it too well
Viva uses PHP 
Nice
PHP is made in C 
That's true
Hey! Just looking for a little bit of assistance here. Iβve been struggling on getting entries with spaces to insert into my database. All that comes back is a syntax error.
For example my query might look something like this:
INSERT INTO databasename (βcolumn nameβ) VALUES (βrandom entryβ)
That above would return as a syntax error due to the space between random and entry. Is there anyway to fix this
Are you stringing your column names? Cause it should just be id, not 'id', for example
You could be looking for a similar error but in the wrong place, SQL traces are like that
Unless this for some reason only persists with spaces, at which point 
Im not stringing them lol my bad. I just know that when there is a space in between the entries it errors out
Can you DM me the error, or send it here, whichever is easier? I'm curious lol
I can when i get home!
Don't you know any good motivation to learn PHP and Javascript properly? I'm lazy to do it π
I felt I learned best by making things all the time - for Javascript, Discord.js taught me a lot of paradigms, but I can't really speak to PHP that much. Just find some ideas you want to fulfill and follow them through to completion in one of the languages.
You can use the following syntax, which is more readable:
INSERT INTO databasename SET
FIELD_0 = field_value_0,
...
FIELD_N = field_value_N
INSERT INTO databasename SET
FIELD_0 = mysql.escape(field_value_0),
...
FIELD_N = mysql.escape(field_value_N)
UPDATE databasename SET
FIELD_0 = mysql.escape(field_value_0),
...
FIELD_N = mysql.escape(field_value_N)
WHERE FIELD_N = mysql.escape(`some case`)
Also, you must shield and secure the data transmitted to the database. It depends on the libraries you use. As a rule, this function is called escape.
It is possible that you are try save data to the database that has not been escaped. So you get an error.
I did get it to work! But I may look into formatting like you suggested for readability!
Maybe, this useful for basics https://www.w3schools.com/sql/sql_intro.asp
But, for me, I think, need learn basic SQL, and + for concrete DB, for your work/project.
Does someone know how I can post a server emoji to rules using carl bot for example?
The syntax for custom emojis on Discord is <:emojiName:emojiId> if that's what you're looking for. Add an a before the first colon (ie <a:emojiName:emojiId>) for animated emojis.
iirc the bot user needs to be in the guild the emoji is from. A workaround is using a webhook (https://discord.com/developers/docs/resources/webhook#execute-webhook), using which you can send a message with any emoji regardless of the guild it's from.
That moment, when ChatGPT saves you a ton of googling π didnt knew it was that easy on what I want to do 
I've been so wary of asking it for help especially since I started my research into its faults with arithmetic - it's given me some pretty laughable code solutions 
well, the piece of code it gave me actually worked better than expected.
Try GitHub Copilot :D
You can ask it to suggest code by simply writing a comment containing what you want it to do
Would also second Copilot, but definitely only for personal projects. There's a bit of unknown liability with using Copilot for commerical use or otherwise cause of the data set being a lot of other users' code
Well, I only code for personal use / little communities... nothing to sell or for bread public 
Oh yeah for sure, definitely leverage it where possible
Am I the only one here absolutely perplexed by Entity Relationship Diagrams? 
I could probably plan my SQL a lot better, but I swear I get to participation constraints and I get lost 
My employer is paying for everyone's Copilot license, and actively encouraging everyone to use it haha 
afaik there won't be any real issues, as long as you of course check what the suggested snippet does
I'd be skeptical personally - just as I wouldn't generate assignments from chatgpt. Twofold because some of the code it generates is downright awful
The tool is only as effective as the skillfulness of the hands that wields it ^^
Of course you gotta read though and verify what an AI spits out
Whether it works or not, but also if it's efficient or not
I've been using Copilot since the day public beta started, and i love it. But of course you never just use any suggested snippet without looking at it
My research focuses on composite logic which hopefully will end up providing some insight into why it sucks sometimes lol
The current state of GPT is that it sucks at nested math in a zero-shot environment, which I'm hoping to extend to things like relative clauses in linguistics and nested queries in things like SQL grammar generation
Otherwise though it's been pretty helpful with fairly basic solutions, I just avoid it for safety in commercial or team environments
copilot/chatGPT is to programmers what calculators are to mathematicians... useful tools that still contain flaws and limitations, but very powerful in the right hands
Does anyone know if you send a Dream booth fine tuning request through the stable diffusion api for a pre-built model, if the pre-built model itself gets fine tuned? or if you get a new model built on the pre-built model which gets fine tuned?
solved
New language model dropped 
https://arxiv.org/pdf/2306.02707.pdf, looks neat
It may or may not be making my research irrelevant, I'll have to read into it's arithmetic performance 
Well it appears it struggles on things like geometry, I guess I'll have to feed it my datasets if/when I get my hands on it
Any one used a cPanel server to run a Django app ?
What is the best way to host the sqlite3 db for my app so it is secure
Store the SQLite database file outside the web root directory to prevent unauthorized access. Place it in a directory that is not accessible through the web server. SQLite is not typically recommended for production environments due to its limitations in terms of scalability. However, if you expect significant traffic or have multiple users accessing the database simultaneously, I recommend moving your database to MySQL or PostgreSQL
so if I use a mysql database in the cpanel is it safe since thats an option instead of storing it locally next to the site files?
am looking for a coustm discord bot for our vtc discord any suggetion
Basically, yes. It is already configured for you and all you have to do is only to connect your application to the mysql server. However, you need to secure your application too.
What will the bot do? How will it be hosted? Are you willing to pay? Asking for a bot without context doesnβt help anyone.

Anyone used Jquery? Got some super simple code thats being fucky for no reason
const r = { success: true, message: 'Awesome message!' }
$('#some-element').attr('class', 'msg-' + (r.succcess ? 'success' : 'error'));
For whatever reason, the ternary is evaluating to false, and thus assigning class="msg-error"
Yet if I console.log out r.success, right there within the parentheses, I get true, so not a scoping issue.
I'm scratching my head wondering "wth" 
Is jquery bugged or something?
Does it have anything to do with the triple c in success?
Success vs. succcess
Dunno if I'm blind or just dyslexic but I dont see any triple "c" characters π
omg
nvm I see it now

fawken ell
Sometimes you just need another pair of eyes
Cheers mate, you're a legend. So embarrasing for me lol π³

Never embarrassing - I once spent 3 days debugging for the same reason 
happens to the best of us π
Lol, almost laughed
That were so fun, that I forgot to laugh
My dad owns TMP he'll ban you
I once spent 6 days debugging because I entered the character length wrong
Yep yep been there
Or the numerous times I've used .getElementById and supplied a nonexistent id
rip
my biggest mistake was declaring a variable of type integer and putting a number with comma β οΈ 
Imagine making mistakes 
π€¨π€¨
This has to be singlehandedly one of the handiest pieces of code I have
Hi
My dadπ
Didnβt mean that, but if you say so

π
https://nativephp.com/ so this project released their first alpha version today
It's very..uhh... interesting?
Yuck PHP
Having to learn PHP was probably the most interesting use of my time for a semester
I genuinely enjoyed learning Scheme/Lisp and Prolog more than PHP 
What version were you taught?
There's a biiiig difference between using old and new standards/features
A "library" that allows you to build Electron applications with PHP, while allowing it to run fully self-sufficient on the end user's machine (e.g. without any remote API/DB) :D
Nothing old, probably the newest version
Just reaaaally don't like it
Yaa but in new versions you can still use old practices and features haha. From what I noticed in my time in college (studied software development), my teachers only knew old coding standards and practices, thus teaching students nothing good xd
I'm in software dev at my uni as one of my concentrations but we're really limited to one class that touches on PHP, a lot of our other stuff is just systems level stuff
A lot of it is theory too, like I have a pretty good idea of how to break apart file systems, storage, memory management etc. right down to the bare metal but not a lot of time actually implementing stuff
Maybe it's just lack of exposure but I've always defaulted to HTML when and where possible
You should check out a framework instead of writing pure PHP. Makes stuff easier and a lot more fun, since you will then have a solid foundation of common features that you can use
Next time I need to I'll probably try it out, I've been throwing my time into Svelte and HTMX as well lately
If you wanna try out a PHP framework, laravel has a really good official bootcamp that they recently released. It takes about a few hours at most, and showcases the most important features https://bootcamp.laravel.com/
It offers Vue and React too in the bootcamp
if you're into that kinda stuff
React... that's another scary one lmao

Oooo
Only part that irks me about that is Electron 
Now if it was Tauri π
i would argue that Electron is way more commonly used by (big) companies haha
Oh for sure more popular
Tauri is gaining popularity due to it's advantages over Electron tho
Commonly used, sure, but efficient? Not in the slightest
To that end, ditto on the Tauri comment
Exhibit A: Discord 
Our launcher is built on Electron π
For smaller scale stuff like that I'd think it to be fine
But as projects scale the scales tip a bit
my favourite language to code in is english
Tauri still doesn't have all the features needed yet, Viva are currently waiting for a few on the roadmap before our Tracker is finished in Tauri
Currently test running a new tracker in Electron tho
the thing about electron is that the dev experience is really good and the performance is good enough for the vast majority of use-cases
Hello, Is there any recruitment for the developer team? What are the conditions, if any, or where can I reach them?
You need to be a Staff Member before you can apply for the Development Role. You can not become Developer from the Player role.
We do review open applications via the feedback system occasionally, but it is difficult to accept to a volunteer position that requires a lot of trust without building the trust separately first.
related to the department I graduated from and there are areas of interest that I dealt with before in the form of Zbrush, Blender, 3ds max, unity3d C++ C# Python, javascript, etc., I didn't know the requirement to be a team member before. If you look at my resume (if you want), you can see what I've done on linkedin on github.
Well from what I know, you have to be a Staff. Itβs possible that it changed

Ok thank u for informations π
hey Devs @ TMP, API responses are cached? if yes, for how long? I've added roles to the company (id 24) but they aren't returned in vtc/{id}/roles endpoint
and i've spotted a bug in the TMP API Client v2, the CompanyRole.order could be null, will open a PR for that
oh finally the cache is gone.. reordering roles, null on Owner role has been changed to 0
the API returns cache-control header indicating cache duration
Hello guys, is there any developer who can teach ets2 SDK in C#?
Teach? Probably, not. Thereβre lots of GitHub repos built on the SDK, though. Exploring some of them might give you a better idea of how things work. Also, some indication of your intended use of the SDK would be useful.
@dire mist hello im sorry for taging you i just wanted to ask do you know a guy named MakkaPakka known as Metaloid?
i remember he like 2 years ago randomly gifted me a dlc and i was so happy and i want to thank him again but i lost contact
thats not something developers should do, just patinelty wait for an answer on your ticket
Starting software developing soon at college π
Good luck!
Itβll take some time for your ticket to be answered but please do not ask here or in #support and be patient until your ticket gets answered.
Good luck!! Message me if you ever need help on the academia side of things, whether it's adjustments or just college life in general
Going into my 3rd year of Software Eng / AI and I can confidently say you'll see some high highs and low lows 
Iβve have pretty much no experience with software developing I didnβt know what path I wanted to take so and with little time left I was forced to make this decision so I hope I will enjoy my study years and if I donβt Iβll change my study the next year. Also thank you ππ»
First semester is absolutely pivotal for that - I used to be a pre-law major, and I took a gamble on switching. It's sometimes a great move but just do your research and you'll be fine! If you're interested in software, you'll love it, but it can definitely get difficult if you don't gel with the content
i went for computer science 
Didnβt have much time for research but Iβm sure itβll go fine (I hope)
we're doing similar courses π I'm doing software eng for Ai & Cloud
Right on!! AI is more of my research concentration (my current research is in natural language processing & prompt optimization) but software eng still has some neat classes so I went for both additional concentrations
Cloud computing and engineering is a part of our SE concentration but we have no dedicated program for it
The plan is to finish my BSc and then immediately apply to my PhD, be an ultra hip and young prof at 26 years old 
I'll probs go down a similar route tbh. Although I haven't branched out into it yet, it will defo be what I choose to focus no when the time comes around. Which I hope is this year
1st year was general software eng, game dev and mobile dev
that's gonna be a lot of work! Hopefully it works out for you π
I also haven't decided about a PhD yet but will probably do my masters
Oh it's def a fair bit of work, but I've structured my 4th year to be a research year (only 3 courses when a usual load is 10), gotta be able to compete with Masters applicants
We have a really good emerging AI team here, we're working pretty heavily with MIT
meanwhile over here my Uni is only starting to adopt Ai R&D :/
starting this year they've added an Ai & robotics course which would probably be really good but at the same time probably take a couple years to get it running at it's full potential
atm the main thing they're focused on is AR which in itself is really intriguing
We have like 2 active AI courses, a mandatory Intro to AI / Heuristics and Intro to NLP which is also a Masters course
My supervisor and the 3 of us under his direct supervision are really spearheading the effort to adopt it more in the dept
I'm surprised most places aren't pushing Ai atm especially with the whole boom in Ai development over the past year
it's definitely going to be and almost is, a major part in all large scale tech companies
Ultimately whether we like it or not it's still in its infancy. In the same way that a load of banks still use things like fortran and cobol, people need time to fully trust and work their way through a system like AI
The metaphor I was told is that AI is like a completely dark cave, so no matter where you go you're finding something new right now. We need to see more of that cave before we can harvest it as a primary fix-all to all of our tech
Hello everyone! I am a video editor, and a senior modeler, so if you need are in need of a nice and friendly driver, AND developer, DM me!!
Hello guys, don't know if it has been discussed yet but why would SCS create a different build for the VR versions of the game and not make it asymetric on the main build ? I would imagine the VR stuff would only affect the camera/resolution and UI ?
It bother me so much that VR is not an option when it comes to TMP and I don't really have insights on why they're doing it like this.
(posting in this channel because I want technical insights on the matter)
It's not even like there was some kind of model/animations to sync and broadcast to everyone, it's literaly just camera 
My best guess would be an attempt at optimization, but I'm clueless when it comes to graphics
adding a second camera for a second display output isn't as simple as "only affect the camera"
if it was oficially supported, SCS needs to do Testing and QC for VR aside the normal Testing/QC. And from the hardware survey (Devs have a special hardware survery overview iirc, unlike the public Steam Hardware Survey) on Steam, SCS may very well know how many gamers have a PC that's capable of running ETS2 in VR with a decent experience and how many of them even have a VR Headset (although numbers may be inaccurate due to the headsets not being connected all the time).
And since we do not have VR support, I assume that the number of players with VR gear is quite low, so low that an official implementation is not worth to support. (Support means also Mail/Ticket support)
Hello. Is there any API that provides the full name of the server a playerID is connected to?
You are admeeeeeeen. You are supposed to be able to see everything 
How could I've missed that. Thanks 
scania rjl mod
What has that to do with development? 
https://laravel.com/docs/10.x/folio just had it's first stable release, quite interesting for simple pages, however I don't really see the appeal in it
as a lover of filesystem based routing I really like the look of that
I can see why it works for something like NuxtJS where the logic and template are in the same file, but for laravel it just seems like it won't scale well, or work that well if you're trying to query multiple things to hydrate your blade file
seems closer to old-style php where you might include common logic from other files in the template file
PHP doesn't need to go back in time 

there's a lot of value in simplicity and hiding complexity does not remove it or the need to understand it
He wanted to fix legacy codebase.
Me:
hello there does TMP API provides OAuth with Truckersmp account? cuz i didnt see any reference in api docs
unfortunately not
uh
You could use steam oauth and then fetch the TruckersMP account via the steam ID, if you wish to have that kind of guaranteed relation
forgot to reply 
hey, maybe someone can help me with regex: i'm trying to extract data from an html field
Let's say i have this <x-(.*) field="(.*)">(.*)<\/x-(.*)> trying to extract from a string like this <x-editable field="name" ondblclick="this.parentNode.removeChild(this)">{{ $borrower->tranche }}</x-editable> using with preg_replace <x-bvi::editor.$1 field="$2" :editMode="true}">$3</x-bvi::editor.$1>
The problem with the current regex is that it doesnt stop at the field attribute value but continue taking also the dblclick part.
Someone can help fixing this?
the final substitution works, actually but i need to run it also with a preg_match_all extracting only the field attribute value
playground on Regex101: https://regex101.com/r/Vuv3rw/1
is there a reason you can't use a proper html parser? regex is kind of a hammer for a screw there
it's another possibility yes, but i preferred to go with a regular expression (which i've fixed meanwhile, helped from someone else)
Ouch
And exactly what has anything of that context with development? 
That. Has. Nothing. To. Do. With. DEVELOPMENT. Appeal it under https://truckersmp.com/appeal
ok
Eh he might develop sadness bc of his ban
how to be admin
π₯
chat gpt
https://truckersmp.com/kb/27 π£οΈ π― π₯
Currently making a bot which uses the TMP API and I found a limitation with the news post section of it. Using the API I only have access to public news posts (which is to be expected) however I can't access "member only" news posts (which is also to be expected). However, does anyone know of a way I might be able to get around the "member only" barrier? 
Not really, if the functionality isn't provided via the API, then I guess it isn't officially supported
^^, I can't imagine there'd be any logical way to access private data via a public api
funny enough its possible to fetch member-only events
(pls dont remove that feature)
really? o.0
I tried testing it but I can't seem to get it to work
that's a bug I reckon bc if you use URL https://api.truckersmp.com/v2/vtc/{id}/events/{event_id} it shows nothing kekw
https://api.truckersmp.com/v2/events/17825
https://api.truckersmp.com/v2/vtc/57695/events/17825
agreed
I opensourced (as public archives) some old codebases from PhoenixVTC that I made back in the day (such as the drivershub, etc).. https://github.com/iDiegoNL?tab=repositories&q=phoenix
There's some pretty cool stuff in there, if anyone needs some inspiration for their VTC
Have quite some trouble understanding how to code with HTML and CSS π
well i will have a nice look at this
π
haha np, have fun. Felt like this was a better idea than just letting it go to waste :)
It's not meant to be straight up copy-pasted or used as-is, and there's probably a few issues since the projects haven't been touched in over a year.
would be a good thing for rcs that
rcs?
yea rcs trucking vtc
ah, i thought you meant https://en.wikipedia.org/wiki/Rich_Communication_Services lmao
php is will be complicated for me
feel free to use parts as inspiration if you're thinking "hmm, how should i solve this", but please don't use a whole project as-is :) I will add an open-source license if it gets misused
Edit: the projects are now licensed under GPL-3.0
the future is here lads https://www.youtube.com/watch?v=BsnCpESUEqM
Bun 1.0 is here!
Bun is an all-in-one JavaScript runtime & toolkit designed for speed, complete with a bundler, test runner, and Node.js-compatible package manager.
ay lads
Maybe because theyβre private 
well what if i want to get private events of my vtc
shouldn't be private for me innit
there are lot more api flaws out there that would be more useful to fix than this
and it's been like that for quite some time
are you referring to the array vs object?
i am
it's a side-effect of PHP where they're the same thing


didnt expect php to be that bad
What's the endpoints?
PHP associative Array magic
I see, it's using the same code so it's just a behavior of PHP like 3v says. If we change it, it might break people code.
the private event change also broke some code icl 
It was broken initially we just fixed it. It should have never been publicly accessible
making resources inaccessible with the existing error format isn't a breaking change, unlike the change of types returned from the api
sooner or later it'd have to be fixed 
If you guys are interested 
https://truckersmp.com/recruitment
As much as I would like to apply, I would be kind of useless 
I would apply if I could..
i was suggested to apply 
Might as well have a go
i have a ban 1 mo ago
n my other ban expires on 2nd oct
if not this ban i couldve applied 
Good luck finding new colleagues 
Let's say so, if they'd need java devs, then I can apply 

Ewwww Java is stinky 
Laravel is stinky 
Pure Java vs Laravel I would stay with Laravel 
Tell that the minecraft devs back then
only learned java bc of minecraft
and now I even code bots in it and other stuff 
But for me Java > any other lang 
tbf, I wish I could understand the web dev languages like php, js, css, html and so on... would make my life essentially more easy 
Well, I wish I'd understand Laravel and JS better, then I may try and transfer to Web-Dev... But since I don't, I'll stick with GM 

Well, I learn french - can't learn a whole package of coding languages additionally to that 
You could, technically... I wouldn't either 
I could, yeah - but I don't want to overload me π
You can not apply because you have been banned in past 12 months.
Cool! The person who got me banned edited the evidence in such a way that the fault was on my side from which she provoked all the time by driving in front of the hood and braking.
And now I can't apply....
Yeaaah, it's always never the actual user's fault ^^
okay I made a maneuver inattentively causing another driver to fall off the road because I misjudged the distance in the mirrors but the video was cut off and not everything was shown on it....
Knew it ^^
I have no experience with PHP would have applied
Have experience with only HTML, CSS, Flask, Django and js
I have no experience
canβt even understand HTML and CSS
first week of software developer in college so we are still at basics
im a self learner 
Wish I had the time + PHP knowledge, or otherwise I would have applied
It's the only real area I'm lacking
Plus it doesn't help to be working 3 jobs and taking 120% courseload 
Thank god I switched to laravel. What a miracle π
C++ > any other language
English is the best language to code in
And with Inertiajs and vue added, it gets even better
100%
Speaking of Livewire, Filamentphp is a nice addon to Laravel
Ah that looks neat, thanks for pointing it out
No problem, it's a nice addon to use as an admin panel
I like the look of the tables, I currently use JS DataTables for my hobby projects which I'm looking to replace
I'm still on v2 of Filament, so can't speak of how it looks on v3
But overall, yeah, they do look nice. It's using Tailwind if I'm not mistaken
Yeah, I'm on V3 myself so I might give it a try sometime and let you know π
Yes, that would be nice π
thumbs up for Filament
v3 is awesome :) been using it since the beta, can recommend upgrading
upgrading to Livewire v3 will also give you some nice new features & improvements
Good to know. Just need to upgrade to Laravel 10 first before I can get around to upgrading Filament, still on v9 atm
Don't rush to upgrade just because, as long as you're on top of security, being on the bleeding edge in production isn't the best way to proceed imo
Yeah, true
use Shift, for how much it costs, worth it
Yeah, have not used any of their paid ones, but have used a few shifts that were free
i've used a couple of time the paid ones, 19 eur for a shift with a comple PR upgrade worth my time π
Fair enough
Do someone created an external button box with Arduino or other boards? I need help pls dm me
What you don't like about DataTables?
I find they can be a pain to be responsive, I know there's an extention for it but they don't always play ball for me
If you don't need too complicated things you can use an USB Joystick circuit board. It's plug and play (generic joystick controller) and you get 12 inputs.
Gonna learn rust this weekend 
Then finally learn Python
Cause I have to for research work

I'm using a Laravel plugin for Datatables and it work pretty good overall. Much cleaner than doing everything manually
Oh thanks π I'll check it out
Perfect thx
pls add persian languge
ican't send msg
Go to #info and follow the steps to verify yourself first
ok
I dont get the api, I did this https://api.truckersmp.com/v2/vtc/51115/member/398072
it says 404? but the ids are perfectly fine?
or I mean page not found
but then why is it in the api docs
I've just checked as well, it does seem to be correct
It's not mentioned in the documentation so this is only an educated guess without being told otherwise, but could it be because his VTC history is private?
it uses member id, not the member's user id
you can see the member IDs in the /vtc/{id}/members endpoint
out of interest what are the best courses to learn:
- Linux admin
- Nginix basics, error handling...etc
I would do a free trial of LinkedIn learning, and look there π
It also wouldn't be wrong to buy a cheap VPS and just play around and break stuff π That way you can self-learn before working on anything important π
Or setting up a local VM based on Linux.
or docker, which is even better nowadays, learning nginx on docker is useful
fyi, Patreon broke their webhook implementation, since yesterday everyone stopped to receive updates
I am not even surprised. Their API and webhooks are the worst third-party integration to ever exist.
looks like they changed the encoding from utf-8 to Unicode (?????) so every webhook call or verification is failing...
is anyone here good at making skins but for free tho.. i dont have that much money so please dm me if u can make i skin for me
its not a hard skin to make if ur experienced
And exactly what has that to do with development?
oh its development im so sorry
A skin for ETS2/ATS is not development, rather modding.
is there a collection of TMP logo SVGs by any chance?
how do i get distance between two places?
Elaborate please.
sorry, if a starting place and company is given and destination and company is given i need to get the distance between them through roads, if possible ferry distance and price too
is this even possible?
i don't think so
unless you want to make your own ets2 map navigation, or somehow inject into the game and do stuff there
if i do that i wont be able to play in truckersmp?
i mean truckersmp dont support other mods
mod won't do that i don't think
it'd be much more complicated
why do you need it? 
i am trying to make a mobile app that shows every stuff about jobs and thing so i can control those things by mobile phone or tablet
for example to while creating a new job it shows distance, job earning
so for that job earning part is done but the distance π₯²
okay, where can i look for game's current navigators code or anything like that? i mean just place to look for it? I am little new to these sorry π
doubt it's source is publicly available
okay for just distance i can extract it from truckersmp dispatcher
verify yourself #info message
#info I think, bottom message
bottom message is the image 
π¦
I've been trying concepts recently
VtvStudio is not a registered company btw
I also made a high poly car a few months ago

seems like most people here are web developers
Nice models π
You may all enjoy this π https://www.youtube.com/watch?v=PivpCKEiQOQ
C++ is good for game development, not so sure about others
It's also quite difficult to learn
Template error messages
Exception specifiers
Visual destructors
With C too
Rust >>> 














