#programming

1 messages ยท Page 26 of 1

plucky flicker
#

in Java, we have Threads, Runnables and Futures mostly

unkempt hamlet
#

Thanks, I'd rather go Elixir/Erlang

plucky flicker
#

lol

#

I wanna try some writing with this now but no idea what to make lol

unkempt hamlet
#

That's exactly my progress with Elixir so far LoL

plucky flicker
#

gonna install PhpStorm rn lol

#

I'm lucky, I get all the JetBrains IDEs for free with the GitHub Student Developer Pack

unkempt hamlet
#

ikr, big deal

plucky flicker
#

they're really nice though

#

what do you use to write PHP with?

unkempt hamlet
#

PhpStorm athink

plucky flicker
#

oh nice

#

righty then, what shall we start with? just an empty project?

#

does PHP have things like build tools?

unkempt hamlet
#

It is a scripting language, it doesn't need to be built

plucky flicker
#

oh it's a scripting language

#

what are conventions like for PHP?

unkempt hamlet
plucky flicker
#

oh, very similar to Kotlin, nice

#

do we have things like SOLID in PHP?

#

actually PHP is a scripting language and it's not object-oriented so the answer to that is likely no

unkempt hamlet
#

Yes, you can use it

plucky flicker
#

actually, DigitalOcean's examples for SOLID are in PHP, so maybe

#

is it basically the law like it mostly is in OOP?

#

or is PHP a bit more flexible than that

unkempt hamlet
#

You can do whatever you want, like in every other language

plucky flicker
#

also, is allman really PHP's recommended style?

unkempt hamlet
#

PSR-12 athink

#

Never heard of allman

plucky flicker
#

In computer programming, an indentation style is a convention governing the indentation of blocks of code to convey program structure. This article largely addresses the free-form languages, such as C and its descendants, but can be (and often is) applied to most other programming languages (especially those in the curly bracket family), where w...

#

that disgusting crap kekw

unkempt hamlet
#

Ah, that one

#

Well, it is all in PHP-FIG recommendations

#

"recommendations" is the keyword

plucky flicker
#

does PHP have the concept of immutability btw?

#

e.g. Java has final, which means that a variable's value can't be changed

unkempt hamlet
#

No, there is only constant variable which is immutable

plucky flicker
#

ah okay

#

how does instantiation work in PHP?

#

actually I can google that

unkempt hamlet
#

Indeed

ember canyon
#

anyone else good with node.js

raw notch
#

maybe

ember canyon
#

just curious lol

unkempt hamlet
unkempt hamlet
shadow marsh
#

I may will download this font and I may will give it a try ๐Ÿ˜‚ seems to be pretty peek

orchid bolt
#

any discord.js developers here?

orchid bolt
arctic mica
orchid bolt
#

i figured it out, thanks

royal quiver
#

Discord.js seems so difficult compared to Discord.py

orchid bolt
#

maybe

#

but i'm used to d.js

#

i got used to it

royal quiver
#

I guess people are always going to find their most used language the easiest...

earnest granite
sterile monolith
fervent garden
unkempt hamlet
royal quiver
#

Does anyone know which developer codes the tmp bots?

unkempt hamlet
#

Wdym "which"?

royal quiver
#

I meant who are the main people involved

#

I should have phrased the question better, presumably there's a lot of teamwork throughout tmp.

cinder spear
#

going to depend on the bot you're talking about too

#

and possibly the questions you have

unkempt hamlet
#

Botdottir is developed by ShawnCZek, Krashnz, with contributions from me and other retired developers.

#

3v wink-wink

#

Other bots are 3rd party

cinder spear
#

๐Ÿ™‚

royal quiver
#

OK! catthumbsup

#

I hadn't heard of Typescript before, but apparently it's just a variant of JS so that makes sense...

cinder spear
#

typescript is awesome for medium-to-large projects

#

type safety avoids so many easy to miss bugs

royal quiver
#

So it checks all possible inputs? Or is it analysis of the code itself?

unkempt hamlet
#

In computer science, type safety is the extent to which a programming language discourages or prevents type errors. A type error is erroneous or undesirable program behaviour caused by a discrepancy between differing data types for the program's constants, variables, and methods (functions), e.g., treating an integer (int) as a floating-point nu...

cinder spear
#

nothing to do with inputs or analysis of the code: just labels and ensuring the labels match

royal quiver
#

Oh, ok

cinder spear
#

so you can say, for example, that the first parameter to a function is an object with the property name that is a string, and then you can just safely assume that in the implementation without checking your callers

#
function greet(person) {
  if (!person || !person.name) {
    throw new Error("invalid person");
  }
  console.log(`Hello, ${person.name}`);
}

vs.

type Person = {
  name: string;
}

// no additional checking required as long as --strictNullChecks present
function greet(person: Person) {
  console.log(`Hello, ${person.name}`);
}
royal quiver
#

So the main purpose of this is to reduce bugs and speed up development?

unkempt hamlet
#

reduce possible bugs down the line, makes it easier for IDE to highlight and suggest, and makes your code somewhat self documenting

cinder spear
#

especially useful when writing code that might be consumed by other devs or even projects

#

the types and method names alone cover the usage most of the time without having to read through comments or documentation

#

referring back to the example above, using typescript you don't need to know or check what person is supposed to be (is it the name as a string, an object with separate first and last names, or an object with just a combined name field? what are the fields called, if they exist?). You just make sure you have a Person and you're good to go.

sterile monolith
#

anyone here got any good c# learning resources?

cinder spear
#

what level?

sterile monolith
#

beginner\

cinder spear
#

there's also links to other learning resources at the end of it

sterile monolith
#

would you recomend jetbrains rider as an IDE

#

(i have the student license for every single jetbrains IDE)

cinder spear
#

always used visual studio community/professional for .net and haven't felt a need for anything else, but I've heard good things about jetbrains software

north flax
#

Jetbrains Rider is nice, and worth trying. I find it nicer than visual studio

sterile monolith
#
using System;

namespace ConsoleApp1
{
    class Program
    {
        public static void Main(string[] args)
        {
            Console.Write("First Number: ");
            
            int NumberOne = Convert.ToInt32(Console.ReadLine());
            
            Console.WriteLine();
            
            Console.WriteLine("Second NUmber:");

            int NumberTwo = Convert.ToInt32(Console.ReadLine());

            int FinalResult = NumberOne + NumberTwo;

            Console.WriteLine($"{NumberOne} + {NumberTwo} = {FinalResult}");
        }
    }
}
#

yay i made a calculator

unkempt hamlet
#

oof

earnest granite
#

Lol

