#programming
1 messages · Page 24 of 1
Upgrade 
Very noice
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 
I fixed it. Using event#getOldRawColor() and formatting it to HEX (also applicable with the new color value)
Could you in a future update, make it possible to increase or decrease the size of the entries?
what entries?
v1.1.1 has been released of our PHP API Client package 🥳 https://github.com/TruckersMP/API-Client/releases/tag/v1.1.1
This is not a place to suggest TruckersMP features, @distant garden
Where do I say that?
It is already suggested.
So you can do it.
Eventually.
New github appearance looks great, I hope they will implement dark mode into it soon

It was there the whole time
and it's always false
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
What was it planned to do though?
Exactly what it's name is. Show your details on web maps (i.e. ETS2Map)
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!
There is no way to decompile the game. Reverse-engineering only.
only the hard way? 😦
Yes.
ouff. Well thanks for your answer
Can you recommend me a tool? I know that I could use Ghidra.
IDA Pro
thx
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.
Injecting
Sounds shady
That's how TruckersMP works
CPU is at 100%. Thanks Ghidra. My warm room is getting hot. ouff
@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
yeah i know this but I wanna go deeper.
Alright. Modifying freight market is a bit vague, so wanted to make sure you're aware
Yep sure
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}";`);
}
What's not working with it?
sorry works already have found the error
Yeah
I present to you: Schrödinger's folder
For all those people who find it more convenient to bother you with their question rather than search it for themselves.
@unkempt hamlet Would you write dm?
Uh, you want me to send that link in your DM?
😂
lmao
Well, do it on your own - it's really simple, unless you want to have features that are not simple anymore 
in Discord.JS, one can do this in a few minutes as there are a lot of tutorials for it as well
it's also possible in Java - you just have to know, what is what 😄
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
I tried once Discord.JS - but I just was too stupid to learn JS and/or understand it 😅
Its best to code it in the language you know the best, there are tutorials available for most popular languages
True ^
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
exactly that is what I thought also, so I continued using JDA and it works well 😄
All it is, is an API wrapper
If you wanted to, you could just use API calls to do the exact same thing
yeah, but not all these wrappers are good tbh
True
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
What was it out of interest?
working with the guild preview (which is available only for partnered guilds)
What do you think about JDA, Shawny?
Still thinking about rewriting ModMail on Elixir...
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
it is just hard to set up
I like Elixir better
Anyone heard of IHP framework?
https://github.com/digitallyinduced/ihp
I think Prise Log. has their bot in C#
more folders, please
well, it's working 😅
it does not have to be bad, just all these getters...
discordjs ftw

JDA is not bad, it seems to be a complete library and it has a lot of events as well
okay, so you think, it's okay - but you wouldn't use this, if you don't have to, right?
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
Well, I don't think JDA is overcomplicated (probably because I work with it soon a year) - but for others maybe 😄
it's java...
I learned Java because Minecraft is written in Java tho 😅
but as Coolio mentioned, feel free to work with whatever you want to if you feel comfortable in it
excatly
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
languages are all the same, at the end, everyone must use what it's better for himself
I agree 😄
but also with good dev skills Shawn, actually it's really simple

if you know it, maybe you can write a discord bot too 😄
What is Assembly again 
Bruh
I think I heard it somewhere a time ago... but I can't assign it to a language 😅
nothing important
Wasn't Windows written in Assembly - or am I completely wrong? 😅
I would never know where to start lol
I guess thats the same with everything though, you learn
ye... assembly isnt proper simple 😄
Why I (also) love Elixir (with Phoenix)
okay, I am definitely not going to start coding in Assembly
didn't understand anything lol
well, it is not the simplest language but one must know it for reverse engineering
what's phoneix?
yep, so do I
Phoenix is an Elixir web-framework that gives you peace of mind from development to production
ah, you too 😄
interesting
That profile pic xD
nostrum along with coxir are trash imo
dat profile picture x3
how come?

