#programming

1 messages Β· Page 1 of 1 (latest)

urban lantern
#

So quiet around here.

It'd be a shame if someone..

Sets truck gear in reverse and walks away from keyboard

Beep. Beep. Beep. Beep.

paper hound
#

pov plays with no sound peperun

urban lantern
fervent axle
#

It look like programming with no screen switched on kappa

paper hound
#

I'm big pro coding a buggy drivers hub πŸ˜„

cinder kayak
shadow marsh
#

Sooo, I figured out I want to build a real vehicle tracker.
I will realise it with Arduino, GPS and a GSM Module (Obviously), as well as making it more interesting with a 20x4 LCD Display.

The Display will show the current date/time, as well as the GPS/GSM Signal, the current speed and the driven distance since last reset.

Data will be stored on a MySQL DB, connection will be done over a PHP Json RestAPI. (Get Data & Push Data).

On the website part, I want to show on a map, where I was driving, like... a line where I was, since I push data every 5 seconds of my current location and the current speed of driving.

What do you think? awesome

cinder kayak
#

Wouldn't it be easier to track the data using your phone? pepesus

shadow marsh
#

Well, I tried it doing so

#

Buuuut... I failed miserably...

#

and the code base for the arduino is nearly done lol just waiting for the sensors to arrive (amazon, hurry up!!!)

unkempt hamlet
#

So, the choice is made already SysgenWhat

shadow marsh
#

indeed ^^

#

but what do you think of the idea overall? pepe_hmm so I also can track my working times and so on πŸ™ˆ

unkempt hamlet
#

If it works, it works catthumbsup

shadow marsh
#

I just need a 3d printer... to make everything tight and put it in my company car wesh

quick glen
# shadow marsh Sooo, I figured out I want to build a real vehicle tracker. I will realise it wi...

I've actually done this, although instead of using a rest API to push data I use a raw socket to keep a persistent connection.

I also added a can bus module I've connected to my cars can bus so that I can read data from all the modules in it (and even send commands to some).

I have mine connected to power 24/7, so I have put a lot of work into lowering power consumption and having the entire arduino and its modules power off whilst the car is "asleep" only regularly waking up to report back before sleeping again.

shadow marsh
#

well, since I am not allowed to use the OBD2 port, I have to use the "normal" powering way over a 12v dc to a breadboard 5 & 12 v dc line to power everything up

quick glen
#

Data is stored in a database and I've made an API that an app I've made for my phone uses. Right now I'm working on sending real time events from the car (and the server) which can be used by the mobile app for in app stuff and push notifications

shadow marsh
quick glen
shadow marsh
#

ahhh

#

well, I doubt I would be allowed to do that either πŸ™ˆ

quick glen
#

My entire arduino stack is hidden in the dashboard so you can't tell its there

quick glen
shadow marsh
#

I can't modify a rented car πŸ™ˆ

#

my company relies on rented cars (soon not anymore) but still, I wouldn't be allowed to change anything

#

but I might build a second part for my PERSONAL car, where I can do, what I want wesh

quick glen
#

Yeah, bit of a downside but its still a fun project

#

Lots to learn from it

shadow marsh
quick glen
#

Eventually I want to be able to lock/unlock the car from the app, aswell as turn on the diesel heater (It gets really cold during the winter here) for defrosting

shadow marsh
#

not bad... not bad

#

well, I mainly just want to build a tracker with speed, location and time πŸ™ˆ

quick glen
#

Now I'm waiting on getting a raspberry pi so I can hook up as a Bluetooth adapter for the radio, but also hook it up to the 4g module the arduino uses to create a hotspot for road trips.

#

Being hooked up to the can bus I can tell when the buttons on the steering wheel is pressed and use that to integrate next/previous song over Bluetooth πŸ™ˆ

shadow marsh
#

you've planned much, aye πŸ™ˆ

quick glen
#

Yeah, I've put a lot of time into it πŸ˜‚

shadow marsh
#

I can tell πŸ™ˆ

fervent axle
#

Did you have also a maintenance status when you're going in stackoverflow?

fervent axle
#

nvm it's gone

cinder kayak
#

Nvm I won't answer EC_PepeTongue

#

Nub

pulsar jungle
mossy cloud
tepid vault
#

is there an API url for the ETS & ATS traffic?

tepid vault
#

thx

toxic turtle
#

Im lazy, im bored, im without a style or a vision on how my vtc website should look. Who is creative for such a project?

mossy cloud
toxic turtle
unkempt hamlet
violet tulip
#

that's insane

sour eagle
#

Hey, I've been working on Alfie - An open source Discord Bot for TruckersMP stats programmed in Python using interactions.py. The bot uses Discord's interactions such as slash commands, autocomplete & choices. I also think it displays info in an eye catching and unique way. It's still a work in progress but it's now been deployed :) Source code for anyone interested: https://github.com/SamNuttall/TruckersMP-Info-Bot. Feedback appreciated Awesome

shadow marsh
#

Awesome work thumbs_up

ionic cave
unkempt hamlet
#

Working on a little hidden object game to learn Godot engine.
Progress so far:

  • Splash screen, main menu and main level
  • Programmatically compiled levels from manifest and resources
  • Resource offsets for wide levels, driven by mouse position

Plans:

  • Generate POIs from resources on the fly (to test if it is any viable)
  • Pause screen
  • Save states

https://streamable.com/a96g3t

pure spoke
#

Hello lovely people.

I've just launched a new VTC website. Right now this is just plain HTML/CSS on a really awful host.
https://www.F4A.cc

Long term goals are to use Strapi with a VueJS or React front-end. Has anybody used anything similar for their VTC projects before? How did it turn out?

unkempt hamlet
#

Why do you need to have a full AOS lib there when you can just make 3 CSS3 animations?

pure spoke
#

haha because I didn't take just the ones I needed. AOS gives me a lot to play with

unkempt hamlet
#

It is quite overpowered for this landing page, tbh

pure spoke
#

yes it is, do you have a more lightweight anim library you would recommend?

unkempt hamlet
#

I mean, for this exact page, just CSS3 transform and opacity animation will do

#

They are max. 2 lines each

pure spoke
#

I will have a play with those thanks ❀️

past shuttle
#

Does anyone have any recommendations for job loggers etc?

unkempt hamlet
earnest siren
#

How come api.truckersmp.com/v2/servers has no more pages? i.e, you can't do ../v2/servers/{server_id} else it'll return a nil. Surely it would be much easier for the user, as they would be able to look up individual servers

unkempt hamlet
#

Why? There is not much info there.

#

There is no justification for having "pages" for individual servers there.

winter tulip
#

I'm currently learning web development and damn, it's so confusing and overwhelming xd. At first it only was html, then only a few days later came css, again a few days later came php and once again (for the last time) came js. I feel like i haven't even 'mastered' the basics of html, yet i'm still expected to use everything together πŸ˜…

unkempt hamlet
#

Well, that's just a tip of this iceberg SCGsus

winter tulip
#

I only can imagine. I've already heard/seen about stuff like angular or react. But i have to better learn the 'basic' stuff first before i consider learning about those. For example, with html i'm at the point where i always think about when to put something as a div or what's the difference between 'class' and 'id'. With css i'm at the point where i'm trying to figure out how the different position options (static, relative, fixed, etc.) work kekw

shadow marsh
#

Good luck with learning tho!

#

I gave up webdevelopment long time ago kek

winter tulip
shadow marsh
#

Well, because I lost the mood to do so. As well as it was too overwhelming for me to learn all the syntaxes, commands, etc. and all the different resources I would've needed to make a good site.

So I kept coding in Java, since that's the language I know and can work with flawlessly - well, mostly. lol

winter tulip
#

I can relate. I enjoy coding in java more as well. Which IDE do you use? I'm currently using netbeans

shadow marsh
#

I'm a "eingefleischter" Eclipse IDE user aPES_Laugh (if you dont know what eingefleischt means, it's german aPES_Laugh )

winter tulip
#

Same. But i had to switch to netbeans because of database access. And i'm german as well πŸ˜„

shadow marsh
#

Well, for DB access i have PMA (since Chrome is running anyway for Γ–3) lol and nice tho SCbopvibin

winter tulip
#

Didn't know that was possible with eclipse. I was taught i had to use netbeans for it kekw

shadow marsh
#

Well... I use MariaDB (MySQL) and just use PHPMyAdmin to access the DB - and a mysql adapter for the code internally

winter tulip
#

Are you using linux?

shadow marsh
#

on the remote server, yes

#

Debian 10 x64

#

and on my laptop win 11 pro x64

cinder kayak
shadow marsh
#

Which I'm very glad and grateful of kek bloblove

mossy cloud
#

JetBrains is the best IDE imo @winter tulip, but is expensiveeeee if you're not a student

