Valve disclosed a bug submitted by @moskowsky: https://t.co/rEHP25Fd6m - Bounty: $20,000 #hackerone #bugbounty
Likes
170
1 messages Β· Page 18 of 1
Valve disclosed a bug submitted by @moskowsky: https://t.co/rEHP25Fd6m - Bounty: $20,000 #hackerone #bugbounty
170

π
π
Stop it plz
QBasic: I am not suited for memes
Programmer: doing meme on QBasic
QBasic:
π
hehe
lol
i hate how most programming languages include an IDE with zero effort put into it
and how nothing works in vs code :/

most languages I've dealt with don't have developer-made IDEs, or at least not defacto standard IDEs made by the same group of people
Python works well in vscode, when you try to edit a python file it will suggest to install the python extension automatically
I'd be honestly surprised if vscode didn't handle python well, considering MS actually supports python quite widely now
I'd be surprised if there was a widely used language that vscode didn't have good support for
they even have a tutorial specifically for python: https://code.visualstudio.com/docs/python/python-tutorial
Trying a few different interfaces
Guys, interesting question. Github just got acquired by Microsoft. Github has an Atom IDE. MS has a MS Code. So, in your opinion, what would become with Atom?
But why?
I think they'll probably just keep both, but we'll have to see
I use bitbucket too, private repo for free, API, webhooks, continuous integration
I use gitlab personally
GitLab 
What's wrong with GitLab? π
Nothing that I know of 
Nothing
GitLab <3
Gitlab is great
about Atom vs. Code, I doubt MS will do anything against Atom, as Atom components are upstream of code
nothing against gitlab.. but what's wrong with bitbucket too? π
when I evaluated things for TMP's use, bitbucket didn't let you require 2fa on all members of the team
~~ actually, looking at it again now; doesn't even have 2FA ~~ (Looked in the wrong place)

and only 50 build minutes
TMP's CI does almost double that, a day
slight overstatement, but yeah, we'd consume 50 minutes in less than a month
each CI run takes 3 1/2 minutes, 91 so far in November
we've peaked at 411 jobs
each one has to tier the service use based on own needs, it's normal
a lot of the time is spent on dependencies, and prepping backend services needed for tests
a nice benefit with docker
we run everything in dind
have you tried Travis CI @amber oasis?
things stay set up to the earliest step that changed
it's on purpose that we don't transfer states between tests
yes, I've tested Travis, a bit like using a canon for the needs we have 
gitlab's own CI daemon is just about what we need, and hence use
for building apps Travis is really good
gitlab's CI is just fine
I used it when I was using gitlab
not complicated to setup and did what I expected it to do
but gitlab itself was too big of a resource hog
do you use gitlab hosted or cloud?
gitlab-ci allows us to build containers with ease, and tear up and down services on the fly in docker, with each branch having indempotempt testing environments that doesn't affect another branch's tests
self-hosted
we used hosted until the major outages they had like 2 or 3 years ago
when someone took out their storage by tabbing in bash 
that was funny
like all funny things :D
gitlab for us isn't a big hog to be honest
for small personal projects, sure
but for our use, it's in that sweet spot
for personal stuff, I'd use Gitea or what it's called 
or just hosted gitlab or github
it depends if you need a complete dev env with ci or if only a repository
at work we used svn for a lot of years and it do the job, as source control
biggest issue with SVN etc. is global locks, in my book at least
global locks?
on individual files within a branch
in a typical SVN workflow, you'd lock the file before editing it
that's Sourcesafe :)
SVN doesn't need individual lock, same file could be modified and then merged
big note: not used SVN or similar in well over a decade
git serves all my needs, and I'll probably never work in a shop where git isn't used
git has a different approach
and well, refuse a job because they don't use a certain source control... ;)
More that my job is sysadmin, not developer π
uh grumpy cat behind the servers :D
a fluffy one
I do development/devops at work
how to i add different containers/sections on a website page
i have the div class and id
still not working
wot
one below another?
got them both
by default divs are display:inline without dimensions apart its content
aint working
or sm-12
and @raw notch divs by default have display block
i genuinely cant remember...
bootstrap and foundation make me ignorant
Has anyone used laravel and vue together? If so I have 2 questions, if I go down the route of using vue components and then just loading them in to my page, how do I pass data in from laravel? If I was to go down the fully SPA route how would I handle authenticating the user (most likely use passport) but not sure how to store the access token etc?
Thank you, I've been looking at using JWT instead and then using Vuex to store the token
Be careful with JWT. It is not a secure standard, treat it's content as if it was just a plaintext cookie.
Don't store the userid in a JWT and then just use that to check if it's the real user, or anything stupid like that
And yes, that makes JWT mostly redundant. Which it is. It adds complexity, and doesn't solve any issues at any scale except huge enterprise.
@rugged copper
Yeah I wasn't planning to store the userid at all but this is really helpful, would you recommend using Laravel Passport instead then? If so, how would go about protecting the client id and client secret. Can't really store them in javascript
You cna use the auth flow that doesn't require the secret, can't remember it's name. It just returns the bearer token after login, you skip the second request from the server.
Or just redirect the user to a different page out of hte app for the login, then redirect them back with a session token that is then set in a cookie
So, user clicks login. Front end redirects user to backend/login. User logs in. Backend redirects user back to frontend/auth-callback#token=SUPERSECRETTOKEN. Frontend stores it in a cookie, it is treated as a session cookie along the lines of a normal app. Send it as an Authorization header on every api call to the backend
After the initial login, the frontend can use an api endpoint to cycle session keys and stuff then, without needing to authenticate again to do so
So basically once the user has logged in and it's successful it would return an API token which would then be stored in a cookkie. Then each API call would pass the API token?
Each api call would include it ye, on as a Bearer token in an Authorization http header. (so the session token would need to fit as a bearer token)
And ofc, make it long enough, and don't have hte same token for 5 years, it's good to cycle it behind the scenes (change the token without hte user really knowing, on a pageload)
Essentially, treat it like a normal session token π
Amazing, thank you so much
What's the difference between something like this and JWT which returns a Bearer token?
Since you'd essentially store the same token in a jwt, not that much, but it's a bunch of complexity that doesn't add anything gone.
If you stored other stuff like the user id in a jwt, then that would have had a huge security impact, whereas storing it in a serverside session would be secure
Ah okay, is there the token you are talking about? https://medium.com/@danielalvidrez/how-to-use-laravels-built-in-token-auth-6b6f6c26d059
As pointed out in the post, the built in token guard isn't the best. A token can be good if done well, but I'd rather use Passport in Laravel, since I know it's decently solid
I haven't reviewed the token guard in laravel
Yeah, I've looked at the passport but couldn't see the option with out a client secret and id
Laravel - The PHP framework for web artisans.
Implicit grant is the one
Instead of the normal flow, it just sends the user to the callback url with the accesstoken, rather than an authorization token that is used to get the access token
You remove teh security layer of the secret, however, a malicious actor still won't be able to just use your client id and get people to their website, since passport will check that the callback url in teh login requests matches the one for that client id
I should get back to writing a documentation piece for TruckersMP on how devs in the community can develop secure stuff when they develop unofficial tools, vtc websites, etc
π
Ah that makes a lot more sense, thank you! Yeah would be nice, this is for a non community related project but would be a helpful document
@north flax I take it the when you redirect the user to /oauth/authorize the user is presented with the login view
@rugged copper iirc ye
Can you do it similar to password grant tokens where you pass the username and password in? So I can use my Vue login component?
I believe yes, but I would guess you'd need to use the secret key
aka would need a server component
I haven't looked at that flow in specific much though, and it's a while since I implemented passport for TMP :p
It's all on the same app if that makes sense, Vue is just handling the frontend for laravel. So guess I could have a route to handle that
Is there anything wrong with sending a POST request to an endpoint like /api/login which then makes a password grand token request and then returns the access and refresh token?
Problem with the implicit Implicit Grant Tokens is that ideally I want to use vue for the whole frontend and not redirect to the user to the "built in" login page
@rugged copper whats your end goal or achievement for this?
@autumn pagoda I have a laravel application which is setup as a SPA using Vue.JS. It also uses the Vue router (so the laravel one is overridden). I need a way to auth the user so my plan was to once the user has entered their login details in the Login.vue it sends a post request to say something like /api/login with the username and password. This endpoint would then make a call to laravel passport (so the client secret is safe as server side) and then return the access token which I can then store in a cookie or local storage for x number of days?
@rugged copper would work. Might be able to make a token with passport without needing to actually do the password grant process, if you just have everything in one laravel app.
Make sure to clear the content of the password field variable in vue when they submit though, so they dont end up having a password stores in browser variables longer than absolutely necessary
Just in case of someone managing to load a malicious script after login, or someone getting access to someones pc when they've just logged in, etc
@autumn pagoda do not share programs to avoid intentional automated kicks here.
Thanks @north flax will take a look and see what I can find
Passport returns an access token and refresh token, but was planning to store the access token for like 7 says and then when expires ask the user to log back in?
You can set it's expiration timer, iirc
Yeah I can do that in passport and then when make a call if it returns the it's expired, ask the user to log back in
@north flax sorry
This question is for TMP Devs. Is there any console command which would kick me out of the game instead of waiting 10 mins for the auto kick? I know it's weird to ask but I need it for a particular purpose.
Another quick question, because there's a bit of a debate about it. If I'm using sass should I include the compiled the css in git? or not and then when deploying, run npm run production etc
depends if you want to have node and npm installed on your production hosts
we don't deploy node onto production hosts, they are kept to a bare minimum, so css/js has to be checked in
my new game: build up a new warehouse
electric cables, access point, fiber switch, barcode scanners, termic printers etc etc
Woo