They're outdated and buggy as hell
I figured that we don't need that much functionality for ModMail, so I can go ahead and write a simpler API wrapper
a bit of overkill if you ask me
cannot you just fork one of those and fix + update it?
It does sound like a lot of effort xD
Meh
you need to work with the websocket and API, and implement events
That's easy to do with Elixir
Also, Phoenix has a massive support of Websockets
That's why I hate nostrum
https://twitter.com/taylorotwell/status/1277709898244141062
so many people use app/Models in Laravel
Spicy Monday poll... don't respond with some "I follow DDD and put them in contextual directories" thing either 💋
253
Well, depends on what are you trying to develop
@opal arch it's wrong or not put models under app/Models? I mean, it's against some laravel design rule?
It's up to conventions in your projects.
I see it more than a convention per single project. as there are namespaces and luckily now they exist on php, should use them
Yeah, I meant that
after 18 years of .NET folders and namespaces are a state of mind :D
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 😄
For Laravel 8.x, if you have a Models/ folder under app. All commands which use models will pick that up automatically 😄
Any particular reasons? Or just gut feelings?
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
php could be used only with frameworks like laravel, without there is too much work to get things working good
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.
yes ok
but it's not plain php, is always a framework on top
I mean, you can always use vanilla PHP for your projects, it only depends on your qualification and experience.
and there is people using vanilla nowadays? it's crazy :D
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
Well, my fellow countryman uses vanilla PHP for rendering with Vulkan.
But that was 2015 👀
what a mad lad
my enjoyment of a language mostly depends on the IDE experience and how good the intellisense is.
@cinder spear you are able to make vscode works good with php and laravel?
I have not yet at least
It would not be the same level as PHPStorm, but it's doable
I migrate myself Sublime Text -> Sublime Text 2 -> VS Code -> PHPStorm
I don't know anything about coding, this chat is very interesting to me 
But I'd like to learn something 
If you know nothing about programming, basic Algorithmics is the way to go first.
Thanks CJ! I guess it's summer, I have nothing to do. So might learn something new 😄
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)
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.
I'll have a look thanks
Basically, you need to install Laravel plugin https://plugins.jetbrains.com/plugin/7532-laravel/ and this package in your project https://github.com/barryvdh/laravel-ide-helper. I also recommend to install PHP Advanced AutoComplete, Php Annotations, Php Inspections (EA Extended will do, but I really want to subscribe to Ultimate), PHP Toolbox.
but... it's free? :D
There's a community edition of PHPStorm if I recall correctly
Has less features, but it's free
Nope, I used to use EAP builds (test versions for free)
Aahhh I'm more used to IntelliJ IDEA, which does have a community edition. I just assumed all JetBrains' product had a community edition
expensive
It is, but once you have it, you'll never want to go back
which is why I don't want to try it in the first place 
Hahaha, try the 30 day free trial 
for js, ts and go vscode has been amazing
Well it is, vscode is great for web dev
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
I use WSL for postgres and redis 
redis is in-memory apart from the infrequent snapshots, postgres I don't think stores that many individual files...
npm on the other hand 
Bruh
currently my personal project dev experience is opening up vscode locally, connecting it to an arch linux server and port forwarding the app
Running Homestead locally via Hyper-V
I used laradock for laravel locally
works pretty well
much more convenient than having to manage a full VM
Yeah, I used that too before migrating to Homestead, Docker had some issues on Win 10
You can even found some PRs from me 
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.
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.
This is not a place for suggestions.
Got it
I mean that would not be easy tbh
If we were to implement this, it would be for verified VTC only.
Yeah, that's a good idea actually.
However, there would have to be a verification system setup, but that can't be too hard.
Yeah
It is set up already
Also a sensible skin maybe like a verification where you send your skin in first
Yeah
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.
Getting 50 members is pretty challenging but can be done if you dedicate yourself
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.
^
Discord now allows you to connect your account with GitHub and show it on your profile.


woah
nice
TruckersMP API Changelog 11/07/20:
- New properties to /v2/player/ API endpoint - patreon (object), permissions.isStaff (boolean), permissions.isUpperStaff (boolean)
You can find the full description in our API documentation: https://stats.truckersmp.com/api#players_lookup (should be updated later this week)
Nice 
Botdottir could announce it, though 
We give her a carrot and she announces stuff for us

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

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

Lasse is untouchable
@shy swan 
Lol.
iOS does not support the GitHub thing yet.
My profile breaks your app then as well
Oh yeah
On Android it doesn't have a logo.
For me, it does
Android alpha is working fine.
Ah, ye, alpha 
Android 1:0 iOS


Heh x3
Seems the iOS beta testing group is full
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

Fixed now 

Windows Sandbox is a godsent.
it is very nice
I'm assuming https://ptb.discordapp.com/channels/307433337126125568/349171885013205001/731417943229071390 will be included here soon? https://github.com/TruckersMP/API-Client
@quartz moth I’ll try get the API Client updated today/tomorrow 😄
Cool thank you 😄
Free website themes & skins created by the Stylish community on Userstyles.org
YESSS
Can somebody help me?
Don’t ask to ask, just ask. 

