#programming

1 messages Β· Page 18 of 1

unkempt hamlet
amber oasis
small ermine
#

πŸ‘€

ember canyon
#

πŸ‘€

unkempt hamlet
#

Stop it plz

small ermine
#

πŸ˜‚

unkempt hamlet
brazen hatch
#

hehe

simple coral
#

lol

#

i hate how most programming languages include an IDE with zero effort put into it

#

and how nothing works in vs code :/

amber oasis
#

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

simple coral
#

ye by most i mean python

#

normal ide is annoying

#

and it wont work in vscode

north flax
#

Python works well in vscode, when you try to edit a python file it will suggest to install the python extension automatically

amber oasis
#

I'd be honestly surprised if vscode didn't handle python well, considering MS actually supports python quite widely now

cinder spear
#

I'd be surprised if there was a widely used language that vscode didn't have good support for

amber oasis
prisma geode
unkempt hamlet
#

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?

simple coral
#

idk

#

but i know im using bitbucket now

unkempt hamlet
#

But why?

rugged copper
#

I think they'll probably just keep both, but we'll have to see

raw notch
#

I use bitbucket too, private repo for free, API, webhooks, continuous integration

rugged copper
#

I use gitlab personally

lethal willow
#

GitLab vaderrpGasm

rugged copper
#

What's wrong with GitLab? πŸ˜‰

toxic quarry
#

Nothing that I know of LUL

lethal willow
#

Nothing

unkempt hamlet
#

GitLab <3

amber oasis
#

Gitlab is great

#

about Atom vs. Code, I doubt MS will do anything against Atom, as Atom components are upstream of code

raw notch
#

nothing against gitlab.. but what's wrong with bitbucket too? πŸ˜€

amber oasis
#

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

cinder spear
#

that's a lot of jobs

#

and 1-2 minutes too slow for my liking

raw notch
#

each one has to tier the service use based on own needs, it's normal

amber oasis
#

a lot of the time is spent on dependencies, and prepping backend services needed for tests

cinder spear
#

a nice benefit with docker

amber oasis
#

we run everything in dind

raw notch
#

have you tried Travis CI @amber oasis?

cinder spear
#

things stay set up to the earliest step that changed

amber oasis
#

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 blobcatjoy

#

gitlab's own CI daemon is just about what we need, and hence use

raw notch
#

for building apps Travis is really good

cinder spear
#

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

raw notch
#

do you use gitlab hosted or cloud?

amber oasis
#

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 blobcateyes

raw notch
#

that was funny

amber oasis
#

funny in a sad way

#

cause it delayed stuff for us

raw notch
#

like all funny things :D

amber oasis
#

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 blobcateyes

#

or just hosted gitlab or github

raw notch
#

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

amber oasis
#

biggest issue with SVN etc. is global locks, in my book at least

raw notch
#

global locks?

amber oasis
#

on individual files within a branch

#

in a typical SVN workflow, you'd lock the file before editing it

raw notch
#

that's Sourcesafe :)

#

SVN doesn't need individual lock, same file could be modified and then merged

amber oasis
#

big note: not used SVN or similar in well over a decade

raw notch
#

last 10 years, it worked like this

#

no lock

amber oasis
#

git serves all my needs, and I'll probably never work in a shop where git isn't used

raw notch
#

git has a different approach

amber oasis
#

well over a decade'

#

I know, dvcs vs. cvcs

raw notch
#

and well, refuse a job because they don't use a certain source control... ;)

amber oasis
#

More that my job is sysadmin, not developer πŸ˜›

raw notch
#

uh grumpy cat behind the servers :D

amber oasis
#

Maru behind the servers

raw notch
#

a fluffy one

cinder spear
#

system administration is great

#

always loved doing it

raw notch
#

developing is better

#

or better, devops is better

cinder spear
#

I do development/devops at work

past shuttle
#

how to i add different containers/sections on a website page

#

i have the div class and id

#

still not working

raw notch
#

wot

past shuttle
#

also tried <br> and <section>

#

but still not working

#

hella confused

raw notch
#

one below another?

past shuttle
#

defo forgot something

#

yh

#

@raw notch

raw notch
#

try display:block

#

and width:100%

past shuttle
#

got them both

raw notch
#

by default divs are display:inline without dimensions apart its content

past shuttle
#

aint working

raw notch
#

so use something like bootstrap

#

and put a class=row

#

:D

past shuttle
#

oh

#

thats what i forgot

cinder spear
raw notch
#

or sm-12

cinder spear
#

and @raw notch divs by default have display block

raw notch
#

uhm

#

maybe im not using plain HTML/css from too much time to remember this

past shuttle
#

i genuinely cant remember...

raw notch
#

bootstrap and foundation make me ignorant

cinder spear
rugged copper
#

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?

unkempt hamlet
#
  1. js variables
  2. passport ofc
#
  1. var thing = @json($thing);
rugged copper
#

