#programming
1 messages Β· Page 2 of 1
What does that have to do with development?
Develop some safer driving 
ah crap didn't even know this was in the development channel 


Depends on what you need help with. Whatβs your problem?
So. I am trying to make an app. That allows me to select an apk file. And then add custom flags to it so the apk will install with my custom flags
But i dont know how difficult that would be π€
Oh lol, can't help you with that, sorry π€£
Np
There is an app that kinda does it
But it only allows you to install 1 of 6 apps
So im thinking hm. Is there a way i can just replace the apk link and then try to install it that way? But not sure
Also not sure what program i can use to open and edit apk code? π€
Why don't you try and decompile this app and take a look at how they've done it? 
Well its on github so i can see all the code. But it just doesnt really make sense to me fully
Hello, has anyone ever used a VPS at Contabo before?
Yeah, what's up? I have one with them currently
From your experience, how good is it in terms of stability, performance, and support?
I've seen some negative reviews and want to make sure before buying a VPS S. Currently, I have some servers with OVH, but in terms of price, I've seen that Contabo offers better resources
I can't really recommend them if you want to host anything important/public or resource-intensive on there. I currently have their VPS S tier only to host a basic Zabbix instance, to monitor a few dedis that I have hosted elsewhere. Also keep in mind that their maximum network speed is 100Mbit.
If you're searching for a good VPS provider, I can recommend Vultr. I've been with them for 5+ years. Great server specs, support and uptime :)
If you're looking for something comparable to Contabo pricing tho, take a look at Hetzner Cloud. Their Arm64 servers are dirt cheap.
I had the VPS XXL there. In terms of hosting game servers they are poor. You only get lags and issues. However in lightweight stuff like hosting a website and Database servers and discord bots it's enough performance.
DigitalOcean
I've personally had OVH and Hetzner. They are both pretty reliable.
Currently using DigitalOcean on the new software I'm writing and they have been pretty good. But it's much more expensive tho currently spending $600 USD + a month 
TMP uses Scaleway and OVH
Scaleway is good too. they grew a lot in last years with many improvements
take a look also at Linode
My experience with OVH:
*VPS loses outbound network connectivity
OVH customer support: have you tried running a traceroute from your computer 
its great when things work but if anything happens that a reboot, or OS-level config update, wont fix then your SOL
in the end they werent able to fix my problem so they just gave up and moved me to another box 
They are very cheap tho
Contabo is cheaper with better "bang for buck" imo
@tardy smelt Hello sir, forgive me for disturbing you. I have a few questions. You have been working on TruckersMP years a lot, you have created a client and developed a multiplayer mod for ETS2 and ATS games to synchronise with your website. How did you success to do that? If someone with a coding language and programming training wants to develop a multiplayer mode from scratch, can they do it or will they stuck the obstracles? If this is possible, wouldn't it be nice to have rivalry between your TruckersMP platform and a new platform?
will they stuck the obstracles
one does not simply right bug free code or expect to not lose many nights of sleep because you forgor a ; on line 82 π
It's horrible to think about 
Many have tried and all have failed.
It's not that easy and you have to compile the game code and understand what's happening to then inject your code into the game code to make the multiplayer work.
idek whats worse at this point tbh. hiding private events or ban length.
both kinda break a lot of things
destroys DX with your services a bit 
What do you mean private events?
member-only events
I think going through the api it should be okay tbh
Maybe make it so you've to get an api key or smth before being able to access private stuff
And if you really wanted, they could make it so each VTC has it's own key which you can use to access their own "private" stuff
Eta is probs never kekw

Hello
world
;
hello, can someone from the moderators or manager nagucken my modmail thank you
They will respond ASAP
okay
(LANGUAGE: C) Haiiii, does anyone in here know how to print a double without using printf or any already-existing functions except write, putchar and putstr? I'm trying to display the frequency of a letter in a string given as argument when executing the binary.
My program can already count the occurence of multiple letters in a string.
(feel free to mention)
(for context, this is what I have to do)
Nevermind I figured it out with my colleagues
Soo, I want to make the next step in my development area and want to learn web development.
Have you people good recommendations where I could possibly learn web development (for beginners - I don't know nothing
) - eventually for free?
Hit me up and thanks in advance for your help! π
https://codecademy.com has some pretty good courses for beginners :)
Some are (partially) paid, but for basic/beginner things it should be mostly free
Thank you Diego! Really appreciate it
gonna check it out
I'll try it out too, cuz I'm bored 
Codecademy is great, can attest, but it's definitely a starting point - GitHub has some fun repos of project collections to consider as portfolio things, just google something along the lines of GitHub projects (language here)
i started my programmer journey off github.com/countr/countr 
this
then I think I went to to express.js since I wanted to make a dashboard for a discord bot
Small projects are great for learning, really.
Also don't get stuck in tutorial hell
express for API connection so
I used Express, a bit of Fastify
Immediately learned Typescript and started using all the experimental features of that
Experimental decorators are my passion
And now I need to learn pytorch for my NLP research
same
Hm
Yikes
Sure and I'm the King of China

Just joined the server today though? Interesting
You figure a prospective community manager would have been immersed in the community
Also one community manager building a working relationship (that likely already exists) out of a whole team of people? 
Very interesting, considering how long TMP has been around maybe?
Just saying, you give absolutely no background or public facing info about yourself and expect us to fall into line with the belief that you're all of a sudden on management at SCS, it would naturally be a little fishy
What would that prove?
A portfolio? A company profile? Literally anything?
Community managers would be well steeped in public relations with the SCS community, so let's see some evidence of that?
I'll happily stand corrected if you can provide that, but it's very vacuous at the given moment
SCS already have our contact information that they have been using when ever they requires anything from us.
Also, this seems like a largely irrelevant chat given the nature of the channel to bring a topic like this up
You're welcome! SCS community manager already have access to official TMP Team discord too 
Not gatekeeping, just Section 2.01 of the rules, if we want to get pedantic
Let him know and he'll let us know in the appropriate channel
Not that I'm here to minimod, just saying we tend to like our channels on topic
Not sure what was on topic since I do not see any development questions. It was more of a general question that would have been in support, feedback or have asked a discord moderator.
In that case, I'll apologize for drawing it out, but I'll reserve my natural skepticism for the right spot in the future
Some people have a bit too much time, eh? 
Back to abstract writing I go