unkempt hamlet
#

JetBrains is a company, not IDE kapp

mossy cloud
#

Well, their suite of IDEs anyway

#

Depends on the task at hand

unkempt hamlet
#

True

mossy cloud
#

It's like synonymous with going to "hoover" something - It's a brand but you could well be using a dyson lol

unkempt hamlet
#

Xerox SCGsus

shadow marsh
#

Interesting kek has any1 tried this of you? KappaTroll

cinder kayak
#

Not yet PU_pepeHmmMath

shadow marsh
cinder spear
#

with anything popular it's always the most efficient way to get help

#

with unpopular things you might just get "yeah it's terrible, deal with it"

shadow marsh
#

yeah... I do have two or three parts which are terrible in my codebase... but I cannot really change it, as its due to a dependency I use. Weird but I gotta live with that thisisfine

sour eagle
#

Is it possible to get a TruckersMP user via their Discord ID through the API?

sour eagle
#

Shame, okay thanks

unkempt hamlet
#

It will be unreliable anyway, because the user can hide their Discord snowflake.

shadow marsh
#

what technically is possible but not really recommended is - you simply make a loop and an integer which increments with every done, save the info in a personal database and in that way you can get the discord-id, however, you would have to do that often, so the data keeps up2date. However, I think TruckersMP would rate-limit that

unkempt hamlet
#

Don't ever do that.

#

That's highly irresponsible.

sour eagle
unkempt hamlet
#

While "The search algorithm" paragraph is out of date, the rest of it is a pretty good read

shadow marsh
#

As I said, CJ - it's not recommended

unkempt hamlet
#

It should not ever be in consideration, not just "not recommended" kapp

shadow marsh
#

Well, I don't even plan to do that anyway

unkempt hamlet
#

If API doesn't explicitly allow you to request multiple entities with pagination, don't even think about it SCGsus

shadow marsh
#

Cuz.. why would I need TMP stuff on a MC Server? kek

sour eagle
unkempt hamlet
#

I mean, you're not the only one with SamN* in the nickname

sour eagle
#

That's true. Though I do think an exact match should be listed first.

unkempt hamlet
#

It is actually sorted by descending ID

#

It is not that bad that it used to be though

sour eagle
#

Ah okay. And yeah, while it may not be that bad the point I was making in that gist is that if someone searched for a player via a Discord bot, and the name was exact, you'd expect that player to be shown.

native gazelle
#

How can I display traffic info of a particular server in embed?

unkempt hamlet
#

You first need to filter the response for the particular server

unkempt hamlet
#

Depends on what exactly your command does

native gazelle
unkempt hamlet
#

For all servers or just one?

native gazelle
#

oh wait I figured it out

#

thanks btw

native gazelle
#

@unkempt hamlet can I talk to u in dms for a sec?

unkempt hamlet
#

No, but you can ask here

native gazelle
#

can you tell me a way to do that?

unkempt hamlet
#

What do you need to do?

native gazelle
unkempt hamlet
#

JavaScript?

native gazelle
#

yup

unkempt hamlet
#

Learn how objects work.

#

Then you will be able to grab the data you need in a loop.

native gazelle
#

thats what I don't know, and I am asking it here

unkempt hamlet
#

You can google it, N times quicker than asking here.

mint hawk
native gazelle
native gazelle
cinder spear
#

what do you get back from it if anything? is message from discord.js here and where exactly?

cinder spear
#

looks like something wrong with what you're including in the .send

native gazelle
#

bc I am sending two messages

#

and the first one is going normally

#

but 2nd one gives an error

cinder spear
#

show the one that works?

native gazelle
cinder spear
#

I meant the code

native gazelle
#

oh ok wait

cinder spear
#

the error is just Discord telling you that you're sending data that isn't formatted in the way they expect

native gazelle
cinder spear
#

it might be as simple as data.game_time instead in the addField. There's no response object in that API

native gazelle
#

oh yeah correct

#

theres like no reponse thing

native gazelle
cinder spear
#

you'll have to write a function to convert it

native gazelle
#

<t:21809743>

#

this?

cinder spear
#

no, in code

native gazelle
#

but like this right?

cinder spear
native gazelle
#

ok

#

thx

mint hawk
#

it's actually very confusing making that readable

#

and it's even more odd because the one site that's managed to make it readable https://map.truckersmp.com/, uses a different api πŸ˜‚

unkempt hamlet
#

Well, there is only one source of truth

fathom mist
#

Who know LUA coding?

unkempt hamlet
#

Just ask right away, somebody will answer eventually!

ashen nebula
#

Is there an oauth api for truckersmp

#

Or smth

#

Working on a trucking logger

cinder spear
#

You can use Steam login and then get the corresponding TruckersMP account from our API

ashen nebula
#

Alright

ashen nebula
#

Thinking about making a node.js wrapper for trucksrsmp's api

unkempt hamlet
ashen nebula
#

oh nice

ashen nebula
#

the library didn't work for some reason managed to do it via manual fetching though

#

probably messed smth up

#

managed to get steam linking to work

shadow marsh
#

looks very good awesome

ashen nebula
#

thanks

#

vtc part is the most annoying though

#

to make

#

Made it open source

shadow marsh
#

I can imagine that πŸ˜„

ashen nebula
#

It's on github

fervent axle
ashen nebula
#

True

ashen nebula
#

Let's start a debate

#

Vue vs React

unkempt hamlet
#

Nah, Vue/React vs Svelte SCGsus

ashen nebula
#

I use Vue for big projects

#

Svelte for small

unkempt hamlet
#

Angular vs VanillaJS SCGsus

ashen nebula
cinder spear
#

what's wrong with svelte for larger projects?

mint hawk
ashen nebula
shadow marsh
#

Hello there,

I'm creating a bot for our VTC and I want to ask, how many calls can I do on the news endpoint of the TMP API before I get blocked?

I would say 1 call per Hour, aka 24 calls a day or is that too much?

Kind Regards and TIA^Kit

cinder kayak
#

I'd say: Test it out hmmge

shadow marsh
#

dont want to take the risk getting blocked xD

cinder kayak
ashen nebula
#

I'd say if you're scared of getting blocked make a cache system to prevent getting blocked

shadow marsh
#

yet still I have to update the cache

ashen nebula
#

For example I use sessions that expire on my own logging book

#

Like every 24 hours

#

Once someone logs in it fetches their profile and caches it

#

Only when you view a vtc profile it fetches it from the api

ashen nebula
#

But i haven't had any rate limits or smth yet during testing so you should be fine probably

sour eagle
#

A while ago, the unofficial rate limit appears to be maximum of 60 per minute. So, 1 per hour is significantly below that. #programming message

mint hawk
#

if u use a vps without static ip's you might be able to get around it

shadow marsh
#

Yeah, guess so

#

And how, if the bot run on that said server with the static IP?

sour eagle
cinder spear
#

please don't try to get around anything. If you have concerns about your API usage, get in touch

mint hawk
unkempt hamlet
#

o o o o wooooooow

pulsar jungle
pulsar jungle
#

It sure does

violet tulip
ember canyon
#

.

fervent axle
#

For those devs who know OCR stuff, which package do you use? Do you prefer EasyOCR or Tesseract or something else? Why?

I need your opinion because I'd like to create a software which determine and recognize license plate and ID Card text the most performant and quick as possible

violet tulip
#

i've heard good things about Tesseract

fervent axle
violet tulip
#

someone knows how to upgrade Laravel from 8 to 9 without dying under the dependencies hell?

mossy cloud
#

Also this service isn't free but will create a PR to upgrade you https://laravelshift.com/

Automated and human services for upgrading, auditing, and testing your Laravel applications.

violet tulip
#

actually I was thinking to clone a new Laravel 9 project and then install one by one all packages then copy and paste the old app code

opal arch
#

I remember that in the past, somebody here shared a library with TypeScript types for our API.
Well, we now have an official one (which is highly inspired by discord-api-types as it fulfils the same purpose): https://github.com/TruckersMP/API-Types

cold drum
#

How can I get the user profile link using the username? (Javascript / Discord.js)

violet copper
#

Which opens their profile in Discord

cold drum
violet copper
#

Ohh tmp lol, I guess that makes more sense heh

cold drum
cinder kayak
cold drum
#

but I do need to use the api right? there should be an easier way cuz this can get the bot ratelimited

cinder kayak
cold drum
cinder kayak
#

The name String is part of the response. If you give the API a User's TMP or Steam ID, it gives you some information, including the Player's TMP-Name, back.

tardy smelt
cold drum
#

its a discord bot

tardy smelt
# cold drum wdym "scrap the website"

https://en.wikipedia.org/wiki/Web_scraping