Thank you, I've been looking at using JWT instead and then using Vuex to store the token

north flax
#

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

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

north flax
#

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

rugged copper
#

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?

north flax
#

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 πŸ˜›

rugged copper
#

Amazing, thank you so much

#

What's the difference between something like this and JWT which returns a Bearer token?

north flax
#

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

rugged copper
north flax
#

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

rugged copper
#

Yeah, I've looked at the passport but couldn't see the option with out a client secret and id

north flax
#

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

#

πŸ˜›

rugged copper
#

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

rugged copper
#

@north flax I take it the when you redirect the user to /oauth/authorize the user is presented with the login view

north flax
#

@rugged copper iirc ye

rugged copper
#

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?

north flax
#

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

rugged copper
#

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

rugged copper
#

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

autumn pagoda
#

@rugged copper whats your end goal or achievement for this?

rugged copper
#

@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?

north flax
#

@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.

rugged copper
#

Thanks @north flax will take a look and see what I can find

rugged copper
#

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?

north flax
#

You can set it's expiration timer, iirc

rugged copper
#

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

autumn pagoda
#

@north flax sorry

toxic quarry
#

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.

rugged copper
#

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

amber oasis
#

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

raw notch
#

my new game: build up a new warehouse

#

electric cables, access point, fiber switch, barcode scanners, termic printers etc etc

small ermine
#

Woo

unkempt hamlet
ember canyon
left fern
cinder spear
#

that last one should be a standard

ember canyon
#

thank you for the laugh :D

amber oasis
#

heh

#

that story has been circulating the internet so long that it's supposedly from a russian bash.org now blobcatjoy

#

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

unborn flume
#

hello

unkempt hamlet
left fern
#

oof

lethal willow
raw notch
#

ahahah

ember canyon
#

πŸ‘€

thick hatch
#

@naive anvil Decompiling? GWfroggyZoomeyes

#

You want a custom tracker for Dynamic? GWlulurdMegaLul

#

Not meant to offend, but that's the first thing which plopped in my mind when I saw that you want something decompiled

amber oasis
#

blobcateyes 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

amber oasis
#

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

cinder spear
#

People here doing advent of code?

unkempt hamlet
ember canyon
#

πŸ˜„ good job

amber oasis
#

not in rust x)

dim delta
#

πŸ‘Œ

simple coral
#

Lmao imagine hacking millions of people's data because u were bored

pearl badger
#

welcome to russia

simple coral
#

lol

#

ugh i wish there was a native linux client for truckersmp

pearl badger
#

well there isnt pog

simple coral
#

Ree ftoggy server is down

simple coral
#

Y'know, anythings open source if you're smart GWfroggyWeSmart

pearl badger
#

no

ember canyon
#

sure

#

if you can run it, you can IDA it

ember canyon
#

πŸ‘€

opal arch
#

You do not have to send only emotes here

ember canyon
#

@amber oasis Happy BirthdayπŸŽ‚

simple coral
#

@amber oasis happy birthday πŸŽ‰

ember canyon
#

