#programming

1 messages ยท Page 7 of 1

cinder kayak
#

Cuz it doesnโ€™t have Windows KappaZ

remote birch
#

CachyOS Gang, what's up

main vale
#

les go

remote birch
#

running triple screen ETS2 is so much easier on Linux compared to Nvidia Surround on Windows ๐Ÿ˜„

main vale
#

Hahahaha I need to yeet my gpu depressed

remote birch
#

I was thinking about selling my GPU

slim cloak
#

does truckersMP have an api that I can integrate into a management panel for a VTC? been wondering if i can just automate fetching jobs that are done (that new experimental feature)?

shadow marsh
#

don't think so that the job part has an API considering it's experimental state as of now

humble carbon
slim cloak
humble carbon
#

Ranks, groups, if more active bans then it wonโ€™t accept etc

slim cloak
#

Alright thanks for the insight

#

Oh that reminds me do I need to apply for an api key anywhere?

#

or is it just rate limits to protect the api

humble carbon
#

No api keys ๐Ÿ™‚

#

Rate limits and headers

slim cloak
#

Has anyone found a reliable way for job tracking on TruckersMP? locally telemetry is fine but i dont believ TruckersMP supports it, and the log file only seems to log job finishes

mighty rain
slim cloak
mighty rain
#

the rencloud one? sure

#

well, or any other in that regard

slim cloak
#

thought you couldn't have plugins on truckersmp?

mighty rain
#

why not lol

slim cloak
#

good question ๐Ÿ˜ญ

#

i guess i assumed xd

#

thanks for the help

mighty rain
#

np

summer gyro
#

You can have plugins, just not dodgy ones lmfao

#

e.g. the tpc plugin kekw

strong spire
strong spire
slim cloak
summer gyro
#

Super nice of tmp I must add

summer gyro
#

Best part of it was the feedback, โ€œwe canโ€™t show you logs of what was detectedโ€ or some other bs because it exposes their methods or some stuff kekw I mean make logs which donโ€™t do that maybe?

slim cloak
#

lmfao

urban lantern
slim cloak
#

the sdk was pretty simple once i figured out how to use it so that made it easier

urban lantern
#

I'll need some more clarification rather than "information on the active job" to add more into it ๐Ÿ˜‰

#

We have some information on the delivery. What fields / data do you need that we do not track?

slim cloak
#

in the sdk?

urban lantern
#

(I am the developer in tmp in charge of the delivery tracker)

slim cloak
#

the delivery tracker was for a vtc

urban lantern
#

Sadly we cannot save everything the sdk provides, that is much too much data - but you mentioned we do not save enough, what is it you need

slim cloak
#

i didnt need any data for the tmp tracker. an api for it would be nice so drivers dont need to download telemetry but im all set ๐Ÿ‘

urban lantern
#

Alright ๐Ÿ™‚ glad you found a solution ! If you ever find you want or need official data from truckersmp let me know what kind of data would be interesting. We currently track every job with the route taken and basic to/from/cargo info

urban lantern
#

Just to check - have you seen the previous deliveries on your profile page? (Did you know of the feature?)

urban lantern
#

Ok cool ๐Ÿ™‚

slim cloak
#

but to the extent of my knowledge there is no api that i can use to integrate it but it would be convenient

urban lantern
#

That makes sense! Perhaps we can look into an API endpoint for this sometime soon - the issue currently is that of privacy and needing authentication on API which we do not yet provide. But I don't see why not have deliveries show up if public sharing on your profile is enabled

humble carbon
urban lantern
summer gyro
#

Be cool if it could calc all vtc members jobs and have that for like a fetch on the vtc homepage as total jobs maybe

humble carbon
urban lantern
#

We do kinda need a good workflow to communicate with people xD especially when (accidental even) abuse happens on the apis

urban lantern
#

๐Ÿ™ˆ there are people who use the area query on the map for example instead of /fullmap and it's a lot slower haha

urban lantern
humble carbon
#

It would be good to see you guys communicate with us, when we are trying to make things better for our communities and making a platform better etc. so it would be great to see more communication from the development team. Especially changes etc.

summer gyro
urban lantern
#

I'd love to as well! It becomes a bit hard sometimes, I think a lot of people don't consider how much data and load we deal with at the scale we are ๐Ÿ™ˆ the map endpoint does 150 requests per second at peak for example, just for map area requests!

#

We calso don't wanna create something and then be forced to take it away D:

urban lantern
humble carbon
#

Itโ€™s okay. We will just keep waiting lolpepezzz

summer gyro
#

๐Ÿ‘€

urban lantern
woeful dock
#

Linux distros are pretty much only good if youโ€™re able to understand a computer and linux bash

mossy cloud
#

Thankfully I can awesome

#

And that's not strictly true, the desktop OS distros are GUI based, and can be beginner friendly, if you choose the right one

slim cloak
#

i run all cloud projects with ubuntu (obviously) and pc's always fedora

main vale
#

Especially if you have Nvidia

slim cloak
#

but honestly if you need the latest latest as soon as it comes out its not that bad oding it manually

main vale
slim cloak
#

it was always fine for me on debian and fedora

#

then my friends wanted to play some game i dont even have anymore so i switched to windows 11

#

and now i cant be bothered to download an iso as it takes hours

main vale
slim cloak
#

every time i open command prompt i use unix commands and then cry beacuse its now weird windows ones ๐Ÿ’”

main vale
slim cloak
#

and it would be like $200 down the drain of stuff so i had to sacrfice and go back to windows

main vale
#

Then you only use windows when needed

slim cloak
#

ive tried it but i just dont enjoy dual booting. I like having everything in one place

#

now whenever i need to use linux i just ssh into home server

main vale
#

Fair

#

I sacrifice all the games I used to play that have anti-cheat or as I call it ||Spyware||

slim cloak
#

yeah fair enough

#

in the future if i buy another ssd i will maybe dual boot

#

but even ssd's are going up now xd

main vale
#

Yea ๐Ÿ˜ญ

#

And people think it will benefit us in the long-term (long-term price increase is what it is)

cinder lion
#

Hey admins add this tree to server as fun to server its cool

cinder lion
#

@mighty rain

shadow marsh
#

cathandswhat how's that programming/development relevant?

cinder lion
#

I don't had idea to gave suggestion where

full gull
onyx glade
#

why can I speak in vcs]

#

cant

summer gyro
#

calling me a twat over a reaction is sound la

onyx glade
#

okay boss

empty sierra
#

Hello @onyx glade, Please do not use bad words in this server, Thank you.

quiet python
#

๐Ÿ‘€

minor thicket
#

Hello Admins i d like to contribute with some Trailer projects to your truckers mp online

#

Please contact me i startet some skins projects with truckers mp , i can t upload pics in here

main vale
#

B2_Gura_Hmm NPC moment? @golden helm

golden helm
unkempt quest
#

Currently building a truckersmp app like Trucky
I don't really like my design so let me know if you have suggestions

#

Also got this screen to see your previous deliveries

full gull
#

Looks nice

unkempt quest
#

Thanks

unkempt quest
#

I made the UI cleaner

unkempt quest
#

Does anyone know what kind of math Trucky used to calculate the real time of arrival and how long it takes to deliver in real time? I cannot for the life of me figure this out