If you want to get information from our site. Please only use the API.

Web scraping, web harvesting, or web data extraction is data scraping used for extracting data from websites. Web scraping software may directly access the World Wide Web using the Hypertext Transfer Protocol or a web browser. While web scraping can be done manually by a software user, the term typically refers to automated processes implemented...

cold drum
royal nova
shadow marsh
#

And what exactly has that to do with... development?

#

You apply to a position, when the recruitment is open.

#

TMP Website.

opal blade
#

Not really a good reason to be staff tbh Smile

north flax
paper hound
#

Hey, just wondering is it allowed to proxy the truckersmp api so that I can display information onto a website?

mossy cloud
paper hound
#

Just gets the cors error whenever i try without a proxy for it

opal arch
#

You can send requests only to the above documented methods

brazen mango
#

please restart servers its laggy

azure fox
knotty seal
#

F

fathom mist
#

Can someone teach me how to do a Radar script in LUA? (For Roblox)

azure fox
static cypress
#

Currently training an AI to drive on TruckersMP, I have around 1gb of images to test with at the moment, but 15x more is needed before I'm trying it down populous roads.

cold drum
static cypress
#

the images are 100x100...

#

even less now

#

75x90

#

it's only the windscreen + it's compressed...

cold drum
#

damn

static cypress
#

I'm training it rn on real driving footage

#

And also the way I'm doing it allows for use on multiple games with you having to change nothing

#

Just click start and boom

static cypress
#

And does anyone know if TruckersMP has any plans to implement rules against AI/bot driving

#

Hopefully not as it doesn't hinder player experience at all

static cypress
azure fox
mint hawk
static cypress
#

Don't think so, it doesn't impose harm or risk to others.

solemn sable
#

Do we have a support for devs?

#

I am new to the api's and trying to get familiar with it

#

I am trying to display the servers, but it keeps spinning in circles

solemn sable
#

please reply to my message when you respond to me,I am going to sleep

azure fox
solemn sable
azure fox
solemn sable
#

I will get to that point soon

solemn sable
#

can I not seend code?

#

Players.js

#

app.js

azure fox
solemn sable
cinder spear
#

app.use(Main)

#

the routers already know what paths they handle

solemn sable
#

im at work computer rn

solemn sable
#

after changing

cinder spear
#

what version of express are you using?

solemn sable
#

I just did npm i express

solemn sable
cinder spear
#

I don't know. Likely something with how you're requiring or exporting the modules

solemn sable
#

im stuck, not sure why it would work on my home computer and not here

solemn sable
sour eagle
#

When using an Express Router, you need to provide middleware as the error says (router.use). I recommend reading the docs here: https://expressjs.com/en/guide/routing.html
It looks like you don't need a router for your specific needs, and could just use app.get, as shown in the first example

solemn sable
sour eagle
#

A router is designed to handle multiple endpoints whereas it just looks like you're using a router per endpoint hence why I suggested it may be redundant for your needs.
You still need routes, but instead of creating a router each time, you could just use .get on the app constant.

const express = require('express')
const app = express()

app.get('/servers', (req, res) => {
  // handle logic
})
solemn sable
#

This is my first time with apis

#

I got you

solemn sable
#

I mean your pulling from the json portion and parsing it out then re-jsoning it?

azure fox
#

What are you trying to achieve?

#

At the moment all I can see is that you're building an API to interact with TMP's API, but don't do anything with the data

solemn sable
azure fox
#

Oh. Where do you want to display the data?

solemn sable
azure fox
#

Oh. Wouldn't just making HTTP get requests and logging the response be better then?

solemn sable
azure fox
#

JavaScript isn't my forte, but I'd say making HTTP GET requests and then logging the response is a much easier way to experiment with the TMP API than building what's effectively an API of your own just to call TMP's API.

const request = require('request');
request('https://api.truckersmp.com/v1/players', function (error, response, body) {
  console.error('error:', error); // Print the error if one occurred
  console.log('statusCode:', response && response.statusCode); // Print the response status code if a response was received
  console.log('body:', body); // Print the HTML for the Google homepage.
});

code example taken from: https://www.npmjs.com/package/request

azure fox
#

You'll need to install the module request before you can use it.

#

Do note that package is deprecated

solemn sable
azure fox
azure fox
solemn sable
#

what do you mainly use? PhP?

azure fox
#

Occasionally. I mainly use Python and sometimes, js

solemn sable
#

I gotcha

cinder spear
#

node 18+ has fetch natively, no need for a requests package

violet tulip
#

someone knows how to get all relations from a Laravel Model? I need the relation names, trying with getRelations() but returning always an empty array

#

oh just found this package adideas/laravel-get-relationship-eloquent-model, did the trick πŸ˜„

mossy cloud
violet tulip
#

no πŸ™‚

#

i want to have an array with all relations names (without loading them). that package worked πŸ™‚

mossy cloud
#

Ah okay, nice πŸ™‚

fervent axle
violet tulip
cinder spear
gaunt spindle
#

Good evening my fellow devs.

quartz moth
#

Anyone used AWS lightsail before? Good, bad?

cinder spear
#

what's the use-case?

#

it's almost certainly not the best option but it can be just fine

quartz moth
cinder spear
#

if it can run on the cheapest one it's probably the best option

#

unless you can make it entirely serverless and host it on something like railway.app for free

#

or vercel, or netlify

#

saves you the trouble of maintaining a server for it

quartz moth
#

Ah ok nice, thanks a lot 3v wee

dim lake
#

I'm giving a crack at Force Feedback settings and I am trying to wrap up a simple forcefeedback project (could be C#, c++; Windows 10/VS2022...) to first see which effects I can use best in my cheapo wheel. It seems it doesn't support DirectInput as I get an E_NOIMPL from CreateEffect in a c++ project I found on GitHub.

Any directions I could follow to get that working?

mint hawk
#

Isn't DirectInput a deprecated API that Windows 10 no longer supports?

dim lake
#

I don't think it is deprecated, many many hardware supports it. Vut xinput is really the "new standard" an M$ asks to favor this interface in modern programs. But by no means you can oversee DirectInput support to your tool if you want to provide broad compatibility.

#

Besides, the joywheel I'm fiddling with is 2007, so it knows nothing about XInput.

#

I might actually need to write the driver to that thing... πŸ˜–

dim lake
#

On a different topic, maybe the launcher app don't really need source maps bundled with the webpages (app.asar). Or is that there to help provide launcher bug reports?

dim lake
#

dang it, cant share json files here.
I made a pt-BR.json translation for the launcher, if the devs (or anyone) is interested. It works well, but there's something left to enable before I can save the language (I can switch to the language once I open but the choice doesn't get saved).
I used this in LANGUAGE object for the lang: "PortuguΓͺs/Brasil": "pt-BR",.
It is up to date with version 1.3.2 of the launcher.

violet copper
#

they likely won't see this here

dim lake
#

they're not looking for that anyway. it was fun and I learned a bit about what's used to make the launcher.
thanks for the directions though! :]

#

back to my rumble plugin. I even studied KMDF (windows drivers stuff) to see what I can do to make this wheel rumble in the games.... Not worth reversing the simple HID device, my attempt now is to send FFB commands via RawInput, as it seems DirectInput (much less XInput) should work with the poor ol' wheel.

violet tulip
#

GoDaddy DNS are down in many european countries

violet tulip
restive hare
dim lake
#

no worries

dim lake
# dim lake back to my rumble plugin. I even studied KMDF (windows drivers stuff) to see wha...

I found 64-bit drivers for my rumbly wheel. But they are downright broken (access violation). Went back to scratch and am writing the very driver.... I guess I will just have the basic ConstantForce effect working and will probably still need a plug in as ETS2/ATS now use the fancy force feedback effects. Chewing down spring, damper, groove effects in a puny motor with an unbalanced weight is crazy! :P

And I still have the problem of the open source drivers only working in 32-bit. I'll have to figure out how to hook the 64-bit DLL correctly.

What an adventure!

dim lake
#

not much going on here it seems. I just tested the game with my driver, I can finally have the stick rumble in echoes to the rumbling truck engine! \o/

#

although I feel something is amiss with the rumbling effect and the truck behavior... I'd expect a jump while turning truck on, and feel more rumbling than it does when I step deep in the gas

#

but I can definitively feel the truck now!.. the steering settings all "minnied out" as there's no sense in trembles vs steering right or left. heh

shadow marsh
#

I know, it's not much, but I finally made my very first discord radio playing music bot woah well, it only joins and starts playing the hardcoded radio (should not play anything else) πŸ˜„

dim lake
#

and I have my "force rumbleback" SCS Plugin working! Much much much better than game's original force feedback stuff. The original FF settings might work for expensive steering wheels, but old PS2-compatible, vibration-only, are no good with ETS2.