Happy birthday (Sry i'm late)

rugged copper
#

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?

unkempt hamlet
#

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

rugged copper
#

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?

unkempt hamlet
#

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.

rugged copper
#

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?

tardy smelt
#

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

rugged copper
#

Thanks @tardy smelt

amber oasis
#

@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

rugged copper
#

I know how to apply git flow just wanted to see what people's opinions were on it and more specifically for single developers

opal arch
#

Mainly about queries :p

ember canyon
opal arch
#

This does not belong to this chat ...

raw notch
#

FYI, other users are reporting that tmp client has that issue (download loop)

opal arch
#

Yep, we know about it. It should be fixed now

unkempt hamlet
ember canyon
#

πŸ‘€

unkempt hamlet
#

So, I did upgrade to Mix v4, it was smooth. Also, babel-updater is the savior.

small ermine
#

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 πŸ˜‚

opal arch
#

What are you working on? :p

small ermine
#

Secret πŸ˜‰

#

Well, not really πŸ˜‚

ember canyon
#

@opal arch I wrote something private on the forum TMP πŸ˜‰

opal arch
#

Well, login via Google would be awesome, too :p

ember canyon
cinder spear
#

they're all pretty much the same

opal arch
#

They are. Depends on what he wants to do

cinder spear
#

just different variables plugged into the same openid connect handshake

small ermine
#

Well I don't really need Google for my thing πŸ˜‰

opal arch
#

@ember canyon And thanks, but not sure if I use it πŸ˜„

ember canyon
#

if you gave me the original image, it would be better πŸ˜‰

ember canyon
small ermine
#

πŸ˜‚

#

Isnt it forums?

unkempt grotto
#

I believe this isn’t the right chat for that, check the channel description πŸ˜‰

opal arch
#

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. notbad

#

Just thing, that needed to be completely changed, was registration - I needed it via the Steam login

wet flint
#

Isn't that funny πŸ˜‚

ember canyon
#

Merry Christmas Developer tmp

wet flint
#

Can you ping spoof in ATS or ETS? xD

mystic ridge
#

No, that would be considered bug abusing/hacking, I'd also read the channel topic GWergShibWink

autumn pagoda
#

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

quick glen
#

@autumn pagoda Use UTF8?

autumn pagoda
#

@quick glen is set to that but not working

quick glen
#

Everything is set to utf4mb4 yeah? The db, connection, etc?

unkempt grotto
#

Ah like this @autumn pagoda: Δ°

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?

quick glen
#

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

pearl badger
#

you shouldnt need to specify

#

but you might aswell

autumn pagoda
#

@quick glen
is it best to force everything to use utf8mb4?

#

got it working now, thank you guys πŸ˜ƒ

ember canyon
#

πŸ‘€

lethal willow
#

does anyone have experience with electron?

small ermine
#

Kinda

#

As in, it works but it ain't pretty πŸ˜‚

lethal willow
#

Any idea how to access the DOM of a webview?

#

I can't even get it to work with ipcRenderer

small ermine
#

Ummm

#

I honestly have no clue xD

#

Sorry, it's been a while since I messed with electron

raw notch
lethal willow
#

I ended up figuring it out. I wanted to manipulate the DOM throughout runtime.

raw notch
#

if works like in react native, you could inject JavaScript inside a webview and send commands

lethal willow
#

Turns out I needed to send it to main webContents, then through to webview

#

Β―_(ツ)_/Β―

raw notch
#

it's the same way the live map works in Trucky

lethal willow
#

I thought I only needed one ipc call, but turns out I need two

raw notch
#

what are you doing in electron?

lethal willow
#

I wanna make a YouTube music client

toxic quarry
#

There's tons already, don't waste your time lel

raw notch
#

uhm... YouTube is not a YouTube client already? :D

lethal willow
#

there is not many for YouTube music

lethal willow
#

and was talking about a desktop app

ember canyon
#

Is the API for server statut is public ?

unkempt hamlet
#

It was public since day one

ember canyon
#

Can I have the link ?

#

Please ?

unkempt hamlet
#

In pinned message

ember canyon
#

Thanks ^^

#

Happy New Year for you

unkempt hamlet
#

yt

molten perch
#

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

livid shoal
#

"This channel is not about contacting developers due to TruckersMP problems. Stick to the topic of this channel."

left fern
ember canyon
#

πŸ‘€

molten perch
#

It wasnt a problem. It was asking if anyone is working on such a thing

wet flint
#

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?

unkempt grotto
wet flint
#

Thank youuu

unkempt hamlet
lethal willow
#

GitHub Free now includes unlimited private repositories omg

unkempt hamlet
#

inb4 it is capped on 3 contributors so whatever, gitlab ❀

raw notch
#

bitbucket :D

north flax
#

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
#

lol

#

I did something wrong? 😒

lyric sable
#

@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.

ember canyon
#

ok 😦

autumn pagoda
#

Any way to emulate a mobile screen for a website?

Using chrome dev tools but not sure what settings are needed

quick glen
#

Any of the devices that is a phone would suffice really, I like going through a couple of them while testing

autumn pagoda
#

@quick glen Sometimes can look different compared to my phone

quick glen
#

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

raw notch
#

@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

autumn pagoda
#

@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

small ermine
#

Yeah, use the previously suggested thingy

#

Or just shrink your chrome window 😏

autumn pagoda
#

Will try thanks guys ❀

raw notch
#

use the mobile view is better than shrink the browser windows and is quite close to real one

small ermine
#

Yep

toxic arrow
small ermine
#

πŸ˜‚

forest hedge
#

Woooah woah

ember canyon
fickle wharf
#

Anyone wide minded in HTML? In need of development assistance for a Company.

cinder spear
#

if you have a quick question, just ask. If it's a bigger project, might be hard to find help for free

small ermine
#

I feel like there's gonna be a few people here who know html

cinder spear
#

fixed a few bugs from 2 years ago πŸ‘Œ

#

and got statsd added so I can actually tell how much processing is being done

small ermine
#

Woo

cinder spear
#

as it turns out, running chgrp on 16 million files takes some time

small ermine
#

XD

#

Yeah, that might take a while

pearl badger
unkempt hamlet
#

In Google

shadow marsh
#

CJ blobjoy best answer LOL

shadow marsh
#

CJ is the Developer xD

unkempt hamlet
#

In all seriousness, Google is gtg for that questions. There are so many different sources, even screencasts and websites πŸ˜ƒ

shadow marsh
#

CJMAXIK πŸ˜„

high sorrel
#

That is CJ πŸ˜‚

unkempt hamlet
#

What's your preferences about programming language?

forest hedge
#

Actual programming languages documentation besmart

unkempt hamlet
#

It's fine

forest hedge
#

Honestly google is the best place though xd

forest hedge
#

Loads of stuff for python on YouTube, that's where I learnt

unkempt hamlet
#

First google link actually

#

πŸ‘

tardy smelt
#

Youtube have a lot of tutorial for any type of coding languages

pearl badger
#

NotLikeThis i would never watch a yt video to learn one they are either too basic, too long or usually both

spice blaze
#

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"

high sorrel
#

Are you trying to go to Deskop or Desktop?

#

Valid question

spice blaze
#

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

high sorrel
#

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 😁

spice blaze
#

Yeah, no problem thanks for the help anyway. 🍻

round pawn
#

@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

#

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

cinder spear
#
scp -i "-snip-" -snip-@i.3v.fi:/home/filehost/1549367604-76a5.txt E:\tmp\asdf.txt

works on win10 with openssh installed

round pawn
#

din't know that πŸ˜ƒ

cinder spear
#
>where scp
C:\Windows\System32\OpenSSH\scp.exe
#

but the putty way is still good tho

round pawn
#

I always use filezilla tbh

#

the easiest way

cinder spear
#

gets you key management via pageant

round pawn
#

if you have access to the ports etc

cinder spear
#

winscp > filezilla because of putty integration

round pawn
#

true

mystic ridge
#

I wouldn't trust filezilla anymore

spice blaze
#

Thanks for all the info guys. I'll give all that a go when I get a chance

round pawn
#

@spice blaze Np πŸ˜ƒ lemme know if it worked

tardy smelt
#

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

brazen hatch
lethal willow
#

correct, JM

ember canyon
#

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

runic minnow
#

sublime text

pearl badger
cinder spear
#

vscode is lightweight with pretty good .net support

ember canyon
#

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

cinder spear
#

a good mod, but the base game has so many issues compared to GTA V :/

raw notch
#

@tardy smelt here I am :)