idk if this fits here but it's hilarious: https://cdn.discordapp.com/attachments/473658772099694612/516015732946108457/sJBnNLU.jpg
that last one should be a standard
thank you for the laugh :D
heh
that story has been circulating the internet so long that it's supposedly from a russian bash.org now 
still good though
someone in my office bought the same coffee machines we have around the office to see if the last one was possible
it has ethernet, but nothing of emidiate value was exposed π¦
it runs linux though
hello
oof
Here is how the entire #pewdiepie printer hack went down:
(1/)
242
864
ahahah
π
@naive anvil Decompiling? 
You want a custom tracker for Dynamic? 
Not meant to offend, but that's the first thing which plopped in my mind when I saw that you want something decompiled
for future reference, this is not a place to ask people to reverse engineer, decompile, or advertise recruiting a developer of any sort. This is a place to ask for help with your own source code or ask for help on where to get started
as an end-user/developer: yay
as someone who cares about standards: D:
That leaves Mozilla, Google and Apple on the W3C board with their own engines, with Google alone having a significant majority
People here doing advent of code?
π good job
not in rust x)
π
Lmao imagine hacking millions of people's data because u were bored
well there isnt 
Ree ftoggy server is down
Y'know, anythings open source if you're smart 
π
You do not have to send only emotes here
@amber oasis Happy Birthdayπ
@amber oasis happy birthday π
Happy birthday (Sry i'm late)
So I'm about to start developing a fairly large application using Laravel and Vue, it's just me working on it. What would your recommendations be for using Git? Should I bother while I'm just developing? Should I or should I not use git flow?
In any cases, using Git is a good idea. You won't need to have separate folders for each experiments you'd want to produce, and you will be able to check files history. Ofc, cloud Git hosting like Gitlab will serve as a backup too.
Anyway, using Git is a pretty common part of programming
And what's your opinion on git flow @unkempt hamlet? I see the benefits for a team environment but for a single Dev? Would master and dev branches be okay?
As a single dev for TMP Helper, I have many benefits if using git, as I explained above. Branch count and naming is up to your needs.
I definitely see the benefits of git and will always use it, but there seems to be a mixed opinion about git flow. Thank you though, one last question. The project I'm starting (outside of community) is fairly big, it's a Laravel SPA app with Vue js for frontend and then an API for the backend. Which is the best way or easiest way to develop. Build the frontend first, build the backend first of build both as you go?
Build front end first and backend after
So you can see how everything connect to each other and should make your backend code better in the long run
Thanks @tardy smelt
@rugged copper git flow isn't very beneficial for a single developer, but if you don't know how to apply git flow, it's a good time to learn how to apply flow practices to your codebase
I know how to apply git flow just wanted to see what people's opinions were on it and more specifically for single developers
Mainly about queries :p
This does not belong to this chat ...
FYI, other users are reporting that tmp client has that issue (download loop)
Yep, we know about it. It should be fixed now
π
So, I did upgrade to Mix v4, it was smooth. Also, babel-updater is the savior.
Sooo I managed to get Steam auth working (π)
Bit nicer than having to find a suitable link, taking the ID off that and crossing your fingers π
What are you working on? :p
@opal arch I wrote something private on the forum TMP π
Well, login via Google would be awesome, too :p

they're all pretty much the same
They are. Depends on what he wants to do
just different variables plugged into the same openid connect handshake
Well I don't really need Google for my thing π
@ember canyon And thanks, but not sure if I use it π
if you gave me the original image, it would be better π
help rip forum
I believe this isnβt the right chat for that, check the channel description π
Please, this channel is not about contacting developers due to TruckersMP problems. Stick to the topic of this channel.
On another note, I have not noticed how much Laravel does for us in terms of registration and similar stuff. With overriding a few methods, you can get completely anything what you want in a few minutes. 
Just thing, that needed to be completely changed, was registration - I needed it via the Steam login
Isn't that funny π
Merry Christmas Developer 
Can you ping spoof in ATS or ETS? xD
No, that would be considered bug abusing/hacking, I'd also read the channel topic 
Any suggestions to store none English characters into a MYSQL database... issue is there is an i the same height as a capital letter (so none english) but it wont store
@autumn pagoda Use UTF8?
@quick glen is set to that but not working
Everything is set to utf4mb4 yeah? The db, connection, etc?
Ah like this @autumn pagoda: Δ°
@unkempt grotto yeah
@quick glen still new to pdo so not sure how to
if using the TMP API, do I need to tell it what char code to use?
think this is done correctly
https://i.dubstepmad.com/22.19.21-26.12.18.png
Ah, in mysql utf8 isnt "utf8". Utf8 is utf8mb3, whilst you want to use utf8mb4.
Apart from that ensure that your scripts are also running in unicode/utf8
@quick glen
is it best to force everything to use utf8mb4?
got it working now, thank you guys π
π
does anyone have experience with electron?
Any idea how to access the DOM of a webview?
I can't even get it to work with ipcRenderer
Ummm
I honestly have no clue xD
Sorry, it's been a while since I messed with electron
I ended up figuring it out. I wanted to manipulate the DOM throughout runtime.
if works like in react native, you could inject JavaScript inside a webview and send commands
Turns out I needed to send it to main webContents, then through to webview
Β―_(γ)_/Β―
it's the same way the live map works in Trucky
I thought I only needed one ipc call, but turns out I need two
what are you doing in electron?
I wanna make a YouTube music client
There's tons already, don't waste your time lel
uhm... YouTube is not a YouTube client already? :D
and was talking about a desktop app
Is the API for server statut is public ?
It was public since day one
In pinned message
yt
Is anyone working on an economy mod or something to make this more realistic? Like adding ability of becoming a broker or such? Also I think the weight scale should be more realistic, like they have you pull around for an inspection and if you have x amount of wear or damage it's an out of service violation. And the weights on loads should be something you have to make sure your good for. I cannot tell you how many times I've had to have shippers take a pallet off cause they are trying to send as much as possible
"This channel is not about contacting developers due to TruckersMP problems. Stick to the topic of this channel."
more suitable for #ets2-modding or #ats-modding. But even then, I can tell you that what you want is not possible in ETS2/ATS
π
It wasnt a problem. It was asking if anyone is working on such a thing
Might I ask a question? is it maybe possible if you add new lights to the pilot car in ets2 and maybe a new vehicle? I question only because its "TruckersMP" only addons and I bet a lot of people would like it?
@wet flint This chat is not for contacting devs, but rather for general chats about development. You can make a suggestion about that over on the forums though, in the add on area: https://forum.truckersmp.com/index.php?/forum/544-add-on-suggestions/
Thank youuu
GitHub Free now includes unlimited private repositories omg
inb4 it is capped on 3 contributors so whatever, gitlab β€
bitbucket :D
Bitbucket is capped at 5 collaborators in private repos iirc, and it's accross the entire account
So 5 collaborators on one project = none on the others
@ember canyon Please refrain from posting useless content, such as emojis like you did in the picture above. If you have nothing useful to add, then don't submit it.
ok π¦
Any way to emulate a mobile screen for a website?
Using chrome dev tools but not sure what settings are needed
@autumn pagoda Open devtools, click that, select the device you want to emulate
Any of the devices that is a phone would suffice really, I like going through a couple of them while testing
@quick glen Sometimes can look different compared to my phone
Well yeah, but you shouldnt design for just your phone now should you? If you use the edit option you can add more presets, and even add your own
@autumn pagoda when you use mobile mode on Chrome, it emulates the Chrome for Android engine and touch events, so rendering could be different from your phone but the functional experience is the same
@raw notch
I need to visually see the changes made and see how it looks like on a mobile though but without actually using my phone
Will try thanks guys β€
use the mobile view is better than shrink the browser windows and is quite close to real one
Yep
π
Woooah 





Anyone wide minded in HTML? In need of development assistance for a Company.
if you have a quick question, just ask. If it's a bigger project, might be hard to find help for free
I feel like there's gonna be a few people here who know html
fixed a few bugs from 2 years ago π
and got statsd added so I can actually tell how much processing is being done
Woo
as it turns out, running chgrp on 16 million files takes some time

CJ
best answer 
CJ is the Developer xD
In all seriousness, Google is gtg for that questions. There are so many different sources, even screencasts and websites π
CJMAXIK π
That is CJ π
What's your preferences about programming language?
Actual programming languages documentation 
It's fine
Honestly google is the best place though xd
Loads of stuff for python on YouTube, that's where I learnt
Youtube have a lot of tutorial for any type of coding languages
i would never watch a yt video to learn one they are either too basic, too long or usually both
Is anyone familiar with moving files from a Linux based OS server to windows via the command prompt?
I'm getting the correct file path for the file in the server but it is saying its an incorrect path on my side... I'm using "scp serverloginname: /filepath/filepath/file .c /Users/myprofile/Desktop"
Just a typo here. It's Desktop
I didn't want to post the actual file paths/loginname etc. so I typed it out and missed that typo
Yeah fair enough
That was the only thing that came to my mind, I don't do much Linux, sorry! Someone else will come along and help out SoonTM π
Yeah, no problem thanks for the help anyway. π»
@spice blaze have you figured it out?
i use linux on a daily basis maybe i can help
I'm figuring that you are using the command scp serverloginname: /filepath/filepath/file .c /Users/myprofile/Desktop in the linux environment
that command is acctually made to download the file from your windows to the linux system
if you want to download the file from the linux os to windows you have to use pscp.exe from windows
Its a putty program you can download here: https://www.chiark.greenend.org.uk/~sgtatham/putty/latest.html
then go to your commandpromt in windows navigate to your downoad directory ( where you have download pscp )
and use the command like this
Or alternativly you can use filezilla and connect trough the SSH file transfer protocol
scp -i "-snip-" -snip-@i.3v.fi:/home/filehost/1549367604-76a5.txt E:\tmp\asdf.txt
works on win10 with openssh installed
din't know that π
gets you key management via pageant
if you have access to the ports etc
winscp > filezilla because of putty integration
true
I wouldn't trust filezilla anymore
Thanks for all the info guys. I'll give all that a go when I get a chance
@spice blaze Np π lemme know if it worked
Does anyone know who's the owner of the trucky app? I forgot his name π
I think it's dowmeister#4050 but I just want to double check
https://truckyapp.com/trucky-team/
Looks like he is the owner
correct, JM
Who knows a good lightwight programing software for making mods for ETS2/ATS and GTA4/EFLC
By that I mean I plan to to .net coding
sublime text

vscode is lightweight with pretty good .net support
I ask this due to the fact I still like GTA4 and I want to support LCPDFR in some way due to nobody still working on that project
a good mod, but the base game has so many issues compared to GTA V :/
@tardy smelt here I am :)
You're a bit late
does anyone know about Java and Minecraft (lets hope) im a bit in trouble with Arguments π
better to ask than to ask to ask
Watch full course "How to structure Laravel Project": http://bit.ly/laravel-structure This is one FREE lesson from that course.
Is there a way i can catch what server a player is on in TMP? it's for Krew's bot
@round pawn use TruckyBot :D
with magic :D
ets2map?
yes, ets2map tracker data with other data collected manually or automatically
with location resolution
yes, without abuse it
I just need te server π
No it's just that krew asked me for a !server command that shows the server where he's in
most part of the data is cached
and you can show also the location where he is, in or nearest
alright thanks π
actually you gave me a new idea :D
@raw notch what is it ? π
i'm bored if you have some programming work lemme know π
do you know react native, expressjs and mongo?
@raw notch no but i'm a quick learner have been programming for a while
might work on remaking tmptracker soon tho
If anyone have a RichPresence wich I can modify
@ember canyon VT-RPC on GitHub, it's open source
K, thx
hi
Hey
Hello
hello