dim lake
#

Is there any public material on how exactly TruckersMP does its injection with the game? What call they grab and perhaps how do they update the address every new release? Or is that their "trade secret"?
I think that will be the only way to implement something to let me rest anywhere. I basically want to be able to rest at rest stops locations that are broken in the game, and I believe the only way would be to inject code to "toggle" the current truck location as a rest spot.

opal arch
# dim lake Is there any public material on how exactly TruckersMP does its injection with t...

Those two questions are unrelated. Anyway, the tools we have are a trade secret. But the fact that we hook and call functions is no secret; that is how all these modifications work. If you are interested specifically in TruckersMP, you can take a look at our previous (unfinished) code base from 2013: https://github.com/MRBlueGame95/ETS2MP/tree/master/src/Client/Core/Game

Or you can base your hooks on pattern scan. Like this FMOD plugin does it: https://github.com/dariowouters/ts-fmod-plugin/blob/a999af4/ts-fmod-plugin/dllmain.cpp#L256
FiveM also uses pattern scan: https://github.com/citizenfx/fivem/blob/62cc4c4/code/components/rage-graphics-five/src/RenderHooks.cpp#L74-L92

#

I would personally recommend pattern scan as that one works better with a fewer amount of hooks; you do not have to port between versions unless there is a breaking change

#

But that of course depends on the pattern you write

dim lake
#

thanks! I will give pattern scanning a shot

zealous eagle
#

Afternoon! Does anyone use AWS S3 for static website hosting?

wild holly
#

Hi! The Steam helper has stopped working since a few weeks. It throws a

Uncaught (in promise) Error: Cannot read properties of undefined (reading 'games')
    at o (browser-polyfill.min.js:1:9257)

error. Somebody knows an idea about how to fix this?

lethal willow
#

what steam helper

cinder spear
pulsar hill
#

Anyone know a good tutorial on how to set up the scs SDK for ETS2 and how do i use it with js/python?

zealous eagle
pulsar hill
zealous eagle
pulsar hill
quick glen
# pulsar hill Hey there. I see that the examples given in https://download.eurotrucksimulator2...

The SCS SDK is only in C++. If you want to use it in JS or python you need to use a package/project that provides this for you. For example: https://github.com/RenCloud/scs-sdk-plugin which has a pre-made client for C#, but in makes the data available in a memory mapped file that can be accessed from any programming language.

GitHub

ETS2 (Euro Truck Simulator 2) & ATS (American Truck Simulator) SDK plug-in. Telemetry data is shared via SharedMemory/Memory Mapped Files. - GitHub - RenCloud/scs-sdk-plugin: ETS2 (Euro Tru...

pulsar hill
wild holly
unkempt hamlet
wild holly
#

If you check I just wrote yesterday that it is working again, probably some API issue

clear laurel
#

anyone know how to make SP interiors into Local mods?

shadow marsh
#

What has that to do with development? That'd fit more in #ets2-modding or #ats-modding (depending for what game you would like to do it)

mint hawk
winter tulip
#

Hey guys. I was using fastapi together with mongodb. However, I have the issue that whenever i try to insert_one entity with the POST request I get the error "Unprocessable entity". Any ideas on what the problem might be?

winter tulip
#

For reference

mint hawk
winter tulip
mint hawk
#

You need to convert all the Pydantic model instances to regular Python dictionaries.

It's been a while since I've used it but I believe with FastAPI, you can use the function jsonable_encoder

winter tulip
ember canyon
#

hello

#

how can i be a moderator?

shadow marsh
#

what has that to do with development? PES_Think

ember canyon
#

idk

shadow marsh
#

you see.... but you apply, to answer your question

ember canyon
#

just curiosity

shadow marsh
ember canyon
#

i am banned 3 week ago

#

and 2 day ago

#

how much is moderator price?

shadow marsh
#

you don't pay for it nor you get paid

ember canyon
#

wow

shadow marsh
#

and also, if you are banned in less than a year from today, you cant apply.

ember canyon
#

ridicilous

#

i am banned twice

#

but i am innocent of both

cold harbor
cold harbor
#

You must not have been banned in the last 1 year to create an application.

mint hawk
#

All good :)

arctic pond
#

Developer memes best memes

shadow marsh
mild dagger
mint hawk
dim lake
#

As a suggestions to TruckersMP, a simplistic way to guess installation path of both games:
https://github.com/avengerx/SCSClutchFixer/blob/v1.0.0/ClutchFixer/Program.cs#L21-L79
https://github.com/avengerx/SCSClutchFixer/blob/v1.0.0/ClutchFixer/SteamVDF.cs

That's in C# but probably not that difficult to be ported to Node.JS (I think the current launcher is in Electron, right?)
To be safe, this could be attempted just as initial values for the installation. If any part fails, just behave as the launcher does currently.