plucky flicker
#
fun main() {
    val scanner = Scanner(System.`in`)
    println("First Number: ")
    if (scanner.hasNext()) {
        val firstNumber = scanner.nextInt()
        println("Second Number:")
        if (scanner.hasNext()) {
            val secondNumber = scanner.nextInt()
            println("The sum of the two number is ${firstNumber + secondNumber}")
        }
    }
}
```ez Kotlin calculator
arctic mica
#

"First Bumber" KEKW

unkempt hamlet
cinder spear
#

you don't need a Main method in .net 5, can get rid of all that boilerplate and unnecessary indentation in program entrypoints

unkempt hamlet
#

Never had a chance to check out .NET 5 yet

cinder spear
unkempt hamlet
sterile monolith
#

@cinder spear rider screams at me if i try to remove the boilerplate

cinder spear
#

probably set to an older version of .net

#

the latest Rider supports top level programs

unkempt hamlet
plucky flicker
royal quiver
sly moon
#

Why isn't snow falling in the game?

lilac aurora
#

Not really related to development, is it?

sterile monolith
#

i updated rider and .net and rider still yells at me

slim pendant
royal quiver
orchid bolt
#

does someone now how do i execute js file AND passing a variable to that file? from .php file

cinder spear
#

either set an environment variable for it or pass it as an argument in exec or whatever you use to invoke it

unkempt hamlet
#

Open js file with env from php file? Excuse me?

cinder spear
#

no, passing in variables

#

kind of curious what the purpose of executing a js file from php is in the first place

unkempt hamlet
#

I mean, he hasn't mentioned any Node.js, so I assume he wants to pass variables to JS file in frontend

cinder spear
#

oh, I guess that's another way to look at it

unkempt hamlet
#

Who even uses PHP and Node.js as a backend at the same project?

cinder spear
#

needs clarification

unkempt hamlet
#

@orchid bolt please clarify

cinder spear
#

sometimes people want to use some js only library

orchid bolt
#

i figured it out other way but i wanted to "inject" kode inside discord bot running on node.js

#

to add roles after verification

#

but figured it other way

cinder spear
#

you'd want to use proper IPC methods for that

orchid bolt
#

huh what

cinder spear
#

In computer science, inter-process communication or interprocess communication (IPC) refers specifically to the mechanisms an operating system provides to allow the processes to manage shared data. Typically, applications can use IPC, categorized as clients and servers, where the client requests data and the server responds to client requests. M...

orchid bolt
#

ooooh sweet

royal quiver
#

it was working correctly and now some standard syntax is causing issues

cinder spear
#

node version?

royal quiver
#

how do I check that?

cinder spear
#

node -v

slim pendant
cinder spear
#

becasue I assume too much fireY

slim pendant
unkempt hamlet
#

Next time give a context

slim pendant
#

syntax is correct, but i guess it comes from something above it

cinder spear
#

it's valid js syntax and a valid js error

unkempt hamlet
#

Well, embed=embed kinda stinks as JS code

slim pendant
#

so is it for python and if somebody asks if somebody is good with discord.py i assume its python not js

cinder spear
#

fair point, but Discord doesn't have threads and the previous context from 2 days ago was lost on me

slim pendant
#

indeed

cinder spear
#

still, my bad to assume

unkempt hamlet
#

We have Replies already, so use it SCrun

slim pendant
royal quiver
#

I've just fixed it

#

turns out I forgot some () but the error was detected in the line below

#

Thank you everyone for your help

shadow marsh
#

Heyho...

I want to try me in C#, it's basically Java, just from MS.

So far so good, which IDE is the best one for it?

cinder spear
#

visual studio community (or professional/enterprise depending on your needs) and jetbrains rider are the go-to ones for it

shadow marsh
#

alright, will take a look onto it - and I just need a basic thing, don't want to do anything big LUL

#

alright, will take a look onto it - and I just need a basic thing, don't want to do anything big LUL

cinder spear
#

VS community is free so easy enough to get started with

shadow marsh
#

okay ^^ will take a look onto VS Community later the day (it's 30 mins past midnight here) peek

royal quiver
#

You can get a plugin for Discord Rich Presence too, which is pretty nice!

shadow marsh
#

Well, it's indeed a nice-to-have but gladly not-a-need-to-have ๐Ÿ˜›

royal quiver
#

It does encourage you to name your projects properly though ๐Ÿ˜„

slim pendant
#

Hello, im looking for one or more contributor(s) for the project truckersmp.ts (https://github.com/iraizo/truckersmp.ts), due to my personal time i cannot work on it, the offical truckersmp API has already been implemented, only trucky's API is left.

unkempt hamlet
#

I wonder what is the reason to merge TruckersMP and Trucky in one lib

tardy smelt
#

You'll need to update it soon anyway ablobpeek

royal quiver
#

New partners? pogchamp

tardy smelt
#

You'll see soonโ„ข๏ธ aKappaPeek

shadow marsh
#

Ouuu

#

I'll see

raw notch
mossy cloud
slim pendant
slim pendant
tardy smelt
#

It will be on our social media and official website

shadow marsh
#

what will be changed? Because I will implement it soon into my bot peek so I can know, if I should wait or not

tardy smelt
#

You won't be able to add it to your bot right away. It will be at the end of January ablobpeek

shadow marsh
#

I meant the changes... not that I will add it in a few days and then I have to update it again

#

You know blobcatthinksmart I hate doublework somehow ๐Ÿ˜…

tardy smelt
#

It's a new feature. The current thing won't change :p

shadow marsh
#

ahh, okay ^^

#

thanks for clarifying it catlove look forward to the new things ๐Ÿ˜›

tardy smelt
#

All I can say is it will be a new feature on the website aKappaPeek

shadow marsh
tardy smelt
#

Phase 1 is the new feature and Phase 2 will be the feature connected to other system of our site ablobpeek

shadow marsh
#

I guess it's a VTC thing :p

tardy smelt
#

Not at the base aKappaPeek

shadow marsh
tardy smelt
#

Would probably be a good thing to add to a bot on phase 2 ablobpeek

shadow marsh
tardy smelt
#

It's something for the community Kapp

shadow marsh
#

I will look forward to the new feature ^^

foggy osprey
shadow marsh
#

(TruckersMP Api obv)

arctic mica
shadow marsh
#

Ahhh ^^ thanks catlove

slim pendant
#

interesting.

wooden glade
#

Hi all. Hope everyone is doing ok? Any web developers here? I'm coding a website, currently a location map showing where in the world my data centers are but I think I missed something and need help. I got the blue dots where I need them but there's a black dot next to them and I can't seem to get rid of the black dot. I've tried everything I can think of

unkempt hamlet
#

What framework do you use for the map?

wooden glade
#

My main website is using bootstrap 4 ๐Ÿ™‚

unkempt hamlet
#

Are those locations predefined or get requested via API?

wooden glade
#

I've had to manually enter them for the time being in HTML and some CSS

unkempt hamlet
#

Can you show the code by any chance?

wooden glade
#

I'll grab the CSS screenshot now buddy

unkempt hamlet
#

What's in map-dark.svg?

wooden glade
#

It's an empty map

unkempt hamlet
#

So, it is a li standard formatting in Bootstrap, use div or span

raw notch
#

use ul with class "list-unstyled"

#

and this will remove the dot aside

unkempt hamlet
#

Or that one, I just don't think it is a proper usage for lists

wooden glade
#

Ahh ok, thank you

raw notch
#

it's not really a good usage for maps aswell

#

use leaflet + custom markers

#

and will be a lot better

unkempt hamlet
#

I don't think it is meant to be interactive in the same way, so that's overkill

wooden glade
#

Ohh ok

raw notch
#

dont need to be interactive, can block any interaction like dragging or panning

unkempt hamlet
#

Stll, overkill. You can just get away with svg canvas.

raw notch
#

only, leaflet with OSM + custom marker, 10 lines of code

#

i guess if that map is responsible with absolute position

#

i think not..

unkempt hamlet
#

It definitely isn't.

raw notch
#

so leaflet is :D

unkempt hamlet
wooden glade
#

Sorry, didn't mean to cause an argument haha

unkempt hamlet
#

That's not an argument.

wooden glade
#

Honestly, I'm open to ideas, be nice ๐Ÿ™‚ - I've never coded a mapped location thing before so this bit is new to me lol

raw notch
#

imho, with a real map system like OSM and leaflet, position markers is really easy and looks better

wooden glade
#

What's OSM?

raw notch
#

is responsive, markers could be added at runtime or with animations, can open tooltips and so on

unkempt hamlet
#

Yeah, just +1 JS file

raw notch
#

Open Street Map

#

in 2020 really we are worrying about +1 js file? :D

unkempt hamlet
#

I mean, this exact integration won't benefit from that, so yeah ๐Ÿ™‚

#

Btw, cache partitioning will be among us pretty soon, so it might be worrying.

raw notch
#

add also a css file :D

wooden glade
raw notch
#

with gigabits connections now we are worried about some kb more to download

#

I've personally stopped to use cdnjs or similar, using webpack is all embedded in my js pack

#

and then there is Cloudflare and is cache

unkempt hamlet
#

In a grand scheme of things, it is really beneficial to not bring unused or useless dependencies to frontend.

#

imo

wooden glade
#

I'm thinking of putting my website behind CloudFlare but not sure if the free plan includes DDoS protection which I need lol

unkempt hamlet
#

google pagerank intensifies

raw notch
unkempt hamlet
#

I mean, it is like using jQuery just for the simple selectors, when you can just use plain JavaScript.

royal quiver
#

Question for J-M: are there currently any plans to add custom roles to the TMP Events system similar to the current VTC system? Eg. The event organisers could be assigned an Event Organiser tag or something, so that people would know where to direct their questions to. Also, is there ever going to be a chat board , or is this already covered by the forum?

shy swan
#

There are no plans for custom roles at the moment.
Yes, there are plans for some kind of communication on the page itself but this is still being planned.

foggy osprey
#

yeah, tailwind is honestly one of the best css frameworks i've used

slim pendant
#

yeah, my friend introduced it to me after i used bootstrap in 2020, now its probaly my favorite css framework, i can use it for anything, use postcss to strip any contents i dont need automatically and go ahead

foggy osprey
#

it's something you really need to get used to, since there are no "ready to go" components compared to bootstrap e.g.

#

but when you get used to it, it's super nice

slim pendant
#

yeah, it takes a "little more skill" but also rewards you with an faster loading site and general better knowledge of css

rugged copper
#

If you want prebuilt Tailwind components then there is Tailwind UI, but it does cost a bit ๐Ÿ˜„

slim pendant
#

oh damn those look neat, but im pretty sure you can rebuild those in ~10 minutes if you want to

rugged copper
#

Some of them are free and open anyway like the buttons, but some are a bit more complex

slim pendant
#

oh yeah

foggy osprey
#

ye, i bought tailwind ui ~0.5 months ago

#

totally worth it imo, can save you a lot of time creating components

mossy cloud
foggy osprey
#

i mean, if you think about the price, it's 209eur for a lifetime license

#

not that expensive

shadow marsh
#

I am not used to see Ratcho as RTM - but what is Tailwind? peek Has it something to do with Webdevelopment? peek

foggy osprey
#

It's a CSS framework

shadow marsh
#

So Webdevelopment ๐Ÿ˜„ I am just too stupid for that lol

foggy osprey
#

webdev is easy!

shadow marsh
#

I can't even write a basic HTML Document lol

#

I just understand Java

#

nothing more LUL

foggy osprey
#

hm everyone has their own skills i guess, i never understood java lmao

shadow marsh
#

Indeed - I never was able to do something with webdevelopment... Don't understand anything and I often tried it

#

once I knew how I list some entries from MariaDB with PHP

#

but nothing more LUL

foggy osprey
#

ever tried something like codecademy? If you're interested in learning webdev, that's a pretty good starting point

shadow marsh
#

I did ^^ and they really have good tutorials, indeed

#

but I can't work with that... is overcomplicated for me

#

so I stay with Java and everything'S fine

#

I will try out soon C# as this is Java but just from Microsoft basically

foggy osprey
#

I'll just stay cozy with Laravel/PHP laravel

#

been using it for so many years now, never felt the need to learn anything new

shadow marsh
#

Can say the same with Java ^^

#

Coding with it since 2017

#

oop... soon I am coding in it 4 years lol

foggy osprey
#

nice, i've been using laravel since about 2016-2017ish as well if i remember correctly

shadow marsh
foggy osprey
#

scrolled through the code of my first project not too long ago kekfake

#

it was bad

#

and it was even used on production for a irl event. my god.

shadow marsh
#

Same for me ๐Ÿ˜‚ I thought which Idiot did that ๐Ÿ˜‚ then figured it out, the author was me kek I never felt that sad xD

foggy osprey
#

pepelol yeah i know that feeling

high sorrel
shadow marsh
#

I can feel that xD

high sorrel
#

This may or may not actually be me ๐Ÿ˜‚

unkempt hamlet
#

Happy New Major Release, fellow coders!

shadow marsh
#

it will be me in 1h 55m kek

mossy cloud
#

Now got the ability to set 'External Events' :3

royal quiver
#

I like the new developer roles. It's nice to have a better insight into who's primary involved in what.

#

On a side note, is there a way to use the tmp api in python?

unkempt hamlet
#

Well, write your own wrapper or use a JSON lib to decode the endpoint responses.

royal quiver
#

Are there any resources you'd recommend for writing a wrapper in python?

unkempt hamlet
#

I am a PHP/JS guy, so shrug1

royal quiver
#

OK then, thanks for your help. I'll look into that tomorrow and ask for help here if I need it! ๐Ÿ™‚

high sorrel
mossy cloud
mossy cloud
#

Has anyone used https://github.com/shardick/etcars-node-client before? I'm able to capture the data via

etcars.on('data', function(data) {
    console.log(data);
});

But I'm looking to capture a single job for the tracker, and I'm unsure of what to do

unkempt hamlet
#

Well, you check the JSON for that data each time data is fired

worldly tulip
#

@raw notch

raw notch
#

oof

#

really really old

#

@mossy cloud i suggest to go with a C++ Telemetry plugin

mossy cloud
#

What's the benefits of that over NodeJS?

#

I got it working btw thanks

raw notch
#

it depends on what you want to achieve. ETCars is used from open source VTRPC, for example

#

but things like Trucky logit Trucksbook SpedV are based on telemetry plugins

#

i mean, a job logger should be a telemetry plugin. distribute nodejs is a pain

#

seems fair

mossy cloud
#

Using axios to actually post to API

#

Yeah wish me luck lol

raw notch
#

then you can compile in an exe with nexe

mossy cloud
#

I'll cross that bridge later lol

rugged copper
#

I would say the only thing with using this is that the data could also be easily faked

mossy cloud
#

It's taking data directly from ETCars though?

raw notch
#

Trucksbook uses memory mapped file and people cheat all the time :D

mossy cloud
#

Guess we'll just have to make all tracker jobs manual approval then anyway

raw notch
#

it's not so easy fake that data or do a "man in the middle" attack.. this need a certain type of knowledge

#

if you are doing a tracker for your vtc, this approach is good enough

mossy cloud
#

It's more a learning experience anyway, it's teaching me a lot โค๏ธ

raw notch
#

yea, i can imagined. don't worry about security at this point

high sorrel
#

I've used that node client for etcars for a logger before, it did the job and it's not absolutely awful but it's definitely not my favourite

#

Won't be using it for the next one, that's for sure haha

mossy cloud
mossy cloud
high sorrel
#

yeah absolutely lol

graceful belfry
mossy cloud
#

๐ŸŽ‰

raw notch
#

satisfying uh?

mossy cloud
#

indeed ๐Ÿ˜„

#

Never used NodeJS before so this is awesome for me ^_^

ember canyon
#

You should try using Typescript! ๐Ÿ˜

hallow peak
#

Is there any command to type in the console to restart TruckersMP?

unkempt hamlet
#

No

graceful belfry
#

Alt-F4 should do the trick troll

foggy osprey
#

@mossy cloud how's it going with ETCars? pepelol

mossy cloud
#

Really well thanks ๐Ÿ˜„

#

Hard bits are done, it's logging to both discord and database correctly ๐Ÿ˜„

#

Just now looking at API Authentication with header keys to make sure users are only submitting jobs for themselves lol

foggy osprey
#

Ah, that's nice yeah

#

I was looking into ETCars as well, so keep me up to date ๐Ÿ‘€

#

Interested in hearing if it's worth using

mossy cloud
#

Will do mate

pulsar jungle
#

ETCars is great to use.

#

I've personally used ETCars since spring 2018.

#

@mossy cloud You made an excellent choice by using ETCars.

mossy cloud
#

It's going very well, almost ready to release our first version ^-^

pulsar jungle
#

Nice

mossy cloud
#

MySQL :)

royal quiver
#

For the new events system, I received a message that I was already attending an event at that time, however it didn't actually say which event was conflicting. Is this a bug or an upcoming feature or was it because I was on mobile?

unkempt hamlet
#

This is not an appropriate chat for those things, you'd better ask on forum or in Support.

graceful belfry
#

The real question is there or will there be a public api for the events system?

raw notch
#

afaik yes

mossy cloud
#

Does anyone know of any resources for getting a live map? I can save the live data to database without issue, but I'd like to get a live map of VTC drivers

unkempt hamlet
#

What do you mean by "getting a live map"?

raw notch
#

the real problem is not generate the live map but convert the map coordinates to in-game coordinates and viceversa

mossy cloud
raw notch
#

they use the VTLog open source map from edoxyz

#

search for it on github

mossy cloud
#

Ah cheers

raw notch
#

but it's not updated, missing latest dlc

mossy cloud
#

Oh

raw notch
#

to generate the live map, updated, look at ts-map on github

#

but it's "only" a tile generator

mossy cloud
#

Thanks for everyone's help over the last few days, all working now blobcatpenguinheart

earnest granite
#

Wish I could make something like that but I just use VTRPC-CE from Trucky

#

for my VTC

raw notch
earnest granite
#

I tried VTRPC i think but didn't work out

mossy cloud
#

Well cloned it and made a lot of changes lol

earnest granite
#

That's what I wanna do

#

but never could too confusing

raw notch
#

vtrpc-ce is more straightforward

mossy cloud
#

I'll take a look

#

But it does work with the tracker :)

raw notch
#

it's not a tracker, indeed

mossy cloud
#

Yeah ik, just saying I got mine to work as one app which is what we want :P

earnest granite
#

Not really any tutorials on how to customize VTRPC so i can try it

mossy cloud
#

If you just try to find tutorials on everything you won't get better, just try things out, see what works ^-^

ember canyon
#

What is VTRPC?

royal quiver
ember canyon
#

Thanks!

#

Im thinking about making a tracker for my own VTC but that will take some time since i dont have much experience with programming...

royal quiver
#

This isn't a tracker.

ember canyon
#

Yeah, Im aware of that

royal quiver
#

It only does the Discord Rich Presence, although you could combine it with VTLog if you wanted something like that.

ember canyon
#

I was just saying ๐Ÿ˜›

raw notch
#

Vtlog + Trucky Overlay is the virtual trucking swiss knife everyone should have :D

mossy cloud
#

No offence to you but I'd rather have something more complex, but custom :)

#

But yeah Trucky overlay is great :)

raw notch
mossy cloud
#

Fair point ^-^

ember canyon
#

I might just start learning cc+

#

cc+ is on my watchlist

unkempt hamlet
#

c++?

dapper echo
ember canyon
#

My bad kekw

#

c++ is what I meant to say

slim pendant
#

c++ is a scary world

high sorrel
#

Haha

cinder spear
foggy osprey
#

Nice!

#

If I can give some small constructive feedback, maybe try to improve the web ui a bit more. Buttons don't have (or have very basic) styling currently, and the input fields look a little bit plain. Maybe try to add a small shadow e.g.
Simple things like that can make it look a whole lot better imo ๐Ÿ™‚

raw notch
#

oooh finally after 3 days radio streaming in overlay is integrated with keyboard media controls and update the current song title directly from the Shoutcast metadata

high sorrel
#

Ooooo nicee

slim pendant
slim pendant
#

i will probaly remove the trucky client since its not really that useful

ember canyon
#

does anyone know how to get jnto property are thingy for wifi... so i can have access to almost anything and edit a lot of crap with my wifi?

royal quiver
#

You should just be able to log in with those details.

silver hull
#

open command prompt and type in "ipconfig /all", now look for the gateway-address.
if you paste the gateway-address into your web browser, you will get to the router login screen

royal quiver
#

does anyone know what devops is?

raw notch
#

kinda..

royal quiver
#

I was thinking developer of operations or something

raw notch
#

is a mythological creature

#

no..

#

"operations" are intended in this case as deploy, continuos deployment, continuos integrations and so on

#

is not really a person in particular, is a technique

royal quiver
#

sounds logical

unkempt hamlet
#

DevOps is a set of practices that combines software development (Dev) and IT operations (Ops). It aims to shorten the systems development life cycle and provide continuous delivery with high software quality. DevOps is complementary with Agile software development; several DevOps aspects came from Agile methodology.

ember canyon
#

I just realised how easy it is to make a live map foe my vtc website xD

#

i went to the github page and found out that all you need to do is put your VTC ID in the link

royal quiver
#

really?

#

which website is this?

unkempt hamlet
#

Is there any way to run ETS2/ATS in the background without muting the game and pausing all inputs?

unkempt hamlet
#

Nope.

without muting the game and pausing all inputs

quick glen
#

@royal quiver I'd imagine he's talking about vtlog's online map. I dont know of any other map thats out there with the same functionality.

royal quiver
#

if you passed through your gpu, performance wouldn't be too bad either

unkempt hamlet
#

That's too much SCwtf

long bridge
#

hey, does anyone got a discord bot that has working code to get all the information off the server info api and send it all in a message. I can get it to work and print out the stuff in the console, but it doesnt work when i want the bot to send it as a message

shadow marsh
long bridge
#

i mean on the TMP servers

visual walrus
#

In game? Doubt it.

shadow marsh
#

You mean the TMP API and printing some Infos in such an Embed?

royal quiver
#

You can type /server in the in-game chat to identify the details about the server, and I'm sure there's probably a way to do it with the api.

unkempt hamlet
#

TruckersMP has no in-game connections with Discord.

quick glen
#

I think they want to pull info about the TMP servers off the API and post it in a message in their discord and not in-game

unkempt hamlet
shadow marsh
#

I am currently looking into Trucky API and also TMP API.... when doing a player lookup, both want the TMP ID... so far so good, but how can Trucky use a name to get player?

Like I want to do [p]truckersmp user Maurice Bailey and not [p]truckersmp user 2694641 PanUhm
As both want an Integer and not a String sadcat is there any possibility to do a workaround catthink

unkempt hamlet
#

In TruckersMP, there is no public API to search by a player name.

raw notch
#

@shadow marsh magic ๐Ÿ˜„

shadow marsh
raw notch
#

exactly, what you need?

shadow marsh
#

well, I just want to put that in my bot so I also can search by names and not their ID - basically I just want a player and serverlookup

wooden glade
#

Anyone know how to get Atom to show in Discord activity? I've gone through the settings and tried installing an Atom extension for Discord but nothing I tried seems to work lol

royal quiver
royal quiver
wooden glade
#

I just want it to be able to come up like it does when someones using phpstorm for example lol even just playing "Atom Editor".

#

I tried that extension buddy and it doesn't seem to work for me :/

royal quiver
#

Go to Settings / Game Activity and press add a game ๐Ÿ˜‰

#

If you just want the "playing Atom Editor"

wooden glade
#

I tried that buddy but for some reason it's wanting me to show one file at a time i.e. I don't wanna show files, I just want Atom lol

shadow marsh
#

Add Atom in Discord to your games, so it will show that you are in Atom but not, what you are doing currently

slim pendant
#

why even use atom

royal quiver
#

personal preference

#

some people prefer a cleaner experience

slim pendant
#

i mean if its all about a cleaner preference theres nvim, vsc

dapper echo
slim pendant
#

true, 300 database queries with 200 switch statements

shadow marsh
#

oh welp.... that is much lol

slim pendant
#

overexaggeration much

foggy osprey
#

Only 300 queries? Noob, i have at least 400 per page load Kappa

mossy cloud
#

@foggy osprey You dont need to store every character of the hashed password in a separate table ya know ๐Ÿ˜‚ kekW

foggy osprey
#

Hm?

#

You guys don't do that?

#

It's secure!

mossy cloud
#

lol

#

We dont use passwords lol

#

Just use md5, what could go wrong troll

#

Somewhere a developer is having a panic attack rn reading this haha

earnest granite
#

And then I'm just sitting here brain dead

foggy osprey
#

Passwords? For the Phoenix admin panel, there just is a password

#

It's stored in the js

#

And being validated with an if input === password

dusky juniper
#

hello i have using a lot of beacons but with out using a save edit did the game moderator has a reason to ban me

#

?

shadow marsh
#

What has that to do with Development catwhat

dusky juniper
#

are you a developper ?

shadow marsh
#

Yes but not here PanUhm

#

but still, what has beacons to do with development?

dusky juniper
#

i am talking about here

#

are you a developper in truckersmp

#

?

shadow marsh
#

No? I am just a patron like you

#

but I don't get it what beacons from ETS2 has something to do with DEVELOPMENT....

dusky juniper
#

so you are just a simple user like me i didnt talk to you

shadow marsh
#

Yes I am "just" an user

#

But still, what has Beacons from the Game to do with programming?

dusky juniper
#

sorry bro thats what you want

ember canyon
#

What does save editing beacons have to do with development? xD

royal quiver
#

it uses a text editor, so I guess that's cOdInG

ember canyon
#

xD

#

In just think the guy's desperate to get unbanned ๐Ÿคทโ€โ™‚๏ธ

#

He just have to respect save editing rules ::

ember canyon
#

yep

shadow marsh
#

I tried today to implement reaction roles by myself in my bot - so far, it's much work, but it's basically working on the first try Pog currently the addrole command is working and the reactadd and reactremove listeners - now I will implement the removerole and togglerole (so just add but not removeable)

mossy cloud
#

Well done ๐Ÿ˜„

shadow marsh
#

thanks aww

ember canyon
#

I might give that a shot today aswell

#

For now I've done a command to give and remove a role

royal quiver
#

If I want to build a command in Python to check whether anyone from a list of tmpIDs is online how would I do that?

unkempt hamlet
#

There is no public API on TruckersMP map

quartz moth
#

@royal quiver You can contact Krashnz on the forums for the map API data afaik ๐Ÿ˜„

royal quiver
ember canyon
#

Im gonna try to make a database with sqlite today

#

so i have a command which will allow me to input data

#

lets see how it goes

mossy cloud
raw notch
#

so you wont have to worry about enormous API response from live map, caching and whatever ๐Ÿ™‚

raw notch
royal quiver
raw notch
#

with a normal http get

#

as you use every rest api

winged snow
#

hi to you say polish

foggy osprey
winged snow
#

jestem sorry

meager spoke
#

English only please @winged snow

slim pendant
graceful belfry
#

Getting into web development what would be the best framework to start with. I planning on creating APIโ€™s later down the road so i want something that would work well

tardy smelt
#

Laravel is a nice framework if you want to get into PHP

graceful belfry
#

Alrighty will give that a look. Any good resources for learning php?

tardy smelt
#

There's a lot of documentation here:
https://laravel.com/

The syntax it self isn't that hard in PHP. If you used other languages you'll get a hang of it pretty fast

graceful belfry
#

Alrighty cool! I am familiar with node js. My main goal is the get my website and discord bot to be able to interact with eachother

tardy smelt
#

I'm sure you can build an API in Node js. I've never used Node JS personally tho ablobpeek

graceful belfry
#

Like being able to type a message on the website then the message is sent via discord bot but yeah i will have to look into it

#

Thanks again

tardy smelt
#

You should look into websocket

ember canyon
#

where is the best place to learn python coding at home?

#

for free?

raw notch
ocean mural
#

@graceful belfry You can also have a look over at laracasts. There is a whole series. Called Laravel from scratch (Or fimiliar at least)

graceful belfry
#

Thanks for all of the help guys!!

ember canyon
#

what would you recommend to learn python coding?

graceful belfry
#

Having some issues installing laravel, Anytime i run php artisan serve it just tells me the Mcrypt extension is missing, I suspect that my versions of laravel and php are incompatible with each other. I am running the latest version of PHP, having a hard time trying to figure out what version of laravel i am running though

unkempt hamlet
#

You need to install or activate phpXXX-mcrypt extension.

#

Latest Laravel version is 8.x

royal quiver
ember canyon
#

ive got help with python via visual studio code lemme send a pic

#

when i do a code and then press โ€œrunโ€

#

it shows those yellow wordings and useless white wording... in the terminal,..

#

how can this be fixed?

#

like i just want to see if the code worked

#

so i just needed to see โ€œhelloโ€ and the 2nd line i only needed to see the code i ran and then โ€œsyntaxerror etc etcโ€

#

not the name of my files or anything...

ember canyon
#

guys?

vast nebula
#

@ember canyon quotation marks are different in the print

ember canyon
#

no no no

#

i mean like

#

wait lemme higlihht

#

it

#

this is what i dont need

#

the higlighted parts

#

part*

#

i just want the answer after running it, not what file it is in...

#

Good morning I have developed a UCP "User Control Panel" Is someone interested and would like to have it? Greetings Mo1993

ember canyon
#

i need help with the following

royal quiver
#

@ember canyon

unkempt hamlet
ember canyon
#

lemme check and see if it works

royal quiver
#

it does help to do the lessons

#

so you can actually learn something

ember canyon
#

oh did i just ping him?

#

oh crap

#

im hetting banned

unkempt hamlet
#

I mean, you need to study in order to learn smth

ember canyon
#

... grok learning is what im using to study...

#

also that code kinda didnt work...

#

top one is mine

#

i copied the code from what he gave me

unkempt hamlet
#

Change print() output to meet the requirements

ember canyon
#

wait...

#

change what?

#

the ()?

#

pls dont judge...

#

like i only started like 2 hours ago

#

im still learning

#

i suggest you watch a tutorial to learn the basics first

#

omg lol

#

so grok learning is mainly for school

#

it is hoghly recommend

royal quiver
#

so just do all the tasks

ember canyon
#

and when i was at school i used it for a different language and i learnt it quick

#

yes sometimes u get stuck like i a@

#

but after spending a while mucking around with the code

#

you find what your problem was and say โ€œahhh u idiot... thats my problem?? lolโ€

#

sooo... i looked it up roght

#

this was the answer

#

wow

#

just wow

quick glen
#

@ember canyon You are literally asking for the answers to an educational website. Thats not how you learn at all. If you followed all the steps before that task you would have learnt everything you needed to do that question on your own, thats how these learning sites work.

We in this channel are not teachers, thats why we tell you to go watch a video. None of us are here to teach, and some of us quite frankly get a lot of people asking similar questions and get a bit pissed of at it at times.

The best way to learn any kind of programming language on your own is to use a learning site like you are properly (by completing ALL the previous tasks) and find some educational videos that teach you the basics. If you need a person to actually teach you, then this is not the right place to ask for that. You would need to go to a service where you most likely have to pay for that. There might be some communities around where they do it for free, but thats not here.

We're not here to teach, we are here to chat/discuss programming

unkempt hamlet
#

I had to register to confirm this

ember canyon
#

cant see the answer lol

#

i kept trying to find it

unkempt hamlet
ember canyon
#

i wont ask for anymore hwelp

quick glen
#

picardfacepalm You are not supposed to find it, you are supposed to create it yourself out of what you learnt in the previous steps

ember canyon
#

no i ment tried to find the previous step

quick glen
#

Combining the different lessons of the steps into one solution that is the answer

ember canyon
#

allow me to explain it

#

just hang on for a moment

#

look at this

#

what cj showed was

unkempt hamlet
#

TheUnknownNO said it certainly well.

#

That's how learning process works.

ember canyon
#

yes it shows the answer however

#

this is the actual answer

#

bit different from the one cj sent

#

but its all g

#

i got it figured out

#

thx cj

unkempt hamlet
#

It literally combines previous lessons together.

ember canyon
#

...

#

i know

#

just...

#

next time ill read it more carefully

unkempt hamlet
#

Ugh...

ember canyon
#

but than you for your help

#

sorry for wasting your time

#

๐Ÿ˜ฆ

high sorrel
#

Tell you what

#

It's not the first time I've accidentally missed out two letters in my code

#

And it certainly won't be the last

#

๐Ÿ˜‚ ๐Ÿ˜…

high plank
#

I have done that before

#

Definitely a pain

graceful belfry
#

GG

wooden glade
#

May I suggest maybe putting TMP servers behind cloudflare or something? Would make is extremely difficult for the saddos DDoSing your servers

raw notch
wooden glade
#

They do support more than that. I've seen it done

raw notch
#

you cannot proxy different protocols, such as simple TCP/IP, ssh or ftp

wooden glade
#

You can, i've seen numerous companies put game servers behind cloudflare

raw notch
#

because probably they are reachable via port 80

wooden glade
#

Deffo not reachable with port 80, that's too easy for hackers

#

Big multi billion dollar game companies rely on cloudflare for their servers. You just need to contact them and work with them but it can be done

raw notch
#

"multi bilion dollar" exactly ๐Ÿ™‚

rugged copper
raw notch
#

CF has many many many other paid services, some of them are very expensive, and you need CF Enterprise, and it's starting from 3k$-5k$ monthly, paid service billing apart

wooden glade
#

They also work with businesses and the the gaming community but I think for that you have to reach out to them and discuss it in more detail

rugged copper
#

I mean for spectrum you have to contact sales which automatically means youโ€™ll pay the big bucks ๐Ÿ˜‚

unkempt hamlet
#

Spectrum is EXTREMELY pricey

wooden glade
#

Yes but you have to admit it's worth it to hugely reduce the DDoS attacks

raw notch
#

as all paid CF services

#

you are talking about a service costing some K$ per month...

wooden glade
#

You can't expect them to run such a service for free. Obviously you gotta pay something, it costs them a ton of money and time to run such a service

shadow marsh
#

Yeah, but where should TruckersMP take this money?

#

noone in the team has so much money to spend it on that, as they all are working voluntary... that's not a company in here AFAIK

#

and noone is shitting out money

rugged copper
wooden glade
#

Donations, increased patreon merch, website advert banners etc. People love TMP enough they'll be happy to help support

raw notch
#

other companies, like Kaspersky, offer anti ddos tunnels but you have to control your IP subnet, have particular firewall configurations etc

#

and a part this, we are talking however about a monthly price of 3-5k$ per month

#

only to maintain this mechanism alive, then, there are bills during ddos for extra traffic and such

shadow marsh
#

Welp.... how many GB/TB/PB went thru the servers in 2020? laugh

wooden glade
#

Well excuse me for trying to help and offer good practical solutions. Next time i'll stay quiet ๐Ÿ˜’

raw notch
ember canyon
wooden glade
#

Listen man, it's good to discuss things, but clearly by trying to help i've triggered a nerve and now you're being all pissy with me

#

I'm gonna go. Too early for this. Next I won't bother trying to help

raw notch
#

you are talking with someone has convinced some years ago his CTO to pay roughly 7k$ per month for two combined ddos protection while working at an ecommerce. After 2 weeks of continuos ddos putting offline the whole site and losing more than 7k$ money, it's easy to convince someone ๐Ÿ™‚

#

so simply running costs have to be considered in relation to another economic benefit. It's the old but fashoned cost\opportunity. If someone have to pay k$ to mantain a service alive, means he's getting more of those money from that service

wooden glade
#

I'm not trying to convince anyone. I'm trying to offer the best realistic and most practible solutions to help reduce the attacks.

#

All i'm trying to do here is help

raw notch
#

ok.. but, it's not a realistic solution ๐Ÿ˜„

wooden glade
#

My company will be launching next month, one of my services is dedicated servers. I offer an enterprise DDoS solution for an extra ยฃ20 a month but that only covers up to 1Tbps DDoS protection

shadow marsh
wooden glade
#

Basic protection is only 5Gbps so for a gaming server, i'm not sure if it'd be enough for TMP as I don't know how strong the DDoS atttacks have been as i'm not staff lol

#

Sorry I meant this month on 31st January. I'm still properly waking up lol

tidal zodiac
#

Just to give you a little idea about numbers, one of our game servers used around 50TB of bandwidth last month

shadow marsh
#

50TB just in one month?

#

That... that is much lol

twin forge
# raw notch you are talking with someone has convinced some years ago his CTO to pay roughly...

that's the thing, TMP is not profit-oriented so at this rate the only ones losing money are the attackers.

I used to have a (small) TS3 server that would report to the server list and because of that alone was targeted for no specific reason. But my hoster has a free DDoS protection (they recently upgraded it to 2 Tbps, but it was lower back then) that starts rerouting traffic through their filter as soon as they notice the attack (which results in an actual downtime of 1 minute or so). I mean the attacks were probably insignificant compared to what TMP is getting because there was really no reason for the attacks, but nevertheless it was quite nice to see them fail again and again ๐Ÿ˜„

wooden glade
#

Dang that's a lot of bandwidth

#

My current servers offer the following bandwidth:

Outbound : 100TB
Inbound Unmetered (basically no bandwidth limits). I'm still in the process of developing the website and still adding the full range of servers to the website but I am more than happy to discuss this further if the TMP team are interested? I'd love to help any way I can.

I'm not trying to promote myself by the way, I'm just trying to help TMP ๐Ÿ™‚

unkempt hamlet
#

It is traffic, not bandwidth

wooden glade
#

True but they are built for really high traffic websites

#

well I say websites could be anything really but mainly websites lol

#

Same as I say, there's still a lot to be added to the unfinished website yet but I'm more than happy to DM you with a link so you can get a rough idea

unkempt hamlet
#

High traffic value doesn't mean you can actually process it

#

It is just a value

#

What will be capped first when DDoSed? CPU or network?

wooden glade
#

I totally hear you buddy but the servers are built for high traffic and high usage on day to day basis. They aren't built for every day things such as a basic website or reselling for example. The servers are monitored 24/7 with multiple systems in place but if the worst came to worst for example it would more likely be the CPU in all honesty but part of the DDoS mitigation we wouldn't let it get to that point, the minute it gets close to throttling, we'd already be in the process of migrating and mitigating the attack

unkempt hamlet
#

As like "high traffic" is not "every day things"

wooden glade
#

Sorry I'm not great at explaining things, that's my fault but basically we have network hardware and cloud hypervisors with a rapid, pretty much instant failover so the traffic really wouldn't be an issue in all honesty

unkempt hamlet
#

That's not an issues when you can pay for it athink

#

As for TruckersMP, you cannot just migrate a gameserver to another instance, because we are working on a bare metal iirc.

wooden glade
#

Yeahh, that's understandable and I agree with you. I really do but you would have your own seperate dedicated server. The whole server would be 100% yours. There's no sharing or piggy backing off shared servers.

unkempt hamlet
#

Yeah

quartz moth
#

Cloudflare whilst works well, doesn't always work successfully all the time smile1

narrow flame
#

Which language do you give priority to in web programming? (General)

unkempt hamlet
#

HTML

#

Duh

royal quiver
#

I use Microsoft Small Basic for web programming kappa

unkempt hamlet
#

Language priority is based on your skill and experience. These days, HTML and CSS are the only basic things in web. JS apps can be replaced by WebAssembly.

#

For a backend, you have +100500 various languages, frameworks and engines.

rugged copper
#

If TMP used spectrum, theyโ€™d be looking at $50k a month just for one server ๐Ÿ˜‚

unkempt hamlet
#

Ouch

shadow marsh
#

that's what a average person earns in a whole year blobcatfearful

ember canyon
#

Yeah

royal quiver
#

or just include shocking amounts of advertising and tracking

raw notch
#

@wooden glade you could give a server for free to TruckersMP in exchange of advertising ๐Ÿ™‚

delicate wyvern
dapper echo
#

Depends on the country you live in

shadow marsh
delicate wyvern
jovial jetty
#

The average salary in the UK is a little over ยฃ30k oops

high plank
#

I would say classify as sector first

#

Some are at a average of 20k, whereas some jobs are at a average of 70k

raw notch
#

the average of something is always related to similar ones :D

high plank
delicate wyvern
#

Or anywhere south KEK

#

Houses are so much more expensive down here when compared to up north

high plank
#

So up north, a town with houses that are at a 300k average is good?

delicate wyvern
#

A house for 300k is good

#

Here youโ€™d get a flat for that

high plank
#

So a 700k detached house is good?

royal quiver
#

Depends on the house

#

Price does not equal quality

high plank
#

Let me go on Rightmove then

royal quiver
#

Permission granted โ˜‘

high plank
#

Permission ungranted because Iโ€™m driving and texting in game

wooden glade
unkempt hamlet
#
X-Plane Developer

[This post is a โ€œbehind the scenesโ€ look at the tech that makes up the X-Plane massive multiplayer (MMO) server. Itโ€™s only going to be of interest to programming nerdsโ€”there are no takeaways here for plugin devs or sim pilots.] In mid-2020, we launched massive multiplayer on X-Plane Mobile. This broke a lot of new [โ€ฆ]

north flax
#

Time for a new TMP server in Elixir then, with their open source RakNet implementation? ๐Ÿ˜›

#

Can't say I haven't been wanting to make a better multithreaded/multi-node server implementation of the TMP server, both before and after I left the team.

#

It would certainly be an interesting challenge, though I don't think I'd pick Elixir for it

shadow marsh
#

I'm still waiting for a MMO with a server with > 10.000 Slots peek but that will probably and sadly never happen

mystic ridge
#

10,000 slots sounds like hell. I remember once we tried 5,000 slots and that was an... interesting experience

jovial jetty
#

Is there even a need for that many slots?

north flax
#

I think that with enough slots you can to a greater extent avoid hotspots over time, since people meet more people regardless where they go

#

I would also be interested in the challenge in general

#

And better thread usage could lower server costs since they wouldn't rely on single core performance to the same extent

shadow marsh
#

Why does it sounds like hell? I mean, TMP is for sure capable of doing that, and the thing is, only drivers who are following every single rule (street rules and TMP rules of course), it would make fun then - so we aka "good drivers" have a dedicated server, because Sim1 is still EU#2 just with 110km/h Vmax and not 150km/h peek

jovial jetty
#

Overhauling the amount of slots, would also need an overhaul of Game Mods and a higher capacity for report demos to equate the rise in slot numbers

#

That explains why it would be like hell ^

shadow marsh
north flax
#

I don't think TMP is capable of running a 10k slot server, no. And making the server multithreaded would be a massive undertaking, and take a lot of time

shadow marsh
jovial jetty
#

And more people would go to already congested areas, causing more congestion an affect those who have lower end PCs

shadow marsh
#

Also true thinking

jovial jetty
#

I don't see a problem with the current capacity tbh, works for most

unkempt hamlet
tardy smelt
#

Hey guys,

We'll be releasing the Event System API endpoint later today.

Once released, I'll be posting here endpoint example that you'll be able to use.

Have a great day!

jovial jetty
foggy osprey
royal quiver
#

it would be awesome if we could get the server id from the event request

jovial jetty
#

Wait and see peek

unkempt hamlet
#

Pog

#

Pog x2

cinder spear
#

idk how else elastic saw that move going

royal quiver
#

can someone pin that?

tardy smelt
#

Yeah all the time there is in UTC

#

Let me know if you find any issues

raw notch
#

is correct dlc is always empty and vtc is always 0 and name null?

tardy smelt
#

vtc id will be 0 and name to null when there's no VTC assigned to that event

raw notch
#

is not the user's VTC?

#

what does it mean "VTC assigned"?

north flax
#

I assume it's up to the person if they make it as a VTC event, or just an event

tardy smelt
#

VTC have a separate page to create event now where they can assign permission and things like that

#

DLC is a new feature that was added today

#

Same for VTC

raw notch
#

ok

#

so it's normal is empty for old eventz

tardy smelt
#

Correct

#

The changelog:

  • Added VTC support to Event System
  • Added API support to Event System (For Event and VTC Event)
  • Added DLCs requirement for the Event System
raw notch
#

ok thanks

tardy smelt
#

The DLC contains 2 things.

DLC app_id and DLC name

#

If you have a VTC you can test it out ๐Ÿ˜›

#

I expect the VTC to start using the system soon. I've made them aware a week ago of the change

raw notch
#

the whole list is featured + today + now + upcoming?

tardy smelt
raw notch
#

i mean, featured is present also in upcoming?

tardy smelt
#

They are separate :

featured => array of events
today => array of events
now => array of events
upcoming => array of events

raw notch
#

so all unique events not repeated

tardy smelt
#

It could repeat

raw notch
#

so "featured is present also in upcoming?" is "yes" ๐Ÿ˜„

tardy smelt
#

Featured events and Events in next 24h or Now

#

Yea

#

Only events featured could be duplicated

raw notch
tardy smelt
#

I'll push a fix for it in a few hours.

The output should be the following when the fix is live:

"dlcs":{"463740":"Arizona","684630":"New Mexico","800370":"Oregon","1015160":"Washington","1104880":"Utah","1209470":"Idaho","1209471":"Colorado","1415692":"Wyoming"}
raw notch
#

ok

#

the response contains 32 events (at least now) and only 12 upcoming

#

while there are 18 pages

tardy smelt
#

How many events is on the homepage tho ๐Ÿ˜›

raw notch
#

why not all?

ember canyon
#

Event API woah

tardy smelt
#

Because otherwise people could just build their own "events" system and list our event on their site

raw notch
#

seriously? ๐Ÿ˜„

tardy smelt
#

It's the same logic with the VTC endpoint

#

And nobody complained

raw notch
#

because i'm not interested in vtcs yet ๐Ÿ˜„

tardy smelt
#

If you can show me what you want to do with it. I could decide if it's worth doing it or not

raw notch
#

mmm... what do you think i should do with that data? ๐Ÿ˜„

tardy smelt
#

Who knows kappa

raw notch
tardy smelt
#

If you want to use it on your app and behave the same way it is in your app. I could make something up. I'll output the basic information so you can listen them on your app if you wish.

#

But only if they get redirected to TMP

raw notch
#

i never thought to steal events from TruckersMP, and yes, would linked directly to the source as always had been back to ets2c support, for example

jovial jetty
#

Will the Event API be added to the API docs for future reference?

tardy smelt
#

Yes, we will do it soonโ„ข๏ธ Encrypted

#

The fix for the dlcs is live now Trucky

raw notch
#

thanks

foggy osprey
#

Also, is that something that can be added to existing events? Or only for new ones

tardy smelt
#

Only for new. If you have a VTC you'll see a new button called "Event" bellow administration on the left side

foggy osprey
#

Alright, thanks ^^

#

New API features look promising, looking forward to implementing that soon

#

As a suggestion, the "edit event" VTC permission description could use some rewording imo ๐Ÿ™‚

tardy smelt
#

What would you suggest? The permission give the person who created the event only be able to edit that event

dapper echo
#

I think you shouldnโ€™t use the word he, you should use they/them.

unkempt hamlet
#

"He" as in "User"

#

But yeah, might be reworded

lilac aurora
#

"Can edit self-created events" theshrug

mossy cloud
#

How do I link an existing event to show as the VTC please?

wooden glade
#

Hello, I was wondering if someone might be able to help? I'm currently trying to get Atom to show up in my Discord activity. I've tried installing the Atom Discord plugin but I cannot seem to get it to work properly/show up

foggy osprey
#

Would've been nice to have tho

foggy osprey
tardy smelt
#

@mossy cloud add me on discord

mossy cloud
#

Sent :)

unkempt hamlet
#
Onur Gumusโ€™s blog

Does Your Code Pass The Turkey Test? (JS Edition) The credit for the title goes to Jeff Moserware and his excellent post which he authored in 2008. He basically discussed the dangers of improper localization and took a clever approach, stating ยซโ€œThe Turkey Test.โ€ Itโ€™s very simple: will your code work properly on a personโ€™s machine in or around t...

raw notch
#

yes

mossy cloud
#

reads through article, logs onto Cloudflare and geoblocks the country instead ๐Ÿ˜‚

royal quiver
#

nice one! did you make everything from scratch or is it based on VTLog or something?

mossy cloud
#

Well not everything, so it's using ETCars as a base, then uses NodeJS client which has been then developed/modified extensively

#

Then I custom made an API server-side so that it sends data from the tracker to the API

#

Then there's an MySQL Event that removes any drivers from the map/live data where data hasn't been received in over 30 seconds

high sorrel
#

niceeee

ember canyon
#

@mossy cloud Why not use websockets?

unkempt hamlet
#

LOL

slim pendant
tardy smelt
#

Not yet

cinder spear
#

as usual, frontend looks great, backend is spaghetti, API is presentable and documentation is just tumbleweeds Kappa

high sorrel
#

Lol

#

Sounds accurate

tardy smelt
#

Krash is the one who is doing the API documentation since it's hosted on his thing

north flax
slim pendant
#

php tho

unkempt hamlet
#

So? We are using PHP for TruckersMP Website

#

And Laravel

slim pendant
#

well i didnt know

#

no commits have been done to the php api for some reason

unkempt hamlet
#

You mean, TMP PHP API?

slim pendant
#

yes

#

i guess its an mirror

unkempt hamlet
slim pendant
#

yes that one

unkempt hamlet
#

Well, there was nothing added to our API lately.

slim pendant
#

but.. 4 endpoints just got added

unkempt hamlet
#

Several days ago

slim pendant
#

yes?

rugged copper
#

It's also open source so anyone is free to open a PR ๐Ÿ˜‰

cinder spear
#

we all know how relying on anyone being free to open PRs works out Kapp

rugged copper
slim pendant
#

php is sadly not in my stack

mossy cloud
# slim pendant php tho

PHP isn't bad to use. Just because it's not the 'new flashiest thing' doesn't matter, it works

tardy smelt
#

I use PHP 16h a day kappapeek

delicate wyvern
#

Wrong channel KEK

unkempt hamlet
foggy osprey
#

Woah, that looks interesting

quartz moth
unkempt hamlet
#

We need an incident system though

royal quiver
#

an RSS feed for incidents would be awesome

unkempt hamlet
#

We do have one

royal quiver
#

I must have missed that, is there a place I can subscribe?

mossy cloud
royal quiver
#

Thanks ๐Ÿ™‚

unkempt hamlet
#

It was there since day one

unkempt hamlet
cinder spear
#

except when it's ctrl+shift+c

meager spoke
cinder spear
#

in Windows Terminal

unkempt hamlet
#

Windows Terminal can do Ctrl+C already kek

#

But yeah, you can copy in Terminal once only lol

cinder spear
#

but I get paranoid about it

mystic ridge
#

The ironic thing about that tweet is sometimes you do actually have to do that. There's been so many instances where I've hit Ctrl+C and it hasn't copied what I wanted it to, same thing with the right click context menu and clicking Copy. No idea why

royal quiver
#

Operating systems and applications aren't perfect. I've found that in Ps particularly I had issues copying an object as it just kept pasting the previous one. Clearing my clipboard in the Windows settings helped though truestory

slim pendant
cinder spear
#

SIGINT*

ebon garden
raw notch
shadow marsh
#

yes ^^

quartz moth
#

@raw notch I think you spelt your API backend URL incorrectly on the status page

unkempt hamlet
#

Yep

quartz moth
#

https://api.trucykapp.com/docs

#

trucykapp

meager spoke
#

trucy KEKL

ebon garden
raw notch
#

whoops

#

๐Ÿ˜„

unkempt hamlet
raw notch
#

it's correct ๐Ÿ˜„

#

the URL is wrong

#

btw, CF Workers ftw

#

the funny thing is have fixed it, pushed.. and wrong again ๐Ÿ˜„

#

so re-pushed ๐Ÿ˜„

quartz moth
#

Me when doing anything KappaLUL

raw notch
#

yesterday lost 1 hours and at the end resolved there was a missing "d" in a css class

high plank
#

Thatโ€™s also me all the time

mild swallow
#

i think everyone will agree:

  1. Can't fix this
  2. Crisis of confidence
  3. Questions career
  4. Questions life
  5. Oh it was a typo, cool
unkempt hamlet
ember canyon
#

Do you like lua ?

#

Or you think like me that lua is a joke ?

unkempt hamlet
#

Lua has a concrete purpose

high sorrel
#

Everything has its uses I guess

#

Except for those guys using Brainf**k

ember canyon
#

Lol

#

Anybody willing to help me make my game a little bit better ? If so, Iโ€™ll pay you once the group gets more funds.

ebon garden
#

I could make your game better

#

I don't want the money tho

cinder spear
shadow marsh
#

After debugging my code now for over 4 hours I managed to get it running now. My bot can do reaction roles now ๐Ÿ˜„ the functions in commands are per se adding roles, removing roles, toggle them to singleuse/reverting it and listing all roles by channel and message-id ๐Ÿ˜„ Gladly I've done this peek

ebon garden
#

What language?

shadow marsh
#

Java

ebon garden
#

Nice

graceful belfry
#

Heya currently using plesk on my VPS having lots of annoying issues with it. Is there anything better than plesk?

unkempt hamlet
unkempt hamlet