worldly tulip
#

You're a bit late

drifting wasp
#

I’d put it

#

You’re a bit late

shadow marsh
#

does anyone know about Java and Minecraft (lets hope) im a bit in trouble with Arguments πŸ˜…

cinder spear
#

better to ask than to ask to ask

unkempt hamlet
round pawn
#

Is there a way i can catch what server a player is on in TMP? it's for Krew's bot

raw notch
#

@round pawn use TruckyBot :D

round pawn
#

It's not for discord its twitch πŸ˜ƒ

#

Where did you catch the server @raw notch ?

raw notch
#

with magic :D

round pawn
#

ets2map?

round pawn
#

aaah

#

I'm free to use it?

raw notch
#

yes, ets2map tracker data with other data collected manually or automatically

#

with location resolution

#

yes, without abuse it

round pawn
#

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

raw notch
#

most part of the data is cached

#

and you can show also the location where he is, in or nearest

round pawn
#

alright thanks πŸ˜ƒ

raw notch
#

actually you gave me a new idea :D

round pawn
#

@raw notch what is it ? πŸ˜ƒ

#

i'm bored if you have some programming work lemme know πŸ˜ƒ

raw notch
#

do you know react native, expressjs and mongo?

round pawn
#

@raw notch no but i'm a quick learner have been programming for a while

pearl badger
#

might work on remaking tmptracker soon tho

ember canyon
#

If anyone have a RichPresence wich I can modify

raw notch
#

@ember canyon VT-RPC on GitHub, it's open source

ember canyon
#

K, thx

grim cape
#

hi

remote grove
#

Hey

sick shard
#

Hello

dire valve
#

hello

tardy smelt
mystic ridge
#

This is not the #general channel, if you have something useful to add to the topic of "developer chat" then please do, saying hello or any other unrelated small talk goes in #general, thanks

brazen hatch
#

After 4 days of "hi"
A mod is seen here. Good work...

mystic ridge
#

Sorry, not all of us sit on Discord moderating all day

#

Thank you for your feedback.

shadow marsh
#

i guess, you should respect the Staff....

brazen hatch
#

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

pearl badger
mystic ridge
#
  1. What you said does not belong in this channel, this channel is called "developer-chat", and what you said has no relevance to that.
  2. Feedback like that is better suited for the dedicated feedback system we have in place, available here: https://truckersmp.com/feedback
  3. Be more respectful of staff, we are not paid, we are volunteers doing what we can in our spare time. If you think you can do better, feel free to apply when the next round of CMT recruitment happens. https://truckersmp.com/recruitment

Thanks.

brazen hatch
#

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

opal arch
#

Well, I guess nobody here wants to see off-topic

#

Just stick to the topic of this channel

pulsar jungle
#

Laravel 5.8 is getting released today.

#

Hype

opal arch
foggy gate
#

oh, thanks, i upgrade my website with laravel 5.8

pulsar jungle
high sorrel
#

Woo

quartz moth
#

Anyone familiar with pycharm and how to turn off import code highlighting

dire valve
#

has anyone ever used the unreal engine before?

raw notch
drifting wasp
#

I might look into this πŸ˜›

cinder spear
#

seems pretty good for small-scale bots