Anyways, on a development related note - I'm finally submitting the abstract for my paper!! Granted it's a local conference and I'm really doing it to train myself on postering and getting reviews, but hopefully submitting to EACL/ACL in the coming months
And hey a trip to Malta for a conference, what's not to love
what was that
π₯³

Hi, how to create a custom VTC app (e.g: similary to Truckbooks or Trucky per example) ?
A lot of system variables - web, discord based, phone app? What tracker do you want to use, or will you use one in house? Will you manage automatic logging, or do paper logs? Etc etc etc
It's not just a matter of "how, with what, and how long"
I plan to make a JSON API that retrieves data (missions, events & more) and sends it to a database. I'd like to make my own system for my VTC.
Then you'd need to implement that API somehow, which is a whole other app to develop
i was wondering guys/girls, when using ets2 official controller layout from steam, we have this awesome functionality, "game actions" but when i try to create my own gamepad layout from scratch this options does not appear and i am forced to bind gamepad touch with keyboard touch instead of those internal input, so my question is, is there a way to use those, except from always making a copy of this layout then make edit from it ?
https://ibb.co/B49FGcH
You'll need definitely C++ Knowledge, Reverse Engineering knowledge, network knowledge - just to name a few.
You may want to check out this repository to get a very rough idea how TruckersMP works: https://github.com/EryksProjectsArchive/ETS2HookingOldSandbox
Keep in mind, though, that this is an extremely old source code and it's nothing like we are using right now. In fact, this was discarded at the time and a new project was made from scratch.
Hey question, is the api of the traffic public?
The API that Krashnz uses for his Website (https://traffic.krashnz.com) is not public. But you can contact him via Forum if you want access to it.
Legend! Thank you spoony!
Oh! Is trucky public
Yep. Their's is public 
but it's not using the Kashnz Traffic API, it's own implementation
Ive fallen into a rabbit hole im enjoying π€
Never thought much into coding and becoming a developer but its actually turning out to be a lot of fun 
Currently doing angela yu's 2023 complete web development bootcamp. It takes you from 0 to full stack developer. Also purchased her complete flutter developer course and her 100days of coding python course
Shes really great teacher. Explains stuff so well π
nice
good luck π
Im interested what got everyone into development/coding/programming? π€ and thanks!
discord bots 
thats what i started with
Ah nice!
I got clyde to write the code for the one i was working on XD
use ai carefully. Otherwise you'll just rely on it. For me atleast, AI was a problem. I used co-pilot 24/7 and never understood concepts and just went "Yea, I get it. Leme move on"
turned ai off and boom, I was a 
copilot ππ
Welcome to Cloudflare's home for real-time and historical data on system performance.

cloudflare doing their usual

Yeah i used it once as i didnt understand how to get something to work
I started on Minecraft Plugins, then extended to Discord Bots (JDA), now I'm learning creating Programs with JavaFX - also learning myself the basics of Webdevelopment (Currently HTML)
Eugh java
I just wrote a DNS filter for my networking/Kali Linux class
Thank god Java is good at byte manipulation but yeesh
Discord bots at first using js and then moved onto website development
very cool π
@shadow marsh i just finished learning html theres a great video on yt for it brb ill get link
HTML full course tutorial for beginners
#HTML #course #tutorial
βοΈTime StampsβοΈ
#1 (00:00:00)β HTML tutorial for beginners π
#2 (00:09:40)β hyperlinks π
#3 (00:12:41)β images π·
#4 (00:16:30)β audio π
#5 (00:19:10)β video π₯
#6 (00:21:37)β text formatting π¬
#7 (00:23:42)β lists π
#8 (00:28:18)β tables π
#9 (00:32:16)β colors ποΈ...
very to the point. super easy to understand aswell
took me 3 hours as i was pausing video and using vscode to test it for myself but yeah. very cool
i started using react without really knowing html 
I decided to take an HTML/CSS/JS/PHP course in university instead of teaching myself
Took 12 weeks but my prof is now my research supervisor so hey we won 
Shockingly had the most fun learning python, it was nice to already know basically everything about a language + some of the libraries for code analysis were lots of fun
I wonder if itβs possible to make a job logger application using electron js
Might have a look into it
Ah good ol memory hog electron
What framework is ATMS one built on if you donβt mind me asking
We use CHub as a service provider (run by our CTO) and afaik that's just a stack based in PHP and some django/flask-esque thing
Thanks, gonna take a look tonight - appreciate your answer! 
Of course!
There is 1 thing i reccomend though
In his video. He teaches you to do <br> and <hr> well in html5 that is perfectly fine because html knows they are void elements. But good practice is to write them as <br /> and <hr /> because then if you look back at your code. You will see the / and remember that they are self closing tags where as if you leave the / out. You might be confused as to why there is no closing tag π
Like i say <hr> and <br> will work fine as html5 just good practice to include the / so you remember its self closing π
Also if you havent. You should install live preview extension in vscode because then you can right click your work and click open with live server to see how it looks as an actual webpage instead of just seeing the code π
<br> is for a new line in a <p> - That I do know
yeah <br /> is new line <p></p> is paragraph <hr /> is horizontal line π
horizontal line and new line are void elements so they are self closing tags π
but if you are using paragraphs <br /> doesnt look right. its better to end the paragraph with </p> then next line make a new paragraph as a break in a paragraph looks weird.
hi! im looking to get into Dev and coding... what would your guys say is language i need to get into
depends what you want to do π
i know how to change Sh....t in games and make mods work... i really dig making stuff for games
ah for that i cant give advice sorry i have no idea whats needed for games
Learning about css grid today just learnt about flexbox
Fascinating how powerful stuff is when you look behind the code of something. On a website it can look so simple yet the code behind it is so fascinating
Like peices of a puzzle. All fitting together perfectly to make it all work
life's a puzzle 
True but sadly lifes not as logical as code 
My teacher says I have too many enters in my HTML code but is this good now?
Oh nice had to make a website using CSS grid.
For description of fortran why did you give it a seperate div? When you could have used <p></p> ?
Well it was a code given by another classmate so I can't really answer that. 
XD
Just gotta fix the overuse of enters in my code to make it look more better according to my teacher.
It also looks like there is not enough </div> for the amount of <div>
You have css to go with this html?
Those are at the bottom
Yeah in a styles.css file
Ah okay
Also a lil confusing why they put a div on the title when they could have use a heading tag then altered font size or font weight in css
And for some reason my Navbar on phone is at the bottom of the page according to my teacher even though it's at the top on the 5 other phones I tested
Yeah but it's too late to change all that.
And too much work
What phone did teacher use and which phones did you use?
2 of the phones were I believe Iphone 14, I used my Iphone SE and 2 others were samsung I believe but dont know the model.
I'm not sure what phone my teacher used
Could be different screen size which is causing issue in which case you could add media query to do a max width of 680px then attach a position for the nav bar to the top
Probably yeah
My media query is set to 400px which is probably too tiny
Alright let me see
Making it 680px does weird stuff
Seems my navbar is also at the bottom on my moms phone
try 1200px and adding the necessary css elements into it
if not, 767px or 992px might work?!
680px worked but now my navbar on other pages are at the bottom except the home page
are the other pages using a different css file
ps F12 > Responsive Design Mode
I am using that
ive noticed sometimes it doesnt work
But when I am on phone it looks different then when using responsive design mode
make sure your phones on the same network and load the localhost
with live serveryou can save and it will auto refresh so you can preview it then
I put my file on a school server and visit it on my phone
have you done max-width or min-width
Max
hm
yh
Actually it seems that my navbar has also moved to the bottom when using responsive mode on laptop
Weird...
Fixing a problem and creating a new one 
Removed the unnecessary enters. Gotta fix the responsive now
π
the joy of code π
Very true
main task of a programmer
π
It's been 2 hours trying to fix this navbar 

You could use flexbox for the navbar
Set each option to an order. Put them as inline with gap
Could also assign them to wrap so when on smaller screens they will occupy multiple rows to fit on screen if you wanted
Started with asking us if you had too many enters. Now we are discussing flowbox media queries and navbars 
Well I got the navbar fixed on phone but for some reason my code in my media query is also messing with my code outside of the media query
Did you make sure you closed all the brackets for media query?
Yeah
Hm π€
I've had this issue from the start.
The codes too private to show?
Ehh not necessarily
If you can show the media query and css part we might be able to try fix it
When I add one more it's red
Add it on line 399 in front of the other bracket
Yeah sadly everything is worse now
That way it will stop the media query code. It should be like
Media query (){
Selector {
Selector code
}
}
Whats it look like now?
You had the media query close bracket at the bottom of the entire code
Yeah
You removed that one?
I did but it still looks bad
My laptop version looks bad)
I'll have to somehow fix this with my none closed media query
Way too late to try and fix my laptop version

