#programming

1 messages · Page 24 of 1

jovial jetty
#

Oh, cool! Looks good

cinder spear
#

Upgrade hmm

shadow marsh
#

Ahh, okay lurking

#

The new design is really nice, I like it catlove

mossy cloud
#

Very noice

shadow marsh
#

Heyho everyone,

I am coding my discord bot in JDA (Java) - yes - I know, there are better languages, but I am known in Java, so why not.

Anyway, I ran into an Issue with an event and don't know, how to fix it.

I have the RoleUpdateColorEvent and it throws me a NullPointerException if I set the color to default or change the color from default. Changing between colors doesn't throws me an error. If anyone could help, I would be really glad about it thisisfine

I fixed it. Using event#getOldRawColor() and formatting it to HEX (also applicable with the new color value)

distant garden
#

Could you in a future update, make it possible to increase or decrease the size of the entries?

cinder spear
#

what entries?

distant garden
#

font size

#

Sorry for bad english.

rugged copper
unkempt hamlet
#

This is not a place to suggest TruckersMP features, @distant garden

distant garden
#

Where do I say that?

unkempt hamlet
#

It is already suggested.

distant garden
#

So you can do it.

unkempt hamlet
#

Eventually.

ember canyon
#

New github appearance looks great, I hope they will implement dark mode into it soon

jovial jetty
unkempt hamlet
#

It was there the whole time

raw notch
#

and it's always false

north flax
#

It's hardcoded to be false, even, if it hasn't changed. It's not even connected to a database field that's always false

#

That's how false it is :p

mossy cloud
#

What was it planned to do though?

tidal zodiac
#

Exactly what it's name is. Show your details on web maps (i.e. ETS2Map)

lost rose
#

Hey guys. I have a question. Is it possible to decompile ETS? I wanted to modify the freight market but without the source code idk how to modify it. Does anybody has an idea how I can figure this out? Thanks for replying!

unkempt hamlet
#

There is no way to decompile the game. Reverse-engineering only.

lost rose
#

only the hard way? 😦

unkempt hamlet
#

Yes.

lost rose
#

ouff. Well thanks for your answer

#

Can you recommend me a tool? I know that I could use Ghidra.

unkempt hamlet
#

IDA Pro

lost rose
#

thx

lost rose
#

And how can I load my own code into ETS2? I am not really familiar with this stuff. I already coded Desktop Apps and Websites.

unkempt hamlet
#

Injecting

willow beacon
#

Sounds shady

unkempt hamlet
#

That's how TruckersMP works

willow beacon
#

Cool only sounds shady to me cause of csgo Xd

#

XD

#

Injecting hacks

lost rose
#

CPU is at 100%. Thanks Ghidra. My warm room is getting hot. ouff

north flax
#

@lost rose you might also be able to do what you want with the modding system and games datafiles, if what you want to do is add a cargo or load type or something like that

lost rose
#

yeah i know this but I wanna go deeper.

north flax
#

Alright. Modifying freight market is a bit vague, so wanted to make sure you're aware

lost rose
#

Yep sure

ember canyon
#

can Help me in Javascript ?

#

let casino = null;
let casinoBrowser = null;
let money = 0;

let delay = null;

function openCasino(casinoInstance, cash) {

money = cash;
casino = JSON.parse(casinoInstance);

let path = "package://Casino/CEF/casino/slot/slot-diamond.html";
switch(casino.type) {
    case "slot1": path = "package://Casino/CEF/casino/slot1/slot-greenliner.html"; break;
    case "slot2": path = "package://Casino/CEF/casino/slot2/slot-pinkpanther.html"; break;
}

casinoBrowser = mp.browsers.new(path);
mp.gui.cursor.show(true, true);

casinoBrowser.execute(`limits.maximumBet = ${casino.maxBet};`);
casinoBrowser.execute(`limits.minimumBet = ${casino.minBet};`);
casinoBrowser.execute(`document.getElementById("aStatus").innerHTML = "${casino.minBet}";`);

}

quartz moth
#

What's not working with it?

ember canyon
#

sorry works already have found the error

ember canyon
#

New design ?

nocturne drum
#

Yeah

cinder spear
gloomy root
#

Hi

#

I would be glad if he writes from dm who knows how to make discord bot

unkempt hamlet
gloomy root
#

@unkempt hamlet Would you write dm?

unkempt hamlet
#

Uh, you want me to send that link in your DM?

mossy cloud
#

😂

shadow marsh
#

lmao

#

Well, do it on your own - it's really simple, unless you want to have features that are not simple anymore blobshrug

opal arch
#

in Discord.JS, one can do this in a few minutes as there are a lot of tutorials for it as well

shadow marsh
#

it's also possible in Java - you just have to know, what is what 😄

meager spoke
#

Discord.JS is probably the best thing to go with, due to amount of youtube tutorials for it as Shawn said

#

I use it myself lol

shadow marsh
#

I tried once Discord.JS - but I just was too stupid to learn JS and/or understand it 😅

quartz moth
#

Its best to code it in the language you know the best, there are tutorials available for most popular languages

shadow marsh
#

True ^

quartz moth
#

No point in learning a totally new language just for a discord bot

#

Whether it be python, java or javascript they all can accomplish the exact same thing

shadow marsh
#

exactly that is what I thought also, so I continued using JDA and it works well 😄

quartz moth
#

All it is, is an API wrapper

#

If you wanted to, you could just use API calls to do the exact same thing

opal arch
#

yeah, but not all these wrappers are good tbh

quartz moth
#

True

opal arch
#

Discord.JS has the most classes and API methods from all of them afaik

#

the other day I needed quite a new feature

#

I checked many these wrappers (from other languages as well) and only Discord.JS had it

quartz moth
#

What was it out of interest?

opal arch
#

working with the guild preview (which is available only for partnered guilds)

shadow marsh
#

What do you think about JDA, Shawny?

unkempt hamlet
#

Still thinking about rewriting ModMail on Elixir...

opal arch
#

I have not worked with that, Maurice, will check

#

Still thinking about rewriting ModMail on Elixir...
@unkempt hamlet yeah, @opaque oriole is written in Python... and uses MongoDB...

#

feel free to do so... please

quartz moth
#

xD

#

Do you not like python that much?

meager spoke
#

Python thisisfine

#

.py is ..

#

no

opal arch
#

it is just hard to set up

unkempt hamlet
#

I like Elixir better

opal arch
#

I would love to have the bot in C++, ngl

#

but a bit overkill

unkempt hamlet
meager spoke
#

I think Prise Log. has their bot in C#

opal arch
shadow marsh
#

well, it's working 😅

opal arch
#

it does not have to be bad, just all these getters...

raw notch
#

discordjs ftw

shadow marsh
opal arch
#

JDA is not bad, it seems to be a complete library and it has a lot of events as well

shadow marsh
#

okay, so you think, it's okay - but you wouldn't use this, if you don't have to, right?

opal arch
#

but from all stuff you had to do, it seems to be a bit overcomplicated...

#

with Discord.JS, it is very easy to set up and very easy to create anything

shadow marsh
#

Well, I don't think JDA is overcomplicated (probably because I work with it soon a year) - but for others maybe 😄

raw notch
#

it's java...

shadow marsh
#

I learned Java because Minecraft is written in Java tho 😅

opal arch
#

but as Coolio mentioned, feel free to work with whatever you want to if you feel comfortable in it

raw notch
#

excatly

opal arch
#

just saying that if somebody wants to start with a bot and has a little knowledge of programming in general, Discord.JS is the best choice

raw notch
#

languages are all the same, at the end, everyone must use what it's better for himself

shadow marsh
#

I agree 😄

raw notch
#

but also with good dev skills Shawn, actually it's really simple

opal arch
#

yep

#

all languages are same? Assembly? Kap

quartz moth
raw notch
#

if you know it, maybe you can write a discord bot too 😄

shadow marsh
#

What is Assembly again ablobcatsipsweats

unkempt hamlet
#

Bruh

shadow marsh
#

I think I heard it somewhere a time ago... but I can't assign it to a language 😅

raw notch
#

nothing important

shadow marsh
#

Wasn't Windows written in Assembly - or am I completely wrong? 😅

opal arch
#