(disregard this if the launcher already guesses paths on install -- it didn't back when I installed it first time a month or so ago)

violet tulip
cinder spear
#

The hardest part is actually finding where steam is installed to find the vdf file

#

Reading from registry in electron is not trivial especially when we have to walk a tight rope with AV false positives due to the inherently sketchy nature of injecting dlls in running processes

violet tulip
#

i read the registry in Trucky from a .net assembly and never had problems.
the real issue is reading the vdf file in a reliable way

dim lake
dim lake
violet tulip
#

also if you move the game from steam, the old game path remains in the vdf aswell the game content

#

yes, you will find always the VDF but it's not really reliable as it could contains many library folders and the game could be in both place

dim lake
violet tulip
#

that's why I was asking you eventually find a way to resolve correctly the "real" game path

dim lake
violet tulip
#

it's indeed the non techy messing with the game location πŸ˜„

dim lake
violet tulip
#

i know relatively for sure that it you move the game from the Steam interface, Steam doesn't remove the old game content and will add a new library path

#

luckily is not so common people moving games multiple times but we have found a good amount to be noticeable, they have 2-3 installations all over the system πŸ˜„

dim lake
#

But in the end, the VDF should be safe, as steam updates are supposed to go where it points. So whatever is set up with steam should be the default choice (in my tool the only choice lol)
But again, it should work well on truckersMP which has the setting to manually browse for the folder. :P

violet tulip
#

we found also people running the wrong and outdated version of the game without knowing πŸ˜„

dim lake
#

I don't think there will ever be an option to fullfill all scenarios... just the most common or default ones, right?

violet tulip
#

or even running TMP with an installation and the single player (from Steam) from another

dim lake
#

ya, there's not much that can be done to these cases, they went out of their way, out of the box, "to break the system".

violet tulip
#

Trucky installs plugins in the first path found, when we discover multiple installations, we ask to the user to delete the old one, then everything will work magically πŸ˜„

dim lake
#

I mean, some tricks could be done to search all drives, task list, or even windows event logs; perhaps game directory for game.log.txt... but still, guy has 2-3 installations in different places, there's absolutely no telling, they have to make up their mind and choose that path for themselves. :P

violet tulip
#

and they have also multiple places for -homedir location πŸ˜„

dim lake
#

Well, if that weird approach o'mine adds anything to trucky's path finding, you're welcome to use. I just thought it could make a lot of people's lives easier as it always starts as blank.

About being difficult to query registry from nodejs, I don't know, there are even cmd tools to query registry keys, so it totally could be done without even adding yet another of those dependencies that pulls 1000s other dependencies... :P

violet tulip
#

from .net no issues reading the registry, pretty easy

dim lake
#

Nothing's easy in the end, it's just finding reason to dedicate time to them. One day I will fix that wretched turbo gauge in the game! 😡

dim lake
# violet tulip from .net no issues reading the registry, pretty easy

it can get complicated when you can't tell whether the key you want is in local machine, user config, syswow64, etc.... I think it can get pretty tricky no matter where you go.
Was working with my ol' steering wheel drivers a few days ago. One driver version installed keys here, the other installed there... none of them properly cleared keys on uninstall, and the list goes on. 😬

#

Back to this path issue of ours, suppose somebody has family access to a computer. So one kid has one steam account, with X DLC, another kid another steam account ... they just log off an switch accounts and use different library paths... what would that VDF or steam key contain at all?..
There are more points of breakage than meets the eyes :P

violet tulip
#

when you land on user's PC, actually you can find everything, j saw worst things ever, such absurd setups

#

from my experience, mostly they have different steam accounts but install paths are the same

weary citrus
#

help

candid pulsar
# weary citrus
TruckersMP Forum

Hello. If you encounter this problem, follow these instructions: Quote 1. Start a command line as an administrator (cmd) 2. Run the command: sfc /scannow Spoiler 3. Wait, and then restart your computer 4. Run a single game in x64 DirectX mode (Launch witch DirectX for ATS) Spoiler 5. Drive a shor...

toxic hornet
# weary citrus

Hello! Next time please ask in #support or dm @opaque oriole for help instead of asking in this channel again. Thank you! peek

dim lake
#

I was just checking logitech SDK docs. It's only interface to the LEDs (g29, g923.. g27 maybe?) is only to model after RPM gauge and little liberty to go beyond.
I'm thinking on making a plugin to show fuel instead. I already have PoC in c++ playing a few custom effects. Basically my limitation is, I can only light two opposing leds at a time (that is, I cannot light the first green to the left and not the first green to the right, or either red -- but not the other). Other than that, I can even do fancy animation effects if I access the joystick straight via HID interface.

But the other, actual force feedback effects seems to be better off with Logitech API than using DirectInput directly.

First step would be a fancy custom LEDs functionality, but I might give a full force feedback implementation a try, in a second iteration, as I'm not happy with how the game models some feedback from the wheel.

#

https://www.youtube.com/watch?v=jQsOvMWMGVg
Here's a showcase of the available LED combinations in the wheel I recorded the other day (this was before I wrapped up the c++ code, using the logitech-g29 node module.

This shows how the leds in the Logitech G29 steering wheel as we provide values from 0 (0x00) to 31 (0x1f) to its HID channel.

Values beyond 31 (0x20 onwards) are cropped, so only its first 16 bits are used. The effect of "filling up" is made by only incrementing by doubling or decrementing by splitting the values (0, 1, 2, 4, 8, 16, 8, 4, 2, 1...

β–Ά Play video
#

I'm wondering if I can do anything more useful than RPM display besides fuel level display. Can, for instance, do a motion effect when refueling if telemetry provides any data when I start refueling.

Probably not possible with telemetry data, but a distance sensor while reversing. Maybe this became a thing with the emergency braking and adaptive cruise control though... that is, if the distance from object/collision became a data passed to telemetry...

dim lake
#

I could never imagine how difficult it would be to get a fuel gauge working from a plug in ...thanks to a bug where total fuel capacity is not informed correctly by telemetry callbacks... 😩

shadow marsh
#

Does anyone in here have an Arduino with Sim800L Module and got it to working making a connection to a webserver via PHP API?

quick glen
shadow marsh
#

Alrighty alrighty - do you also happen to know, how to make a connection to a webserver to "submit" new data to the API (which feeds the database) ?

quick glen
# shadow marsh Alrighty alrighty - do you also happen to know, how to make a connection to a we...

TinyGSM comes with a lot of examples, they have an example for a https client where they do all the modem stuff.
In their example they used https://github.com/arduino-libraries/ArduinoHttpClient/tree/master to handle the HTTP client stuff, they too have an example on how to do post requests πŸ™‚

GitHub

Arduino HTTP Client library. Contribute to arduino-libraries/ArduinoHttpClient development by creating an account on GitHub.

shadow marsh
#

ahhhh, awesome muhaww thank you veeeery much! πŸ˜„

#

Building a GPS Car Tracker πŸ˜„

#

hence why ^^

quick glen
#
GitHub

A small Arduino library for GSM modules, that just works - TinyGSM/HttpsClient.ino at master Β· vshymanskyy/TinyGSM

GitHub

Arduino HTTP Client library. Contribute to arduino-libraries/ArduinoHttpClient development by creating an account on GitHub.

quick glen
#

Although I chose to use a TCP Socket connection instead of doing HTTP requests to send data as I wanted to stream telemetry data in real time.

shadow marsh
#

notbad well, for me its not only a tracker, also has a LCD screen to show real data locally, too πŸ˜„

quick glen
shadow marsh
#

hehe - well, that's surely been a great project with remote-starting the heater πŸ˜„

narrow cove
# shadow marsh <:notbad:957375815799173180> well, for me its not only a tracker, also has a LCD...

I would go for TCP sockets too, mainly because it's faster and you can create your own protocol. Otherwise you don't have too much control because the data exchange is on the SIM side. Decode the data on the server side and send it to whatever application you want. I also recommend you to switch to a better MCU. It's easy to work with Arduino, but for more complex application you might need real time processing. STM32 would be a good start (even with a real time operating system like FreeRTOS).

shadow marsh
#

Good to know catthumbsup

nimble olive
wooden silo
#

When is someone going to add a Chassis Developments bodied bus into ETS2??

#

They are super customisable

shadow marsh
#

What has that to do with development?

wooden silo
shadow marsh
#

Nah, that has nothing to do.

This channel is meant for getting help with a piece of code and/or a project - as well to show off something you've made. Can but must not be related to ETS2/ATS meowovo

cinder spear
ashen nebula
#

Took a look at the blog forum

#

Being a web developer websockets are pretty fast imo

#

Wouldn't smth like a clustered websocket server in node.js or Deno in combination with keydb(built ontop of redis) be an idea

#

Would allow for horizontal scaling too

#

Easily

summer steppe
#

This wouldn't work for many reasons, main ones being:

  1. Node is way slower when compared to a native low-level implementation in C++
  2. WebSockets use TCP which isn't exactly known for low latency (and use way more bandwidth than basically anything other than polling)
  3. Possibility to scale horizontally is completely useless in this case since the game servers run on a single machine (multiple per machine actually)
  4. What has KeyDB/Redis got to do with any of this
ashen nebula
#

Hm

#

Keydb would allow for easily sharing data across clusters

summer steppe
#

Since there’s no need for persistency everything can just be stored in memory

#

Plus high performance servers usually have a bunch of ram so that’s not really an issue

ashen nebula
#

By sharing data i mean share player positions across clusters

#

So you don't have to duplicate every single thing across the workers

summer steppe
#

Again, why would you add a database (which adds latency) to a system that runs on a single machine with no need for persistency? That’s the purpose of RAM.

#

For web servers with load balancers and the need for persistent state of course you need some sort of DB - this doesn’t apply to single-machine game servers.

ashen nebula
#

True

#

I usually implement keydb to share my state across workers though

summer steppe
#

In web development, yes.

ashen nebula
#

I've also used it for other things than just web development

cinder spear
#

Blogs rarely update while websockets are used for real-time communication. It doesn’t seem like a good fit

#

Many of the largest websites in the world run on node so it’s plenty good enough for performance on the web and using low level language is generally just asking for unnecessary trouble

shadow marsh
#

We could do a rewrite for TruckersMP on Java Sockets KappaPeeks will surely end up goodn't.

#

Also then I could join the dev team, since I work on Java since 7 years aPES_Laugh

cinder spear
#

Garbage collection is a bit too expensive for larger games

shadow marsh
#

I know...

#

I'm trying to make a small-scaled (aka co-op) mp for OMSI2... not been successful yet.

cinder spear
#

There’s a good interview from Todd Howard about some of the technical challenges in making their game engine made for single player games to work for fallout 76 that’s somewhat similar to the challenges in mp mods

shadow marsh
#

Well, thing is, OMSI2 is super old and the game engine is very fragile.

opal arch
cinder spear
#

No wonder star wars ran like garbage Kap

shadow marsh
#

@lilac aurora

lilac aurora
shadow marsh
#

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

cinder spear
#

preprocessor abuse dinkDonk

shadow marsh
#

Jesus christ kowalski

#

Never gonna ever learn CPP aPES_Laugh aPES_Laugh

opal arch
#

Ye, avoid it at all cost holy

shadow marsh
#

I'll just stay as Java Dev kekw mc plugins and discord bots are my specialty aPES_Laugh

cinder kayak
#

And also please get Git repos for everything so I can download your code Wesh

pulsar jungle
#

PHP for the win

azure stratus
#

I really wanna learn PHP, tried to learn it for a full-stack class I took and I just didn't gel with it too well

violet copper
pulsar jungle
narrow cove
pulsar jungle
graceful belfry
#

Hey! Just looking for a little bit of assistance here. I’ve been struggling on getting entries with spaces to insert into my database. All that comes back is a syntax error.

For example my query might look something like this:

INSERT INTO databasename (β€˜column name’) VALUES (β€˜random entry’)

That above would return as a syntax error due to the space between random and entry. Is there anyway to fix this

azure stratus
#

You could be looking for a similar error but in the wrong place, SQL traces are like that

#

Unless this for some reason only persists with spaces, at which point Shrug

graceful belfry
azure stratus
graceful belfry
#

I can when i get home!

wise finch
#

Don't you know any good motivation to learn PHP and Javascript properly? I'm lazy to do it πŸ˜„

azure stratus
next crane
# graceful belfry Hey! Just looking for a little bit of assistance here. I’ve been struggling on g...

You can use the following syntax, which is more readable:

INSERT INTO databasename SET
FIELD_0 = field_value_0,
...
FIELD_N = field_value_N
INSERT INTO databasename SET
FIELD_0 = mysql.escape(field_value_0),
...
FIELD_N = mysql.escape(field_value_N)
UPDATE databasename SET
FIELD_0 = mysql.escape(field_value_0),
...
FIELD_N = mysql.escape(field_value_N)
WHERE FIELD_N = mysql.escape(`some case`)

Also, you must shield and secure the data transmitted to the database. It depends on the libraries you use. As a rule, this function is called escape.

It is possible that you are try save data to the database that has not been escaped. So you get an error.

graceful belfry
#

Shiro_NotesTaking I did get it to work! But I may look into formatting like you suggested for readability!

next crane
#

Maybe, this useful for basics https://www.w3schools.com/sql/sql_intro.asp
But, for me, I think, need learn basic SQL, and + for concrete DB, for your work/project.

wise finch
#

Does someone know how I can post a server emoji to rules using carl bot for example?

summer steppe
wise finch
#

I guess it has to be on server I want to make it right?

summer steppe
shadow marsh
#

That moment, when ChatGPT saves you a ton of googling πŸ˜‚ didnt knew it was that easy on what I want to do lol

azure stratus
shadow marsh
#

kekw kekw well, the piece of code it gave me actually worked better than expected.

foggy osprey
#

You can ask it to suggest code by simply writing a comment containing what you want it to do

shadow marsh
#

As if lol. Gonna try that thisisfine

#

Thanks for the tip!

azure stratus
#

Would also second Copilot, but definitely only for personal projects. There's a bit of unknown liability with using Copilot for commerical use or otherwise cause of the data set being a lot of other users' code

shadow marsh
#

Well, I only code for personal use / little communities... nothing to sell or for bread public thisisfine

azure stratus
#

Oh yeah for sure, definitely leverage it where possible

azure stratus
#

Am I the only one here absolutely perplexed by Entity Relationship Diagrams? Kek

#

I could probably plan my SQL a lot better, but I swear I get to participation constraints and I get lost Kek

foggy osprey
#

afaik there won't be any real issues, as long as you of course check what the suggested snippet does

azure stratus
#

I'd be skeptical personally - just as I wouldn't generate assignments from chatgpt. Twofold because some of the code it generates is downright awful

foggy osprey
#

The tool is only as effective as the skillfulness of the hands that wields it ^^

#

Of course you gotta read though and verify what an AI spits out

#

Whether it works or not, but also if it's efficient or not

#

I've been using Copilot since the day public beta started, and i love it. But of course you never just use any suggested snippet without looking at it

azure stratus
#

My research focuses on composite logic which hopefully will end up providing some insight into why it sucks sometimes lol

#

The current state of GPT is that it sucks at nested math in a zero-shot environment, which I'm hoping to extend to things like relative clauses in linguistics and nested queries in things like SQL grammar generation

#

Otherwise though it's been pretty helpful with fairly basic solutions, I just avoid it for safety in commercial or team environments

cinder spear
#

copilot/chatGPT is to programmers what calculators are to mathematicians... useful tools that still contain flaws and limitations, but very powerful in the right hands

mint hawk
#

Does anyone know if you send a Dream booth fine tuning request through the stable diffusion api for a pre-built model, if the pre-built model itself gets fine tuned? or if you get a new model built on the pre-built model which gets fine tuned?

azure stratus
#

New language model dropped shakeyes

#

It may or may not be making my research irrelevant, I'll have to read into it's arithmetic performance Kek

#

Well it appears it struggles on things like geometry, I guess I'll have to feed it my datasets if/when I get my hands on it

cinder kayak
#

@shadow marsh rofl

shadow marsh
#

LMFAO rofl

#

kinda yeh lol

ember canyon
#

Any one used a cPanel server to run a Django app ?
What is the best way to host the sqlite3 db for my app so it is secure

foggy gate
# ember canyon Any one used a cPanel server to run a Django app ? What is the best way to host ...

Store the SQLite database file outside the web root directory to prevent unauthorized access. Place it in a directory that is not accessible through the web server. SQLite is not typically recommended for production environments due to its limitations in terms of scalability. However, if you expect significant traffic or have multiple users accessing the database simultaneously, I recommend moving your database to MySQL or PostgreSQL

ember canyon
ashen lagoon
#

am looking for a coustm discord bot for our vtc discord any suggetion

foggy gate
azure fox
azure stratus
supple shard
#

Anyone used Jquery? Got some super simple code thats being fucky for no reason

const r = { success: true, message: 'Awesome message!' }
        
$('#some-element').attr('class', 'msg-' + (r.succcess ? 'success' : 'error'));

For whatever reason, the ternary is evaluating to false, and thus assigning class="msg-error"

Yet if I console.log out r.success, right there within the parentheses, I get true, so not a scoping issue.

I'm scratching my head wondering "wth" kekw

#

Is jquery bugged or something?

azure stratus
#

Success vs. succcess

supple shard
#

Dunno if I'm blind or just dyslexic but I dont see any triple "c" characters πŸ‘€

#

omg

#

nvm I see it now

azure stratus
supple shard
#

fawken ell

azure stratus
#

Sometimes you just need another pair of eyes

supple shard
#

Cheers mate, you're a legend. So embarrasing for me lol 😳

cinder kayak
azure stratus
supple shard
#

happens to the best of us πŸ˜”

cinder kayak
#

Lol, almost laughed

lilac aurora
#

That were so fun, that I forgot to laugh

azure stratus
#

My dad owns TMP he'll ban you

random tapir
azure stratus
#

Yep yep been there

#

Or the numerous times I've used .getElementById and supplied a nonexistent id

random tapir
#

rip

#

my biggest mistake was declaring a variable of type integer and putting a number with comma ☠️ kekw

cinder kayak
#

Imagine making mistakes kappa

random tapir
quiet python
azure stratus
#

This has to be singlehandedly one of the handiest pieces of code I have

patent gorge
#

Hi

patent gorge
cinder kayak
#

Didn’t mean that, but if you say so Wesh Hmmge

patent gorge
#

πŸ˜”

foggy osprey
#

It's very..uhh... interesting?

graceful belfry
#

The heck is that

azure stratus
#

Yuck PHP

#

Having to learn PHP was probably the most interesting use of my time for a semester

#

I genuinely enjoyed learning Scheme/Lisp and Prolog more than PHP Kek

foggy osprey
#

There's a biiiig difference between using old and new standards/features

foggy osprey
# graceful belfry The heck is that

A "library" that allows you to build Electron applications with PHP, while allowing it to run fully self-sufficient on the end user's machine (e.g. without any remote API/DB) :D

azure stratus
#

Just reaaaally don't like it

foggy osprey
#

Yaa but in new versions you can still use old practices and features haha. From what I noticed in my time in college (studied software development), my teachers only knew old coding standards and practices, thus teaching students nothing good xd

azure stratus
#

I'm in software dev at my uni as one of my concentrations but we're really limited to one class that touches on PHP, a lot of our other stuff is just systems level stuff

#

A lot of it is theory too, like I have a pretty good idea of how to break apart file systems, storage, memory management etc. right down to the bare metal but not a lot of time actually implementing stuff

#

Maybe it's just lack of exposure but I've always defaulted to HTML when and where possible

foggy osprey
#

You should check out a framework instead of writing pure PHP. Makes stuff easier and a lot more fun, since you will then have a solid foundation of common features that you can use

azure stratus
#

Next time I need to I'll probably try it out, I've been throwing my time into Svelte and HTMX as well lately

foggy osprey
#

It offers Vue and React too in the bootcamp SCcatVIBINGfast if you're into that kinda stuff

azure stratus
#

React... that's another scary one lmao

foggy osprey
azure stratus
#

Only part that irks me about that is Electron pain

violet copper
#

Now if it was Tauri 😏

foggy osprey
#

i would argue that Electron is way more commonly used by (big) companies haha

violet copper
#

Tauri is gaining popularity due to it's advantages over Electron tho

azure stratus
#

To that end, ditto on the Tauri comment

#

Exhibit A: Discord Kek

cinder spear
#

Our launcher is built on Electron πŸ™‚

azure stratus
#

For smaller scale stuff like that I'd think it to be fine

#

But as projects scale the scales tip a bit

mint hawk
#

my favourite language to code in is english

violet copper
#

Tauri still doesn't have all the features needed yet, Viva are currently waiting for a few on the roadmap before our Tracker is finished in Tauri

#

Currently test running a new tracker in Electron tho

cinder spear
#

the thing about electron is that the dev experience is really good and the performance is good enough for the vast majority of use-cases

agile frigate
#

Hello, Is there any recruitment for the developer team? What are the conditions, if any, or where can I reach them?

cinder kayak
cinder spear
#

We do review open applications via the feedback system occasionally, but it is difficult to accept to a volunteer position that requires a lot of trust without building the trust separately first.

agile frigate
cinder kayak
#

Well from what I know, you have to be a Staff. It’s possible that it changed Hmmge Wesh

agile frigate
violet tulip
#

hey Devs @ TMP, API responses are cached? if yes, for how long? I've added roles to the company (id 24) but they aren't returned in vtc/{id}/roles endpoint
and i've spotted a bug in the TMP API Client v2, the CompanyRole.order could be null, will open a PR for that

#

oh finally the cache is gone.. reordering roles, null on Owner role has been changed to 0

cinder spear
#

the API returns cache-control header indicating cache duration

inland wedge
#

Hello guys, is there any developer who can teach ets2 SDK in C#?

azure fox
zinc yoke
#

@dire mist hello im sorry for taging you i just wanted to ask do you know a guy named MakkaPakka known as Metaloid?

#

i remember he like 2 years ago randomly gifted me a dlc and i was so happy and i want to thank him again but i lost contact

zinc yoke
#

he was also called AUSSIE SPOOKY

#

are you sure?

ember canyon
#

thats not something developers should do, just patinelty wait for an answer on your ticket

uneven nimbus
#

Starting software developing soon at college πŸ˜…

wet kite
#

Good luck!

toxic hornet
#

It’ll take some time for your ticket to be answered but please do not ask here or in #support and be patient until your ticket gets answered.

azure stratus
#

Going into my 3rd year of Software Eng / AI and I can confidently say you'll see some high highs and low lows Kek

uneven nimbus
azure stratus
ember canyon
#

i went for computer science blob_peek

uneven nimbus
wet kite
azure stratus
#

Cloud computing and engineering is a part of our SE concentration but we have no dedicated program for it

#

The plan is to finish my BSc and then immediately apply to my PhD, be an ultra hip and young prof at 26 years old Kek

wet kite
#

I'll probs go down a similar route tbh. Although I haven't branched out into it yet, it will defo be what I choose to focus no when the time comes around. Which I hope is this year Wesh 1st year was general software eng, game dev and mobile dev

wet kite
#

I also haven't decided about a PhD yet but will probably do my masters

azure stratus
#

Oh it's def a fair bit of work, but I've structured my 4th year to be a research year (only 3 courses when a usual load is 10), gotta be able to compete with Masters applicants

#

We have a really good emerging AI team here, we're working pretty heavily with MIT

wet kite
#

meanwhile over here my Uni is only starting to adopt Ai R&D :/

#

starting this year they've added an Ai & robotics course which would probably be really good but at the same time probably take a couple years to get it running at it's full potential

#

atm the main thing they're focused on is AR which in itself is really intriguing

azure stratus
#

We have like 2 active AI courses, a mandatory Intro to AI / Heuristics and Intro to NLP which is also a Masters course

#

My supervisor and the 3 of us under his direct supervision are really spearheading the effort to adopt it more in the dept

wet kite
#

I'm surprised most places aren't pushing Ai atm especially with the whole boom in Ai development over the past year

#

it's definitely going to be and almost is, a major part in all large scale tech companies

azure stratus
#

Ultimately whether we like it or not it's still in its infancy. In the same way that a load of banks still use things like fortran and cobol, people need time to fully trust and work their way through a system like AI

#

The metaphor I was told is that AI is like a completely dark cave, so no matter where you go you're finding something new right now. We need to see more of that cave before we can harvest it as a primary fix-all to all of our tech

lament yarrow
#

Hello everyone! I am a video editor, and a senior modeler, so if you need are in need of a nice and friendly driver, AND developer, DM me!!

mild adder
#

Hello guys, don't know if it has been discussed yet but why would SCS create a different build for the VR versions of the game and not make it asymetric on the main build ? I would imagine the VR stuff would only affect the camera/resolution and UI ?

It bother me so much that VR is not an option when it comes to TMP and I don't really have insights on why they're doing it like this.
(posting in this channel because I want technical insights on the matter)

#

It's not even like there was some kind of model/animations to sync and broadcast to everyone, it's literaly just camera thisisfine

azure stratus
#

My best guess would be an attempt at optimization, but I'm clueless when it comes to graphics

cinder spear
#

adding a second camera for a second display output isn't as simple as "only affect the camera"

floral mist
#

if it was oficially supported, SCS needs to do Testing and QC for VR aside the normal Testing/QC. And from the hardware survey (Devs have a special hardware survery overview iirc, unlike the public Steam Hardware Survey) on Steam, SCS may very well know how many gamers have a PC that's capable of running ETS2 in VR with a decent experience and how many of them even have a VR Headset (although numbers may be inaccurate due to the headsets not being connected all the time).
And since we do not have VR support, I assume that the number of players with VR gear is quite low, so low that an official implementation is not worth to support. (Support means also Mail/Ticket support)

narrow cove
#

Hello. Is there any API that provides the full name of the server a playerID is connected to?

wet kite
#

TruckyApp's API should work for ya

twin ermine
narrow cove
naive lynx
#

scania rjl mod

shadow marsh
#

What has that to do with development? blobcatupsidedown

quartz moth
cinder spear
#

as a lover of filesystem based routing I really like the look of that

quartz moth
#

I can see why it works for something like NuxtJS where the logic and template are in the same file, but for laravel it just seems like it won't scale well, or work that well if you're trying to query multiple things to hydrate your blade file

cinder spear
#

seems closer to old-style php where you might include common logic from other files in the template file

quartz moth
#

PHP doesn't need to go back in time kappalul

cinder spear
#

there's a lot of value in simplicity and hiding complexity does not remove it or the need to understand it

fiery socket
#

may or may not have been me

shadow marsh
#

He wanted to fix legacy codebase.

Me:

stuck yoke
#

hello there does TMP API provides OAuth with Truckersmp account? cuz i didnt see any reference in api docs

stuck yoke
quartz moth
#

You could use steam oauth and then fetch the TruckersMP account via the steam ID, if you wish to have that kind of guaranteed relation

ember canyon
#

this forgot to reply wesh

violet tulip
#

hey, maybe someone can help me with regex: i'm trying to extract data from an html field
Let's say i have this <x-(.*) field="(.*)">(.*)<\/x-(.*)> trying to extract from a string like this <x-editable field="name" ondblclick="this.parentNode.removeChild(this)">{{ $borrower->tranche }}</x-editable> using with preg_replace <x-bvi::editor.$1 field="$2" :editMode="true}">$3</x-bvi::editor.$1>
The problem with the current regex is that it doesnt stop at the field attribute value but continue taking also the dblclick part.
Someone can help fixing this?
the final substitution works, actually but i need to run it also with a preg_match_all extracting only the field attribute value
playground on Regex101: https://regex101.com/r/Vuv3rw/1

cinder spear
#

is there a reason you can't use a proper html parser? regex is kind of a hammer for a screw there

violet tulip
shadow marsh
#

And exactly what has anything of that context with development? PES_Think

winter barn
#

Δ± dont understand

#

why not opened the my ban

shadow marsh
winter barn
#

ok

ember canyon
#

ghostping

uneven nimbus
ember canyon
#

how to be admin110 πŸ”₯

uneven nimbus
ember canyon
wet kite
#

Currently making a bot which uses the TMP API and I found a limitation with the news post section of it. Using the API I only have access to public news posts (which is to be expected) however I can't access "member only" news posts (which is also to be expected). However, does anyone know of a way I might be able to get around the "member only" barrier? Wesh

quartz moth
#

Not really, if the functionality isn't provided via the API, then I guess it isn't officially supported

azure stratus
#

^^, I can't imagine there'd be any logical way to access private data via a public api

ember canyon
#

funny enough its possible to fetch member-only events

#

(pls dont remove that feature)

wet kite
#

I tried testing it but I can't seem to get it to work

azure stratus
#

Mfw members only API not members only

wet kite
ember canyon
#

useful bug wesh

wet kite
#

agreed

foggy osprey
#

There's some pretty cool stuff in there, if anyone needs some inspiration for their VTC

uneven nimbus
#

Have quite some trouble understanding how to code with HTML and CSS πŸ˜…

summer gyro
#

πŸ˜‰

foggy osprey
# summer gyro well i will have a nice look at this

haha np, have fun. Felt like this was a better idea than just letting it go to waste :)

It's not meant to be straight up copy-pasted or used as-is, and there's probably a few issues since the projects haven't been touched in over a year.

summer gyro
foggy osprey
#

rcs?

summer gyro
#

yea rcs trucking vtc

foggy osprey
summer gyro
#

php is will be complicated for me

foggy osprey
# summer gyro would be a good thing for rcs that

feel free to use parts as inspiration if you're thinking "hmm, how should i solve this", but please don't use a whole project as-is :) I will add an open-source license if it gets misused