German translation coming 
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.
There is no language switcher, so 
I hate when I click on someones profile, and he has GitHub linked. (On my IOS)
Yeah CJ, but this exists https://dontasktoask.com/es/
Well 
TIL GitHub supports profile readmes by creating a repository with your username as its name and placing a readme inside it, e.g. https://github.com/3ventic/3ventic's README.md shows up on https://github.com/3ventic
I hate C++ sometimes so much 🤣
Just to check is the rate limit for the API 60 requests per minute or am I making that up?
Which API?
Ohh lol, is there a TruckersMP API? Unfortunately I can't help you with that 🤷♂️
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)."
Wanted to see how true this was found this: http://www.ecs.umass.edu/ece/koren/ece568/papers/Pentium4.pdf
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?
Expect 60 requests per minute. No SLA on that though.
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
That's ok.
👍 Thanks for the reply
You did not select a database
Also, what is the type of Number row?
What's the type?
You're trying to set an int value for varchar row
Use prepare method to make your queries safer.
Ye
But it's safe enough for what I'm doing. Also, the bot is in the same host than mariadb.
"Safe enough" motto is dangerous 🙂
All DB queries with user data must be safe by default. prepare doesn't even make your code complicated.
Well
I'll need to see how to integer prepare to my js
execpt if it's already in the mysql module
(nodejs)
You can pass x.toString() to be sure it is varchar.
Shouldn't this be TruckersMP developers and not TruckersFM? 😛
No, everything is right
What do TFM have to do with game servers though?
Their API was returning completely something else than it was supposed to
And as you know, C++ is not a dynamic language
probably should have safe-guards in place not to crash under such circumstances though
resiliency 101: never trust a network connection
should sounds too professional 

Well, it was the issue of the library as well
thanks ❤️
well, welcome in the world of Radio API broken every two weeks :D or changing url, changing response, going down suddenly, behaving strangely :D
inb4 Patreon API goes like that
@mossy cloud I actually think we did it because of that suggestion
👋
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"
😂
Yep, same here

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 😂
it is
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
#veryprofessionaldevatwork 😂
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😂
So, I also got the message now because of bot developement
yup
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...
v1.2.0 of the PHP API Client has been released 🥳 (https://github.com/TruckersMP/API-Client/releases/tag/v1.2.0)
👀
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
Start with basic algorithms.
such as?
I have no clue at all never done coding I've just messed around with html which is pretty basic
Do you plan on Software Development or Web Development?
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 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.
Thanks for the info ill have a look! @somber linden
You're welcome.
I would not recommend C or C++ for a beginner
Flex!
Lol
🙂
Good job I guess
I think most people have got it
Ah ok well I have no idea what it is
After some advice I think I will learn CSS first and then JavaScript
sounds like a good idea for web development

HTML5 + CSS3 is turing complete so if you want... 
Also, Electron 
Even I got it lol
Hmm, I wonder what ModMail uses 
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...
CSS is a programming language 🤔
yeah?
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?
depends where you draw the line https://stackoverflow.com/a/5239256/1780502
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/
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!
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
Video highlighting my research on PowerPoint Turing Machines for CMU's SIGBOVIK 2017
Read the paper:
http://tomwildenhain.com/PowerPointTM/Paper.pdf
Download the TM:
http://tomwildenhain.com/PowerPointTM/PowerPointTM.pptx
Original video (without live background noise):
http...
bruh
Pretty sure OVH is down in places
That's trying to sign into my account server, our main web server is currently down too
Probably someone cut their wires again 
Talking about experience 
http://status.ovh.net/?do=details&id=4376
OVH RSS Feed
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. 
Ouch
The Laravel Boilerplate Project - https://laravel-boilerplate.com - rappasoft/laravel-boilerplate
Looks kinda cool
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
am I not smart 😛
Because the RaspiOS is basically Debian, the same OS my server has
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
Well a database running for tests will always be light to run x)
put some good old ssl certificate to connect to the database and you're good to go

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
I have before in the login music to play with
What do you mean exactly?
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
Please translate it, if available, your text with DeepL.com
because you have the german role, it is available
I would like to play music during the login image soo Good ?
Okay, that's now more understandable. So, how would make that sense? As maybe the login screen would just be a few seconds 😄
And who I am Login dan stop
oh
So, if you open the site, the music begins to play. As soon as you get logged in, the music stops?
This Musik Play and login dan stop
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
Hm, okay - I guess that's a website then?
No ehm Ragemp Gta5 Roleplay my littel projekt for me
in which language is it written? If not Java, I can't really help you out
Well, RageMP is in Java
thats interesting. Anyway, show me the code and I will take a look onto it tomorrow.
@shadow marsh Oki Thank you very much.😋
No problem 
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.
I know, I understand Java, not JS
ragemp is in js
Well, then I can't help lol 
You're talking about the launcher, I guess
I don't even know, what RageMP is 
it's a multiplayer platform for GTA V
no, separate from GTA Online