In computer programming, assembly language (or assembler language), often abbreviated asm, is any low-level programming language in which there is a very strong correspondence between the instructions in the language and the architecture's machine code instructions. Because a...

quartz moth
#

I would never know where to start lol

#

I guess thats the same with everything though, you learn

raw notch
#

ye... assembly isnt proper simple 😄

unkempt hamlet
shadow marsh
#

okay, I am definitely not going to start coding in Assembly LUL didn't understand anything lol

opal arch
#

well, it is not the simplest language but one must know it for reverse engineering

shadow marsh
#

nice dashboard 😄

#

so mwl4 knows Assembly?

raw notch
#

what's phoneix?

opal arch
#

yep, so do I

unkempt hamlet
shadow marsh
#

ah, you too 😄

opal arch
#

interesting

quartz moth
#

That profile pic xD

unkempt hamlet
#

nostrum along with coxir are trash imo

shadow marsh
#

dat profile picture x3

opal arch
#

how come?

mossy cloud
unkempt hamlet
#

They're outdated and buggy as hell

opal arch
#

it has quite a lot of commits

#

ah, okay, not many

unkempt hamlet
#

I figured that we don't need that much functionality for ModMail, so I can go ahead and write a simpler API wrapper

opal arch
#

a bit of overkill if you ask me

#

cannot you just fork one of those and fix + update it?

quartz moth
#

It does sound like a lot of effort xD

unkempt hamlet
#

Meh

opal arch
#

you need to work with the websocket and API, and implement events

unkempt hamlet
#

That's easy to do with Elixir

#

Also, Phoenix has a massive support of Websockets

opal arch
tough zealot
#

i love the name of elixir libraries

#

like 'gun'

#

is it worth learning elixir

unkempt hamlet
#

Well, depends on what are you trying to develop

raw notch
#

@opal arch it's wrong or not put models under app/Models? I mean, it's against some laravel design rule?

unkempt hamlet
#

It's up to conventions in your projects.

raw notch
#

I see it more than a convention per single project. as there are namespaces and luckily now they exist on php, should use them

unkempt hamlet
#

Yeah, I meant that

raw notch
#

after 18 years of .NET folders and namespaces are a state of mind :D

opal arch
#

Yeah, it is a convention in the project. Laravel tried to get rid of the Models/ folder, but when you check the replies...

#

It is crazy. Thus, in 8.x, there will be better support for it 😄

tough zealot
#

ah the joys of PHP

#

every day i want to rid of its existence

rugged copper
#

For Laravel 8.x, if you have a Models/ folder under app. All commands which use models will pick that up automatically 😄

tough zealot
#

i hate php

#

honestly

#

i never want to touch it again

#

but i have to

unkempt hamlet
#

Any particular reasons? Or just gut feelings?

hoary raft
#

Ain't nothing wrong with php, it's the first language that got me interested into learning more languages

#

I mean php is alright if you use frameworks like Laravel

#

Not sure how vanilla is as I haven't touched it much in years

raw notch
#

php could be used only with frameworks like laravel, without there is too much work to get things working good

unkempt hamlet
#

Vanilla PHP is pretty robust language since 5.5, I would say

#

If you don't need full framework, you can always have a Symfony packages as needed.

raw notch
#

yes ok
but it's not plain php, is always a framework on top

unkempt hamlet
#

I mean, you can always use vanilla PHP for your projects, it only depends on your qualification and experience.

raw notch
#

and there is people using vanilla nowadays? it's crazy :D

hoary raft
#

Hahaha indeed, ahh 2015 was great. Creating a website with vanilla PHP without classes

#

Back then when I just started programming

#

Really embarrassing, having PHP code always above the HTML code. Sometimes putting an if statement in the middle of my HTML code lol

unkempt hamlet
#

Well, my fellow countryman uses vanilla PHP for rendering with Vulkan.

hoary raft
#

But that was 2015 👀

cinder spear
#

what a mad lad

#

my enjoyment of a language mostly depends on the IDE experience and how good the intellisense is.

unkempt hamlet
#

Good point

#

That's why I also hate Elixir kek

raw notch
#

@cinder spear you are able to make vscode works good with php and laravel?

cinder spear
#

I have not yet at least

unkempt hamlet
#

It would not be the same level as PHPStorm, but it's doable

#

I migrate myself Sublime Text -> Sublime Text 2 -> VS Code -> PHPStorm

dapper echo
#

I don't know anything about coding, this chat is very interesting to me thisisfine

#

But I'd like to learn something PepoG

unkempt hamlet
#

If you know nothing about programming, basic Algorithmics is the way to go first.

dapper echo
#

Thanks CJ! I guess it's summer, I have nothing to do. So might learn something new 😄

raw notch
#

PHPStorm so it's the correct ide for laravel?

#

because intellisense in vscode is hell... a lot of unresolved classes only because not directly referenced with using (and even with using too)

unkempt hamlet
#

Well, you have to install extensions anyway, but it is better that VS Code for sure

#

I don't like how IDE Helper files are handled, but I get used to it.

raw notch
#

I'll have a look thanks

unkempt hamlet
raw notch
#

but... it's free? :D

hoary raft
#

There's a community edition of PHPStorm if I recall correctly

#

Has less features, but it's free

unkempt hamlet
#

Nope, I used to use EAP builds (test versions for free)

hoary raft
#

Aahhh I'm more used to IntelliJ IDEA, which does have a community edition. I just assumed all JetBrains' product had a community edition

cinder spear
#

expensive

hoary raft
#

It is, but once you have it, you'll never want to go back

cinder spear
#

which is why I don't want to try it in the first place LUL

hoary raft
#

Hahaha, try the 30 day free trial kappa

cinder spear
#

for js, ts and go vscode has been amazing

hoary raft
#

Well it is, vscode is great for web dev

cinder spear
#

the remote development feature is very nice too

#

WSL is a mess

unkempt hamlet
#

PhpStorm has more

#

WSL is alright, but not for PHP

cinder spear
#

it's alright as long as you don't touch the file system too much

#

just because WSL isn't aware of the NTFS limitations and gets into weird states when it tries to go beyond them

#

like files that exist but don't

unkempt hamlet
#

I use WSL for postgres and redis omegalul

cinder spear
#

redis is in-memory apart from the infrequent snapshots, postgres I don't think stores that many individual files...

#

npm on the other hand 4HEad

unkempt hamlet
#

Bruh

cinder spear
#

currently my personal project dev experience is opening up vscode locally, connecting it to an arch linux server and port forwarding the app

unkempt hamlet
#

Running Homestead locally via Hyper-V

cinder spear
#

I used laradock for laravel locally

#

works pretty well

#

much more convenient than having to manage a full VM

unkempt hamlet
#

Yeah, I used that too before migrating to Homestead, Docker had some issues on Win 10

#

You can even found some PRs from me coolcat

pulsar jungle
#

My dev environment is inside a VM using VMware running Ubuntu, where I have the stuff I need.

#

Currently doesn't do webdev in windows if I can avoid it. I used to use a vm running Ubuntu server and eun PhpStorm in windows but I moved to fully use a VM for all webdev stuff.

twin rover
#

When are VTC company name skins on your truck and trailer being added? 😆 Would be a really cool idea I think, but there would have to be a lot more monitoring of the company names, and skins. Just a suggestion for MP.

unkempt hamlet
#

This is not a place for suggestions.

twin rover
#

Got it

willow beacon
#

I mean that would not be easy tbh

twin rover
#

Yeah, that's what I'm saying.

#

There would have to be a lot of monitoring the names

unkempt hamlet
#

If we were to implement this, it would be for verified VTC only.

twin rover
#

Yeah, that's a good idea actually.

willow beacon
#

Yeah

#

That would be good

twin rover
#

However, there would have to be a verification system setup, but that can't be too hard.

willow beacon
#

Yeah

unkempt hamlet
#

It is set up already

twin rover
#

Maybe like, has 50+ members, a good name etc

#

Oh okay, perfect

willow beacon
#

Also a sensible skin maybe like a verification where you send your skin in first

twin rover
#

Yeah

unkempt hamlet
twin rover
#

I see, yeah that would be great.

#

And it would be a lot easier doing it with only verified VTCs, because there shouldn't be any that are just making them to put rude words on their truck.

willow beacon
#