wot
Blame my teacher
aint an issue just triggers me 
Yeah for media query its normally like this
This
Then the code goes under that
Also did your teacher tell you what you had too many spaces in?
Because your css page has so many empty lines its crazy XD
It was about HTML
Ahh yeah there didnt look like too many in the html
Ah yeah you do have some you dont need
It was bad
The divs they dont need seperated by extra gap so line 29 can go. Just a waste of space line 32 isnt needed to be empty either. Line 43 doesnt need to be empty line 45 doesnt need to be empty
Changed it already haha.
I guess I thought adding gaps would make it look nicer
Ah XD
Only time i add lines is where i want to place comments. Or in the head section for internal css
Alr
So youre doing this at school? Or its a uni degree or?
College degree
Or smt
Going to college for Software Developing/Developer
Started 3 months ago
π
But found an incredible deal
The course im doing now. If you go to their hq to do it. It costs $12,000 but you can do the exact same course online right? And they had a sale recently and i got it for $15.99
Exact same tutor. Exact same modules. Everything is the same. Just the online course you have to study at own pace. But such a huge saving its definitely worth
Jeez I missed the one active dev chat day
I was busy doing computer science tours for future students though 
My bad ill stop talking to make it quiet here again np
I can share some cool coding things here?
Am doing a course and its sharing some sites that you can learn/test your coding knowledge with
Will wait for reply before posting as not sure if can share or not 
i think i am going to invent a new game
imagine chess. with a twist where if you get certain pieces in certain formations it unlocks a new pattern for a select piece to be able to move
for example. line up 2 castles with king in between. the king grants them permission to move diagonally
chess 2.0 when!?!?!?!?
same time as gta 6 probably
might do it on a test website. just to see what i can get it to do. will have to wait until i finish my javascript modules
im starting javascript later today. so hopefully will start new chess project in next few days
line up 4 pawns in middle of the board and the pawn that makes the bottom of the L can have the same moves as the knights
think it could be really really interesting concept
Decided to go back to an older version of my website where my navbar looked uglier but worked for both laptop and phone and luckily my website was accepted 
Next period we will start working with Javascript.
did you have to use grid?
im on my final css course and im learning about bootstrap and its so much better for navbars
for example
ignore picture of cat XD this is my "test and find out" website XD
Would be nice if search box worked π
Indeed it would
I wonder if staff know their tmp discord bot [apps] button for user lookup isnt working
Unless it requires certain perm to use but then surely it wouldnt show to people without that perm?
wdym
works fine for me
Huh
Not for me
wot it say
"The user cannot be found."
doesnt mean it doesnt work
make sure ur discord connection is public on the website
It is
idk then
works on me
Huh. Thats weird
your discord is private in your profile
How hard do you think it would be to program a bot to automatically add dlcs from a certain developer into your wishlist? π€
On steam*
I collect dlcs for ets2 and ats. But when new ones are announced ill see it on like youtube or blog on phone and think yeah ill add that when i get to pc. Yet by the time i get to pc i forgot so id like to make something where when scs release dlc for ets2 or ats its automatically added to my wishlist π€
Something like that would be possible and the difficulty depends on your knowledge on how to deal with APIs. Steam has a full documentation for their Web API right here: https://partner.steamgames.com/doc/sdk/api.
Adding a new item to the wishlist for example would be a POST request to https://store.steampowered.com/api/addtowishlist
That would be my preferred approach. You can then run the "bot" in the background on your PC or on an external system like a cloud server so you won't have to worry about anything anymore
Perfect! In 3 days time my course has a module explaining everything to do with apis so perfect timing thank you π
in my room i dont have room for multi monitor setup right?
yet 1 monitor was not enough for coding
so i got meta quest 3 and im using this app called "immersed"
now i have 5 70" monitors XD
and im in my living room using wireless keyboard and mouse with tv on and then monitors around the tv XD ultimate setup fr. coding so much easier like this than on my 1 monitor actual setup
but now its got me questioning i wonder how they were able to develop an app like this because there is 0 lag between it and i can move between the screens flawlessly just as if they are actual monitors
this was the most difficult challenge i've done
Education github?
Also hope you get good result from your work π
nah just student pack
free github pro & copilot and some other things i cant remember
hmm
And I used the Frontend Masters credit to learn Rust
i applied primarily for copilot 
Nice then 
I like copilot for tedious work, but I tend not to use it
Itβs not all that great especially when it interrupts your workflow
If Iβm writing wrappers for APIs, it tends to be super helpful for picking up on the structure and saving me a lot of boring writing when Iβm doing all the variable assignments
I also just leave it turned off to avoid any academic integrity issues
helps with documenting functions too