Edit: the projects are now licensed under GPL-3.0

summer gyro
#

yeah that is understandable

#

ill have a look at it tho

ember canyon
ember canyon
#

ay lads

ember canyon
#

nooo

#

why are private events completely hidden on api now

#

awful update

cinder kayak
#

Maybe because they’re private Wesh

ember canyon
#

well what if i want to get private events of my vtc

#

shouldn't be private for me innit

#

there are lot more api flaws out there that would be more useful to fix than this

#

and it's been like that for quite some time

cinder spear
#

are you referring to the array vs object?

ember canyon
#

i am

cinder spear
#

it's a side-effect of PHP where they're the same thing

ember canyon
cinder spear
ember canyon
#

didnt expect php to be that bad

violet tulip
#

PHP associative Array magic

tardy smelt
ember canyon
tardy smelt
cinder spear
#

making resources inaccessible with the existing error format isn't a breaking change, unlike the change of types returned from the api

ember canyon
#

sooner or later it'd have to be fixed Shrug

tardy smelt
shadow marsh
#

As much as I would like to apply, I would be kind of useless aPES_Laugh

summer gyro
#

I would apply if I could..

ember canyon
#

i was suggested to apply wesh

summer gyro
#

Might as well have a go

ember canyon
#

i have a ban 1 mo ago