more similar to what TMP is to ETS2
Ah, you mean, making GTAV SP to MP?
a custom multiplayer hook to singleplayer yes
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
fivem is the most popular
I think, I've to agree with you. Now I know, what FiveM is actually
or at least the best known
Well, FiveM is the one where I lost my current Ex-BF
playing for actually over 12 - 15 h / day on it
oof
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
that's why I really not like it (I don't like RP really, if I want realistic things, I can go outwards lol)
Bruh
Anyway, that's not relevant for here. Fact is, RageMP isn't Java and so I can't help
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
I neme music that I may stream @unkempt hamlet @haughty zephyr
the music of yesterday was an example
ETS2 Has which development language ?
The game is made in C++
Ah Ok Niccce @north flax This is nice Dev work
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. ...
Interesting.
Depends where your server is based I guess though. Although im UK my web server is OVH, France
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
I've my domain at OVH, so 
Good old times... GTAV RP 
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
Latest code show-off :D
Plasma's project management system
Made over the course of yesterday night and today
That's awesome 
Thank you ❤️
When assigning tasks to people, it only shows people in the team the project has been assigned to
No problem, I have big respect for web developers and what they do
Wow, thats much more amazing 
No more trello for us ❤️
Jesus christ, and I just can do "Hello World" in html 
We all have to start somewhere, just keep going at it, you will get there ❤️
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
I also got my goal for it 
Nice work penguin 
Thank you! ❤️
I'll never be able to do that xD
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
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
I checked the repo and Taylor has already made a lot of fixes to it
It might work well now
Ah cool, thanks
📰 | TruckersMP REST API changelog
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
This topic will be used as a changelog of our TruckersMP REST API. Check our current API documentation here: https://stats.truckersmp.com/api
i kind of want to make a game but i dont even know where to start
If you don’t know where to start, just don’t makw a game.
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.
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
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?
That's exactly the point (or perhaps one of them).
oh, okay 😅
lol
That all depends on you @jade viper 😉
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
one of my first projects was a game made on https://github.com/Jypeli-JYU/Jypeli
At Friday 5.30pm ^^
ye true i might spend some time researching and then try
Always have a ROF (read-only friday) unless you want to stay up/behind late fixing issues 
oh is that like on fridays you make sure everything is working
Nah, on Friday's you make no major changes to anything
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.
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
Happy System Administrator Appreciation Day, everybody involved! I know that most of the sysadmins are devops by nature.
Thank you! And to you :)
You mean sysadmins are fixing the mistakes of devops 
https://github.com/iraizo/truckersmp.ts Im working on a truckersmp API wrapper made in TypeScript 
@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 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
No worries 😄
@rugged copper Why are there no properties for the VTC?
What endpoint are you trying to hit?
@rugged copper as example https://api.truckersmp.com/v2/vtc there is no description of what is actually returned like here https://jelbrek.icu/kda8e7yp.png
interesting mix of promise and async-await...
Yeah i will change that, but not now
Ah, we just haven't got round to adding it yet. You can always use a mixture of visiting the API and maybe using some of the documentation from the PHP API Client (https://github.com/TruckersMP/API-Client/wiki)
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
And why would i do that instead of waiting for that request to be done first?
...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