Getting 50 members is pretty challenging but can be done if you dedicate yourself

twin rover
#

Yeah

#

But it's necessary to stop people from trolling.

#

I think it would just bring a lot more realism to TMP. But yeah, up to you guys, just a suggestion.

willow beacon
#

^

cinder spear
shy swan
#

Discord now allows you to connect your account with GitHub and show it on your profile.

clear drift
#

woah

cinder spear
#

nice

unkempt hamlet
shadow marsh
#

Nice pog

opal arch
#

Botdottir could announce it, though ablobcatpeek

shadow marsh
#

Well, how do you make botdottir to announce things?

#

that's what I am like to know

opal arch
#

We give her a carrot and she announces stuff for us

shadow marsh
#

Mhm ablobthinkingeyes

#

Ah yes

opal arch
shadow marsh
#

And how exactly are you feeding a bot? Do you put the carrot in the CD-ROM or are you installing carrot.exe ? akappapeak

opal arch
#

She is a horse

shadow marsh
lost rose
#

When I click on Lasse’s profile the IOS Discord App instant crashes ouff

dapper echo
unkempt hamlet
#

Lasse is untouchable

dapper echo
#

Wait, lemme try that myself

#

Wot the fook

unkempt hamlet
#

@shy swan sadcat_runWTF

shy swan
#

Lol.

dapper echo
shy swan
#

iOS does not support the GitHub thing yet.

opal arch
#

My profile breaks your app then as well

dapper echo
#

Oh yeah

shy swan
#

On Android it doesn't have a logo.

opal arch
#

For me, it does

shy swan
opal arch
#

Ah, ye, alpha Kap

unkempt hamlet
#

Android 1:0 iOS

dapper echo
lost rose
shadow marsh
#

Heh x3

lost rose
#

Seems the iOS beta testing group is full

plush hazel
#

When I click on Lasse’s profile the IOS Discord App instant crashes ouff
I'm using my PC but i cannot see the lasse's profile xDD. Crash on PC as well

dapper echo
plush hazel
#

Fixed now thisisfine

dapper echo
unkempt hamlet
#

Windows Sandbox is a godsent.

cinder spear
#

it is very nice

quartz moth
rugged copper
#

@quartz moth I’ll try get the API Client updated today/tomorrow 😄

quartz moth
#

Cool thank you 😄

unkempt hamlet
river pebble
#

YESSS

compact holly
#

Can somebody help me?

unkempt hamlet
dapper echo
#

Don’t ask to ask, just ask. smart

cinder spear
dapper echo
shy swan
#

German translation coming ablobcatbongo

#

The site is open source. Just add your language to make it easier for people who aren't English pros. Especially with such people, I get this problem very often.

unkempt hamlet
#

There is no language switcher, so pshrug

dapper echo
#

I hate when I click on someones profile, and he has GitHub linked. (On my IOS)

shy swan
unkempt hamlet
#

Well pshrug

cinder spear
limber reef
#

I hate C++ sometimes so much 🤣

quartz moth
#

Just to check is the rate limit for the API 60 requests per minute or am I making that up?

limber reef
#

Which API?

quartz moth
#

The TruckersMP API

limber reef
#

Ohh lol, is there a TruckersMP API? Unfortunately I can't help you with that 🤷‍♂️

spice blaze
#

So this was pretty interesting. For some terrible reason I still see Quora questions relating to programing but I came across this in part of an answer: "For example, on the Pentium IV (which otherwise had quite lackluster performance) a few parts of the ALU were double-clocked, so a single instruction execution unit could carry out not just one but two read/modify/write cycles per CPU clock cycle (so yes: a 3 GHz Pentium IV could actually read/write registers, and carry out simple logic operations like AND, OR, NOT, ADD, SUB, at 6 GHz per execution unit, though getting it to sustain that rate was no mean feat, to put it mildly)."

quartz moth
#

So if I were to make a script which goes down all my VTC page members and checks if they are banned. Would that hit the rate limit?

unkempt hamlet
#

Expect 60 requests per minute. No SLA on that though.

quartz moth
#

Ok well our VTC has around 40 members, but I'll slow the script to wait 10s or so between querying so its less likely to hit the limit

unkempt hamlet
#

That's ok.

quartz moth
#

👍 Thanks for the reply

ember canyon
#

server: 10.3.22-MariaDB-0+deb10u1 - Raspbian 10

#

PHP 7.3

unkempt hamlet
#

You did not select a database

ember canyon
#

I retried

unkempt hamlet
#

Also, what is the type of Number row?

ember canyon
unkempt hamlet
#

What's the type?

ember canyon
unkempt hamlet
#

You're trying to set an int value for varchar row

ember canyon
#

Replacing Varchar by int

#

While replacing varchar by int

unkempt hamlet
#

You don't need to change row type

#

Use '101' instead of 101

ember canyon
#

Ow

#

Working. Thnaks.

unkempt hamlet
#

oof

#

Looks dangerous

ember canyon
#

Ye

#

Whole command is catastrophic.

#

But working nice. Thanks CJ.

unkempt hamlet
#

Use prepare method to make your queries safer.

ember canyon
#

Ye

#

But it's safe enough for what I'm doing. Also, the bot is in the same host than mariadb.

unkempt hamlet
#

"Safe enough" motto is dangerous 🙂

#

All DB queries with user data must be safe by default. prepare doesn't even make your code complicated.

ember canyon
#

Well

#

I'll need to see how to integer prepare to my js

#

execpt if it's already in the mysql module

#

(nodejs)

unkempt hamlet
#

You can pass x.toString() to be sure it is varchar.

mossy cloud
#

Shouldn't this be TruckersMP developers and not TruckersFM? 😛

unkempt hamlet
#

No, everything is right

mossy cloud
#

What do TFM have to do with game servers though?

unkempt hamlet
opal arch
#

Their API was returning completely something else than it was supposed to

#

And as you know, C++ is not a dynamic language

cinder spear
#

probably should have safe-guards in place not to crash under such circumstances though

#

resiliency 101: never trust a network connection

unkempt hamlet
#

should sounds too professional kek

cinder spear
opal arch
#

Well, it was the issue of the library as well

mossy cloud
#

thanks ❤️

mossy cloud
#

Yeah they're the same thing though 😄

#

ish 😛

raw notch
#

well, welcome in the world of Radio API broken every two weeks :D or changing url, changing response, going down suddenly, behaving strangely :D

unkempt hamlet
#

inb4 Patreon API goes like that

opal arch
#

@mossy cloud I actually think we did it because of that suggestion

stray merlin
#

👋

mossy cloud
#

Got that message from Discord about the bots and had a near heart attack when I saw "You have received an offical message from Discord"

#

😂

opal arch
#

Yep, same here

unkempt hamlet
river pebble
#

Same it said import

#

Had to read it

quartz moth
#

I was so sure it was a fake account then it had a system tag instead of a bot

#

So I was like ok this actually seems legit 😂

raw notch
#

it is

shadow marsh
#

I also had it once lol

#

jesus christ I thought I did something illegal...

#

actually I just pushed the bot with it's token to GitHub picard_facepalm #veryprofessionaldevatwork 😂

willow beacon
#

Got that message from Discord about the bots and had a near heart attack when I saw "You have received an offical message from Discord"
@mossy cloud xD so did I I thought my account was banned or something tbh thisisfine 😂

shadow marsh
#

So, I also got the message now because of bot developement

willow beacon
#

yup

rotund lance
#

Got that message from Discord about the bots and had a near heart attack when I saw "You have received an offical message from Discord"
@mossy cloud i had a heart attack-ish at the "Free no rate limit card" part 😂

#

sadly they didn't pull that... yet...

rugged copper
visual walrus
#

👀

willow beacon
#

So im going to start learning some coding what do you reccomend i should start out with?
im planning on making programs and developing bots once ive learnt it

unkempt hamlet
#

Start with basic algorithms.

willow beacon
#

such as?

#

I have no clue at all never done coding I've just messed around with html which is pretty basic

mossy cloud
#

Do you plan on Software Development or Web Development?

willow beacon
#

Software

#

Maybe some very minor software development

willow beacon
#

suddenly

#

.... chat died

mystic ridge
#

If there's nothing useful to say, its better to say nothing at all rather than add useless chatter which is mostly spam