After 4 days of "hi"
A mod is seen here. Good work...
Sorry, not all of us sit on Discord moderating all day
Thank you for your feedback.
i guess, you should respect the Staff....
I say nothing wrong?, only it may be faster to say it. But it should be sayed if everyone read the description of the channel

Thanks.
one offtopic more then:
Feedback is days sometimes weeks of waiting and then the answer is also not realy usefull
And joining the team, At the beginning yes but now: never of my life at tmp
Well, I guess nobody here wants to see off-topic
Just stick to the topic of this channel
oh, thanks, i upgrade my website with laravel 5.8
Laravel 5.8 has been released https://laravel-news.com/laravel-5-8
Woo
Anyone familiar with pycharm and how to turn off import code highlighting
has anyone ever used the unreal engine before?
if someone is interested in twitch bot development, i'd love to receive some feedback for this: https://www.npmjs.com/package/twitch-commando π
I might look into this π
seems pretty good for small-scale bots
sqlite will start having issues with medium-large ones
@cinder spear yes I know, I'm planning to ad also mongo connection builtin
Hi
Today, weβre excited to announce that we are open sourcing Windows Calculator on GitHub under the MIT License. This includes the source code, build system, unit tests, and product roadmap. Our goal is to build an even better user experience in partnership with the community...
Looks good @tawdry comet 
@pearl badger why is that bad?