shadow marsh
#

is given from the telemetry xd

unkempt quest
#

its not

#

The time and dates are all game time

#

Not real life

shadow marsh
#

could've sworn... but eh

unkempt quest
#

Yeah I assumed it was in the telemetry but none of the times are real times, only game times shrug

summer gyro
#

Could you not just map the local time of it starting and end and then calc it lol

violet tulip
violet tulip
brittle kestrel
#

idk, maybe trucky uses different algorithm

#

just my guess

violet tulip
#

it's not a straight calculation based on some multiplier

unkempt quest
#

Alright thanks I will try to figure it out. I had it come kind of close to Trucky but it's like 3 to 15 minutes off which is not really ideal

unkempt quest
#

I don't think it's correct cause trucky says 22 minutes and using the calculation it would be 70 real hours which doesn't make any sense

For 7 hours, that becomes 7h โ†’ 25,200s โ†’ ร—10 = 252,000s โ†’ 70h 0m.

#

I'll try to use map scale and game time

unkempt quest
brittle kestrel
#

good luck

unkempt quest
#

Added a login screen (also discord login) and a progression system. I will make a alpha/beta release soon so you guys can check it out if you want and give feedback ๐Ÿ˜„

mighty rain
#

those input fields are a bit wide

unkempt quest
#

Yeah true

summer gyro
#

Did ai make any of these ui elements it looks a bit hmm

unkempt quest
#

No I made it myself

#

It's all just cards

unkempt quest
#

I'm a web developer aswell ๐Ÿ‘€

mossy cloud
#

Very nice

last locust
mossy cloud
serene moss
#

Hmm imma thinking to create my own launcher for TMP on linux distros Wesh

#

It wll be a lot of fun and bz_pain

#

But from what i see now, i would need to reverse engineered TMP launcher whitch will violate TOS Wesh because i didnt find any "api" for logins so i assume u r creating token for game and using that token to log on servers

mighty rain
mossy cloud
serene moss
trim pine
unkempt quest
summer gyro
#

Pretty sure itโ€™s just the launcher injecting the code into ets2 to display the menu and show servers and then what ever else for their client

narrow cove
# unkempt quest Does anyone know what kind of math Trucky used to calculate the real time of arr...

One method would be to calculate the average speed (at every frame, or couple of frames, based on current speed), and use the remaining distance on route to estimate the time of arrival. The estimation won't be accurate at the beginning due to very low speed or speed above a normal average, but you can tune it up using a predefined average speed for a period (60, 70, 80 km/h), and use the calculated average speed for the rest of the route.

late shard
#

The game already calculates the ETA for the selected route in the telemetry API. Divide that by map scale and you'll have real time ETA.

opal quarry
unkempt quest
#

Thanks guys for helping

#

I appreciate it

lofty nexus
#

Hey guys, quick question. Does an individual developer need to buy a code signing certificate for their software (.exe)? What are the pros and cons? Is it worth it?

opal quarry
lofty nexus
opal quarry
tough fern
mighty rain
#

I have not done it myself because I don't need to but at least one of my friends ran TMP on Linux

tough fern
mighty rain
#

I dualboot on my laptop

tough fern
#

So if l dual boot l will still be running it on Windows

mighty rain
#

Yeah

#

You'll just have both windows and linux installed, and be able to choose between them when booting

mossy cloud
tough fern
#

Which distro are you using

opal quarry
# mighty rain Yeah

Bruh, how did you get this role? Never seen TMP recruitment for Web Developer for as long as I have been a member.

mighty rain
#

๐Ÿ‘ป

mossy cloud
tough fern
mossy cloud
#

Not that I can remember! You'll need to point your game dir on the launcher to the Z drive that Proton maps for you, and that isn't easy. But doable!

main vale
vestal vessel
#

what is up with the froum page it is saying Web server is returning an unknown error

mossy cloud
vestal vessel
#

@mossy cloud how do that

summer gyro
vestal vessel
fervent axle
#

I'm trying to get a smooth animation with GSAP, but PNG files failing to do exactly what I want kek I think I have to rewrite all of this with SVG files instead of PNG pepe_sad all of my codes is ready to go in the ๐Ÿšฎ

low dragon
#

I am currently running an ETS2 dedicated server and I am facing two issues.

First, every time I restart the server, the session ID changes. I would like the session ID to remain the same across restarts instead of generating a new one each time.

Second, in game version 1.48, I am unable to host more than 8 players in Dedicated Server. I would like to host a larger Dedicated server (around 30 to 128 players). I would appreciate guidance on whether this is possible and how it can be configured.

Thank you in advance for your help.

clever python
chrome marten
# urban lantern Not sure! That's an option! For now we're probably going to be in a "Surprise it...