async-await is literally promises with a cleaner syntax
I guess
¯_(ツ)_/¯
@cinder spear https://jelbrek.icu/kda9bzs5.png ?
and ig try catch to catch any request errors
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 
GitHub probably shouldnt be your only backup source tho 😂
Yes... you are true 😂
Ye, add Gitlab and Bitbucket 
I am backing up in /dev/null
the most secure, no-one's ever been able to read it back from there 
mv * > /dev/null
@cinder spear Have you got a second?
not really
I will point out though, that availability is one of the three pillars of infosec, so /dev/null kind of fails in that regard 😛
@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
Im nearly done, just need to implement the rules and version endpoint
👍
yo one quick question does having your own assetto corsa server slow down your pc or wifi?
A server obviously uses your hardware and network
Ye but does it slow it down
Well if its being used ofc its being slown down
not really a question for this room, is it? Unless you're developing it
Server, like any software, draw resources. More players - more resources. You can watch Resource Manager to check how it works - https://www.google.com/amp/s/www.ghacks.net/2017/12/28/a-detailed-windows-resource-monitor-guide/amp/
https://jelbrek.icu/kddff6y2.png Alright, done. All endpoints and ts/js support
Maybe some tests? 
Maybe some tests? :sadcat2_peek:
@unkempt hamlet Tests like?

@unkempt hamlet Oh you mean examples on how to use it?
No, I mean literal tests, to be 100% sure it is working how expected.
But proper documentation won't be useless either.
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
typedoc is nice for generating documentation
jest is nice for testing
@slim pendant you could the same thing with Trucky API? 😄
@raw notch Trucky API isn’t in typescript and I’m pretty sure it doesn’t have all endpoints
and mine is maintained
no i mean a client 😄
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
are you writing a client for TruckersMP api?
He IS the Trucky 
Im writing an api wrapper
exactly, you could do it also for Trucky 😄 mine is outdated but maybe could be a good starting point

CJ help me 😄
He is requesting a new wrapper specifically for Trucky API
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 
As always, Maurice 
What does it contain?
I’ll make myself something to eat and look into it
well the docs is a bit outdated 😄
oh god thats a lot
well im going to implement it but its probaly gonna take a while
that's good, no hurry
https://api.truckyapp.com/docs/
@raw notch Now have you ever heard the term "blatant advertising" before?
😂
Is he the maker of it? lol
Yeah lol
@mossy cloud don't think Trucky API should be advertised ;)
@slim pendant I didn't helped you? when?
I mean with implementing your api, i was just sarcastic
oh ok :D
@harsh minnow Wow, typedocs is a wonderful tool it saved me so much time, ill implement it into the github wiki if that works
yea it's nice, supports themes as well, but I don't know much about that tbh
Yeah ill just use default markdown with a plugin
To be honest ill just self host the documents on a server i cant be bothered writing actual docs for it
This is a chat about development in general, not a QnA channel to chat to TruckersMP developers @misty shore
@raw notch Can you give me an example request for https://api.truckyapp.com/v2/traffic
@slim pendant looking at the API docs doesn't help?
/v2/traffic/servers to get available servers
then use the shortcode with /traffic endpoint
ah okay it wants that
yes
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
@raw notch https://jelbrek.icu/kdhp72fn.png
ets2 lowercase
...
it's documented 😄
🙂
nvm it takes params
when there are some expected values i try to show them in docs
@raw notch Could it be that traffictop dosent function?
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
Alright, im doing the interfaces only right now anyways
It's nice to see this chat alive
https://jelbrek.icu/kdhvntzx.png the lib is also pretty alive
Documentation for truckersmp
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?
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).
Is ets2 in c#? because dotpeak spazzes out
of course not
and c# is not very efficent for such a Game. It is written in C++ as far as I know
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
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
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.
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 ^^
is there a way to get gps information from the game?
standard DirectX functions
Welp, I wish you good luck
I am also a bit curious about you say that you have experience with this, although, you asked about injecting. Nevertheless, mwl4 was answering a similar question here a year ago. It might be helpful for you: https://discordapp.com/channels/307433337126125568/349171885013205001/580100644434739213
the problem is to get the base address for each version :D
@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 🤷🏼♂️
There is SDK called Telemetry: https://modding.scssoft.com/wiki/Documentation/Engine/SDK/Telemetry
Although, it will not help you with the tasks you need :/
But it might contain some useful information for you to start with
Ahh I was looking for something like that. Thanks.
is there a way to get gps information from the game?
@raw notch GPS information?
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?
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
Depends
The engine indeed has some things that are queried or calculated without storing it in any object like economy or similar
do you think are calculated for each frame In realtime?
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
I see, thanks
@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
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
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)
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?
They do! And its awesome
Lmfao that is really helpful for reversing the functions I guess
Problem is I need to learn more x86 assembly
i only know ARMV11
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?
@limber reef Its a part of the logger software LogIt that vtlog uses, has to be enabled though as its currently a beta feature
@meager spoke Your status is so true.
I'm
this close to have a mental breakdown cause of that @#$*% update
Have you followed the guide ?
Yeah I'm reading it as we speak
Otherwise I'd just throw my PC of the window
message.delete(5000)
discord 12:
message.delete({ timeout: 5000 })
W..why discord.js
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
Poor Chris... just move to JDA 
Use

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

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
What do you want to do?
.displayAvatarURL - discord 11
.displayAvatarURL**()** - discord 12 example
So a function and a property
I'm updating my bot from 11 to 12
I guess they change structures
Yea a lot
Thank god i don’t need to use .js lol