If you use Laravel, make sure your application is safe
If you are using laravel, don't and switch away from php
PHP has its issues but it also has its uses
@north raven any valid points or just a bold claim?
@cinder spear just like every language
it allows fast iterative development. It's consistent (due to every request having a clean slate)
it's widely supported and a lot of devs are familiar with it
but it has an inconsistent stdlib and it's not secure by default
Why should we stay away from PHP? @north raven
@unkempt hamlet just ignore/don't take serious what I say, im a js guy (forced by my work), so I got to hate something right
Hate on PHP is quite a common thing, unfortunately. All languages have their own pros and cons
Taylor Otwell shared this today and I fully agree with it
https://twitter.com/taylorotwell/status/1108223231431839744?s=20
Late night thought... when people ask if PHP is "dying", they should pay just as much attention to the undercurrent of toxicity that is in many of the language's online communities as they do the tech itself. It's bad. Real bad. A shame, really. π
116
453
I only code with Java - but i dont hate any language - why i should, i guess
I don't like PHP for the reasons I stated above, but I don't hate it. There's only one language I really hate
Which one? :p
Java
so if MC runs on other lang, i need to lern the new one
it's probably the biggest reason I haven't made a MC mod
the tooling around java is also a mess compared to C#
hmm.. i never created a Mod
Eclipse is just... ugh
only Plugins for Spigot/Bukkit and Spigot/Forge-Servers
visual studio ftw
ftw?
for the win
ahh
and yeah, Visual Studio is pretty amazing
vs code is great but hey, if you are on .net, just use vs
thought, f*ck the world every time π im stupid lol
i never tried, but i like eclipse, i never had issues with it
the main reason to use vs code over visual studio for .net is not being on windows
my personal projects are primarily in nodejs or C# but they always run on linux
and my primary dev machine is running ubuntu
vs code is perfect for nodejs
^
I do tend to use PHP a lot, because it's something I know a fair bit about and it can be useful. However I do agree that it's not amazing, but it's the same with all languages really - everything isn't perfect, and that's a good thing I guess?
I'm definitely looking into learning a couple more languages though, expand my knowledge and all that jazz
More useful than learning other languages is learning other ways of thinking, which learning other languages can definitely help with
Oh, I forgot to update, thank you for the reminder π
I use JetBrains Toolbox, so it was auto-magical
auto-magical
I like the cleaner syntax for single parameter calls, but the substr:0,1 part is a bit... eh
Still nice and clean. And closer to what I've gotten used to when using Django a bit too x3
Django 
Thing I kind of dislike in Django though: The DB table names. I understand why it's like that, with plug and play applications and stuff, but I think it get's messy, especially if you're later gonna replace the app with a new non-django application that will use the same db.
Hm. Is there a list of bus stations and bus stops in ETS2 somwhere? :p
what an interesting question
Location, number of, what kind (bus sstop along road or bus station), mostly.
Doesn't matter if some are missing, it's to get an idea of the amount
The savegame contains a list, but I don't know if it lists all bus stops or bus stops I've explored
len=104
i can dm you the list if you want, it only contains the city names though
That's fine. One moment, let me open up so you're actually able to dm me :p
There. Please dm it to me :3
Event Discovery, finally!