Mine got accepeted
When add winter mod
"Off-Topic" 
Use your eyes and find the correct channel to ask in
When add winter mod
@errant flame when it's winter. Duh.

aw man how long have you not been updating your discord
thats been like at least 3 years since they changed replies
or 2
idk
π
not on tmp
no not

?
Nice
any plans for GrΓΌnwald trailers?
It is totally up to SCS and not TruckersMP. - I don't think you will ever get answer from here.
^
I think he confused
Has anyone ever done the map view to the discord bot with the Truckersmp Api?
yes
here developer channel , not forum
how much does github student cost?
/ are there requirements to sign up for that?
its free lol
Access the best real-world tools, learning events, and training to shape the next generation of software development.
i have to be a student though?
its called a student pack for a reason?
π
Is a simple question. Github could have their own education program so when you enroll you become a github student. Could be a student through self learning or a traditional college.
Idk why it was such a difficult question to answer and why you had to try make me feel stupid for asking it. Lesson learnt dont ask anything here.
i linked you to where you can learn more about it than i would be able to tell you
Could have said: you can learn more here
why else would i link it?
ππ
They do and itβs great
I use IntelliJ quite regularly
Same with Datagrip, PyCharm, CLion, RustRover and a bit of Fleet
vscode for liiiiife
I see no lies 

3v!!! π€£π€£
Java's nice! 
Hello, I would like that on TruckerMp we could add the mods that we have. It could be fun and introduce our mods to everyone.
I hope this feature will be available in a future Update.
THANKS
Are you alright chief?
Maybe we need to rename this channel so people dont think to come here to give game suggestions XD
Said the same thing in #support
GPT-4 Vision is so good that it's scary https://fxtwitter.com/tldraw/status/1724926175301013506?s=20
This thing can do games too?? http://makereal.tldraw.com
you can input any wireframe with notes, and this site will turn it into a fully working TailwindCSS page with advanced JS where needed
jeez
.
h
i

when does the snow come to truckersmp?
dec 21 releases a snow mod
Ask it in a different channel itβs not dev related
Good evening, I would like there to be trucks on Modded TruckerMp with flames coming out of the modded trucks for more realism pls.
I love this game !
Bye thanks.
What exactly has that to do with development? scratching his head π€
Great of you for making a suggestion, this just isn't quite the right channel for it! A potentially better place would be the Suggestions page on the TruckersMP forum :)
scam
Hello... I'm in need for some pointers
TruckersMP is able to have its own windows in game, and so far I have no idea how it does it. I do know about the github project, and what I want to do is this:
- I can read telemetry data from the SCS telemetry API,
- I want to show some of this data in game without having to switch back and forth between my console and the game,
- which means I want to be able to have a window of mine in game displaying this data as I read it.
I have not a clue right now as to how do to 3. As to languages, I do python and Java if that's of any relevance. Where in the source code of the github project should I look to see how it's done? If necessary, well, I'll learn a new language...
It'll be significantly easier to implement as a custom overlay similar to Steam or Discord and you might consider using something like Overwolf that already provides a programmable overlay. It's something you'll need to look into yourself though, I have no direct experience with Overwolf and can't endorse it.
Overwolf has trucky right?
trucky uses it yes
OK, that's a good starting point. I will look up Overwolf then
But then how does TruckersMP do what it does? It seems to override a lot of what the basic ETS2/ATS binary does but defers back to it when it needs to... Will the github code give me hints as to how it's done?
(for some definition of "a lot", of course)
I'm not sure I like overwolf that much to be honest; it looks like an ecosystem suck-in
bloatware 
It does seem like it, yup
I don't like the "smell", or "feel", of it at all
Also, JS only as a language? no thanks
I need to find something else
As if implementing CEF is easy 
or rmlui
RmlUi ftw.
In short; we hook the render pipeline. Before the frame ends, we capture the pipeline state, render our GUI, and restore the state back. If you have no experience with C++ and rendering, I would strongly advise to avoid doing so. While I am not a fan of Overwolf either, it is probably the easiest solution for you.
here's one implementation: https://github.com/mumble-voip/mumble/tree/master/overlay
I do have experience with C++; overlay, however, no
(my job is on the server programming side of things, I never touch anything graphics, but if I have to learn, I will)
I meant rendering; and anything graphics in general
Take a look at what 3v shared. That is pretty much what we are doing.
OK well, time to read some more
There is a community plugin base that hooks D3D11 and OpenGL of the game to render custom ImGui overlay:
https://github.com/Hary309/hry-core/blob/master/src/Hooks/D3D11Hook.cpp
Hello, I try to customize tmp the launcher but every time I restart it makes me an update and removes me if I did, is there a docs for his?
you need to put things in the _mod folders to do your own versions
files installation ?
the data folder in installation path yes
installation -> data -> ets2 ?
How to change my login background? You can change the background by modifying the file. 1. Using Win + R, into the Programdata Files. -> The programdata file is hidden on the operating system. Open the file by pressing the Win + R keys and typing "%Programdata%". 2. If you open programdata fil...
but use this instead of programdata
perfect !! thanks you β€οΈ
What this do ?
well -nointro probably skips the intro cutscene on opening the game, the other things my guess is buffering size allocation and other things
The rest probably limits the RAM the game can use, iirc.
You shouldn't use them, if you don't know them.
increases the limits yes
GUYS why when i click on the server I go on the main page of the original game?
and what does that have to do with development?
Some people just canβt read channel names quite funny.
if you are starting looking at Overwolf, you might consider to look into the new Electron Overwolf platform. but you will have to face a main obstacle: Overwolf doesnt provide game events for ets2\ats as it does for other AAA games with their built-in GEP so you have to implement something in C++ to send data from the telemetry plugin to the app
don't understand why, but ok π
i just refuse to learn to code, don't have the patience to check everything if something is wrong
you can disable the autostart. that's why they worked for the last year on a different solution, the new framework wont need to have Overwolf installed but just the app
no, with the new framework you won't have even Overwolf installed, at all. no background processes, no other softwares installed
when did that happen? cuz yesterday i had to install trucky again and overwolf needed to be installed
Trucky has not been ported to the new platform. is my task for the 2024 π
is a long story, when Trucky started as overlay program there was only Overwolf offering such powerful and easy-to-go solution for injecting overlay in-game without having to deal with c++ and hooking into directx.
Other than the "simple" overlay injection, Overwolf provides also API for recording the session with an internal OBS (is how the replay feature works), there are also other tools and quick API they offers joined with games, and lastly, offers to monetize the applications using their Ad network (which is mainly their principal business model)
over the time Trucky is grown "a bit" than being a simple overlay app and being on Overwolf make a lot of things way easier
someone may not like the concept but i talk every day with them, a team backed of nice people and awesome developers
yes, i'm the creator π not only the developer ahahah
but yes, their solution is simply plug and play: we tried at the beginning to go with an c++ hooking solution but we didnt have much knowledge to go in deep so we switched on overwolf, i'm a webdeveloper myself so not having to deal with c++ is fresh air (or the minimum i have to for the telemetry plugin)
I feel like this is the same discussion as native applications vs Electron. You balance between the time necessary to develop features and between possibly better performance/more possibilities.
indeed, is a matter of cost\opportunity
it's also a matter of tech knowledge: for example, how many good devs like Shawn you can find around knowing c++ and dx hooking rathen than web\js\frontend\react developers?
the same for mobile apps, for example: there are many framework now that avoid two develop two twin app for different operating system using web frameworks liek react native, cordoba or flutter
This is one of the many reasons we are switching to RmlUi from GWEN.
Thanks for the kind works.
But not just D3D11; you ideally want to support all graphics backends. So, OpenGL, as well as promised D3D12 and Vulkan.
the system reqs did recently change so even the minimum gpu has support for dx12
I just said promised π
Pavel has talked a lot about D3D12 and its possible improvements for the game.
well deserved Shawn, what you guys are doing with TMP is awesome
I have a problem, brothers
Is it development related
no it wasnt, they just posted it in multiple channels
Not entirely within the purview of anyone in this community lol
34.5 meter trucks are now allowed in Sweden from today. will developers change it in game too?
@quick ocean @honest oak @errant flame Please, use channels for what they are intended. As you can see in the channel description, this is not AMA for developers of TruckersMP; this is a discussion channel for aspiring developers.
what about degrading developers? :o
When release 1.49 for truckersmp