summer gyro
#

Ye mine was 7 month ago

#

So annoying this 12 month thing

ember canyon
#

if not this ban i couldve applied megawesh

summer gyro
#

Ohh

#

πŸ€¦β€β™€οΈ

cinder kayak
shadow marsh
#

Let's say so, if they'd need java devs, then I can apply blobcatjoy

cinder kayak
cinder kayak
#

Laravel is stinky nyasSlap

tardy smelt
shadow marsh
cinder kayak
#

PHP > any other language

shadow marsh
#

tbf, I wish I could understand the web dev languages like php, js, css, html and so on... would make my life essentially more easy kek

cinder kayak
shadow marsh
#

Well, I learn french - can't learn a whole package of coding languages additionally to that lul

cinder kayak
#

You could, technically... I wouldn't either Wesh

shadow marsh
#

I could, yeah - but I don't want to overload me πŸ˜„

ember canyon
#

w bun

faint loom
#

You can not apply because you have been banned in past 12 months.

Cool! The person who got me banned edited the evidence in such a way that the fault was on my side from which she provoked all the time by driving in front of the hood and braking.

#

And now I can't apply....

shadow marsh
#

Yeaaah, it's always never the actual user's fault ^^

faint loom
#

okay I made a maneuver inattentively causing another driver to fall off the road because I misjudged the distance in the mirrors but the video was cut off and not everything was shown on it....