https://w.wew.wtf/efnoxq.png got bored π
What did you use for its development?
Just used the request package with node and used the discord.js library also
https://w.wew.wtf/weqtcc.png decided to do it for servers too, why not? lol
EU #2* but yea, idk lol. Just changed that now π
it's TruckyBot the Revenge? :D
do you use Commando?
discordjs commando
π
it helps in creating commands but some things are real mess
Gonna look into it, thanks ππ½
commando sucks
if you are gonna use a framework use https://klasa.js.org
π
hello, trying to modify truckersmp launcher so i can manually input the game directory and yah, anyone halp? not experienced with coding soo...
Why would you do that?
cuz i wanna play truckersmp on geforce now, but cant install it with the setup since i dont have admin perms, so trying to make it "portable"
its literally the button that doesnt appear π€
i think i know why π€ registry stuff, oof
ok, cant find any TruckersMP key here π€
Just for you to remember - our EULA restricts decompiling the source code of launcher/game.
but i need to make it work on geforce now :((((
i cant play the game at 15 fps lolz
i mean, if u guys could somehow make it portable, that would be cool
or at least without any sort of admin perms
is there any alternative launcher? π€
oof
guess ill decompile this alternative launcher then
source code, forgot about that, and about the registry stuff, i dont have access to regedit on geforce now, neither any sort of apps so
i cant find any truckersmp in the registry editor, halp?
this is literally the location
i did
i literally even played today lmfao
ive also reinstalled it 2 times already, still cant find it in the registry editor
thing is, the alternative launcher still detects truckersmp and gives me no error?
wtf
halp? XD
@pearl badger can u at least show me what the key looks like in regedit?
so i can replace it with a specific path
nvm, found it with registry finder instead of regedit lol
oh wait, im editing the alternative launcher for nothing cuz it pretty much needs the original launcher so...
whats the point of it? π€
wait
ive found in the original launcher
ive found the thingy of why it doesnt appear
fuck yes
ill tyr and check if it works
OMGGG
i just had to simply enable the ets2 button π€¦
oh yes i can enjoy it in 60 fps max graphics woaa
I play 15fps very low settings π
60 fps and max graphics because you're not online yet 
anyone feel like giving me some translations for a CS:GO plugin? π I need Russian mostly π
It's like 4 phrases
Know that awesome feeling when you finish some edgy code you've been making the past 3 hours and it works flawlessly?
I feel so good
only 3? you are lucky :D
Who said Russian?
3 hours writing it, but 2 weeks thinking about the solution in the shower :P
and also there you are lucky :D
@cyan oriole
@unkempt hamlet https://github.com/b3none/retakes-instadefuse/issues/5 you're Russian, right?
It's only like 4 phrases I need translating
https://github.com/b3none/retakes-instadefuse/blob/master/translations/instadefuse.phrases.txt do you feel like plopping in a PR with /translations/ru/instadefuse.phrases.txt. Basically copy the main one and change en to ru
π
Currently making a script using API requests and I wondered if there was a way to fetch a boolean if the user's bans are private?
No way for now
Yes
For now, you can assume user is not banned or has bans private
The only reason is because I have a script which counts bans on users in our VTC then puts it into a spreadsheet. I wanted to ask users to put their account on public but I can't do that without searching each user (which is a fath :P)
No worries anyways
We will change this in the future
Alrrigghtt thanks anyway; any time soon oorrrr π
Is there some node.js / Javascript user to help ?
pffft javascript
Wish I had the patience to learn another language
I'd definitely learn C# / JS
@opaque sierra feel free to ask here
Well; what, in your opinion, should I start with next, JavaScript or C#?
Depends on what you want to do. But C# could be a better choice
@ember canyon ye? Ask here
js + node + c#
Well i'm not sure really but it would be cool to make applications.
C# is easier to learn but less useful than JS
both have their pros and cons, it really depends on what you're looking for in a language
I'm not quite sure at this point, I want to fill in the void of Python.
prefix: '?b',
modLogChannel: 'novalue',
vcsChannel: 'novalue',
welcomeMessage: 'novalue',
welcomeRole: 'novalue',
supportRole: 'novalue',
categorieSupport: 'novalue',
welcomeChannel: 'novalue' },
RowDataPacket {
prefix: 'second value',
modLogChannel: '',
vcsChannel: '',
welcomeMessage: 'second value',
welcomeRole: '',
supportRole: '',
categorieSupport: '',
welcomeChannel: 'second value' } ]
``` ```js
let sql = "SELECT * FROM `556561180177727518`";
connection.query(sql, (error, results, fields) => {
if (error) {
return console.error(error.message);
}
console.log(results);
});
connection.end();```
I want to take at each time the last value if it isn't undefined
Right, so I'm trying to make a job logger, but don't really know where to start π
I've looked at the ets2 telemetry server stuff by Funbit, but it's all a bit over my head.
There is a telemetry SDK (by SCS) available,
but it is written in Visual c++
and it's outdated. But the basic stuff does (still) work
still
@floral mist the SCS sdk is not outdated
it isn't?
Are you able to get seperate cargo and trailer damage?
can you get the position (placement) of each trailer in a 2/3 trailer setup?
@floral mist no, not yet
So I'd agree with you that its outdated, and to be frank the basic stuff nearly works. There are lots of issues with it.
(and to be technical, the sdk isnt written in visual c++. The examples are however)
I thought "outdated" meant it's not working with current game version, for what I need, it works perfectly :D
yeah, Maybe I've been a little it unprecise with the term "outdated".
I can agree that the basic stuff works, but everything that was touched after version 1.26 (or so) like multi trailers , cargo system etc. is not working as it should
I know, and it's a bad thing that a company like SCS, enough mindful about mod devs, have left behind the sdk. but they said that with 1.35 is expected a new sdk
didn't they just say that it is just very likely to come with a new sdk
@raw notch. Does the sdk works with WOT trailers?
@ember canyon sincerely I don't know
Okay. Thanks.
I will test that. I want to make something which can list my trailers and write it in Excel.
Hi, πββοΈπββοΈ
hm I donβt see how thatβs relevant to development chat 
if only gitlab wasn't a massive resource hog
always a good day when you break multiple production systems for almost an hour
π€
Also, if you are developing an app using our API, you may like to check new variables that we added to the API with the version 2.8.1:
https://forum.truckersmp.com/index.php?/topic/83398-website-v28-release/
oooooh :)
finally the event bool
@opal arch there is any plan to align/sync servers btw ets2map and servers from API? because it's always incomplete and it doesn't track event servers
@raw notch Contact Krashnz#3549, he is the dev of the map :p
TEchnically, iirc, most event servers will send data to the map server, but they won't appear in the sidebar, so there is no button to click to only see them, etc.
Depends on the individual server configs though, some might not send the data to the map
@opal arch I would, but we aren't friends and he has dm blocked :D
@north flax actually ets2map manages its own server id structure that are different than the API server IDs (and that's no sense to be like this, tho).
Ye, I'm aware. Annoyingly we had (and still have) two ID systems
I think krash might be more involved now, I don't know for sure though
oh ok
Not my job to consider unifying the ID systems anymore anyway :p
if some of you are friends with Kat and Krash, could you ask if they send me or accept a friend request?
for some reason, I cannot send a friend request to Kat, give always error
I guess he has that disabled

Privacy
I imagine
Ah ye. I'd get a bunch of friend requests on discord before I disabled it myself
@raw notch Kinda, there was some talk to merge the 2 ID systems we have but we haven't done much more than that at this stage.
Event servers have their own separate config for sending to the map that is disabled from time to time. This doesn't get touched often so if it HAS to be disabled for one event it won't get re-enabled again for some time unfortunately
hey @tidal zodiac! but why disable map updates? any server should send to the map, maybe with an information to hide it from the map servers list?
like I think it happens on the API, sometime I found some server in tracker not mapped by ets2map nor from the API, probably test or private staff servers and it's correct they are hidden
We currently have no way to disable it on the map end. So the quick option was just to disable it from the server side
I see. could you accept my friend request @tidal zodiac please?
Thanks for adding my suggestion on the displayBans πππ
Helps me out a lot
π
β€
https://github.com/ocornut/imgui#gallery is it a GUI implemented in ETS2/ATS for developer mode?
imgui is great, really nice lib
Ey dow
@tardy smelt sorry for late response but no, a Tesla P40 and Intel Xeon E-xxxx should run it just fine at 60 fps max graphics 1080p (and it indeed did run fine)
actually, in heavy traffic i do indeed have like 20-30 fps lol
Would be better to post this images in #photos because they aren't related to developing π
oops, sry, didnt realise this is the wrong channel lol
π 

Hi, quick question about Godot, when I'm inserting my sound file to an audiosoundplayer2d node and drag my sound file into the stream I enter the code $HitSound.play() but it just crashes the game whenever the command is run
It says "Attempt to call function 'play' in base 'null instance' on a null instance
I'm thinking it's not properly linked to the parent node but there's no actual evidence proving this
I figured it out, the node didn't have the proper parent and I thought I had already been doing that (i hadn't)
<!DOCTYPE html>
<html>
<body>
<h1 style="background-color:Violet;">Quick HTLM with javascript nd some colour :)</h1>1>
<button type="button"
onclick="document.getElementById('quickie').innerHTML = Date()">
Click me to display Date and Time.</button>
<p id="quickie"></p>
</body>
</html>```
just go here and post it there if you wanna see it ran https://www.w3schools.com/html/tryit.asp?filename=tryhtml_intro
Thats javascript, not java
https://github.com/Bluscream/ahk-scripts/blob/master/Scripts/ETS2 Profile Decoder.ahk I have too much free time
Well... Soon I'll be developing from the ground my tachograph. Is object PHP good enough for such Web Application or is it better to learn e.g. Laravel or something easy-to-learn framework and develop with it?
Depends what all you want to have there. If it is only a few pages (2-4), it is not really needed to use a framework.
However, if you need some advanced administration, manage API and other stuff, I would recommend you to go for a framework
Probably I'll develop also administration side...
Aswell as connection to TMP API, SteamID API and ets2map API, so yeah.
Then what do you think - what will be the easiest framework that I can learn? I understand object PHP.
I have not been using many frameworks. However, I think it is Laravel because it has a huge documentation and a lot of tutorials for it
I would also recommend Laravel, I've used a few such as codeigniter and CakePHP. Laravel is by far the best imo
Okey, thank you guys for your answers
Gonna show you how it'll work when I'll have something done. π
(moved from #ets2-modding )
Hi! I'm working on app which will add some interesting features into game (can't be more specific now) and i'm trying to find if there is any way to perform ingame console command from external app. Didn't find any way for now. :/
Any ideas how to get this working?
In which language do you want to write that "external app"?
C#
There are multiple ways
either you let the app emulate keystrokes to open the console and write stuff
or you disassemble the binary and find the functions to hook
i think ETS is C++
@velvet root Kat send commands to the console, you can see it in truckersmp stream
is on twitch, he uses to "goto" command sending the keystroke in game
what's his twitch?
Yes, simulate keypress is the way i'm using now, but best would be to find a way which is invisible for player.
DWORD HOOKPOS_CVars__Store = 0x5BC461;
DWORD RETURN_CVars__Store = 0x5BC466;
that could be the part that changes cvars

@ember canyon
#include <cstdio>
#include <cstdlib>
#include <cstdint>
#ifdef _WIN32
#include <Windows.h>
#endif
uintptr_t get_base_address()
{
thread_local static bool initialized = false;
thread_local static uintptr_t base_address = 0x0;
if ( initialized )
{
return base_address;
}
else
{
#ifdef _WIN32
base_address = reinterpret_cast< uintptr_t >( GetModuleHandleA( 0 ) ) - 0x0000000140000000;
#else
// Linux implementation
#endif
initialized = true;
return base_address;
}
}
inline uintptr_t get_addr( const uintptr_t address )
{
return ( get_base_address() + address ) & 0xFFFFFFFFFFFFFFFF;
}
struct string
{
string( const char *const s ) : m_string( s ) {}
const char *m_string = nullptr;
};
bool cmd_execute( const string &command, int queue )
{
using T = decltype(&cmd_execute);
#ifdef ETS2_VERSION
return reinterpret_cast< T >( get_addr( 0x0000000140113D10 ) )( command, queue );
#else
return reinterpret_cast< T >( get_addr( 0x00000001401025C0 ) )( command, queue );
#endif
}
you need to be injected into eurotrucks2.exe / amtrucks.exe process
or you have to put it in ets2/ats plugin, note that addresses in last lines might be different for different game versions
then only thing you need to do is:
bool result = cmd_execute("exit", -1);
@kindred pond Thanks! These addresses are for 1.34?
yep
# define PRISM_API_GAME_NAME "Euro Truck Simulator 2"
# define PRISM_API_SUPPORTED_GAME_VERSION "1.34.0.17s"
# define PRISM_API_GAME_NAME "American Truck Simulator"
# define PRISM_API_SUPPORTED_GAME_VERSION "1.34.0.4s"
to be more specific
Hey guys again! π After conversation between me and my friend I have decided to use Fat-free Framework on my tachograph project. It's easy to learn like Laravel (which was my 1st choice) and I can develop with it pretty easily. I don't need composer. After tweaking my htaccess and dealing with my apache server on Hyper-V Linux Machine I was ready to go and my first site has been made. π For now I'm still studying so not much progress has been made, however when I'll have more content I'll post it here if you don't mind. π
Good luck with your project! How are you going to show tachograph to player? Minicon, overlay or some other way? π
I tried to build code from mwl, and i'm not quite sure, where to write this part ``` bool result = cmd_execute("exit", -1);
So should i include ets 2 telemetry files and write it into ```SCSAPI_RESULT scs_telemetry_init``` , which should perform the code after telemetry is intialized or is there another way?
I tried to build it and put into plugin folder without this part ``` bool result = cmd_execute("exit", -1); ``` , game.log printed this:
```l oading 'Dll1' 'E:/SteamLibrary/steamapps/common/Euro Truck Simulator 2/bin/win_x64/plugins/Dll1.dll'
00:00:29.203 : <ERROR> unable to find any required function inside 'Dll1'
00:00:29.203 : unloaded 'Dll1' ```
First time for me to working with DLL and C++, so sorry for maybe stupid questions π
So should i include ets 2 telemetry files and write it into
that sounds like the best approach
OK, i'll try it after work today π
We are thrilled to announce that the core security features of the Elastic Stack are now free.
@velvet root My tachograph will start as a Web Application, but maybe in the future I'll develop application that will work similarly to TrucksBook.
OK, good luck π
Thank you and good luck for you too.
@kindred pond It's working, thank you very much!
@velvet root π
elastic's move was likely influenced by https://opendistro.github.io/for-elasticsearch/ popping up recently
Awesome
arusf it's always cleaner to use a framework than plain PHP. If you're doing it with plain PHP because it's easier to setup than it's probably not a good idea to work on a project π
Setting up laravel isn't that hard and composer is really useful when you want to add more third party plug in into your project
@tardy smelt I went with Fat-free Framework. π
Yeah - I know however my target is people that have hosting, not VPS.
You can tweak it to work on a web hosting server too. You don't need a VPS
You just need to point the domain to the public folder and that's it
Okay.
Maybe in the future I'll develop with it. But for now I think that this framework which I use will be good enough.
I quickly looked over that framework and it's not that nice IMO but you're the one doing it so feel free to use what you want π
I asked my friend who is also WebDeveloper and he suggested me that. π
Is he a web developer or a "web developer"? 
Also that framework isn't even in the top 10 framework so I don't know how he can even suggest you that but π€· π
Well... He normally uses Laravel
However one day he needed to use that framework which I mentioned.
why limit to ets2?
TruckersMP Announcement
We have created our first open source project - @hazy night!
More information can be found in Development announcements on our forums: https://forum.truckersmp.com/index.php?/topic/84910-botranktir-open-source-discord-bot/
I aspire to do some practice around the basics of managing Linux server infrastructure in the future, specifically using the tmux terminal program. One query has come up on my mind about how I should get that set up - is it possible to run it in a VM with a Linux server edition OS or would you need physical hardware to get the best results?
You can get decent results running linux server in a virtual machine
If you need to run heavy software you'll need a beefy machine and to dedicate a bunch of resources to the VM, but should generally not be an issue.
For experimenting and such you'll most likely be fine with weaker VMs anyway, not needing to dedicate that much if your resources to each vm
Thank you very much for your help solving this issue! FYI, I am going to be going on a university course that relies on securing computers and networks from attacks and working with Linux is eventually going to become a necessity for me when dealing with all sorts of issues, so I've decided to start the ground work in preparation for that. Again thanks
@swift geode install virtualbox on your windows, download an Ubuntu server iso and install it. it's really simple and you'll get a Linux running in 20 minutes
Do you just use all the defaults for IP configurations when you install Ubuntu server or do you need to configure that and then install?
Why not just use WSL?
Because you can't get nitty gritty details of Linux there.
Wdym exactly?
WSL still runs on Windows, even if it's linux like and can run a lot of linux software.
WSL2 will be better in that regard, though, but still not great for something to learn stuff and throw away. Then a VM is preferable.
Afaik wsl offers full functionality while providing all free system resources and uses more efficient lower level Emulation
Thanka for the info about wsl2
I use kali for wsl whenever i need kali tools or just stuff like grep
@ember canyon Not really.
I would prefer running WSL2, because it's based on Hyper-V (low level virtualization) when WSL is just made as an app.
@swift geode use defaults, virtual box will create a private network btw the host and the VM and you will connect to the VM via ssh
I created my VM with Hyper-V and I have connected to Internet, but I didn't make any Dynamic DNSes, only locally
@prisma geode advertising isnβt allowed here
It counts as advertising even if its free π
No worries
"- 4.01. Any form of advertising outside the VTC, Stream or Event Advertisement channel is prohibited. Language advertisements need to be posted in the respective language channel."
I can understand you had no ill intention with what you posted, but rules are rules
No worries

Anyone tried to do a custom launcher for truckersmp before? Asking as everything works fine but my game crashes when I inject the client dll (standard TMP βfatal errorβ crash, other dlls work fine)
^ it could also be that I should rework/find another way to inject it
Yeah, until I discontinued it as I didnt have time anymore to maintain it. Afaik the injection still works flawlessly. https://github.com/TheUnknownNO/TruckersMP-Launcher
You'd be interested in Source\TruckersMP.cs
Thanks a lot
Everythingβs a bit different on C++, but guess it could give me an idea where I went wrong. Thanks β€
@quick glen i want to kill myself
i had visions
of a complete launcher
with savegame decrypting/editing, mod management/autoupdate, tmp features, config editor, custom URI, etc etc
heh
haven't come past the UI yet π
Also implementing the full discordrpc.dll within a plugin seems to be pretty much cancer
Discord RPC within a plugin for ets/ats is a trivial task?
And as for the launcher, well at its time it was feature rich https://forum.truckersmp.com/index.php?/topic/22328-launcher-ui-pack-compatible-alpha-017-truckersmp-unofficial-launcher/
not if you try to squash all the cpp + h files within the same DLL
Thats what you have compilers and linkers for?
implement discord sdk aside the scs sdk is not so hard...
do it then
i dare u
i was sitting on it with my friend for the whole evening
also there's a whole VT-RPC discord dedicated to it and yet they still use a external node.js app
Thats because they dont have any c++ coders π
Ever heard of the atlas vtc rpc?
or the viva trucking one?
?
or even what truckersmp use
If I wasnt so backlogged and out of time I would've had it in LogIt ages ago
Thats irrelevant, discord rpc and scs sdk have nothing todo with eachother
^
This second one is used for other thing, such telemetry etc
I'm fairly familiar with how TMP works
if you inject your DLL into the game at runtime it's easier to work with external resources (opposite of letting the game load the DLL in case of Telemetry SDK)
My point is that it is completely irrelevant if its being run as an injected dll or as a plugin loaded (acctually its more like the game injects itself, but thats another topic) by the game for the usage of discord rpc
Ever heard of the atlas vtc rpc?
or the viva trucking one?
they are C++?
But atlas seems to be only for one VTC right?
Yeh, simply because its hard for vtcs to find C++ devs around here
So that means the general public can't have good things...
(β―Β°β‘Β°οΌβ―οΈ΅ β»ββ»
i wish SCS would natively implement it so the VTC's stuff is worthless
Heh
And it comes down to the fact that vtcs want things that are custom to them
Yes, their logo and copyright
Do you even realize that i'm the guy that contributed to your launcher?
No clue, dont recognize your name π€·
Bluscream
Ah! I remember all the "issues" π Unfortunatley I'd already started to abandon it at that point due to a lack of time π
yeah i realized that after i even wrote some preview code
Since the API returns the server ips you could visualize the server pings from orange to green and red if it's unreachable https://github.com/TheUnknownNO/TruckersMP-Launcher/blob/master/So...
Yeah, times a valuable thing. And I've unfortunately got 100 things to do
it even got a like by some random
The only project I still do thats related to the trucking community is vtlog, more specific the client LogIt.
And even that is lagging behind on features I want to add due to a lack of time
I dont even play the game anymore, yet I still maintain a plugin for it π€·
happens for me for a few games aswell
My current "struggle" with it is an in-game overlay
vrchat for example
oo, neat
@quick glen you should talk to @velvet root about that xD he's done it
yeah π€
And I've gotta redo it lol
its also confusing me why the game loads dxgi.dll in dx9 mode
Thing is, most overlays I've seen in the wild use a method of replacing the directx dll to expose functions of it
and thats simply boring
i mean you can always try to render something ontop of everything else
but that will become glitchy
So what I went with was automatic hooking of endscene and present from a plugin inside the game
maybe you can use the same stuff that discords overlay uses
Discord overlay uses a global hook that works when a directx device initially starts (essentially the same as TMP)
did you RE tmp?
That wouldnt work for me, as the client (LogIt) is a plugin so its loaded after the directx device is created
Nah
Effort
well
π
I've had it open in IDA
let's hope tmp launcher comes back to life one day
at least you didnt use cydra (or whatever its called)
I had working solution for overlay on DX9 too, but with DX11 i didn't find any project on Github that seems to work π
Now, with usage of mwl4 code, i'm using console commands to create ingame UI windows
I've so far not gotten my solution to render (I use ImGUI) but I've been able to hook into dx11
dx9 rendering works fine and flawlessly with imgui
and its all contained within one "simple" plugin dll
good thing i can't use dx11 yet anyway
Thing about the console bit is that for each update (atleast major) you'd have to find your function pointers again.
Yes, that is the last issue for me - for now i don't have any experience in this, so i need to find how.
i think there are ways to automate that tho
To a certain extent it can be automated
Once you get the hang of it and you've done it once it isnt that hard to get new pointers. They usually dont move far
something with ASM
cough I built the atlas discord presence cough
Make it available for everyone π
i want RPC without running stupid VTC software like SpedV in the background
@rugged copper Was it a plugin or do I just have a bad memory?
It was a plugin yeah
also "join game" would be neat for TMP
Just read the telemetry information and then used the data for the rpc
@ember canyon what are you struggling to do?
i wanted to have the code of discordrpc.dll embedded into the plugin
so that dll doesnt have to be placed next to the binary
but all the examples just show how you use it as external DLL
Just add it to the include within project settings
Its just the same as adding any other dependency, i.e curl, boost, etc.
yeah i just added all .cpp files to the plugin and added all discordrpc directories to the includes
well
Nah you need to right click your project and click properties
I believe it's under C/C++ and include something
Yeah, thats not what you do at all