#

sqlite will start having issues with medium-large ones

pearl badger
#

sqlite

#

thats where you have it all wrong

raw notch
#

@cinder spear yes I know, I'm planning to ad also mongo connection builtin

lethal glen
#

Hi

drifting wasp
thorn ferry
#
Windows Developer Blog

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...

tawdry comet
pearl badger
#

open sourcing a calculator

thorn ferry
#

Looks good @tawdry comet thisisfine

cinder spear
#

@pearl badger why is that bad?

pearl badger
#

shrugging never said it was bad

#

Just why did they

tawdry comet
meager spoke
opal arch
#

If you use Laravel, make sure your application is safe

north raven
#

If you are using laravel, don't and switch away from php

cinder spear
#

PHP has its issues but it also has its uses

unkempt hamlet
#

@north raven any valid points or just a bold claim?

north raven
#

@cinder spear just like every language

cinder spear
#

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

restive hare
#

Why should we stay away from PHP? @north raven

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

opal arch
#

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. πŸ˜•

Retweets

116

Likes

453

shadow marsh
#

I only code with Java - but i dont hate any language - why i should, i guess

cinder spear
#

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

opal arch
#

Which one? :p

cinder spear
#

Java

shadow marsh
#

why?

#

Its because i code for Minecraft tshrug

cinder spear
#

because it's like C# but everything is worse

#

that's a fair use-case

shadow marsh
#

so if MC runs on other lang, i need to lern the new one

cinder spear
#

it's probably the biggest reason I haven't made a MC mod

#

the tooling around java is also a mess compared to C#

shadow marsh
#

hmm.. i never created a Mod

cinder spear
#

Eclipse is just... ugh

shadow marsh
#

only Plugins for Spigot/Bukkit and Spigot/Forge-Servers

raw notch
#

visual studio ftw

shadow marsh
#

ftw?

cinder spear
#

for the win

shadow marsh
#

ahh

cinder spear
#

and yeah, Visual Studio is pretty amazing

raw notch
#

vs code is great but hey, if you are on .net, just use vs

shadow marsh
#

thought, f*ck the world every time πŸ˜‚ im stupid lol

#

i never tried, but i like eclipse, i never had issues with it

cinder spear
#

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

raw notch
#

vs code is perfect for nodejs

north raven
#

^

high sorrel
#

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

cinder spear
#

More useful than learning other languages is learning other ways of thinking, which learning other languages can definitely help with

unkempt hamlet
opal arch
#

Oh, I forgot to update, thank you for the reminder πŸ˜„

unkempt hamlet
#

I use JetBrains Toolbox, so it was auto-magical

high sorrel
#

auto-magical

unkempt hamlet
unkempt hamlet
cinder spear
#

I like the cleaner syntax for single parameter calls, but the substr:0,1 part is a bit... eh

north flax
#

Still nice and clean. And closer to what I've gotten used to when using Django a bit too x3

mystic ridge
#

Django HYPERPOG

north flax
#

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

cinder spear
#

what an interesting question

left fern
#

there is, kinda

#

what information are you looking for?

north flax
#

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

left fern
#

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

north flax
#

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

unkempt hamlet
#

Event Discovery, finally!

fast condor
harsh minnow
opal arch
#

What did you use for its development?

harsh minnow
#

Just used the request package with node and used the discord.js library also

harsh minnow
harsh minnow
#

EU #2* but yea, idk lol. Just changed that now πŸ˜›

raw notch
#

it's TruckyBot the Revenge? :D

harsh minnow
opal arch
#

do you use Commando?

harsh minnow
#

I've never heard of it tbh

#

Care to explain what it is?

raw notch
#

discordjs commando

harsh minnow
#

πŸ‘€

opal arch
#

it helps in creating commands but some things are real mess

harsh minnow
#

Gonna look into it, thanks πŸ‘πŸ½

ember canyon
#

commando sucks

harsh minnow
#

πŸ‘€

ember canyon
#

hello, trying to modify truckersmp launcher so i can manually input the game directory and yah, anyone halp? not experienced with coding soo...

unkempt hamlet
#

Why would you do that?

ember canyon
#

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"

ember canyon
unkempt hamlet
#

Just for you to remember - our EULA restricts decompiling the source code of launcher/game.

ember canyon
#

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? πŸ€”

#

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 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

#

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

ember canyon
#

nvm

ember canyon
#

OMGGG

#

i just had to simply enable the ets2 button 🀦

late relic
#

I play 15fps very low settings 😞

ionic tree
ionic tree
unkempt hamlet
tardy smelt
#

60 fps and max graphics because you're not online yet kappa

cyan oriole
#

anyone feel like giving me some translations for a CS:GO plugin? πŸ‘€ I need Russian mostly πŸ˜›

#

It's like 4 phrases

thick hatch
#

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

raw notch
#

only 3? you are lucky :D

unkempt hamlet
#

Who said Russian?

thick hatch
#