willow beacon
#

xD

somber linden
#

@willow beacon If you want to develop desktop software, there are variety of languages such as Java, C/C++, C#, Python and more. Go in google, check them out and just select one and start learning it. If you learn programming fundamentals such as data types (e.g integer, double, float, boolean, string) and so on, they're very likely to be the same in other languages too. For me personally would be very easy to get to another language assuming it has similar syntax to the languages I already know, but the fundamentals are exactly the same. Nowadays, there is insane amount of free stuff you can learn that you don't even need to buy a book or get somebody to train you.

Also, when programming it's also a good idea to get an IDE which stands for "Integrated Development Environment". You can read more about IDEs here - https://en.wikipedia.org/wiki/Integrated_development_environment. There are a lot of IDEs such as Microsoft's Visual Studio which has a compiler. Microsoft also offers Visual Studio Code which is more like a text editor but I'm not really sure if has integrated compiler as I've rarely been using it.
There is also CodeBlocks.

willow beacon
#

Thanks for the info ill have a look! @somber linden

somber linden
#

You're welcome.

opal arch
#

I would not recommend C or C++ for a beginner

unkempt hamlet
river pebble
#

Lol

willow beacon
#

I would not recommend C or C++ for a beginner
Alright

cinder spear
opal arch
willow beacon
#

Good job I guess

opal arch
#

I think most people have got it

willow beacon
#

Ah ok well I have no idea what it is

#

After some advice I think I will learn CSS first and then JavaScript

cinder spear
#

sounds like a good idea for web development

unkempt hamlet
cinder spear
#

HTML5 + CSS3 is turing complete so if you want... fireY

unkempt hamlet
#

Also, Electron sadcat_runWTF

shy swan
mossy cloud
#

Hmm, I wonder what ModMail uses troll

north flax
mossy cloud
#

I'm only on GitLab so rip me

#

xD

willow beacon
#

I've had a look around in different places I will be learning CSS at first

#

Not sure if I will ever learn it properly...

lost rose
#

CSS is a programming language 🤔

willow beacon
#

yeah?

lost rose
#

Euhm no. It's a stylesheet language for HTML (and that's not a programming language too). Where did you saw that CSS is a programming language?

cinder spear
quick glen
#

I'd argue that yes, you can call CSS (and HTML for that matter) for programming languages although they're not in the same categories of what you normally think of when it comes to programming languages.

As with anything there is a wide scope of nuances and definitions.

This article is a great read on the topic https://notlaura.com/css-is-a-programming-language/

Over the past year, I've been giving a talk called The Algorithms of CSS, originally created for CSSConf EU. This post covers the first part of my presentation, and breaks down how CSS fits into the categories of programming languages.

#

Although I do believe that for ease of communication and understanding others it might be wise to go with what the world wide community of developers usually catagorize the different languages and tools we use.

Going by the nitty gritty definitions, even PowerPoint is a programming language. And its turing complete too!

willow beacon
#

Euhm no. It's a stylesheet language for HTML (and that's not a programming language too). Where did you saw that CSS is a programming language?
@lost rose I am new to coding and someone told me this

unkempt hamlet
lost rose
#

bruh

mossy cloud
#

Pretty sure OVH is down in places

#

That's trying to sign into my account server, our main web server is currently down too

tardy smelt
#

Probably someone cut their wires again GWrjkKappaLUL

cinder spear
#

at least they had a backup line

#

one of the major ISPs in Finland had a full outage when a digger cut into their cables used for international traffic... and the backup line was in the same cable bundle. LUL

mossy cloud
#

Ouch

unkempt hamlet
#

Looks kinda cool

unkempt hamlet
shadow marsh
#

it may sound funny, but I just setted up my old raspberry pi and I am now installing everything :D
So I can move the MariaDB from my computer to it thisisfine am I not smart 😛

#

Because the RaspiOS is basically Debian, the same OS my server has

ember canyon
#

Ye tr

#

True*

shadow marsh
#

and I tried letting a java 1.16 mc server running on it.... the CPU was like - "why are u doing this to me" 😂 it was friccin hot lol

#

but the database is okay with the speed 😄

#

isn't a production system, just for testing purposes

haughty zephyr
#

Well a database running for tests will always be light to run x)

shadow marsh
#

true x3

#

as soon as it's in production, it will be a bit difficult to protect it

haughty zephyr
#

put some good old ssl certificate to connect to the database and you're good to go

shadow marsh
ember canyon
#

Hello I am looking for a sache for my small project. And if the login opens the music that I play in can help me there who?

shadow marsh
#

sache?

#

What do you mean?

ember canyon
#

@shadow marsh

I have before in the login music to play with

shadow marsh
#

What do you mean exactly?

ember canyon
#

in the login should pure music

#

my Englisch is not good sorrrryyyy

shadow marsh
#

while logging in it should play music?

#

What should play music when what happens?

ember canyon
#

while logging in it should play music? Ja 👍 Login scren show and play musik and login eh stoppet

#

I just don't have a plan like

shadow marsh
#

Please translate it, if available, your text with DeepL.com

#

because you have the german role, it is available

ember canyon
#

I would like to play music during the login image soo Good ?

shadow marsh
#

Okay, that's now more understandable. So, how would make that sense? As maybe the login screen would just be a few seconds 😄

ember canyon
#

And who I am Login dan stop

shadow marsh
#

oh

#

So, if you open the site, the music begins to play. As soon as you get logged in, the music stops?

ember canyon
#

So, if you open the site, the music begins to play. As soon as you get logged in, the music stops? Jaa 👍 Only I have no plan like

shadow marsh
#

Hm, okay - I guess that's a website then?

ember canyon
#

No ehm Ragemp Gta5 Roleplay my littel projekt for me

shadow marsh
#

in which language is it written? If not Java, I can't really help you out

ember canyon
#

Ja Java and css and Html
I am writing at the moment

shadow marsh
#

Well, RageMP is in Java blobcateyes thats interesting. Anyway, show me the code and I will take a look onto it tomorrow.

ember canyon
#

@shadow marsh Oki Thank you very much.😋

shadow marsh
#

No problem blobcatthumbsup

unkempt hamlet
#

So, if you open the site, the music begins to play. As soon as you get logged in, the music stops?
NO! JUST NO! It was a web dev sin since 2010! Never enable music with no user consent, @ember canyon! It won't even let you to autoplay with new browser policies iirc. Btw, do you even have rights to stream that music?

#

Also, Java and JavaScript are completely different languages.

shadow marsh
#

I know, I understand Java, not JS

cinder spear
#

ragemp is in js

shadow marsh
#

Well, then I can't help lol blobcateyes

unkempt hamlet
#

You're talking about the launcher, I guess

shadow marsh
#

I don't even know, what RageMP is LUL

cinder spear
#

it's a multiplayer platform for GTA V

shadow marsh
#

Ah, GTAV Online

#

Nice

cinder spear
#

no, separate from GTA Online

shadow marsh
cinder spear
#

more similar to what TMP is to ETS2

shadow marsh
#

Ah, you mean, making GTAV SP to MP?

cinder spear
#

a custom multiplayer hook to singleplayer yes

shadow marsh
#

Ahhhh

#

Now I understand

cinder spear
#

since Rockstar doesn't allow any messing with the official online components

#

custom stuff needs to live on these 3rd party MP platforms

#

there are a few others

shadow marsh
#

Wait, there are others too? blobcateyes

#

Well...

cinder spear
#

fivem is the most popular

shadow marsh
#

I think, I've to agree with you. Now I know, what FiveM is actually

cinder spear
#

or at least the best known

shadow marsh
#

Well, FiveM is the one where I lost my current Ex-BF shrug_animated playing for actually over 12 - 15 h / day on it

cinder spear
#

oof

shadow marsh
#

and I told him, lower the playing times.... well, he even ignored me, the team he was in, etc.

#