Typical TruckersMP mods deleting all my messages from this channel for zero reason π€‘
If someone gets banned, Discord automatically deletes all their recent messages. Also, please stick to the topic of the channel. If you want to forward feedback about Discord moderators to the management, use the respective system for it: https://truckersmp.com/feedback

https://adventofcode.com/2023 anyone else doing advent of code?
Never heard of it before today π€
Hi, i have a question. Does anyone have a VTC Hub to track completed missions like Trucky, but in Open-Source?
I would like the following features:
-
Missions
- Mission duration (in seconds)
- Speed :
- Average speed
- Max speed
- Cargo :
- Cargo (Weight)
- Distance (total and estimated)
- Truck (Name and model)
- Company (name and city of departure and arrival)
- User:
- Driver (Steam ID, Steam Username)
- Mission revenue
- Transport revenue/fines
- Indication of damage
-
Mission events :
- Retrieve all information on tolls, damage, etc.)
Chub does this, not sure about open source tho!
Can affirm, CHub isn't open source
chub looks very likely as the viva trucking thing
Use the sdk docs and make your own
do you have a link for me ?
ETS2 (Euro Truck Simulator 2) & ATS (American Truck Simulator) SDK plug-in. Telemetry data is shared via SharedMemory/Memory Mapped Files. - GitHub - RenCloud/scs-sdk-plugin: ETS2 (Euro Tru...
Could automatic headlights be supported from 7pm to 7am?
Because automatic headlights will be active at 7:30pm.
does anyone know when there will be snow?
development 
@polar hazel @ashen ivy Please, respect the topic of the channel; this is a discussion for aspiring developers.
After the last update, the sounds have changed, for example, the engine starting sound is heard and after changing gear, the sounds stop.
That would likely be a concern to raise to the SCS devs, not TMP devs
The game I am working on at school. (The game will be inside the canvas)
do i need to hang men on trees there? 

Yes
How?
dlcs: { dlc_id: "DLC Name" }
nope
but then dlc_id is dict not string
wait let me show you something
@paper hound nub developer 
i agree
i agree too
do you remember the other thing you have to agree with?
no, what other thing?
bedtime
ohh


it works

i just remembered i can remove some logic from that file
cuz we no longer have multiple events per day 
so how do I access it then
the names? e.g. Vive la France !
wait
event = data['response']
event_info = {
'EventName': event['name'],
'Description': event['description'],
'Game': event['game'],
'Server': event['server']['name'],
'EventTypeName': event['event_type']['name'],
'MeetupAt': event['meetup_at'],
'StartAt': event['start_at'],
'DepartureCity': event['departure']['city'],
'DepartureLocation': event['departure']['location'],
'ArivalCity': event['arrive']['city'],
'ArivalLocation': event['arrive']['location'],
'Dlcs': event['dlcs']['dlc_id'],
'Featured': event['featured'],
'AttendenceUsers': event['attendances']['confirmed'],
'AttendenceVTC': event['attendances']['vtcs'],
'VTCName': event['vtc']['name'],
'EventLink': event['url'],
'Banner': event['banner'],
'Map': event['map'],
}
stackoverflow told me dir(event['dlcs'])
wat
π€£
i was thinking the same before but i got over it 
Unfortunately I have to get over it
When you publish a paper people expect the public repo to be in Python in NLP
Sadge
probs a easy lang to learn
Javascript is so hard 
π―
Probably one of the easier languages youβll find, especially as you potentially branch into systems programming
Well I started with JS about 4 weeks ago and I still donβt understand anything 
world
How are you learning it?
From a very boring teacher so really I donβt learn anything
I took a codecademy course which was probably the best decision Iβve made
nah
they semi are tbh
As a 3rd year software engineer major Iβll confirm
Abdul Bari taught me most of algorithms
yeah the americans cant teach
only youtube videos from india
yes
chatgpt
I have good profs I just can't pay attention in class lol
my guy writes code in the minecraft font π
I tried to do that and then wondered why I was getting migraines 
I'm a Fira Code guy
Give https://monaspace.githubnext.com/ a try, it's Github's new coding font (wip)
Ah yes, that's the one my friend uses a bunch
I don't really stick to any one font cause if you include campus, I'm usually working on 5 different machines on any given week 
And god campus computers resetting every time you log out makes me not wanna bother with fonts
Oh believe me, I want to, I just can't / can't be bothered for a lot of stuff I do on campus
I have my PC at home, my Macbook, my TA computer, the computer commons PCs (basically only when I need Maple, but I'll use them for projects from time to time) and then our RA computers when we get those solidified (because nice powerful architecture for training models)
I should probably just enable Settings Sync huh 
I once used my digitalised handwriting π€£ and since I can't even read my very own handwriting (surprise surprise) I basically wrote blindly 
End of story, I switched back to JetBrains Mono 
its nice tbh
it was weird at start but now i cant tell if its really any different from other fonts
Jetbrains Mono is very nice as well
I also religiously use Jetbrains products so maybe that's where that comes from
Day to day workflow involves any combination of IDEA, DataGrip, PyCharm (eugh), Fleet, RustRover, etc
Might have a look at this
Hi, I'm here to get some leads.
I'd like to know if anyone has a VTC Hub like Trucky (with API), or their own system with API. I like Trucky, But, the problem is this:
- Their economy system is Good, but boring when you make accidents, and what I would like, is my own system to display it on my database, (with mission events), BUT, without negative money for accidents.
Remember to DM me if you want to help me
Thanks
Contribute to dulcisvtc/webapi development by creating an account on GitHub.
everything it does is just storing jobs that it receives from tracksim, though 
and sends them to discord 
I search executable not a discord bot.
You use redis. I use phpmyadmin
and you shouldn't use redis as one either 
what are both?
we use mongodb
redis for caching 
Mongodb I don't know why I always have problems. My data is stolen and they say to pay via bitcoin
While my server is secure
redis is a KV database to store temporary data for specific amount of time (or permanently), e.g. cache, as an alternative to in-memory cache.
PHPMyAdmin is a web UI to manage your MySQL or MariaDB or whatever db
do you happen to leave your connection uri for public?
well, if someone connected to it, means it's not limited to your VPS 
and ip whitelists aren't really reliable
Bah. Yet even I connect via my local ip. The mongodb software refuses to connect me.
well you're not the one asking yourself to pay BTC to get the data back 
But with vps is good. And i'm the only people to get Access with my vps
I remember accidentally replicating the behavior of redis to an extent
Used a local sqlite cache for some repeat call speed and it took me 3 days to be like βwaitβ¦β

check your mongodb configuration: by default mongo is installed listening on all interfaces without authentication, you have to secure it enabling a couple of options in config file. i know it's crazy but the default mongo installation does not require authentication
Hey guys is there an api I could use along with node-fetch for some commands like to fetch ban history and server stats?
Thank u so much bro

Hi, does anyone have a list of all possible cargoes (by game name, e.g. "dozer" (not Dozer Crawl - Z35K).
I found this, but it seems to be out of date or wrong on some names.
Hey π
You need to unpack def.scs and all DLC, where there may be cargoes, parse all sui files from def\cargo to make your list of IDs. It is also important to remember that the cargo list may change even in minor updates of the game.
Okay i test this tomorrow
we urgently need an admin on sim 1? there are now 30 reports
Not development related
Even if this was the right place to ask that, 30 reports is nothing
anyone tried playing TruckersMP on Apple Silicone Macs using Game Porting Toolkit?
Hi, how to found all trucks in png for ETS and ATS ?
cleanly (so that the truck is visible)
Finally started learning how to mock up web pages with Figma
Can you tell I suck at web development 
I got two domains for 48 cents so naturally I need to spin up a TMP site and a personal site
Better then me
But tbh I just go for it
Hello, I have a proposal about adding a car to TruckersMp I know it would take a lot of work but here is my proposal:
Hello I would like to add a car more precisely: "Bugatti Chiron"
This is my request, I hope it would be possible.
Merry Christmas
I suggest you read the channel description π
that's an expensive request 
keep dreaming
π‘
if you make it for them for free ofc. they can check with the community and maybe add it as patreon vehicle so it gets rotated
what is on the database
You could potentially also use Redis as main db. Its quite frequent these days.
common?
Mongodb for the win
still a similar meaning 
Just why would you use redis
Having only one DB simplifies the project.
Quite many projects customers pitched to me so far use redis as main and only DB
And redis is capable to be used as actual DB
It is sort of but mongodb is more reliable
What makes MongoDB more reliable in your perspective?
Me and my friend used to use redis and it would always fail on us
So we switched and itβs been fine since
Don't want to sound harsh or inpolite, but maybe u used it wrong in some way? Can be a rough start
I never had issues with redis
Definitely used correctly
Hmm interesting
I was using redis quite couple of times in professional and private environment, never had issues (except if I made a mistake)
Personally, I only used MySQL (MariaDB) so far and never had any issues.
redis is great as a KV cache but it requires quite a lot of configuration to make it a durable and secure primary persistent storage... I'd use something that's more geared towards that out of the box
Fr
You need to configure any DB for a proper secure usage in a productive environment (:
there's a pretty big difference between "up to 10k changes may be lost if redis goes down unexpectedly" and persistent-by-default, but I didn't even remember the biggest drawback of redis as a primary db in my tiredness last night: it's fully in-memory.
we have a lot more data in our DBs than memory on those servers
theres a bug on the road near hamburg https://www.youtube.com/watch?v=Ix5XpFL9Erc
What has that to do with development?
Hey @quick bone! 
https://discord.com/developers/docs/resources/user#user-object if you don't want to use a 3rd party API
need to have a discord bot token then 
oauth2 is probably easier assuming people are authorizing it
forgot about that one
Ah thx
Am I just getting really bad luck with the example users I'm picking, or did we stop showing ban duration on profiles?
Could have totally missed something or coincidentally picked 3 users who were all permabanned
haven't used the api in months
Yeah it doesnβt show the duration anymore lol
which is sad tbh
could've at least made it show the duration if the user has theit punishment history on public
I havenβt seen someone with it on public yet
hi guys i have an question on how to make sat nav mods
explains why i flew to brazil
Modding is discussed in #ets2-modding and/or #ats-modding.
Unbelievably unfortunate my day is ruined

whos interested in collaborating on something?
Hello, can you enable mods on TruckersMP pls.
Hey @lusty rampart! 
ProMods Europe 
(including Middle East & The Great Steppe Add-On)
Trailer & Company Pack addon is not supported.
βοΈ Grimes' Winter Mod
& 
We do not support other mods and/or Steam Workshop items.
and local mods
Workshop mods ist enable ?
nope
How is this development related
can some1 help
If you could elaborate in what you need help with we could help you better π
whats the best app to do a custom paint job
How is that development related? Also, depending on what game, #ets2-modding or #ats-modding would fit better for that question π
blender
threw together a quick mod enabler/disabler since i noticed truckersMP checks based on the filename, so adding an "INACTIVE_" in front disables the mod
still gotta add some buttons to quickly disable/enable all mods
https://github.com/unquenchedservant/TMP_ToggleActiveMods I added an active release, windows only currently
Hi guys,
after some time I decided to do something with Wordpress again.
This time for the VTC I recently joined: https://twl.hakuryuu.net/
Oh yeah, I'm aware that the pics load slow, gotta scale them down a bit π
Any opinions or suggestions what to improve? π
is anyone a developer here?
Nahh, I just pretend to be one 

i wish i was one
Same
totally agree
Where does the "ping" in TMP's scoreboard lead to?
I'd say to the Server you are connected to?!
This part just screams ChatGPT generated
https://i.doggo.dev/i/HRiT8LJuN
100% of the text is GPT generated π

Diegoooooo


I think my favorite personal talent (and the only benefit of my research) is that I can immediately sniff out GPT text 
GPT loves those "furthermore"s
Hello, I wanted to ask you if anyone understands sdk - telemetry, how can I create my own telemetry and have the speed written to the console. I would like to learn how to do this, but there is not enough information only in the github resource
Yeah I def. have to improve some texts here, thanks alot for taking your time and providing feedback guys π
SDK for ETS2?
Some time ago, I came across this repository that provides a quite user-friendly API, but I'm not sure if it works with the latest version of the game https://github.com/kniffen/TruckSim-Telemetry
Here is the data that the SDK sends: https://github.com/RenCloud/scs-sdk-plugin/blob/V.1.12.1/scs-telemetry/inc/scs-telemetry-common.hpp
For python, you can get a dict of them with this package: https://github.com/dreagonmon/truck_telemetry?tab=readme-ov-file
ETS2 (Euro Truck Simulator 2) & ATS (American Truck Simulator) SDK plug-in. Telemetry data is shared via SharedMemory/Memory Mapped Files. - RenCloud/scs-sdk-plugin
Can anybody tell me how to solve CORS policy issue I am creating small web app using truckers mp api on react but it's showing me api has been blocked by CORS policy
you need to make a reverse proxy for TMP api
and add the cors headers on it
you can use Next.js api routes or fetch the data on the server
@mighty rain Ohh yeah it's working thanks buddy 

anyone understand the goddamn scs sdk?
cause i cant get it to simply sends some rpm data to my js website
well either way I am getting this when loading my plugin
unable to load: 0000007E
nvm now its unable to find any required function inside 'Tracky'
is anybody good with skinning open def trucks? i got it to work 1 time where the background doesnt show, but ever since that, the template or just plain white shows behind my decals
that's be closer to #ets2-modding / #ats-modding
@last sphinx
oh ok
Reading is a complicated thing 
ikr
This is not related to developing.

Why is JavaScript so hard to understand 
How so?
I can understand it kinda okayish... but writing? hell no 
Because it just doesnt make sense 
I don't understand both
Itβs usually good to solve those understanding problems one at a time
Read through the docs, start with basic code bases
If you have a blanket lack of understanding, itβs usually cause youβre just in a bit over your head
do you use Python?
No we've only covered HTML, CSS and JS but those teachers explain it so bad that I don't understand anything or I just can't focus because of it
nvm then 
Codecademy has good annual student discounts and is very project based
jQuery might help you
I feel like this is more of a bandaid, it's best to struggle through learning vanilla syntax so that jQuery makes sense instead of vice versa
May lead to some less than desirable programming later down the line if we understand jQuery but we're like "oh god what does .filter do"
JS is fine to work with, but the syntax does not work in the backend
I used to be a node fanboy and be like "Yea JS is awesome" but it meant it took ages to get something done
Now when I got introduced to php / laravel, god almighty my life changed.
have you seen nest?
Heard of it, never looked at it
I feel like this is very subjective. JS does not only have to be React or Next.js, there are other awesome frameworks like NestJS.
plus the argument that not every language is suited for everything, if my language has orthogonality for my specific purposes I'll likely still use it to get it done, but I'm also open to learning other languages within reason
I've used it for most things from API design to desktop apps with Electron and it's just something I'm familiar enough with, plus working on a bot in 350+ servers teaches you to be smart about scalability practices
JS is awesome
Shawn just said what i wanted to say
it's similar to what laravel or spring is. I'd say it's closer to spring though.
They go with important stuff in their documentary. I like it 

lolol
How do you join these two strings then so it will be echo'ed correctly?
Since I can just simply do "A String" + "Another String" would output as "A StringAnother String" 
string concat in php is . not +
That explains a lot then 
CPP for the game and PHP for the website afaik
ye i guess
PHP, specifically Laravel for the Website 
I should sit down and actually learn PHP
laravel is a PHP framework 
I've really only used the templating
Well.. I heard of people who are good with Laravel, but don't understand basic PHP stuff

@shadow marsh not that much of a leak 
Ah yes, the trap of "I understand the framework, therefore I understand the language"
Awful horrible no good very bad
thats why I put "
" to it too π
ah fair play
that information is not new to me tbh
But thanks for updating something which has not had the need to be updated 
For me it's the opposite
- I understand PHP but not Laravel 
Assembly x64, C, C++, C# 
Pascal 
oh god
4 different languages? Just for the game? I suppose...
I am not memeing, we're using all of those languages

Assembly x64 for modifying the game behavior, C for some libraries, C++ is the main language of the game client, and C# for scripting
Thats..... impressive π
And I tried making a MP in Java for OMSI2 - I guess I kinda know now why it failed π
ngl knowing all that is quite impressive π
and actually using it
If you want to modify a game, you definitely need to use Assembly x64. Then you can use pretty much anything, although, C++ is gonna be the "easiest" imho
Yeah... in the end OMSI2 is definitively not one of the best choices to make a MP out of it π but yeah... I just stay at bot development - at least I know what to do there π
Assembly is great, probably one of the best languages I've put effort into learning
I did most of advent of code 2023 in MIPS (using assembly alone was already bad enough, wasn't gonna use x86) and it taught me a lot of really low-level patterns
Doing AOC in MIPS/Assembly sounds like torturing yourself but you do you π
That was the goal! 
It made my computer architecture prof laugh so that made it worth it
Like, sure, you can learn a lot about low-level patterns. But I feel like you can achieve that with C, too, which is much more bearable
It was more an esoteric example of how AOC could be done, forcing me to conserve registers and stuff was a pretty good exercise
Also, oddly enough, I know more assembly than C
livewire has a place in my heart β€οΈ
its basically javascript 
well, comes out as javascript
judging by their docs landing page
Does all the weird js for me but i get to do it in php
I prefer Vue over Livewire
Livewire is a gift of the gods
nice virus
fr
YEET
GPT didn't actually do a bad job 
(minus some custom regex for the dataset answer field)
How can I get my dedicated server for ats to have optional mods for my users
that's more for #ats / #ats-modding and has nothing to do with coding.. not really.. 
.

looks a bit off now doesnt it? 
Don't see any issue 
anyone know if Add-On Team Recruitment is now open! is a intern thing or are they paying...lol
Theyβre not payed. Every position you can apply for is a voluntary thing without any payment or anything else.
i wanted to apply but couldnt
he is advertising some "money earning" discord with electronic products
π

How could I go about doing this. I have made a modal to request a role and set it up to send into a separate channel, all working. The embed that sends into that channel has 2 buttons, accept and deny. Id like to have it so on press by the HR team it will give the user the role. What would be the best way of this?
Discord JS v14
Check the roles of the one who clicks the button, Iβd say. If the clicker has e.g. the HR-Role then do the rest, else throw an error message
I fell in love with Discord's Button.
Also the Modals are so
to work with
(Yes, I totally did not make what a simple channel/forum could've done, overcomplicated via bot
)
Looks good! Don't forget the space between Suggestion and board in the title π
Oh, right... yeah π
Thanks, did not noticed 
I wish that you could change the colors of the buttons (except using grey, red and green/blue
)
Iβve got to figure out how to set my buttons up, so when accept is pressed by hr it will give the role and deny will delete the embed
Got the modals working
Well, I don't have a permission / role check behind a button yet - also you are coding in JavaScript, I in Java, so I couldn't really help you out anyway, however good luck figuring it out 

What's the experience been like with that so far? Always wanted to try it
Also I agree with the color gripe, I just make up for it by setting emojis 
done it
I definitely need to get back into bots
I've spent 10 months on research and basically no time on application 
Oh I'm well versed enough with them, just haven't had time 
π
I should be helping out the team working on getting our bot to run in more than 500 servers without clusters dying 
Yet you should just start and you see where it goes
applies too then π
Definitely my first time toying with scalability
I've already optimized our DB but there's still a fair bit of cleanup from prior awful devs
π
discord bots now can have animated avatars 
thats neat π
from what I understand the application owner must have nitro though
yeah, okay that's a legitimate condition ngl
at least they did a few years ago. when the application owner had nitro, the bot was able to send messages with up to 4096 characters instead of 2048
the thinking reply wont work
you have to editReply after
i tried ```js
return interaction.reply({
content: 'Request successful!',
ephemeral: true
});
if (!BotClient.ModalsData[button]) { return;}
const ModalData = BotClient.ModalsData[button];
if (!ModalData) { return; };
return ModalData(BotClient, interaction, MusicPlayer);
}else{
if (interaction.isModalSubmit && !interaction.isCommand()){
const submittedModalId = interaction.customId;
if (!BotClient.ModalsData[submittedModalId]) { return;}
const ModalSubmittedData = BotClient.ModalsData[submittedModalId];
if (!ModalSubmittedData) { return; };
return ModalSubmittedData(BotClient, interaction, MusicPlayer);
}
}
if (!interaction.isCommand()){return};
if (!interaction.isChatInputCommand){return};
if (BotClient.SlashCommands[interaction.commandName] == null){return};
return BotClient.SlashCommands[interaction.commandName](BotClient, interaction, MusicPlayer);
});
π
your isModalSubmit lacks () 
Jesus christ 
currently it will always be truthy because the method is always there 
thats probably why you added an isCommand check
let me test this
and this 
I always have to do that or just event.deferReply(true).queue();, then the bot sends out the thinking message 
hmmmm
Iβll do it tomorrow my heads hurting π€£
good job β€οΈ
personally, I created a system with the vtlog software, so that we receive our deliveries on discord via my bot, and the information of the VTC TMP and VTLog
Ooh Yh
Iβll figure it out then use it but now Iβve just made it so when they click gain role theyβll get it
itβs already a good start in real life, personally I think create a public bot for the various VTCs with the TMP api, VTLog
Iβm going to stick with developing for RCS.
that's what I'm doing 
Hi, where can i find a detailed ETS2 map? (better with TMP's modifications, not needed) I'm trying to do a program in python using truck-telemetry, that saves the position when I hit ALT+C to save a video. I want the coordinates to be shown on a map, where the video was taken
Hey, I want to know if STEAM Deck owners get a small app to join the TMP.
afaik TMP won't work on steamdeck
The ROG Ally is windows, that might work, Steam deck isn't, it's Linux based
Only if you install Windows on the Steamdeck 
can have Steamdeck also with windows,tho
Install windows 10 on the steam deck easy! Full guide windows 10 install on the steam deck. complete with all update guides for windows 10.
Windows creation tool: https://www.microsoft.com/en-us/software-download/windows10
Steam Deck windows Drivers: https://help.steampowered.com/en/faqs/view/6121-ECCD-D643-BAA8
Feel free to DM on my Socials
...

there are community tools to run on linux but we don't endorse or support them