3 hours writing it, but 2 weeks thinking about the solution in the shower :P

raw notch
#

and also there you are lucky :D

unkempt hamlet
#

@cyan oriole

thick hatch
#

It's so goood

#

I'm going to party πŸ˜›

cyan oriole
#

It's only like 4 phrases I need translating

unkempt hamlet
#

πŸ‘Œ

opaque sierra
#

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?

unkempt hamlet
#

No way for now

opaque sierra
#

That sucks a big one

#

Is web scraping against the policy?

unkempt hamlet
#

Yes

opaque sierra
#

oh ffs

#

So no way at all to find if a user's bans are privatE?

unkempt hamlet
#

For now, you can assume user is not banned or has bans private

opaque sierra
#

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

unkempt hamlet
#

We will change this in the future

opaque sierra
#

Alrrigghtt thanks anyway; any time soon oorrrr πŸ˜›

ember canyon
#

Is there some node.js / Javascript user to help ?

opaque sierra
#

pffft javascript

#

Wish I had the patience to learn another language

#

I'd definitely learn C# / JS

opal arch
#

@opaque sierra feel free to ask here

opaque sierra
#

Well; what, in your opinion, should I start with next, JavaScript or C#?

opal arch
#

Depends on what you want to do. But C# could be a better choice

#

@ember canyon ye? Ask here

raw notch
#

js + node + c#

opaque sierra
#

Well i'm not sure really but it would be cool to make applications.

ivory condor
#

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

opaque sierra
#

I'm not quite sure at this point, I want to fill in the void of Python.

ember canyon
#
    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

tawdry comet
#

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.

floral mist
#

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

meager spoke
#

still

raw notch
#

@floral mist the SCS sdk is not outdated

floral mist
#

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?

quick glen
#

@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)

raw notch
#

I thought "outdated" meant it's not working with current game version, for what I need, it works perfectly :D

floral mist
#

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

raw notch
#

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

floral mist
#

didn't they just say that it is just very likely to come with a new sdk

ember canyon
#

@raw notch. Does the sdk works with WOT trailers?

raw notch
#

@ember canyon sincerely I don't know

ember canyon
#

Okay. Thanks.

raw notch
#

it's not a thing of my interest

#

actually I use the sdk for few things

ember canyon
#

I will test that. I want to make something which can list my trailers and write it in Excel.

upbeat void
#

Hi, πŸ™‹β€β™‚οΈπŸ™‹β€β™‚οΈ

unkempt grotto
#

hm I don’t see how that’s relevant to development chat aThonking

unkempt hamlet
cinder spear
#

if only gitlab wasn't a massive resource hog

cinder spear
#

always a good day when you break multiple production systems for almost an hour

ember canyon
#

πŸ€”

opal arch
raw notch
#

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

opal arch
#

@raw notch Contact Krashnz#3549, he is the dev of the map :p

north flax
#

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

raw notch
#

@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).

north flax
#

Ye, I'm aware. Annoyingly we had (and still have) two ID systems

raw notch
#

and, afaik, it's Kat that manages the tracker, Krash did only the ui

#

it's correct?

north flax
#

I think krash might be more involved now, I don't know for sure though

raw notch
#

oh ok

north flax
#

Not my job to consider unifying the ID systems anymore anyway :p

raw notch
#

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

opal arch
#

I guess he has that disabled

raw notch
opal arch
#

Privacy

raw notch
#

I imagine

north flax
#

Ah ye. I'd get a bunch of friend requests on discord before I disabled it myself

tidal zodiac
#

@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

raw notch
#

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

tidal zodiac
#

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

raw notch
#

I see. could you accept my friend request @tidal zodiac please?

opaque sierra
#

Thanks for adding my suggestion on the displayBans πŸ™‚πŸ™‚πŸ™‚

#

Helps me out a lot

unkempt hamlet
#

πŸ‘Œ

opaque sierra
#

❀

unkempt hamlet
raw notch
#

imgui is great, really nice lib

rotund lance
#

Ey dow

ember canyon
#

@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)

ember canyon
covert terrace
#

Would be better to post this images in #photos because they aren't related to developing πŸ™ƒ

ember canyon
#

oops, sry, didnt realise this is the wrong channel lol

covert terrace
#

wesmartgif πŸ‘Œ blobcatheart

unkempt hamlet
ember canyon
undone idol
#

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

undone idol
#

I figured it out, the node didn't have the proper parent and I thought I had already been doing that (i hadn't)