Over the 5 years the structures ever changed, only small things like needing a class to load a cog
@meager spoke the change done by them is really welcome, tbh, as it feels like a completed library now unlike previously
This probaly dosent fit here, but how can u create a topic on the dev forum? i want to showcase truckersmp.ts
The amount of changes is 

why the hell does ets2 load the cryptopp lib
Yes, I am living not in today, I live some days/weeks/month before 01.01.1970
- but srsly, what's that 😂 shouldn't the Timestamp be positive and not negative? (The Date is correct)
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
it is an unix timestamp... indeed
Hmm, i guess your source is the truckersmp api?
ah, maybe you casted the value or something
I will take a look onto it so or so
or you can just correct it by making it positive i guess
because it is weird
@harsh minnow https://doc.deno.land/ holy shit this is awesome
Automatic documentation generator for Deno, a secure runtime for JavaScript and TypeScript.
oh yea, it looks nice.
https://d0p3t.nl also nice
@harsh minnow What is that theme?
uhh
it seems nice, but the blue text is really hard to see
haven't looked, but maybe see https://github.com/d0p3t/fivem-js

i wonder when they are gonna update tmp because the update is only some graphic changes
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
mhm i mean when im playing on 1.38 feels like there is only some graphic things added
feels like it
Ye it might seem like that but there are a lot of code changes which take a while to implement into TMP 😄
ok
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.
Iirc @sick anvil trucky do an overlay which I believe you can customise but not too sure about that 😄
Hmm. Interesting.
I was actually looking forward to custom made tracker overlays tho 😄
Anyone have used Flutter framework? I need your opinion
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 
@shadow marsh Well.. what is the exception
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]```
name is null
or well whatever node is
i dont know java but where does node come from?
that is.. very weird
indeed
obj.getJSONObject("artist").getString("name");
that's why I asked here 😄
why dont you do it like that
bruh
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.
Java be like
Interesting, i have a API for my keyboard can i do the same thing with the inbuilt sdk?
@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
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
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?
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 :)
it could be but with a sense :D
@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 where can i find that
Or here if you want to post your tool
yeah im on there
But it needs to be approved by a developer
but i cant see start new topic
And follow these guidelines
well i cant create it in the first place
So you can't see the "Start new" button?
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 
seems a bit unnecessary to have both that and manual moderation
can't imagine there's too many rejected requests without it
Yeah
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.
the instructions for that still lead to Feedback in Development category, which doesn't exist anymore.
It is hidden, staff will transfer the appropriate tickets accordingly.
Oh well, i guess ill publish it sometime later

suddenly a java stacktrace from a forgotten null-check
redicraft is your plugin?
Indeed it is
neat
imagine u would develop smth like this Form 😄 aiaiai xD
online booking for jail stay? 
Hello, I've just started our discord.py and need help with something. If you can help please DM me :)
Its probs best if you post it here @willow beacon so all people can see or join python help discords
Its easier to just ask your question 
I need help on how i can log messages sent to the bots dm's and reply to them with a simple message.
on_message and check the channel?
Use on_message event and check if the channel is a DMChannel
The isinstance() function checks if the object (first argument) is an instance or subclass of classinfo class (second argument).
first arg is the channel, the second arg should be the type of the channel
This accomplishes the same thing if message.channel.type == discord.ChannelType.private: # DM Channel
just that .private is wrong lol

learning coding is bad move xD
Alright I'll have a look at that
And see what I can do
why the hell is there a whole class for it and a type
¯_(ツ)_/¯
async def on_message (message):
if message.channel.type == DmChannel```
That's what I've understood. Is that right?
So far*
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
Its best to go with the language you know the best
But from what I was told py is easier so I went with that
If you know python. Not worth learning js just for discord.js
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.
You need to code it yourself?
@dapper echo ?
What?
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
You need to code it yourself, don’t expect everything to be on google
Doesn’t look like it
¯_(ツ)_/¯
I think i will be able to figure it out now






Dosent want to help me but let me do the work