so I kicked him, that didn't helped, so I've wroten him, I really love you, but if you don't change this until date xxxxxxx I will end this relationship - he continued with it so I ended up with it shrug_animated that's why I really not like it (I don't like RP really, if I want realistic things, I can go outwards lol)

unkempt hamlet
#

Bruh

shadow marsh
#

Anyway, that's not relevant for here. Fact is, RageMP isn't Java and so I can't help

haughty zephyr
#

NO! JUST NO! It was a web dev sin since 2010! Never enable music with no user consent, @ember canyon! It won't even let you to autoplay with new browser policies iirc. Btw, do you even have rights to stream that music?
@unkempt hamlet browser policies don't apply for fivem or ragemp

ember canyon
#

I neme music that I may stream @unkempt hamlet @haughty zephyr

#

the music of yesterday was an example

#

ETS2 Has which development language ?

north flax
#

The game is made in C++

ember canyon
#

Ah Ok Niccce @north flax This is nice Dev work

quick glen
#

Been toying with the idea of something like adaptive cruise control for a while, decided to try it out this week.
https://www.youtube.com/watch?v=QbTW49Emypo
(Excuse the driving, as I'm driving both trucks at the same time)

Done on TruckersMP ETS2 Arcade server, exuse the bad driving as I am driving both trucks on two different computers. Same goes for resolution, the video is upscaled from 1600x900.

On the recorded truck I only control the steering wheel and turn off the handbrake and hazards. ...

▶ Play video
mossy cloud
#

Interesting.

#

Depends where your server is based I guess though. Although im UK my web server is OVH, France

haughty zephyr
#

Been toying with the idea of something like adaptive cruise control for a while, decided to try it out this week.
https://www.youtube.com/watch?v=QbTW49Emypo
(Excuse the driving, as I'm driving both trucks at the same time)
@quick glen nice

strong quail
#

I've my domain at OVH, so blobcatshrug

next pumice
#

Good old times... GTAV RP LostLovesYouNot

cinder spear
#

it's still super active and popular

#

the .eu change is interesting... it's exactly the opposite of what .fi did a few years ago going from Finnish citizens + businesses to open to anyone

#

that limitation was probably the only reason my current domain wasn't squatted by someone looking to make profit

mossy cloud
#

Made over the course of yesterday night and today

shadow marsh
#

That's awesome blobcatthumbsup

mossy cloud
#

Thank you ❤️

#

When assigning tasks to people, it only shows people in the team the project has been assigned to

shadow marsh
#

No problem, I have big respect for web developers and what they do

#

Wow, thats much more amazing wtfh

mossy cloud
#

No more trello for us ❤️

shadow marsh
#

Jesus christ, and I just can do "Hello World" in html LUL

mossy cloud
#

We all have to start somewhere, just keep going at it, you will get there ❤️

shadow marsh
#

That's also true, but I already tried web development. In different IDEs, different no-cost courses and youtube tutorial...

#

I never came to the result I wanted to go, so I gave up

#

But I understand Java and can code good plugins for Minecraft, soooo shrug_animated I also got my goal for it thisisfine

willow beacon
#

Nice work penguin catthumbsup

mossy cloud
#

Thank you! ❤️

willow beacon
#

I'll never be able to do that xD

ember canyon
#

dont say things like that... i said this too.... i still cant do such things 😄 but now im managing a department with a few coders doing suchs things as i want them haha

north flax
mossy cloud
#

Had a look at that on Twitter, sadly many say it breaks their sites

#

So hanging fire for a few days to see if others report the same

opal arch
#

I checked the repo and Taylor has already made a lot of fixes to it

#

It might work well now

mossy cloud
#

Ah cool, thanks

ember canyon
#

📰 | TruckersMP REST API changelog

https://forum.truckersmp.com/index.php?/topic/88462-truckersmp-rest-api-changelog/&do=findComment&comment=938110

API Changelog 28/07/20: - New properties to /v2/player/ API endpoint - bansCount (integer, null if staff). It shows the active bans count for the user despite privacy settings. You can find the full description in our API documentation: https://stats.truckersmp.com/api#players_lookup

TruckersMP Forum

This topic will be used as a changelog of our TruckersMP REST API. Check our current API documentation here: https://stats.truckersmp.com/api

jade viper
#

i kind of want to make a game but i dont even know where to start

dapper echo
#

If you don’t know where to start, just don’t makw a game.

somber linden
#

Making a game is rather hard if you have zero knowledge. To start, you'll need to know some programming language, C++, Java or C# are mostly used for game development, but I'd recommend you to start with C# and then move to Unity which is a Game Engine and start learning its API. After that if you want to make 3D game, you'll need Blender knowledge to create the models and have Photoshop or Krita knowledge to do the textures that you'll apply to the model. Additionally, you'll need to learn how to create and use animations as well as how to use sound in the engine. If you're planning on doing the game with friends, it would be also good to use github or gitlab ro share the code and have some version control over your code, therefore git knowledge is required and many, many more things @jade viper.

jade viper
#

i know a quite bit about coding just dont know might like make a game on like idk somewhere its easier and work my way up

shadow marsh
#

I've a question. Can I work on two devices with GitHub? I work mainly on my computer, but time wise I want to continue on my laptop (but without using TeamViewer and leaving my Computer running). So I can push the code always up and can download it on my laptop or how would that work exactly?

unkempt hamlet
#

That's exactly the point (or perhaps one of them).

shadow marsh
#

oh, okay 😅

jade viper
#

lol

somber linden
#

That all depends on you @jade viper 😉

cinder spear
#

as long as you remember to push...

#

but you know what they say

#

You can totally make a simple game as a first project as long as you choose a suitably easy engine to do it with

mossy cloud
#

At Friday 5.30pm ^^

jade viper
#

ye true i might spend some time researching and then try

mystic ridge
#

Always have a ROF (read-only friday) unless you want to stay up/behind late fixing issues lul

jade viper
#

oh is that like on fridays you make sure everything is working

mystic ridge
#

Nah, on Friday's you make no major changes to anything

cinder spear
#

level of confidence regarding friday deploys and especially late friday deploys tells a lot about the level of operational excellence for the product

#

I'm talking about things like test coverage (unit, integration, automation), partial rollouts, metrics and alarming, etc.

jade viper
#

please tell me im not the only one that had plans with a friend and he said he will pay monthly and you spend making a full fivem server and he decides to just quit

unkempt hamlet
#

Happy System Administrator Appreciation Day, everybody involved! I know that most of the sysadmins are devops by nature.

mossy cloud
#

Thank you! And to you :)

mystic ridge
#

You mean sysadmins are fixing the mistakes of devops kapp

slim pendant
rugged copper
#

@slim pendant I would recommend using the term “company” instead of “vtc”, just feels a bit nicer than an abbreviation. The PHP API Client also uses the term company so would be a bit more inline with that

slim pendant
#

@slim pendant I would recommend using the term “company” instead of “vtc”, just feels a bit nicer than an abbreviation. The PHP API Client also uses the term company so would be a bit more inline with that
@rugged copper Thank you for the information, i will change it to that

rugged copper
#

No worries 😄

slim pendant
#

@rugged copper Why are there no properties for the VTC?

rugged copper
#

How do you mean?

#

What endpoint are you trying to hit?

slim pendant
cinder spear
#

interesting mix of promise and async-await...

slim pendant
#

Yeah i will change that, but not now

rugged copper
slim pendant
#

interesting mix of promise and async-await...
@cinder spear But for the most part i need to do that with the requests, since if the data coming from the API is null i cant parse it

cinder spear
#

that's just a matter of try..catch instead of .catch

#

or a null check

slim pendant
#

And why would i do that instead of waiting for that request to be done first?

cinder spear
#

...of course await it first?

#

I'm sure it works. I just found it a bit odd to be using both of the alternative patterns together

slim pendant
cinder spear
#

async-await is literally promises with a cleaner syntax

slim pendant
#

I guess

cinder spear
slim pendant
#

and ig try catch to catch any request errors

shadow marsh
#

today, GitHub saved my life x3 - I reinstalled Windows and my projects went corrupt somehow - just one file I didn't pushed is missing - but that's not that bad feelsgoodman

mossy cloud
#

GitHub probably shouldnt be your only backup source tho 😂

shadow marsh
#

Yes... you are true 😂

opal arch
#

Ye, add Gitlab and Bitbucket kappa

shadow marsh
#

😂

#

lmfao

unkempt hamlet
#

I am backing up in /dev/null

cinder spear
#

the most secure, no-one's ever been able to read it back from there Kapp

slim pendant
#

mv * > /dev/null

slim pendant
#

@cinder spear Have you got a second?

cinder spear
#

not really

north flax
#

I will point out though, that availability is one of the three pillars of infosec, so /dev/null kind of fails in that regard 😛

cinder spear
#

what do you mean, it's always available Kapp

#

unless you delete it I guess

raw notch
#

@opal arch sorry to ping you but seems servers having some issues. TMP stuck in "authenticating", it's connected to the server but no players on map

cinder spear
#

would be best brought up in #support 🙂

slim pendant
#

Im nearly done, just need to implement the rules and version endpoint

mossy cloud
#

👍

jade viper
#

yo one quick question does having your own assetto corsa server slow down your pc or wifi?

slim pendant
#

A server obviously uses your hardware and network

jade viper
#

Ye but does it slow it down

slim pendant
#

Well if its being used ofc its being slown down

cinder spear
#

not really a question for this room, is it? Unless you're developing it

jade viper
#

well yes

#

i kinda am and before i port forward it i need to know

slim pendant
#

Port forwarding isn’t permanent

#

So there shouldn’t be a problem

unkempt hamlet
slim pendant
unkempt hamlet
#

Maybe some tests? sadcat2_peek

slim pendant
#

Maybe some tests? :sadcat2_peek:
@unkempt hamlet Tests like?

slim pendant
slim pendant
#

@unkempt hamlet Oh you mean examples on how to use it?

unkempt hamlet
#

No, I mean literal tests, to be 100% sure it is working how expected.

#

But proper documentation won't be useless either.

slim pendant
#

No, I mean literal tests, to be 100% sure it is working how expected.
@unkempt hamlet I tested every function myself, and yes im working on the documentation, i already started a bit https://github.com/iraizo/truckersmp.ts/wiki/Player-Request

harsh minnow
#

typedoc is nice for generating documentation

cinder spear
#

jest is nice for testing

raw notch
#

@slim pendant you could the same thing with Trucky API? 😄

slim pendant
#

@raw notch Trucky API isn’t in typescript and I’m pretty sure it doesn’t have all endpoints

#

and mine is maintained

raw notch
#

no i mean a client 😄

slim pendant
#

no i mean a client 😄
@raw notch Care to elaborate?

#

typedoc is nice for generating documentation
@harsh minnow Never heard of it, I’ll look into it

raw notch
#

are you writing a client for TruckersMP api?

unkempt hamlet
#

He IS the Trucky kek

slim pendant
#

Im writing an api wrapper

raw notch
#

exactly, you could do it also for Trucky 😄 mine is outdated but maybe could be a good starting point

slim pendant
#

But.. mine is already done?

#

I don’t get it

unkempt hamlet
raw notch
#

CJ help me 😄

unkempt hamlet
#

He is requesting a new wrapper specifically for Trucky API

shadow marsh
#

I think, what dow means is, you can write an API for TS for the Official Trucky API

#

oh well oh CJ was fasterino as me thisisfine

slim pendant
#

Oh.. Trucky is an api?

#

I thought it’s a package of some sort

unkempt hamlet
#

As always, Maurice D2_cheemsEATFAST1

slim pendant
#

What does it contain?

raw notch
#

well, just one two things...

slim pendant
#

I’ll make myself something to eat and look into it

raw notch
#

well the docs is a bit outdated 😄

slim pendant
#

oh god thats a lot

#

well im going to implement it but its probaly gonna take a while

raw notch
#

that's good, no hurry

mossy cloud
#

😂

slim pendant
#

Is he the maker of it? lol

mossy cloud
#

Yeah lol

slim pendant
#

Oh

#

AngryCry Dosent want to help me but let me do the work

#

smh

raw notch
#

@mossy cloud don't think Trucky API should be advertised ;)

#

@slim pendant I didn't helped you? when?

slim pendant
#

I mean with implementing your api, i was just sarcastic

raw notch
#

oh ok :D

slim pendant
#

@harsh minnow Wow, typedocs is a wonderful tool it saved me so much time, ill implement it into the github wiki if that works

harsh minnow
#

yea it's nice, supports themes as well, but I don't know much about that tbh

slim pendant
#

Yeah ill just use default markdown with a plugin

slim pendant
#

Seems like they dont support github wiki so all the links 404

#

or get read as raw

slim pendant
#

To be honest ill just self host the documents on a server i cant be bothered writing actual docs for it

north flax
#

This is a chat about development in general, not a QnA channel to chat to TruckersMP developers @misty shore

slim pendant
#

@raw notch Can you give me an example request for https://api.truckyapp.com/v2/traffic

raw notch
#

@slim pendant looking at the API docs doesn't help?

slim pendant
#

Not really

#

"server" dosent tell me anything specific

raw notch
#

/v2/traffic/servers to get available servers

#

then use the shortcode with /traffic endpoint

slim pendant
#

ah okay it wants that

raw notch
#

yes

slim pendant
raw notch
#

oh sorry, the url prop

#

this structure comes from Krashnz traffic API but when I changed to Trucky Traffic data I kept the same API responses for backward compatibility

#

I should definitely update the API docs :D

slim pendant
raw notch
#

ets2 lowercase

slim pendant
#

...

raw notch
slim pendant
#

Oh theres an example value

#

i didnt see that

raw notch
#

🙂

slim pendant
#

nvm it takes params

raw notch
#

when there are some expected values i try to show them in docs

slim pendant
#

@raw notch Could it be that traffictop dosent function?

raw notch
#

btw sorry to say this now, but docs is incomplete and some endpoints are really old and not working anymore (or returning data not updated) so maybe you should wait i update all docs

slim pendant
#

Alright, im doing the interfaces only right now anyways

slim pendant
#

huh weird

#

@raw notch All truckerfm routes arent working btw

raw notch
#

exactly 😄

#

btw we should move in dm 🙂

cinder spear
#

It's nice to see this chat alive

raw notch
#

we can continue here if it's permitted @cinder spear

#

no problem for me :D

slim pendant
slim pendant
limber reef
#

How is TruckersMP Rendering the GUI in ETS and genrelly, how changes TruckersMP the game? With attaching a lib and changing the memory or with something else?

lost rose
#

They inject a DLL while starting ETS2. The functions overwrite/extend the ETS2 functions and also access the variables at the memory address of the variable. It's much hard work though because you have to do reverse engineering, because you can't get the ETS2 source code except from SCS (what they won't do).

slim pendant
#

Is ets2 in c#? because dotpeak spazzes out

lost rose
#

of course not

#

and c# is not very efficent for such a Game. It is written in C++ as far as I know

slim pendant
#

and c# is not very efficent for such a Game. It is written in C++ as far as I know
@lost rose I know that, I guess it’s time to get ida pro out

limber reef
#

They inject a DLL while starting ETS2. The functions overwrite/extend the ETS2 functions and also access the variables at the memory address of the variable. It's much hard work though because you have to do reverse engineering, because you can't get the ETS2 source code except from SCS (what they won't do).
@lost rose
Ahh okay, so I got it right. Reverse engineering won't be a problem because I only need to know a few addresses and I've done it for several other games now.

#

It is written in C++ as far as I know
@lost rose
Yeah, ETS is written in C++ with their own engine.

lost rose
#

@lost rose
Ahh okay, so I got it right. Reverse engineering won't be a problem because I only need to know a few addresses and I've done it for several other games now.
@limber reef That wouldn't make it easy though. It's still hard to find because they are so many different functions. idk if you already did some reverse engineering, but the variable and function names are something like this: var_28839. So you have to understand what the code does first and then check what's stored in the variable by debugging.

limber reef
#

I only need the standard DirectX functions and a few addresses from e.g. the money. With ollydb, Cheat Engine, ReClass and a few other tools, it shouldn't be a problem and I already have a few addresses.

#

And yeah, im developing for almost 4 years now ^^

raw notch
#

is there a way to get gps information from the game?

opal arch
#

standard DirectX functions
Welp, I wish you good luck

raw notch
#

the problem is to get the base address for each version :D

limber reef
#

@opal arch I asked about the DLL'S injection because I wasn't sure whether SCS already had something for modders and I didn't find the TMP dll as a module in the ETS process. But I didn't look properly either because I didn't have much time 🤷🏼‍♂️

opal arch
#

Although, it will not help you with the tasks you need :/

#

But it might contain some useful information for you to start with

limber reef
#

Ahh I was looking for something like that. Thanks.

opal arch
#

is there a way to get gps information from the game?
@raw notch GPS information?

raw notch
#

yes, like next turn, waypoints...

#

scs sdk doesnt provide them (and it's a shame how is few powerful in general)

#

@opal arch do you have some advice for that?

opal arch
#

If it is not in the SDK, it will not be easy to implement, I fear

#

Especially things like next turn which is calculated in the runtime, I think

raw notch
#

I know

#

but somewhere these information have to be stored :D

opal arch
#

Depends

#

The engine indeed has some things that are queried or calculated without storing it in any object like economy or similar

raw notch
#

do you think are calculated for each frame In realtime?

opal arch
#

It does not have to be each frame

#

But this was the case of the dynamic speed limit, for example

#

The game stores the value only for the current user setting (which is also provided to the SDK). If you want the truck speed without caring about user's settings... well... good luck with that

#

Since we have never needed GPS waypoints, I cannot tell you more about that as I simply do not know more either

raw notch
#

I see, thanks

quick glen
#

@limber reef If its directx you want to hook, then there are methods you can use to dynamicly find the vtable memory location of the directx device the game uses. There's no need to reverse engineer the game at all to do that.

I've got a plugin for the game that already does this quite successfully

slim pendant
#

the problem is to get the base address for each version :D
@raw notch how is that a problem

#

Open process and get the base from the handle

quick glen
#

Base address is hardly the problem, the offset to the function you want to hook (or data you want to read) is the issue as it changes each build (Pretty sure this is what dowmeister ment)

slim pendant
#

Im interested, are all functions in the v table of each class or how is the hame structured

#

Base address is hardly the problem, the offset to the function you want to hook (or data you want to read) is the issue as it changes each build (Pretty sure this is what dowmeister ment)
@quick glen Signature Scanning Go brr?

quick glen
#

They do! And its awesome

slim pendant
#

Lmfao that is really helpful for reversing the functions I guess

#

Problem is I need to learn more x86 assembly

#

i only know ARMV11

limber reef
#

Once you have the base addresses it is no longer difficult to find the addresses for a new version. It just takes a looooong time....

I've got a plugin for the game that already does this quite successfully
@quick glen

Ouh nice, can I try it?

quick glen
#

@limber reef Its a part of the logger software LogIt that vtlog uses, has to be enabled though as its currently a beta feature

limber reef
#

I'll check it out later

#

Thanks

ember canyon
#

@meager spoke Your status is so true.

mossy cloud
#

😂

#

Agreed

meager spoke
#

I'm PaaX this close to have a mental breakdown cause of that @#$*% update

ember canyon
#

Have you followed the guide ?

meager spoke
#

Yeah I'm reading it as we speak
Otherwise I'd just throw my PC of the window

ember canyon
#

Well

#

Ye

#

Or Back to v11

meager spoke
#

message.delete(5000)
discord 12:
message.delete({ timeout: 5000 })

#

W..why discord.js

ember canyon
#

Discord.JS is not managed by Discord Staff

#

I think

meager spoke
#

And we can't go back to 11

As there is a discord API update coming around October that will kill v11.4 discord.js

No I meant discord.js devs

shadow marsh
#

Poor Chris... just move to JDA akappapeak

quartz moth
#

Use python kappalul

slim pendant
#

message.delete(5000)
discord 12:
message.delete({ timeout: 5000 })
@meager spoke What’s the issue?

#

i can probably help u, im using discord.py since 5 years

meager spoke
#

I'm not having issues as in idk what to do, I have someone (lethal) that helps me if needed

It's just the fact that the update, atleast so far
Only adds more code that already worked

slim pendant
#

What do you want to do?

meager spoke
#

.displayAvatarURL - discord 11
.displayAvatarURL**()** - discord 12 example

slim pendant
#

So a function and a property

meager spoke
#

I'm updating my bot from 11 to 12

slim pendant
#

I guess they change structures

meager spoke
#

Yea a lot

slim pendant
#

Thank god i don’t need to use .js lol

meager spoke
slim pendant
#

Over the 5 years the structures ever changed, only small things like needing a class to load a cog

opal arch
#

@meager spoke the change done by them is really welcome, tbh, as it feels like a completed library now unlike previously

slim pendant
#

This probaly dosent fit here, but how can u create a topic on the dev forum? i want to showcase truckersmp.ts

opal arch
#

But the amount of changes is HUGE

#

For one version...

meager spoke
#

The amount of changes is thisisfine

slim pendant
slim pendant
#

why the hell does ets2 load the cryptopp lib

shadow marsh
#

Yes, I am living not in today, I live some days/weeks/month before 01.01.1970 akappapeak - but srsly, what's that 😂 shouldn't the Timestamp be positive and not negative? (The Date is correct)

slim pendant
#

Yes, I am living not in today, I live some days/weeks/month before 01.01.1970 :akappapeak: - but srsly, what's that 😂 shouldn't the Timestamp be positive and not negative? (The Date is correct)
@shadow marsh This looks like an unix timestamp, so yes it should be positive

shadow marsh
#

it is an unix timestamp... indeed

slim pendant
#

Hmm, i guess your source is the truckersmp api?

shadow marsh
#

huh

#

no

#

it's not TMP-Related

slim pendant
#

ah, maybe you casted the value or something

shadow marsh
#

I will take a look onto it so or so

slim pendant
#

or you can just correct it by making it positive i guess

shadow marsh
#

because it is weird

slim pendant
#

@harsh minnow https://doc.deno.land/ holy shit this is awesome

harsh minnow
#

meh

#

are you taking about the runtime or the documentation lol

slim pendant
#

Doc generation looks awesome

#

I might switch if its useable

harsh minnow
#

oh yea, it looks nice.

slim pendant
#

@harsh minnow What is that theme?

harsh minnow
#

uhh

slim pendant
#

it seems nice, but the blue text is really hard to see

harsh minnow
slim pendant
past prairie
#

i wonder when they are gonna update tmp because the update is only some graphic changes

quartz moth
#

It's not "only some graphics changes" - Every update changes the code dramatically since it is done via reverse engineering so it will take some time @past prairie

past prairie
#

mhm i mean when im playing on 1.38 feels like there is only some graphic things added

#

feels like it

quartz moth
#

Ye it might seem like that but there are a lot of code changes which take a while to implement into TMP 😄

past prairie
#

ok

sick anvil
#

Ello 👋
Is there anyone I can DM regarding tracker overlays? Our tracker developer isn't able to work on the tracker for a few weeks, we need someone to help us out with the overlays. The tracker is fine tho, just need someone for the overlays 👀
My apologize if this sort of messages are not accepted here.

quartz moth
#

Iirc @sick anvil trucky do an overlay which I believe you can customise but not too sure about that 😄

sick anvil
#

Hmm. Interesting.

I was actually looking forward to custom made tracker overlays tho 😄

fervent axle
#

Anyone have used Flutter framework? I need your opinion

shadow marsh
#

Heyho, I have a small Issue with a code snippet from me. It's about Java 😅

    private String returnRadio(String uri, String node) {
        String s = "";
        try {
            URL url = new URL(uri);
            URLConnection request = url.openConnection();
            request.connect();
            
            JsonParser jp = new JsonParser();
            JsonElement root = jp.parse(new InputStreamReader((InputStream) request.getContent()));
            JsonObject rootobj = root.getAsJsonObject();
            s = rootobj.get(node).getAsString(); //<--- this is the "issue" where I get the exception
        } catch (MalformedURLException e) {
            e.printStackTrace();
        } catch (IOException e) {
            e.printStackTrace();
        }
        return s;
    }```

The URL is ``https://api.laut.fm/station/redifm/current_song`` and it works fine with ``title``, but as soon as I want to get the ``name`` object from ``artist`` it throws me a exception at the line I "commented" out

I appreciate any help ![catlove](https://cdn.discordapp.com/emojis/626346196474134529.webp?size=128 "catlove")
slim pendant
#

@shadow marsh Well.. what is the exception

shadow marsh
#

uno sec

#
[00:51:00] [Server thread/WARN]: [REDICRAFTCOREPLUGIN] Task #27 for RediCore_SubServer v20200814_0002-0026s generated an exception
java.lang.NullPointerException: null
    at at.mlps.rc.event.ScoreboardCLS.returnRadio1(ScoreboardCLS.java:1145) ~[?:?]
    at at.mlps.rc.event.ScoreboardCLS.setScoreboard(ScoreboardCLS.java:315) ~[?:?]
    at at.mlps.rc.event.ScoreboardCLS$1.run(ScoreboardCLS.java:1228) ~[?:?]
    at org.bukkit.craftbukkit.v1_16_R2.scheduler.CraftTask.run(CraftTask.java:81) ~[spigot.jar:git-Spigot-379750e-1e76d09]
    at org.bukkit.craftbukkit.v1_16_R2.scheduler.CraftScheduler.mainThreadHeartbeat(CraftScheduler.java:400) ~[spigot.jar:git-Spigot-379750e-1e76d09]
    at net.minecraft.server.v1_16_R2.MinecraftServer.b(MinecraftServer.java:1059) ~[spigot.jar:git-Spigot-379750e-1e76d09]
    at net.minecraft.server.v1_16_R2.DedicatedServer.b(DedicatedServer.java:352) ~[spigot.jar:git-Spigot-379750e-1e76d09]
    at net.minecraft.server.v1_16_R2.MinecraftServer.a(MinecraftServer.java:1007) ~[spigot.jar:git-Spigot-379750e-1e76d09]
    at net.minecraft.server.v1_16_R2.MinecraftServer.w(MinecraftServer.java:846) ~[spigot.jar:git-Spigot-379750e-1e76d09]
    at net.minecraft.server.v1_16_R2.MinecraftServer.lambda$0(MinecraftServer.java:164) ~[spigot.jar:git-Spigot-379750e-1e76d09]
    at java.lang.Thread.run(Thread.java:748) [?:1.8.0_265]```
slim pendant
#

name is null

#

or well whatever node is

#

i dont know java but where does node come from?

shadow marsh
#

node would be title as example

slim pendant
#

that is.. very weird

shadow marsh
#

indeed

slim pendant
#
obj.getJSONObject("artist").getString("name");
shadow marsh
#

that's why I asked here 😄

slim pendant
#

why dont you do it like that

shadow marsh
#

oh

#

imma try it

slim pendant
#

name is nested

#

so the root of the json would be null since name dosent exist there

shadow marsh
#

makes sense

#

well

#

It seems I can't find the getJSONObject()

slim pendant
#

@shadow marsh import org.json.*;

shadow marsh
#

if I could use other librarys I would do... but I can't (sadly)

#

but imma try smth

slim pendant
#

bruh

shadow marsh
#

Well, it doesn't worked as I have thought... I also did some workarounds, but that also didn't worked that good. I've decided to do a break otherwise I will do it thru the night.

slim pendant
#

who Java be like

slim pendant
#

Interesting, i have a API for my keyboard can i do the same thing with the inbuilt sdk?

raw notch
#

@sick anvil if for "tracker" you mean an rpc for discord, so the Trucky Overlay does it, is customizable, you can use your discord app and upload your images, the overlay itself inside is customizable in colors, logos and fonts.
if you are searching for a job tracker, Trucky is not. But you can use vtlog instead

sick anvil
#

Aha that's not what I meant 😄
We have a tracker, the tracker dev is away and are looking for someone to help us out with the tracker overlays. For example, when the tracker detects a delivery it displays a message in-game, an overlay

raw notch
#

so a job tracker. do you have your vtc panel so?

#

I'm always open to suggestions adding something good to Trucky specially for vtc but... a confirmation after the delivery is a bit "useless" because the game itself show it... or not?

sick anvil
#

so a job tracker. do you have your vtc panel so?
Yes we have a drivershub, the tracker is working fine. I thought custom overlays would be a nice addition :)

raw notch
#

it could be but with a sense :D

slim pendant
#

@opal arch Sorry for the ping, but how can i make a post in the developer portal, i want to announce my api wrapper.

quartz moth
#

However your post needs to be approved first @slim pendant

slim pendant
#

@quartz moth where can i find that

quartz moth
#

Or here if you want to post your tool

slim pendant
#

yeah im on there

quartz moth
#

But it needs to be approved by a developer

slim pendant
#

but i cant see start new topic

quartz moth
#

And follow these guidelines

slim pendant
#

vibeok well i cant create it in the first place

shy swan
#

So you can't see the "Start new" button?

quartz moth
#

Are you logged into the forums?

slim pendant
#

yeah

shy swan
#

I will check it loading

#

You need 10 content points kowalski

slim pendant
#

You need 10 content points :kowalski:
@shy swan Ugh, what are those

#

why the hell is that even a thing, i just want to showcase the api wrapper fir_think_owo

cinder spear
#

seems a bit unnecessary to have both that and manual moderation

#

can't imagine there's too many rejected requests without it

slim pendant
#

Yeah

unkempt hamlet
#

Well, we don't have any time to moderate this sections, so we've introduced a content count check.

#

As for Unofficial Tools, we need to have a conversation with tool's developer before approval.

cinder spear
#

the instructions for that still lead to Feedback in Development category, which doesn't exist anymore.

unkempt hamlet
#

It is hidden, staff will transfer the appropriate tickets accordingly.

slim pendant
#

Oh well, i guess ill publish it sometime later

shadow marsh
cinder spear
#

suddenly a java stacktrace from a forgotten null-check

shadow marsh
#

Indeed it's from my Plugin

#

but I did a nullcheck

cinder spear
#

redicraft is your plugin?

shadow marsh
#

Indeed it is

cinder spear
#

neat

shadow marsh
#

Well, it's one of mine

#

I have another one too

#

but that works fine

ember canyon
cinder spear
#

online booking for jail stay? Pog

willow beacon
#

Hello, I've just started our discord.py and need help with something. If you can help please DM me :)

quartz moth
#

Its probs best if you post it here @willow beacon so all people can see or join python help discords

slim pendant
#

Its easier to just ask your question fir_lol_laugh

willow beacon
#

I need help on how i can log messages sent to the bots dm's and reply to them with a simple message.

slim pendant
#

on_message and check the channel?

quartz moth
#

Use on_message event and check if the channel is a DMChannel

slim pendant
#

first arg is the channel, the second arg should be the type of the channel

quartz moth
#

This accomplishes the same thing if message.channel.type == discord.ChannelType.private: # DM Channel

slim pendant
#

just that .private is wrong lol

willow beacon
#

learning coding is bad move xD

#

Alright I'll have a look at that

#

And see what I can do

slim pendant
#

why the hell is there a whole class for it and a type

quartz moth
#

¯_(ツ)_/¯

slim pendant
#

Welp whatever, both methods work

willow beacon
#
async def on_message (message):
if message.channel.type == DmChannel``` 
That's what I've understood. Is that right?
#

So far*

quartz moth
#

discord.ChannelType.private

#

Instead of DmChannel

willow beacon
#

ok

#

and how do I do the message logging and replying part?

#

I literally cannot find all of this anywhere xD

#

JS seems to be a lot more popular

quartz moth
#

Its best to go with the language you know the best

willow beacon
#

But from what I was told py is easier so I went with that

quartz moth
#

If you know python. Not worth learning js just for discord.js

dapper echo
#

I literally cannot find all of this anywhere xD
You need to code it yourself?

#

JS seems to be a lot more popular
JS is harder than Py, so Py is better for beginners.

willow beacon
#

You need to code it yourself?
@dapper echo ?

dapper echo
#

What?

willow beacon
#

Now I've got the DM part down. I will have to know how to log messages sent and reply to them automatically

#

What do you mean by code it by yourself?

#

I need to know what I'm doing XD

#

Not just type away

dapper echo
#

You need to code it yourself, don’t expect everything to be on google

willow beacon
#

Well it's more convenient if there is

#

I'll have to figure it out somehow

dapper echo
#

Watch multiple videos on YT, on how to start d.py. (That’s how I learned d.py)

willow beacon
#

yeah I have been

#

I have learnt the very basics

dapper echo
#

Doesn’t look like it

willow beacon
#

very

#

If it was that basic it would have been on the first tutorial I watched kek

dapper echo
#

¯_(ツ)_/¯

willow beacon
#

I think i will be able to figure it out now