calm shuttle
#
<!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>```
ember canyon
#

Thats javascript, not java

calm shuttle
#

thats what i wrote

#

oops sorry. typo

ember canyon
strong quail
#

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?

opal arch
#

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

strong quail
#

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.

opal arch
#

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

rugged copper
#

I would also recommend Laravel, I've used a few such as codeigniter and CakePHP. Laravel is by far the best imo

strong quail
#

Okey, thank you guys for your answers

#

Gonna show you how it'll work when I'll have something done. 😊

velvet root
#

(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?

ember canyon
#

In which language do you want to write that "external app"?

velvet root
#

C#

ember canyon
#

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++

raw notch
#

@velvet root Kat send commands to the console, you can see it in truckersmp stream

ember canyon
#

so it's probably easier to manipulate there aswell

#

@raw notch can you link it?

raw notch
#

is on twitch, he uses to "goto" command sending the keystroke in game

ember canyon
#

what's his twitch?

velvet root
#

Yes, simulate keypress is the way i'm using now, but best would be to find a way which is invisible for player.

ember canyon
#
DWORD HOOKPOS_CVars__Store = 0x5BC461;
DWORD RETURN_CVars__Store = 0x5BC466;

that could be the part that changes cvars

ember canyon
kindred pond
#

@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);
velvet root
#

@kindred pond Thanks! These addresses are for 1.34?

kindred pond
#

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

strong quail
#

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. πŸ˜‰

velvet root
#

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 πŸ˜ƒ
ember canyon
#

So should i include ets 2 telemetry files and write it into
that sounds like the best approach

velvet root
#

OK, i'll try it after work today πŸ˜ƒ

unkempt hamlet
strong quail
#

@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.

velvet root
#

OK, good luck πŸ˜ƒ

strong quail
#

Thank you and good luck for you too.

velvet root
kindred pond
#

@velvet root πŸ˜‰

cinder spear
ember canyon
#

Awesome

tardy smelt
#

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

strong quail
#

@tardy smelt I went with Fat-free Framework. πŸ˜‰

#

Yeah - I know however my target is people that have hosting, not VPS.

tardy smelt
#

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

strong quail
#

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.

tardy smelt
#

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 πŸ˜›

strong quail
#

I asked my friend who is also WebDeveloper and he suggested me that. πŸ˜‚

tardy smelt
#

Is he a web developer or a "web developer"? GWrjkKappaPeek

#

Also that framework isn't even in the top 10 framework so I don't know how he can even suggest you that but 🀷 πŸ˜›

strong quail
#

Well... He normally uses Laravel

#

However one day he needed to use that framework which I mentioned.

ember canyon
#

meh

raw notch
#

why limit to ets2?

ember canyon
#

Bc i only own ets

glass rampartBOT
swift geode
#

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?

north flax
#

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

swift geode
#

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

raw notch
#

@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

swift geode
#

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?

ember canyon
#

Why not just use WSL?

north flax
#

Because you can't get nitty gritty details of Linux there.

ember canyon
#

Wdym exactly?

north flax
#

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.

ember canyon
#

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

strong quail
#

@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.

raw notch
#

@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

strong quail
#

I created my VM with Hyper-V and I have connected to Internet, but I didn't make any Dynamic DNSes, only locally

mystic ridge
#

@prisma geode advertising isn’t allowed here

prisma geode
#

Advertising? I was offering free hosting for some developers?

#

@mystic ridge

mystic ridge
#

It counts as advertising even if its free πŸ˜‰

prisma geode
#

No worries

mystic ridge
#

"- 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

prisma geode
#

No worries

mystic ridge
trail cove
#

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

quick glen
#

You'd be interested in Source\TruckersMP.cs

trail cove
#

Thanks a lot

#

Everything’s a bit different on C++, but guess it could give me an idea where I went wrong. Thanks ❀

ember canyon
#

@quick glen i want to kill myself

quick glen
#

Uhm

#

Thats not something to joke about

ember canyon
#

i had visions

#

of a complete launcher

#

with savegame decrypting/editing, mod management/autoupdate, tmp features, config editor, custom URI, etc etc

quick glen
#

heh

ember canyon
#

haven't come past the UI yet πŸ˜‚

#

Also implementing the full discordrpc.dll within a plugin seems to be pretty much cancer

quick glen
#

Discord RPC within a plugin for ets/ats is a trivial task?

#
TruckersMP Forum

By TheUnknownNO Are you bored of just seeing the skippable launcher? Do you want to get the status of the TruckersMP servers, before starting the game? Do you want a simple way to skip the intro? Do you want to have TruckersMP automaticly update itself? Then the Unofficial Tr...

ember canyon
#

not if you try to squash all the cpp + h files within the same DLL

quick glen
#

Thats what you have compilers and linkers for?

raw notch
#

implement discord sdk aside the scs sdk is not so hard...

ember canyon
#

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

quick glen
#

Thats because they dont have any c++ coders πŸ˜›

#

Ever heard of the atlas vtc rpc?

#

or the viva trucking one?

ember canyon
#

?

quick glen
#

or even what truckersmp use

#

If I wasnt so backlogged and out of time I would've had it in LogIt ages ago

ember canyon
#

truckersmp doesnt use the SDK

#

they have custom hooks

quick glen
#

Thats irrelevant, discord rpc and scs sdk have nothing todo with eachother

ember canyon
strong quail
#

TMP is using reverse engineering

#

Not SCS SDK

ember canyon
#

^

quick glen
#

Yes, aka hooks?

#

And?

strong quail
#

This second one is used for other thing, such telemetry etc

quick glen
#

I'm fairly familiar with how TMP works

strong quail
#

Well I didn't dig that hard into the game

#

So I can't tell you more. kappa

ember canyon
#

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)

quick glen
#

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

ember canyon
#
Ever heard of the atlas vtc rpc?
or the viva trucking one?

they are C++?

quick glen
#

Yes.

#

Aspecially the atlas one considering I helped their dev make it

ember canyon
#

But atlas seems to be only for one VTC right?

quick glen
#

Yeh, simply because its hard for vtcs to find C++ devs around here

ember canyon
#

So that means the general public can't have good things...

#

(β•―Β°β–‘Β°οΌ‰β•―οΈ΅ ┻━┻

quick glen
#

Yep

#

And it comes down to the fact that vtcs want things that are custom to them

ember canyon
#

i wish SCS would natively implement it so the VTC's stuff is worthless

quick glen
#

Heh

ember canyon
#

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?

quick glen
#

No clue, dont recognize your name 🀷

ember canyon
#

Bluscream

quick glen
#

Ah! I remember all the "issues" πŸ˜‰ Unfortunatley I'd already started to abandon it at that point due to a lack of time πŸ˜•

ember canyon
#

yeah i realized that after i even wrote some preview code

quick glen
#

Yeah, times a valuable thing. And I've unfortunately got 100 things to do

ember canyon
#

it even got a like by some random

quick glen
#

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

ember canyon
#

im not really interested in the roleplay aspect of ETS

#

RIP simple mode btw :C

quick glen
#

I dont even play the game anymore, yet I still maintain a plugin for it 🀷

ember canyon
#

happens for me for a few games aswell

quick glen
#

My current "struggle" with it is an in-game overlay

ember canyon
quick glen
#

oo, neat

ember canyon
#

@quick glen you should talk to @velvet root about that xD he's done it

quick glen
#

oh its not that

#

I've done it

#

that was the easy part

#

But then DX11 comes around

ember canyon
#

yeah πŸ€”

quick glen
#

And I've gotta redo it lol

ember canyon
#

its also confusing me why the game loads dxgi.dll in dx9 mode

quick glen
#

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

ember canyon
#

i mean you can always try to render something ontop of everything else

#

but that will become glitchy

quick glen
#

So what I went with was automatic hooking of endscene and present from a plugin inside the game

ember canyon
#

maybe you can use the same stuff that discords overlay uses

quick glen
#

Discord overlay uses a global hook that works when a directx device initially starts (essentially the same as TMP)

ember canyon
#

did you RE tmp?

quick glen
#

That wouldnt work for me, as the client (LogIt) is a plugin so its loaded after the directx device is created

#

Nah

#

Effort

ember canyon
#

why do you know so much stuff about it then? GWqlabsThinkPlant

#

anyway gtg ^^

quick glen
#

well

ember canyon
#

πŸ‘‹

quick glen
#

I've had it open in IDA

ember canyon
#

let's hope tmp launcher comes back to life one day

quick glen
#

so kinda RE'd it

#

but no

#

I havent RE'd it

ember canyon
#

at least you didnt use cydra (or whatever its called)

velvet root
#

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

quick glen
#

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

ember canyon
#

good thing i can't use dx11 yet anyway

quick glen
#

Thing about the console bit is that for each update (atleast major) you'd have to find your function pointers again.

velvet root
#

Yes, that is the last issue for me - for now i don't have any experience in this, so i need to find how.

ember canyon
#

i think there are ways to automate that tho

quick glen
#

To a certain extent it can be automated

ember canyon
quick glen
#

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

ember canyon
#

something with ASM

rugged copper
#

cough I built the atlas discord presence cough

ember canyon
#

Make it available for everyone 😭

#

i want RPC without running stupid VTC software like SpedV in the background

quick glen
#

@rugged copper Was it a plugin or do I just have a bad memory?

rugged copper
#

It was a plugin yeah

ember canyon
#

also "join game" would be neat for TMP

rugged copper
#

Just read the telemetry information and then used the data for the rpc

#

@ember canyon what are you struggling to do?

ember canyon
#

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

rugged copper
#

Just add it to the include within project settings

quick glen
#

Its just the same as adding any other dependency, i.e curl, boost, etc.

ember canyon
#

yeah i just added all .cpp files to the plugin and added all discordrpc directories to the includes

quick glen
#

oh..

#

no

#

thats

#

thats not how you do it

ember canyon
#

well

rugged copper
#

Nah you need to right click your project and click properties

#

I believe it's under C/C++ and include something

ember canyon
#

i had to remove the linux files

quick glen
#

Yeah, thats not what you do at all

ember canyon
#

Β―_(ツ)_/Β―

#

never said i knew c++ πŸ˜‚