shadow marsh
#

Knew it ^^

ember canyon
#

Have experience with only HTML, CSS, Flask, Django and js

uneven nimbus
#

I have no experience Wesh can’t even understand HTML and CSS

ember canyon
#

html css is ew wesh

#

react w tailwind is nice

uneven nimbus
ember canyon
#

im a self learner ThumbsUp

azure stratus
#

Wish I had the time + PHP knowledge, or otherwise I would have applied

#

It's the only real area I'm lacking

#

Plus it doesn't help to be working 3 jobs and taking 120% courseload Kek

fresh scaffold
#

Thank god I switched to laravel. What a miracle πŸ™

opal arch
azure stratus
#

Correct language for your necessary implementation > any other language

mint hawk
#

English is the best language to code in

pulsar jungle
fresh scaffold
#

^ facts

#

hey i mean livewire is still amazing

humble carbon
pulsar jungle
mossy cloud
pulsar jungle
mossy cloud
#

I like the look of the tables, I currently use JS DataTables for my hobby projects which I'm looking to replace

pulsar jungle
#

I'm still on v2 of Filament, so can't speak of how it looks on v3
But overall, yeah, they do look nice. It's using Tailwind if I'm not mistaken

mossy cloud
#

Yeah, I'm on V3 myself so I might give it a try sometime and let you know πŸ™‚

pulsar jungle
violet tulip
#

thumbs up for Filament

foggy osprey
#

upgrading to Livewire v3 will also give you some nice new features & improvements

pulsar jungle
mossy cloud
#

Don't rush to upgrade just because, as long as you're on top of security, being on the bleeding edge in production isn't the best way to proceed imo

pulsar jungle
#

Yeah, true

violet tulip
pulsar jungle
#

Yeah, have not used any of their paid ones, but have used a few shifts that were free

violet tulip
#

i've used a couple of time the paid ones, 19 eur for a shift with a comple PR upgrade worth my time πŸ™‚

pulsar jungle
#

Fair enough

elfin elm
#

Do someone created an external button box with Arduino or other boards? I need help pls dm me

tardy smelt
mossy cloud
#

I find they can be a pain to be responsive, I know there's an extention for it but they don't always play ball for me

narrow cove
azure stratus
#

Gonna learn rust this weekend pogU

#

Then finally learn Python

#

Cause I have to for research work

tardy smelt
mossy cloud
tame flax
#

pls add persian languge

tame flax
cinder kayak
tame flax
#

ok

weak flax
#

or I mean page not found

#

but then why is it in the api docs

mossy cloud
#

I've just checked as well, it does seem to be correct

#

It's not mentioned in the documentation so this is only an educated guess without being told otherwise, but could it be because his VTC history is private?

weak flax
#

no

#

I did my own ID right now and I am pretty sure it is the api?

cinder spear
#

it uses member id, not the member's user id

#

you can see the member IDs in the /vtc/{id}/members endpoint

weak flax
#

ohhh

#

thanks

ember canyon
#

out of interest what are the best courses to learn:

  • Linux admin
  • Nginix basics, error handling...etc
mossy cloud
#

I would do a free trial of LinkedIn learning, and look there πŸ™‚

#

It also wouldn't be wrong to buy a cheap VPS and just play around and break stuff πŸ™‚ That way you can self-learn before working on anything important πŸ™‚

shadow marsh
violet tulip
#

or docker, which is even better nowadays, learning nginx on docker is useful

violet tulip
#

fyi, Patreon broke their webhook implementation, since yesterday everyone stopped to receive updates

opal arch
#

I am not even surprised. Their API and webhooks are the worst third-party integration to ever exist.

violet tulip
#

looks like they changed the encoding from utf-8 to Unicode (?????) so every webhook call or verification is failing...

woeful umbra
#

is anyone here good at making skins but for free tho.. i dont have that much money so please dm me if u can make i skin for me

#

its not a hard skin to make if ur experienced

shadow marsh
#

And exactly what has that to do with development?

woeful umbra
#

oh its development im so sorry

shadow marsh
#

A skin for ETS2/ATS is not development, rather modding.

ember canyon
#

is there a collection of TMP logo SVGs by any chance?

shut remnant
#

how do i get distance between two places?

shadow marsh
#

Elaborate please.

shut remnant
# shadow marsh Elaborate please.

sorry, if a starting place and company is given and destination and company is given i need to get the distance between them through roads, if possible ferry distance and price too

shut remnant
#

is this even possible?

ember canyon
#

i don't think so

#

unless you want to make your own ets2 map navigation, or somehow inject into the game and do stuff there

shut remnant
#

if i do that i wont be able to play in truckersmp?

#

i mean truckersmp dont support other mods

ember canyon
#

mod won't do that i don't think

#

it'd be much more complicated

#

why do you need it? think

shut remnant
#

i am trying to make a mobile app that shows every stuff about jobs and thing so i can control those things by mobile phone or tablet

#

for example to while creating a new job it shows distance, job earning

#

so for that job earning part is done but the distance πŸ₯²

ember canyon
#

ooh on mobile

#

you'd have to recreate game's map navigator there wesh

shut remnant
#

okay, where can i look for game's current navigators code or anything like that? i mean just place to look for it? I am little new to these sorry πŸ˜“

ember canyon
#

doubt it's source is publicly available

shut remnant
#

okay for just distance i can extract it from truckersmp dispatcher

scenic bone
#

so uh

#

how do I show my work

#

can't show images

ember canyon
deft atlas
ember canyon
#

bottom message is the image kapp

deft atlas
#

😦

scenic bone
#

I've been trying concepts recently

#

VtvStudio is not a registered company btw

#

I also made a high poly car a few months ago

ember canyon
scenic bone
#

seems like most people here are web developers

mossy cloud
#

Nice models πŸ™‚

scenic bone
#

It's also quite difficult to learn

#

Template error messages

#

Exception specifiers

#

Visual destructors

azure stratus
#

Rust >>> Troll

mystic basin
#

Someone able to help me??

#

I cant launch my truckersmp