I think this feature is much needed on Linux. The typical flow on Linux is something like SteamTinker -> TruckersMP UI ->ETS2. It is hard (maybe even impossible) to configure 3rd party telemetry collectors (TruckyApp, TrucksBook, Other Job log collectors) on top of this flow. This would at the very least make some VTCs consider pulling data from TruckersMP directly in some cases. Since you are already pushing telemetry data to your servers, you could consider allowing people to also push this data locally (users point to their own server URL, you provide reference server implementation or docs). This is what Valve does with their GSI (https://developer.valvesoftware.com/wiki/Counter-Strike:_Global_Offensive_Game_State_Integration), which powers pretty much all esports live event data for CS2 and Dota2 and third party apps like https://dotabod.com.

urban lantern
gritty oracle
opal quarry
gritty oracle
opal quarry
gritty oracle
#

I've programmed a system for my VTC where you get Nuggets for completed or canceled jobs hahaha

main vale
gritty oracle
main vale
gritty oracle
stiff pier
#

Hey guys
I got a problem,when I want to register in truckmp by steam ,it gives me error,I have been doing that for 3 days ,and I did all the requirements to register in truckmp

gritty oracle
#

Go to this channel

#

That kind of support is not available here.

crystal needle
main vale
#

:>

glass vine
summer gyro
#

Sounds very related to programming

#

Still isnโ€™t programming is it

#

Unless your planning to cast some black magic

mighty rain
#

vinted for trucks

boreal sedge
full gull
#

There isnt a thing like too much nuggets

full gull
#

@golden helm Got something to yeet for you

#

oh well

opal quarry
tulip hound
#

nice program bro

humble carbon
#

The team probably wonโ€™t tell you here lol, but for people who used TMP slots via events, itโ€™s available via api ๐Ÿค itโ€™s just been completed and itโ€™s live. Time to automate everything SUSLOOK awesome

The endpoint is https://api.truckersmp.com/v2/events/{id}/slots

trim pine
#

Guys, Iโ€™m developing a tracker for my VTC. The telemetry Iโ€™m currently using is causing a delay when closing the game around 22-30 seconds ๐Ÿ’€.
Does anyone know of an alternative telemetry tool I could use?

chrome marten
trim pine
opal quarry
trim pine
opal quarry
#

Or some events fire repeatedly or delayed.

opal quarry
#

I don't need to track other events like refueling, train or ferry events.

opal quarry
# trim pine ok

Also, check on On job and Job delivered and other properties. They, sometimes, are misleading or incorrect. Once they are triggered, most of them remain true.

trim pine
opal quarry
trim pine
past dagger
#

hi guys i been working on my portfolio a concerning amount what do yall think https://saboor.ca

trim pine
past dagger
#

o/

mighty rain
#

That doesn't seem to be a real person

past dagger
past dagger
#

bro what u want

#

and?

#

go on keep talking

#

why are you only saying that

#

u sound and ur profile looks too much like a bot

mighty rain
past dagger
#

what does that have anything to do with that ๐Ÿ˜ญ ๐Ÿ˜ญ

#

ok take the spare time

#

my dms always have been open

grim agate
#

Hello, Im jay - new here but looking for some info in telemetry. i have created a full discord activity shell for my hub but im struggling tracking hours driven with my custom system. Does any body know of there is an official tracking system for the driving hours already implemented in ETS2? https://www.3dlabratz.co.uk/greenmile/completed-jobs/activity/#home

opal quarry
opal quarry
trim pine
grim agate
summer gyro
#

Looking for a father*, big scam looking message

lilac aurora
#

Bro can't make up his mind on what he wants to scam people for

humble carbon
#

Hello I am developer I know how to code ๐Ÿง‘โ€๐Ÿ’ป

humble carbon
#

What is GitHub Wesh
I know very basics of cmd SUSLOOK

lilac aurora
humble carbon
humble carbon
#

Damn I got pinged twice

#

That website shows me what I had for dinner Wesh

grim agate
opal quarry
#

Also you could be on a job but not actually delivering it(Trailer not attached)

grim agate
trim pine
#

Is there any way, so our tracker app can get digi certified without any cost ?

grim agate
humble carbon
#

Yes Iโ€™m a child.

#

If you were a real developer you would have looked at my discord profile and go oh his GitHub profile is public. And click on it ๐Ÿ’€

humble carbon
#

What makes you seem I have limited development experience? You havenโ€™t seen any of the attached websites to my GitHub? You havenโ€™t joined the vtcs discord etc. your a confusing bot.

#

Why would it be attached to my discord? If it wasnโ€™t mine? ๐Ÿ’€

humble carbon
trim pine
humble carbon
#

None of my work is public on github Wesh_Heart

#

Because then people cant steal the code for my website/bots etc lol.

#

I think I use Github lol

#

Everything is private ๐Ÿ˜„

#

Why would I post someone elses ๐Ÿ’€

tawny vector
#

๐Ÿ’€

sullen swan
humble carbon
#

That guy above CEO wants nothing to do with TMP only developers for his company lol, waste of time.

#

Deserved the place on the ignore list ๐Ÿ˜„

grim agate
# opal quarry Also you could be on a job but not actually delivering it(Trailer not attached)

now only tracks when a delivery job is active, the game isnโ€™t paused or on the map, the engine is on, the parking brake is off,
the truck has fuel, the trailer is attached, and the truck is actually moving.

added a second timer beside driving hours: job-presence time. That will keep counting while a haul is active
even if fuel, damage, trailer, or movement temporarily stop the real driving-hours counter.

opal quarry
#

I did the same and added a check for cargo mass. But I do not check for parking brake

grim agate
#

parking brake condition was really not needed but it was a visable telemetry so i thought why not
Cargo mass did not enter my mind, that is really important as it could be a emty trailer

opal quarry
humble carbon
copper lotus
#

Does anyone know how to make website for free without coding

chrome marten
woeful dock
#

Itโ€™s a joke donโ€™t punish me

#

๐Ÿ˜”

copper lotus
chrome marten
trim pine
chrome marten
#

virustotal or trakcer either. For what its worth if it gets flagged by like 2 or 3 then it is a false positive

chrome marten
woeful dock
#

I could ask my friend what he uses he does my graphical design

humble carbon
#

Canva is good. awesome

grim agate
chrome marten
grim agate
small crypt
chrome marten
small crypt
#

It looks really impressive, but according to the information provided, there are still areas that need improvement. In fact, it's clear there are some issues with certain connection points on the map

#

Actually, it would be really cool if something like Google 3D map navigation could be created

urban steppe
#

it's not that easy to get height/terrain data from the game files I think

grim agate
grim agate
urban steppe
#

I mean that's prob sufficient but then you would need to find a package or smth that can do a 3d map

#

hmmm there seem to be a couple actually

grim agate
urban steppe
#

well not in ets things, but in like general 3d maps to use as a base

grim agate
grim agate
small crypt
#

It's not impossible, but it's a bit challenging because parsing the game data seems really difficult

grim agate
#

yes its hard parsing but if you keep at it it works out okay tbh

#

also in documents there is a file navcache created and this holds some good info when a route is active

small crypt
grim agate
# small crypt Did you use something like a real time data processing technique here? I tried t...

problem is the map data isnt actually data thats usable as such, it does contain all the road nodes and elevation points BUT scs is using prism3D engines to piece together slices in real time. im currently extraction some kind of data from adviser_gps.sii and world_map_map.sii then converting in my own 3d image system.. the blue line is the current route then it draws some kind off road around the line

#

they dont expose much lol

small crypt
#

So, just like with telemetry, we can't directly access the data from game. For telemetry, we need to read from RAM to get the full data. Similarly, here we need to read the data being sent to the Prsim3D engine. Did I understand that correctly? pepeThink

grim agate
#

if you can get into that data thats awesome

small crypt
#

I think SCS is keeping to itself a bit too much Wesh

grim agate
#

thats one way around

#

maybe they should release an official GPS syste for us lol

small crypt
#

We need to use a wide variety of techniques to develop something. I wonder if we could achieve more with some kind of local mode, maybe that could be a separate solution

small crypt
grim agate
#

feel free to join the project if you like. 2 minds are better than 1

small crypt
#

But generally speaking, if we can somehow extract the one time map data, we can then always run the navigation using that dataset

small crypt
buoyant citrus
#

is there any repo or guide that can help understand and work on injecting data directly in game.

halcyon zodiac
#

e

grim agate
small crypt
small crypt
grim agate
toxic turtle
#

I might be looking into getting another VTC up. For this I would need to get in touch with great dev for the process of web/tracking, but since it been out of game for a while now, I have no clue whoโ€™s up for the tasks. Do any of you have a preference?๐Ÿ˜‡

rigid stirrup
#

Iโ€™m developing a macOS-native TruckersMP launcher in Swift that coordinates the runtime pipeline needed to get the TruckersMP workingon macOS. The goal is to streamline installation and reducing setup friction. Current stage: very early alpha. The game can boot and the required components are being loaded, but input handling and macOS permission-related behavior still need work. Thatโ€™s one of the main friction points on macOS, especially where accessibility, input capture, and compatibility edge cases are involved.

If there are other users, that have skills in swift would like to hit up!

chrome marten
rigid stirrup
shadow marsh
toxic turtle
#

With stuff that works lol kekw

shadow marsh
#

Also I have something in my own mind regarding using the tracker see_no_evil

ionic geode
#

im trying to make a website any tips?

dusky skiff
humble carbon
rigid stirrup
#

Finally got ETS2 + TruckersMP fully working on MacOs

#

There's a fundamental incompatibility between how macOS handles mouse input and how ETS2/TruckersMP expect it. On macOS, the game's cursor-centering technique (used every single frame) triggers a system-level behavior that kills all mouse input entirely. The cursor freezes. Game over before it starts... On top of that, TruckersMP and ETS2 use two completely different input systems for their cursors they need different data from the same mouse. Getting one working breaks the other, they work against eachother. My solution which I call "Mirage" a custom input translation layer that sits between macOS and the game. It solves both problems simultaneously.

1.Auto-installs Wine (no Homebrew, no Terminal, no technical knowledge needed)
2. Manages Steam + ETS2 inside Wine automatically
3. Keeps TruckersMP mod files updated with smart differential downloads (Linked to TruckersMP immediately)
4. Retina-aware โ€” renders at full resolution on Apple Silicon (Intel not tested)

The core is working. ETS2 launches, TruckersMP connects, both cursors work, keyboard works, you can drive. Now in the polish phase, refining input precision and the overall experience.

Hope to share more and put it available for public.

grim agate
weak edge
toxic turtle
summer gyro
#

Check your dads still there, might be long gone for milk ๐Ÿซก

summer gyro
#

@mossy cloudHello sir

mossy cloud
summer gyro
#

The TMP api now has captcha?

#

or has something changed? shrug worker seems to be throwing a fit but we havent changed anything in the last 3 months on it due to it being up and running perfectly fetching from TMP.

mighty rain
#

What's the UA header you're using?

#

Iirc browser headers will trigger the challenge page

molten depot
summer gyro
# mighty rain What's the UA header you're using?
export async function fetchVTC(id: string) {
  if (id !== '60956') return null;

  const cached = await Storage.get(`truckersmp_vtc/${id}`, { type: 'json' });
  if (cached) return { ...cached, cached: true };

  const req = await fetch(`https://api.truckersmp.com/v2/vtc/${id}`, {
    headers: {
      'User-Agent': 'movezen-vtc'
    }
  });

  if (req.status === 429)
    throw {
      code: 'Rate Limited',
      time_left: req.headers.get('retry-after')
    };

  const vtc = await req.json();

  await Storage.put(`truckersmp_vtc/${id}`, JSON.stringify(vtc), {
    expirationTtl: 3600
  });

  return vtc;
}

Just movezen-vtc

#

Has been working since last November ish

summer gyro
#

Itโ€™s a bodge job to get it all working kekw

#

Shouldnโ€™t need a proxy for tmp api surely

humble carbon
#

I donโ€™t have a proxy ๐Ÿ™‚ and I still donโ€™t have issues

molten depot
#

I had it working with an Cloudflare Worker before until TMP has suddenly blocked the IP that the worker was running on

chrome marten
#

Bruh, we got veteran 4 drivers posting spam?

inner dune
#

Will there ever be a linux native truckersmp launcher?

inner dune
mossy cloud
#

I use gpu-screen-recorder awesome

#

It's Linux specific, make sure you install the UI also!

inner dune
#

Thanks

#

Ill give linux another try than

#

Im being absolutely ragebaited by windows

inner dune
#

I love it

mossy cloud
harsh glacier
inner dune
#

But that requires ets2 to be launched with proton too right?

harsh glacier
#

Last time tried with my Steam Deck, worked perfectly fine

harsh glacier
#

It runs very well

inner dune
#

Yeah I meant like linux native so no proton for ets2

#

Im currently also using proton

#

Works well but yk

harsh glacier
#

Native version would needs extra work for TMP, as the binary is different

#

And since Linux users are minority ( sad ), it is not worth it to develop at that moment

Although the game with Proton works well now, you don't need to do many trickery like before

toxic turtle
#

@worn ruin ๐Ÿฆ‹

inner dune
mossy cloud
#

Ah thanks - I use CachyOS awesome

inner dune
#

With gnome?

#

Or is that KDE?

#

It doesnt do 60 fps really well yet

#

But 30 is definitly doable

#

30fps @ 30000 Kbps

#

For a 3440x1440 screen

mossy cloud
chrome marten
inner dune
#

But atleast its making progress

sleek pelican
#

Nice compromised account

inner dune
#

With a bit of chatGPT magic I managed to get hardware encoding on OBS

#

It works really well

#

60fps at 3440x1440

inner dune
toxic turtle
#

I can't bother with wordpress. If you are a web-dev looking for work, hmu as im looking to get a vtc site up and running

toxic turtle
#

@worn ruin

undone parcel
#

i'm currently trying to pull the map data from ETS2 for 1.59 to tile it up for a web map. Do you happen to know exactly how to go about that? Every version of TS Map seems to be severely out of date and throws codes everytime i try to use it for 1.59]
or would you happen to know where to find pre extracted data for the latest map that i'd be able to use?

brittle kestrel
humble carbon
#

Made an error system for our staffpanel, so we dont need to login to the console of the bot ๐Ÿ˜„

fallen maple
#

anybody here using TMP on Linux?

mossy cloud
fallen maple
#

perfect.

#

would you be interested in testing a proper launcher?

#

and, what is you performance looking like?

mossy cloud
fallen maple
#

i use the steam proton 11 beta and i get a few FPS lower, what exactly did you use?

#

like what GE version?

fallen maple
chrome marten
fallen maple
#

I am using the clip version of truckers mp, I basically created the launcher around that. At the same time I got the flu which last activity was 6months ago and forked it to fix the know issues and continue work on it to make it more resilient and smarter with proton and various optimisations

#

Basically the CLI is fine as is but working through the issue list on GitHub

#

And making a launcher around it that aims to make it a 1 button solution once settings filed in through UI

inner dune
#

Im just waiting for tmp to make a linux native version

#

-# which will prob never happen

opal egret
undone parcel
#

this is a prototype website/server that's currently rending the entire map and route just using live road graph data. is there any way i can pull from the game the metadata that dictates if road sections are one way streets?

#

effectively trying to build up a smarter GPS system than the ingame one, i'm just trying to nail down initial route plots, get them accurately following the correct roads etc before i start work on creating logic different route types such as: stick to highway as much as possible, favour twisty B roads, avoid TMP congestion etc.

mighty rain
undone parcel
#

could i possibly ask for some help from someone with all the map dlcs in ets2 please?

mossy cloud
main vale
#

Thats on my device though

fervent axle
azure fox
humble carbon
fervent axle
#

Oh, I wasn't aware that Trucksbook had such features, I'm too ๐Ÿ‘ด

summer gyro
#

Pensioner

undone parcel
#

i mean currently with my little project its very much without scope. I'm just throwing ideas at the wall to see what sticks

#

only just realised my project shows up as a google search, cool! ๐Ÿ˜›

steady pine
#

Is there any route advisor app that shows whether Iโ€™m in the correct lane or not and whether it will take me to my destination, or alerts me well in advance to move into the correct lane?

The problem Iโ€™m facing is that Iโ€™m playing on low graphics, so I canโ€™t read road sign boards until I get very close to them. For example, letโ€™s say I need to keep right to exit the highway. The exit has two lanes, and if I stay in the left lane it takes me to one destination, while staying in the right lane takes me somewhere else. This is the kind of problem Iโ€™m facing while driving.

azure fox
undone parcel
urban steppe
amber oasis
ember canyon
#

๐Ÿถ

north flax
#

๐Ÿบ

scenic star
#

๐Ÿผ

ripe basalt
#

๐Ÿ’Ž

burnt cipher
#

print("Hai")

shy swan
#

Hai

amber oasis
#
# Useful links:
 - Developer portal: https://forum.truckersmp.com/index.php?/forum/198-developer-portal/
 - API Documentation: https://stats.truckersmp.com/api
 - Resources: https://forum.truckersmp.com/index.php?/topic/28804-developer-resources/
shy swan
#

Userful links? @amber oasis

amber oasis
#

derpy :d

shy swan
#

๐Ÿ‘๐Ÿป

amber oasis
#

You saw nothing googlecat

shy swan
#

What?

amber oasis
#

Nothing

#

^you saw

pearl badger
#

๐Ÿ‘‹

amber oasis
#

^ that's a perfect example of when you should refactor

pearl badger
#

indeed

#

which im doing ๐Ÿ˜›

#

but that is like 10 commands tbh

#

not one

amber oasis
#

commands
you mean functions googlecat

pearl badger
#

boi

#

both.

west fractal
#

@pearl badger Who do I see there? ๐Ÿ‘€

pearl badger
#

idk

amber oasis
#

@pearl badger http://i.imgur.com/7mLS9uy.png looks a lot like the C# version I started working on, until I found that the C# library was cutting short on some features I wanted

pearl badger
#

i havent bothered with TruckBot in ages tbh

#

because noone really was using it

#

so i abandoned it

#

and my next bot got more servers that it ever had in 2 days ยฏ_(ใƒ„)_/ยฏ

#

and still continues to get 100 new servers a day

#

somehow.

amber oasis
#

I'm currently refactoring @desert stag to split all the commands out to separate files and stuff

pearl badger
#

I would prefer to just move all the commands into its own sepparate file instead of multiple

#

or by general topic such as TMP and WOT

#

never store all your commands in the main bot e.e

#

because you have to retart the bot just to fix one little fix but with modularisation it takes like 10ms to reload it ๐Ÿ˜„

amber oasis
#

I actually run it in docker, startup is only around a sec as the container is destroyed and re-created

amber oasis
#

last patch took 0.95 seconds googlecat

#

from container start to ready event triggered

pearl badger
#

ew js

amber oasis
#

whatever works ยฏ_(ใƒ„)_/ยฏ

#

I'd do it in elixir, but then I couldn't fool krash or humane into doing shit on the bot as well

pearl badger
#

you could just use python

amber oasis
#

lel, python googlecat

pearl badger
#

why does all your messages have to end with a cat (โ•ฏยฐโ–กยฐ๏ผ‰โ•ฏ๏ธต โ”ปโ”โ”ป

#

daym calm cat

amber oasis
#

cause troll is too mainstream

pearl badger
#

or just use nothing aquaThumbup

amber oasis
#

that's too mainstream

pearl badger
#

๐Ÿค”

#

Seems legit ๐Ÿ† ๐Ÿ’ฆ ๐Ÿ‘Œ ๐Ÿ˜‚ ๐Ÿ‘ถ ๐Ÿผ

#

is that too mainstream

amber oasis
#

๐Ÿ˜‚ is

pearl badger
amber oasis
pearl badger
amber oasis
#

ew, fidget spinner

pearl badger
#

ew, cat.

amber oasis
#

almost as bad as python

pearl badger
#

snake > cat

amber oasis
#

snek

pearl badger
#

they get scared over cucumbers ยฏ_(ใƒ„)_/ยฏ

amber oasis
#

stupid cats do googlecat

#

gg, I derpy

#

"Online users, [object Object]"

pearl badger
#

๐Ÿ‘ You have to get its len

amber oasis
#

nah, I was making it async, but tossed it the async object rather than the response from the async method googlecat

#

the neat part is that after the refactoring, despite not being a goal, it's using less memory

#

used to start at ~60MB, and stabelize at ~100MB after a day, so far it's started at ~40MB

pearl badger
#

they dont use alot of ram theres just a little bit of base

#

like for example my bot is on 2300 servers and its only using 350mb ram

#

ยฏ_(ใƒ„)_/ยฏ

#

like for example my bot is on 2300 servers and its only using 350mb ram

#

but if i made 2 shards then it will be like 600mb ram total even tho is dealing with the same ammount of servers

pearl badger
#

might make a bot that just shows server info and updates every minute on a dedicated channel

ember canyon
#

@pearl badger what's you're bot called?

pearl badger
#

Its called Welcomer.

#

But if youre talking about the server info one its just an idea

meager olive
#

Ehm, is HTML nailing me or am I doing something wrong here? The white box is not wanting to stick to the left and top side of the page; http://prntscr.com/gflitg

Lightshot

Captured with Lightshot

scenic star
#

Are you coding that for your school? Lol

meager olive
#

Yeah, cause the programmer we have sucks. It's not even responsive, so I'm going to attempt to make it new and better.

scenic star
#

I hope for you they accept it

meager olive
#

Still not sure what my code is triggering for it to bug like that.

scenic star
meager olive
#

ayyy lmao

#

that's what I mean, it sucks

scenic star
#

xD

north flax
#

@meager olive Remove the headers margins. Use a reset stylesheet.

meager olive
#

Fixed it, forgot a semicolon :V

north flax
#

You should probably also set the header width to 100%, not a fixed width

#

If I open your page it's gonna look fucked up, because my screen isn't wide enough for that to fit

meager olive
#

yeah, fixed that aswell

#

I was messing around a bit

#

It works on my phone now aswell

#

Quite funny, the guy who made the original thing has a fixed width as you said. It screws up the entire page.

pearl badger
#

use a site maker lol

cunning kite
#

Anyone knows how to fix this

#

:<

#

I'm stuck on it for days

amber oasis
#

post da code

cunning kite
#

Alright hold on

#

Well what it does is it adds a border-bottom: 4px solid #E10E46; to an item

#

i'ts a bit to much to post

#

๐Ÿ˜‚

amber oasis
#

gist

cunning kite
#

gist meaning?

amber oasis
cunning kite
#

Well

#

You'd need the whole site

#

because it gives that red bar on the section id

#

Should I just post the whole html + css?

amber oasis
#

otherwise nobody can't help you but just throw wild guesses

cunning kite
#

Alright

#

That should work

cinder spear
#

if it's on a public website, can link that too

cunning kite
#

It's not released yet

#

@cinder spear

cunning kite
#

Got it fixed

#

(the old website is up at the moment)

pearl badger
#

looks nice

shy swan
#

Sounds stupid, but: The API from TMP gives some answers. ( like https://api.truckersmp.com/v2/servers ). Is there a way how I can change the "format of the answer". I want to create an TMP app for the LaMetric time. And the LaMetric Time can only read the following format as poll: { "frames": [ { "text": "playercounter here", "icon": null } ] }
Push request are also possible.
Does anyone know how I can "reformat" it? thx.

shy swan
#

Mhh... No answers ๐Ÿ˜ฆ

amber oasis
#

create a server that proxies and rewrites it for you

shy swan
#

Mh. Okay. I will try. Thx

pearl badger
#

Old world of trucks + truckersMP bot. Just showing source code coz tbh im most probs never gonna bother remaking it and even if i did i wouldnt use this old version as it doesnt even use rewrite, or the discord.ext.commands module to make it much easier to use.

naive anvil
#

Why is there only like a few random people in this chat? sorry to ask.

ember canyon
#

Cos it's only for wanna be devs chat

pearl badger
#

Wanna be devs

#

smh

cinder spear
#

some people actual develop things

karmic ridge
#

the only thing I can program fluently is bat files e1lul

steep knoll
amber oasis
grand blade
#

tru

karmic ridge
#

thats what I always do

#

look at what others made and change it until I get what I want

cinder spear
#

Juggling between Google's and 3 different versions of Slack's API danThink

amber oasis
#

Slack's api is... interesting to say the least

cinder spear
#

the workspace one in developer preview seems nice

#

...but it's a preview

#

so actually using it right now is a bit of gamble

#

but I don't want to use the legacy one and the current one doesn't work for me due to security considerations

#

so I'm hoping the preview doesn't change too much

#

chat:write:user changing to chat:write might break things but hoping they'll just convert it for existing tokens

pearl badger
#

slack api

#

mmlol

cinder spear
#

it's not bad

#

documentation is one of the easiest to use IMHO

naive anvil
#

Hmm, on the new recruitment part of the truckers.mp website it says support is closed. It is actually open according to the forums. Why is that?

north flax
#

Because that recruitment is not done through our new system-.

naive anvil
#

Oh ok, thank you.

cinder spear
ember canyon
#

Hm

ember canyon
#

I want that emote

rugged copper
#

Bit of a random question but how does TMP handle the storage of the users social account information in the database? i.e. do you have seperate table or a seperate column for each one in the users table

amber oasis
#

It's stored as multiple columns, it's not the best approach, but it works and we got IDE helpers to avoid stupidity when making changes

pearl badger
#

databases inside databases INSIDE DATABASES

naive anvil
#

So for TMP to become a thing you had to ask SCS if you could use their game?

knotty crag
#

I donโ€™t think they mind tho as long as Truckermp donโ€™t make money off from Their game

#

I wish scs did have Multiplayer server built in the game

ember canyon
#

I wish it TruckersMP let you buy a server cough definitely not asking if I can buy a TruckersMP server cough

kindred tendon
#

Cough Won't happen cough

ember canyon
#

cough Iโ€™ll pay ยฃ100 cough

amber oasis
#

๐Ÿ˜‚ the hardware costs more than that

ember canyon
#

cough 500 cough

kindred tendon
#

Not even close

ember canyon
#

Oi

sweet hornet
#

We can lend you the server, but an empty one as you never asked to have our source code on it thisisfine

ember canyon
#

Oi

#

I said โ€œtruckersmpโ€ server

sweet hornet
ember canyon
#

Wait it has the source code?

oblique harbor
#

10/10 Paint skills Math. kappa

ember canyon
#

I wonder, if TruckersMP shuts down will they release the source code html files etc for the public before they shutdown

scenic star
#

no

ember canyon
#

Wasnโ€™t asking you

scenic star
#

you wasnt asking anyone, you didnt specify any name.

cunning kite
#

They're not shutting down?

sweet hornet
#

@oblique harbor ๐Ÿ–• It's Adobe PS 2017

#

@ember canyon Nope, and please note that only ONE person in the team has that precious code: Our beloved mwl4 so if one day TMP shuts down it'd be his decision!

ember canyon
#

Hello

#

How much are those server pc's

#

Bet u could get a threadripper in there and performance would be 10x better

#

May i ask what language u use

karmic ridge
#

english

ember canyon
#

I mean programming

karmic ridge
#

it was a joke

ember canyon
#

Oh

pearl badger
#

Or you could sell TruckersMP to SCS

#

for like 2 oreo choclate bars.

ember canyon
#

u should sell it

#

they would have great supported servers

floral mist
#

I mainly use C#, but started with C and Java

amber oasis
#

Threadripper wouldn't give our servers much of a performance boost, we rely quite a lot on single core performance

#

but for our web/database stuff, we're rather have a couple of EPYCs or something similar googlecat

naive anvil
#

Been told i shoud ask here! Anyone have basic coding skills? Please do p.m me if you do!

candid tide
#

What programming language do you like the most?

naive anvil
#

It does not matter. Honestly its been so hard to find people im looking for anyone. They can use whatever they prefer. You good at it?

#

@candid tide

floral mist
#

instead of asking for someone, you should tell what kind of project you want to do / want to be done

scenic star
#

^

naive anvil
#

That is better for me to be explained over p.m

amber oasis
#

Likelyhood of anyone caring to PM someone about a complete unkown project often approach zero quickly

#

developers, by nature, are lazy googlecat

kindred tendon
#

We have living proof of that too ๐Ÿ™‚

naive anvil
#

If someone was actualy interested they would p.m me. just saying ๐Ÿ˜‰ not to start an argument but yea

#

Anyways off to school chow everyone!

#

And i have 3 people that messaged me so far.

floral ice
#

xDDDDDDD

cinder spear
#

people, by nature, are lazy

#

you'll always get some people who are just interested for something to do

#

but providing some details immediately can get a lot more people interested

ember canyon
#

Just post it

#

Who is actually going to pm u

pearl badger
#

Python is the only language you need

candid tide
#

Python is a special language. Neural network, image processing, security, web, game development, mobile etc. I think it is the most multi platform.

naive anvil
#

Oh good to know thanks!

#

I have a small team so far still gorwing hehe

#

growing*

candid tide
#

What do you develop with your team?

amber oasis
#

"most multi platform", how young child, how wrong you are ๐Ÿ˜›

#

C is the definition of multiplatform, It'll run on anything including things that doesn't have enough memory to load the python interpeter

ember canyon
#

I use java, html, css and a little c++

sweet hornet
#

Do you allow me to kill my mates that keep calling Java__script__ Java ?

amber oasis
#

Just start correcting him and call it ecmascript

naive anvil
#

Im sorry. I know not much about coding lol i do other stuff for the team.

ember canyon
#

Java

#

Java

#

Java

#

@sweet hornet

sweet hornet
#

๐Ÿ”จ

ember canyon
#

๐Ÿ˜‰ troll

#

Am i avle to code for mp

ember canyon
#

Able

amber oasis
#

lolno

ember canyon
#

k

candid tide
#

@amber oasis Everything can be done with every programming language. But according to development time, I think the most multi-platform language is python. C is the head of everything already.

#

It also comes from the fact that Python is a good readable language, which is the main reason for its ease of development.

#

C has very nice features close to the hardware base such as pointers and direct memory accesses. It is also a fairly quick language from such talent.

naive anvil
#

Wow you look like a good developer @candid tide you know alot lol

#

weither its true or not idk as im ot a DEV lol

amber oasis
#

I don't think you realize how wrong you are, sure, you can make a embedded python interpeter, but then it's not python anymore, claiming any scripting language is more multi-platform than another, considering that they are all multi-platform is naรฏve.
If anything, Perl is "most multiplatform", as it's been ported to run on more platforms than any other scripting language outside of shellscript googlecat

naive anvil
#

Hmm was that intended for cracker or me?

ember canyon
#

Or was it for both

nocturne drum
#

Anyone here know C++ and LUA?

cinder spear
#

Java and javascript are alike like car and carpet

#

I know a bit of c++ and lua

candid tide
#

@naive anvil There is a few more years to become a good developer. But I see myself as a good student. I am studying Computer Science in Turkey as a technical university.
(In Turkey, the name is Computer Engineering.)

naive anvil
#

Col

#

cool*

gentle hornet
#

Is there a way to show the TMPID next to the name in MP? Kinda like g_developer 32, but instead of the velocity, show the TMPID

kindred tendon
#

Only people with admin permissions can have their TMPID next to users names

gentle hornet
#

That's dumb

kindred tendon
#

Not really. What use do users have for it?

gentle hornet
#

When they are lazy like me and don't want to go searching in logs.

#

And can just look ever the recording

kindred tendon
#

Use /pinfo in-game and you will have their TMPID right there in the video.

gentle hornet
#

Too lazy

#

๐Ÿ˜ƒ

scenic star
#

Suggest it - Would most likely be declined however

amber oasis
#

lol ansible: Releases are named after Led Zeppelin songs. (Releases prior to 2.0 were named after Van Halen songs.)

amber oasis
ember canyon
#

:0

#

I prefer the old 1

amber oasis
#

September update installed, so I suppose I'm just slow to notice

cinder spear
#

VSCode going full on Fallout 4 institute with that slogan

ember canyon
#

Lel

cinder spear
#

"Mankind. Redefined."

ember canyon
#

:P

amber oasis
#

xD

#

didn't connect those two before you said it 3v

cinder spear
#

well, I am director@fallout4.institute after all kappa

ember canyon
#

Seriously ๐Ÿค”

amber oasis
#

blobnomcookie :

ember canyon
#

What a good emoji

#

How does 1 get discord partner ๐Ÿค”

cinder spear
#

Discord partners large content creators and communities

ember canyon
#

Nice so when i get big on twitch :p

amber oasis
#

lol

#

For a community, I believe there has to be a fairly substantial size

cinder spear
#

8000+ subscriber subreddit is mentioned as an example

ember canyon
#

Mmmm

#

So 8k followers

#

Only 7943 to go :P

cinder spear
amber oasis
#

At the time we applied for partnership, we had 1.7 million registered users

cinder spear
#

dats a lot

ember canyon
#

Dam

#

And now

amber oasis
#

still not bicked 1.8

ember canyon
#

It must be very crazy making a mod of this size

#

Just how much organization and things that must go into it

amber oasis
#

guess why growing the admin staff is a slow process googlecat

ember canyon
#

Idk

#

U tell me :P

amber oasis
#

because having 1.7 million users, you don't just pick a bunch of people and pray that they'll do things acording to the rules

ember canyon
#

Lul

#

xD

#

Being an admin would be fun

#

And chaotic

#

How long did it take u to create mp

amber oasis
#

I didn't create it, I came in a bit over a year later

ember canyon
#

Oh

#

Will there ever be openings for devs

amber oasis
#

I took the lead on rewriting the main website, that took around 6 months or so

ember canyon
#

Would be a fun job

#

Html?

amber oasis
#

We're always looking at what people make and do in the community, if you show some skills we desire, we'll contact you

ember canyon
#

Is there any u desire

amber oasis
#

html, php, mysql was the core of things, but we are slowly pivoting towards microservice architecture and things in that camp

cinder spear
#

oh php...

amber oasis
#

If you have to ask, you probably don't have the skills we need ๐Ÿ˜›

ember canyon
#

Im currently doing html

cinder spear
#

how something can be so great and awful at the same time

ember canyon
#

And do a bit of photoshop and things

amber oasis
#

gaining the proficency to where we'd be interested will take you a while

#

PHP is a love hate relationship

cinder spear
#

I don't think it's possible for it to be anything else

ember canyon
#

@amber oasis ye :/ never really post my work though i hate it when ppl criticize it after u spend so long on it

amber oasis
#

I have a love/hate relationship with every single language I use

ember canyon
#

Same

amber oasis
#

PHP and I go back a loooooong time, and it's way better than it was when I started

cinder spear
#

it's gotten a lot better

ember canyon
#

My school teaches such a bad useless language u can do basically nothing on it

cinder spear
#

but the backwards compatibility is holding it back so much

amber oasis
#

you have to be able to take criticism if you're even working on this mod, people will gladly tell you how much youre wrong and should be doing it this way rather than that way

cinder spear
#

true of any public positions ^

ember canyon
#

Ye

#

Slowly getting better with dealing with it

amber oasis
#

Just last month I had a guy tell me "oh but if you did it in node, your site would be 50x faster and you'd only written half the code!"

ember canyon
#

Lul

amber oasis
#

Catching errors in node is a horrible messโ€ฆ

ember canyon
#

Do any of u use c++

amber oasis
#

game client is c++

ember canyon
#

Im trying to learn that in my own time

cinder spear
#

suggests javascript would be 50x faster.. lol

amber oasis
#

Good luck, recommend learning plain C and attaching C++ on top of that

ember canyon
#

Using codecademy highly recommend there website

amber oasis
#

get you a bit more foundation to low-level programming, so that you know what macros etc. adds to C with c++

ember canyon
#

If u learning

cinder spear
#

I'm just waiting for the day C dies and we can get rid of buffer overflows

#

but that'll never happen because of POSIX

amber oasis
#

lol, as long as Linus is around, I doubt C will die

cinder spear
#

well that too

amber oasis
#

for that sake, I wouldn't write a line of c++ for a micro

ember canyon
#

If on u couldmake a game in visual basic

amber oasis
#

oh god no

#

don't go there

ember canyon
#

My school teaches me that every day

cinder spear
#

here's a piece of advice

ember canyon
#

How to make a program that would take me 10mins to make but everyone in the class take 2hours

#

Ahhhhhhb

#

How can ppl code so slow

cinder spear
#

if you're thinking of creating something in visual basic, take a step back, reconsider life, and do it in C# instead

ember canyon
#

Im not

#

Its such a bad language xD

amber oasis
#

VB is basicly dead now and only updated as backwards compatability iirc

#

MS focuses on C# and F# now for .net iirc.

ember canyon
#

For my exam i had to make a 'hard' program

cinder spear
#

it's dying with the move away from .net framework towards .net standard and .net core

ember canyon
#

Had to make a database put it in program then make a holiday calculator thing or somthing like that

amber oasis
#

yeah, core is quite nice

ember canyon
#

Omg so ez

#

Got 90% :P

cinder spear
#

my chat bot runs on .net core on linux

ember canyon
#

Tuxy would u use my discord bot

#

If i made it on java

cinder spear
#

what it does is way more important than what it's made in

ember canyon
#

Ye

#

Im sitting on a family holiday trying to design a bot :P

#

Writing ideas on paper

cinder spear
#

The choice of language and platform comes down to two things: what's designed for the task you're doing and what you're familiar with

amber oasis
#

I generally won't use other's bots unless it's objectively better than something else

#

the music bot here is written in Java actually

ember canyon
#

Do u have a music bot

#

That searches yt

amber oasis
#

yes, it uses youtube

#

@desert stag is written in node

cinder spear
#

I hate java but that's a personal issue

amber oasis
#

I hate Java as well, but that music bot is objectively quite good

ember canyon
#

Why

cinder spear
#

I don't generally mind running other people's java code, but I don't want to touch it myself

ember canyon
#

There isnt really much point of trying to make a bot there is basically a bot for everything on discord

amber oasis
#

the music bot uses a gig of ram, to play music, while @desert stag uses a mere 40-100MB to do all kinds of backend things

cinder spear
#

sounds like java alright

#

my elasticsearch installation uses 2.4G RAM to store logs from a single application

amber oasis
#

right now, the music bot is actuallly only using 400MB, so slightly better

ember canyon
#

Do any of u have ideas

#

On bots

amber oasis
#

Prodbot = @desert stag

cinder spear
amber oasis
#

the webhook receiver is a slack compatible webhook receiver to shoehorn the slack features into discord native features

cinder spear
#

why not send directly to a discord webhook?

ember canyon
#

๐Ÿค”

amber oasis
#

Cause we lost stuff that it pushed into fields discord's webhooks didn't add to the message

#

I don't remember the exact details, but basicly stuff was lost in the conversion, and we didn't want that

ember canyon
#

Ah

cinder spear
#

interesting

amber oasis
#

additionally it takes jira webhooks as well

cinder spear
#

so the slack compatible webhook isn't completely compatible

ember canyon
#

Intresting

amber oasis
#

It's compatible enough for most usecases

#

I think it was gitlab that dropped some stuff into a field that slack supports that discord doesn't

ember canyon
#

I lost u

#

A long time ago xD

#

Im just a noob though

amber oasis
#

stuff put stuff into stuff that thing thingymajig doesn't support, so we made a thingymabob to support that stuff

#

Did I translate to noob well enough? googlecat

#

the first line of code for @desert stag was written to make the announcement without having the subscriber group mentionable

#

that was her first purpose in life

#

Literally the first version of the bot xD

cinder spear
#

pretty clean code

amber oasis
#

not my first es code, but there's a lot of naรฏve code there

#

actually my first async await code in es though

cinder spear
#

haven't done that yet myself

amber oasis
#

It's pretty much like doing it in C#, which is nice

cinder spear
amber oasis
#

at least you use "use strict"; ๐Ÿ˜›

cinder spear
#

mixed tabs and spaces too danCringe

amber oasis
#

that should be illegal

cinder spear
#

although I think that might be cbenni updating it after me

amber oasis
#

To support docker, I had to make this horrible thing:


const { resolve } = require('path');
let config = require(`${resolve('.')}/config/config.json`);

config.token = process.env.DISCORD_API_KEY || config.token;
config.prefix = process.env.DISCORD_PREFIX || config.prefix;
config.webhook = process.env.WEBHOOK_Console_ID || config.webook;
config.wtoken = process.env.WEBHOOK_Console_TOKEN || config.wtoken;
config.twitchtoken = process.env.TWITCH_TOKEN || config.twitchtoken;
config.redisHost = process.env.REDIS_HOST || config.redisHost;

exports.default = config;

#

kโ€ฆ @cinder spear we need to talkโ€ฆ

cinder spear
#

about what

amber oasis
#

seriously googlecat

amber oasis
#

time to take that KawaiiBlobBanHammer and bend it over his head

#

๐Ÿ˜›

cinder spear
#

normal for loop is a lot faster than Array.prototype.forEach but don't think it makes enough of a difference to justify it

amber oasis
#

In 99% of cases, if you worry about the speed of foreach vs. for, you're preemtively optimizing, which is a bad habbit

cinder spear
#

true

amber oasis
#

it's like the double quotes vs. single quotes discussion that was rampant in PHP 12 years ago

cinder spear
#

ha

#

I just use single quotes unless I need the double quotes to stick variables in there

amber oasis
#

I use single quotes exclusively

cinder spear
#

I haven't written significant amounts of php in ages

north flax
#

I have. I use single quotes :p

amber oasis
#

concat all the way

#

that said, ^ made me reconsider using double quotes for obscenely long strings

cinder spear
#
if(getPosition($this->varr, "interior")*1 != 0 || (getPosition($this->varr, "scale") == 0 && getPosition($this->varr, "scale") !== false) || (getPosition($this->varr, "alpha")*1 < 100 && getPosition($this->varr, "alpha") !== false))
                                $this->v = 1;
amber oasis
#

You seriously wrote that spaghetti?

cinder spear
#

I wrote that spaghetti ~4 years ago

#

think that was my first real piece of php

#

i.e. code that actually had use

#

it's gotten a lot cleaner since then...

#

as far as I know, they're still using that tool tho

#

converts MTA's XML format map files into a SA-MP server's ini + pwn format

amber oasis
#

XML is the devil in general

#

but Xpath makes it tollerable to handle

cinder spear
#

would have been easier had I known about PHP's XML parser

#

XML has its uses but I don't like it

amber oasis
#

there's generally always a better alternative available

cinder spear
#

json bingBless

amber oasis
#

json, yaml, INI, etc.

cinder spear
#

yaml is nice to read but annoying to write

amber oasis
#

Oh yeah, you need an editor that is good at handling it, but it's still better than xml ๐Ÿ˜›

fallow meadow
#

I prefer JSON

cinder spear
#

idk about programmatically reading it, never done it

north flax
#

Pft, yaml in notepad is fine :p

cinder spear
#

as long as you remember never to click tab

north flax
#

Ye

#

And as long as the lineendings are right

amber oasis
#

JSON has a major flaw for configuration files: no comments

cinder spear
#

can't tell you how many times I've had programs crash on me because the editor I used used tabs instead of spaces

north flax
#

When I did minecraft stuff, I generally used wordpad actually, because notepad didn't work properly with the file line endings.

#

But that's many years ago now :p

cinder spear
#

ah minecraft..

#

always used nano or vim

fallow meadow
#

I used to use Notepad++ for writing py3 but then it got picky due to the tab thing I gave up and went back to the standard IDLE

amber oasis
#

I used to be an avid atom user, but switched to vscode a couple of months ago

north flax
#

I use nano if I need to quickly edit a file in a terminal, and Sublime Text 3 or an IDE for writing code, generally :p

amber oasis
#

nvim for terminal stuff, vscode on my laptop/desktop

cinder spear
#

I need to check if vscode can be made not to check git's upstream every 3 minutes

amber oasis
#

phpstorm for php googlecat

north flax
#

Same, phpstorm for php :p

#

Webstorm for node.js (so my telegram bot, maybe botdottir in the future)

#

IntelliJ for Java (at university)

cinder spear
#

SSH logins to few of my servers send me an email, and git uses SSH, and vscode checks upstream every 3 minutes

#

so rip inbox

amber oasis
#

but here's how xml is "nice" to work with:

//*[@id="current-rides"]/div[1]/div[2]/div/a/div/table/tr[8]/td[2]/img[1]
#

crappy, but hey, discord had Xpath language definitions as well xD

cinder spear
#

nice

#

I use jsonpath quite a bit to work with json

amber oasis
#

basicly that Xpath finds the element with matching id of current-rides, then traverses the tree through the 2nd then 3rd div, then first div etc.

#

Symfony also got Symfony\Component\CssSelector\CssSelectorConverter, which you can use to convert CSS selectors to Xpath if you want to use that instead