#programming
1 messages · Page 19 of 1
@ember canyon You need help with discord rich presence?
Yoo
Not at home currently but I used discord rpc in the past without using the dll. It was c++ so idk if c# implementation would be the same
I think it would be r
pretty neat if someone would do a C# wrapper for the sdk
Oh if you’re looking for that I guess this should do https://github.com/Lachee/discord-rpc-csharp or https://github.com/Jimmacle/discord-rpc.net
C# custom implementation for Discord Rich Presence. Not deprecated and still available! - Lachee/discord-rpc-csharp
A C# wrapper for the https://github.com/discordapp/discord-rpc library. - Jimmacle/discord-rpc.net
That would be easy if there was a C# wrapper, yeah
“A C# wrapper for the [link] library.”? I’m either really dumb and missing a part of the conversation or?
I think he is talking about the scs sdk?
thats the only thing I could imagine if it wasnt the rpc ones
There isnt a c# wrapper for the scs sdk because thats simply not how it works
Easiest solution is to use etcars or similar
Yeah, I know that. Thought he meant discord rpc
(Reading something while having slept 4hours isn’t the best)
tbh, I had a hard time figuring out if it was the scs sdk or the discord rpc he was asking about
You dont get the use?
The use is to NOT use external programs
But have sonething that loads with the game and exits with the game
I will pay a friend to write a c# wrapper
Hello guys, easiest way to make ETS2 skins?
I don’t think this is the correct chat for that @tranquil raptor you’re better off going to scs’ forums
Alright :)
@ember canyon I think, that if you will have C# wrapper, there must be C# app running on the background to cooperate with that SDK plugin. Don't think there is a way how to work with SDK using C# without app running on background.
I still don’t get if we’re talking about discord rpc or scs’ sdk 
@trail cove hes on about the scs sdk
And I'm not quite sure he fully understands how it works and the major functional difference that seperates it from the discord rpc sdk making a C# wrapper not possible (in way you can with the discord rpc)
Ah
Im getting crazy. I really dont know what Im doing wrong when launching the game. I tried with a test dll from mine with success, so that's not where I messed up. I tried adding " -64bit" argument with no success. Anyone has an idea what I'm missing?. edit: noticed on crash.log that Im getting an "EXCEPTION_ACCESS_VIOLATION" exception
I really dislike doing this, however I'll post my code and if anyone of you can see where I messed up, you'll brighten my day also hinting of where I went wrong instead of spoon feeding me the code would be appreciated too (i've also tried different launch params/command args with no success either, from reading logs, it seems that it stops after Mpuse input is initialize)
//proccess id (variable = "id") is correct; path is core_ets2mp.dll path, and it's correct
bool Injector::b_Inject(DWORD id, char* path)
{
HANDLE tarProcess = OpenProcess(PROCESS_VM_WRITE | PROCESS_VM_OPERATION, false, id);
if (tarProcess) {
LPVOID loadLibA = (LPVOID)GetProcAddress(GetModuleHandleA("kernel32.dll"), "LoadLibraryA");
LPVOID loadPath = VirtualAllocEx(tarProcess,
0,
strlen(path) +1,
MEM_COMMIT | MEM_RESERVE,
PAGE_READWRITE);
WriteProcessMemory(tarProcess,
loadPath,
(LPVOID)path,
strlen(path) +1,
0);
HANDLE remThread = CreateRemoteThread(tarProcess,
0,
NULL,
(LPTHREAD_START_ROUTINE)loadLibA,
loadPath,
NULL,
NULL);
WaitForSingleObject(remThread, INFINITE);
VirtualFreeEx(tarProcess,
loadPath,
strlen(path)+1,
MEM_RELEASE);
CloseHandle(remThread);
CloseHandle(tarProcess);
return true;
}
return false;
}```
Thanks ❤
do you also get any kind of other logging information or error/warning?
Or does it simply throw EXCEPTUION_ACCESS_VIOLATION?
Do you get an error code or just "EXCEPTION_ACCESS_VIOLATION"?
Launch game -> the second the process gets created, it injects the dll -> "standard" TMP game crash (as can be seen in the screenshot). Detailed crash log includes the adresses, etc (https://pastebin.com/U1mQ4da3 always same exception)
log says C0000005 (EXCEPTION_ACCESS_VIOLATION)
That's the typical windows exception code for access violation that can be fixed in 99% of cases by running the application as administrator
Pretty sure VS does that by default, I'll try manually running it as administrator tho
VS doesn't do anything as admin by default
I always thought it did 🤔 anyways, that's not the reason but I have an idea and I feel dumb
I’m either becoming dumber each day or missing something. Even having created the process with administrator privileges it still crashes. Any idea why that might be?
You got me there
This may sound dumb, but one time I had a error like this and it was a .dll file missing
It had something to do with the file regarding privileges when you run programs. I don’t know if it’s the same for you for me it was a simple look online for the missing file
What do you mean? I’m pretty sure this isn’t my case, as their launcher works correctly and injecting other dlls works just fine.
I mean, everything works fine, even with other dlls. Problem is injecting ets2mp core (dll), which crashes the game with the exception you can see above
Do you think you can get just that file
What do you mean? The path is correct, otherwise nothing would happen
I know the path is fine
Mean the actual script (if you want to call it that) that is responsible for “injecting” it
If you know what I mean
If you mean my injector function, that is correct and is the following:
//proccess id (variable = "id") is correct; path is core_ets2mp.dll path, and it's correct
bool Core::b_Inject(DWORD id, char* path)
{
HANDLE tarProcess = OpenProcess(PROCESS_ALL_ACCESS, false, id);
if (tarProcess) {
LPVOID loadLibA = (LPVOID)GetProcAddress(GetModuleHandleA("kernel32.dll"), "LoadLibraryA");
LPVOID loadPath = VirtualAllocEx(tarProcess,
0,
strlen(path) +1,
MEM_COMMIT | MEM_RESERVE,
PAGE_READWRITE);
WriteProcessMemory(tarProcess,
loadPath,
(LPVOID)path,
strlen(path) +1,
0);
HANDLE remThread = CreateRemoteThread(tarProcess,
0,
NULL,
(LPTHREAD_START_ROUTINE)loadLibA,
loadPath,
NULL,
NULL);
WaitForSingleObject(remThread, INFINITE);
VirtualFreeEx(tarProcess,
loadPath,
strlen(path)-1,
MEM_RELEASE);
CloseHandle(remThread);
CloseHandle(tarProcess);
return true;
}
return false;
}```
That’s pretty nice
👀
@trail cove their, as in TMP? That one is written in C#
Yeah. I’m trying to recreate it (and add some features, like in the one you made) but in C++/CLR , which is basically .net for c++. My problem is that when injecting it, TMP crashes and I’m not exactly sure why
I'm searching for a frontend dev 👀
Guys, a client requested to send a report with static and dynamic scan report, vulnerability scanning (owasp). there are tools that creates reports like those requested for a .NET web application?
(in an automated way :D)
kali linux, which is easily available on the win10 store, has most of the standard free tools for that type of stuff
@ember canyon yes, @cinder spear thanks. a good performance and load test with scripting support?
@raw notch i think 3v didnt get what you mean
i think so instead, because kali is a linux distro that i can mount on a vm and use it do tests. btw, we'll hire an external company for that.. so.. :)
And i think what you want would involve writing your own unit-tests that can check if xss and stuff are possible
it's another way to do that. but there are tools, graphical and semi-automated that could do this for me. the problem is pick one from the market
I just said kali has most of the free tools so you could just try them out
you should have own unit tests, but those are rarely good for sending a vuln scan report to a client

@kindred pond some time ago, you posted here the code for writing commands into console. May i ask you about new addresses for 1.35 (if you already have them)? I'll be very grateful 😃
what was needed there?
My mod will be only for ETS so no problem 😃 Thank you very much!
🙄
The Windows Terminal preview is now in the Microsoft Store! The Windows Terminal is the new, powerful, open source terminal application that was announced at Build 2019. Its main features include multiple tabs, Unicode and UTF-8 character support, a GPU accelerated text rend...
@fallow flume This channel isn’t to contact the devs about issues with TMP, create a bug report on https://truckersmp.com/support
^ postmortem about yesterday outage
@unkempt grotto it was not from me 🤔
Your message with a screenshot from the site is directly above mine saying create a bug report, it is very visible
I am referring to the problem with the site this problem had others
Yes, to report a problem with the site you can create a bug report, this channel is not to tell the devs about problems with the site
which is the bug reporting channel ?
You submit bug reports through the support system https://truckersmp.com/support
It has been fixed already
And that ^
coco Well, why did you say this channel is not for bugs reporting 😃
Because it isn’t?
I was very clear here, bug reports go through the support system
a ok 👌🏻
TruckersMP Announcement
We have added new properties to our API /servers and /player end-points in versions 2.8.6 and 2.8.6.3! For more information check our development announcement with the newest website version: https://forum.truckersmp.com/index.php?/topic/83398-website-v28-release/
If you want to know more, check our actual API documentation: https://stats.truckersmp.com/api
https://laravel-news.com/laravel-5-8-25 this looks pretty cool
uhm, is cloudflare down again?
Yeah
LOL
User Inyerface - A worst-practice UI experiment
this is triggering me
Visual studio
depends on what you want to do too
Can anyone recommend me a laptop? Max max max budget is £800, I am a web developer but looking towards starting software or app developing, I'd like something which is light and slim but preferably a SSD and 16 gb ram :)
8gb ram will do ish
preferably 14 inch screen
Oh yeah sorry :P
Hi, I want to try to make my own tracker for ets2mp which focus on me. Is there something to help ?
Any1 good at php?
Eww php
What do you need help with?
@ember canyon is it for a vtc?
For specific user.
@static wind
How the TMP client core injects mods to the game? The mods are already blocked. It seems like the core imports that .mp files into game. But how the developers did it? Just asking for get rid of my curiosity.
The log file says [zipfs] to the MP mods as same as SP mods. But there is no way for importing it except mods folder.
Yikes... That's so weird... Can't do this on mobile. 😂 https://discordapp.com/channels/307433337126125568/349171885013205001/595993629584130065
You won't me able to add your own mod to TMP anyway. Since we have security in place on the client and server side.
I'm not trying to add something in your mode. I just trying to get rid of my curiosity.
TruckersMP Announcement
The /servers API end-point has been updated in the latest website update (v2.8.7) when a new property has been added - displayorder.
Servers in the response are now also ordered by it. For more information check our API documentation: https://stats.truckersmp.com/api#servers
...but there's a reason everyone's settled on a standard way of typing them
tried this last week for the first time and I'm never going back to the old ways of using my shell https://github.com/junegunn/fzf
Was talking to Shawn about this last night it's pretty cool
People installing stuff like CCleaner to clean their cookies, then complaining about websites logging out on their own 
xD
And Shawn sent it to me xD
😂
@unkempt hamlet the new vtc thingy is already supported by truckersmp api?
Not yet @raw notch
@opal arch thanks, it's planned to?
Will be added later, indeed
will be also a vtc api too?
I cannot really now say what we will implement to the API as we have not been looking to it closely yet (unfortunately). I believe there will be an API call for the VTC profile and that some information will be added to the /player API end-point.
thanks
Another helpful package https://github.com/spatie/laravel-model-status
Anyone here use PHPStorm?
Ever since I updated when I try using the built in webserver I get a 502 error which is really frustrating because I can't edit local files
I've recently switched to it but don't use the built in web server. I prefer to use Laravel Valet
I rolled back to a slightly older version and it's fixed. I really hope they fix the issue though 
Have you tried a clear installation?
guys I'm starting to use laravel, someond could suggest some good and useful package to install?
You shouldn't use any packages to start with
Yes.
First learn framework
like this https://laravelvoyager.com/ , from docs, i think is super powerful and helps to get up the admin
yes, but maybe there are some common and good packages that helps without reiventing the wheel
They're now mostly included in a standard package, like a Debugbar
(like in nodejs, passport for authentication are consolitated packages used everywhere)
for example, there is a good package to manage openid auth with steam?
and about that voyager?
I didn't used it that much. I am familiar with it, but I tend to made admin page myself since I have more control of it.
No problem 😉
reminds CodeIgniter but it's way more completed and complicated
I moved from codeigniter to Laravel, best decision
Shawn btw I did try that but no luck, anyway rolling back isn't that bad tbh
i hate mysql when it doesnt collaborate with user authentication
SQLSTATE[HY000] [1045] Access denied for user 'user'@'localhost' (using password: YES)
but the user has access for localhost.. event for % ... so?
@raw notch did user has an access to mysql? It has their own Auth system
sure, I'm using a mysql user. I've tried also with phpmyadmin and it works... don't understand why from laravel don't work. works on my local env, don't work on my server
@raw notch you most likely have a blank or wildcard username entry in mysqls users table. It resolves to %@localhost which will match before your own user (using the username@% wildcard). Simple fix, create a user specificly for localhost. Alternative fix, check your users table for an empty username localhost row and remove that row.
I have a question. I want to have my own map for ETS2. And it display only me when I play. I have nopoint to start... Can someone help me ?
@ember canyon Have a look at https://github.com/edoaxyz/vtlog-map
All you need to do is provide the data for the map
Ok. But how need I to provide that ? I don't know how this work.
You'd need a plugin that either sends data to a server or hosts its own webserver from which the map can read data like truck position etc.
Can someone tell me how to activate the "I can do everything" feature? Because i wanna reverse a B-Double , but the option is locked and i dont know the command
@kindred pond do you know if there was any change here?
My app for executing console commands is not working anymore and i'm running out of ideas 😃
@velvet root what do you need? ets2?
yes, ets2 only, latest version
cmd_execute = get_addr( 0x00000001401C6730 ); // ported
# define PRISM_API_GAME_NAME "Euro Truck Simulator 2"
# define PRISM_API_SUPPORTED_GAME_VERSION "1.35.1.13s"
# define PRISM_API_SUPPORTED_GAME_HASH "a1cf444021f7"
Thank you very much, i will try.
@kindred pond it worked, thanks!
Is it possible to find this address by myself? If yes, can you please write me some tips or short guide what should i take a look at etc.
i just don't want to bother you after every scs update 🙂
reverse engineering
ok, found this, not sure if i'm going to right direction 😄
everytime i pick a account to play ats would going on the loading screen and then in the middle of it loading the applictaion would close. And I open it normally
let pete = joke.rip;
<#323726708186546176-307433337126125568-ets2-modding> or <#392259712944570369-307433337126125568-ats-modding> is more suited for that
Does anyone know the code to write hyperlink on VTC post?
@shy swan Thanks Lasse. I appreciate your help!
Here you have a brief list of Markdown formatting. It's more or less the same as Discord's. https://en.m.wikipedia.org/wiki/Markdown
Markdown is a lightweight markup language with plain text formatting syntax. Its design allows it to be converted to many output formats, but the original tool by the same name only supports HTML. Markdown is often used to format readme files, for writing messages in online d...
There is also how you can insert an image to blog post.
@strong quail Thanks. I've already known that.
New branding looks awesome
I've got feeling that every time a look at laravel website, it looks totally different 😄
@rugged copper Agreed, it looks amazing
Never used it before but am gonna start
Do you guys know how to apply fullpagejs?
Just check the manual
What is the default limit for API requests?
Ok thank you
No problem
For all those who use Laravel, me and Shawn have been working on a small Laravel package to extend a couple of the built in commands https://github.com/bensherred/laravel-make-model
Wow, great. Thanks, I'm not using Lavarel, but I'm pretty sure it's gonna help them up. Thanks for you and your's friend work, appreciate it.
I wonder if there is any plan to add the function of viewing applicant DLC in VTC recruitment system?
Developer chat != talking to TMP devs
Anyway, a first world problem - making a mistake in a Git repository. Because you can never remove the history lol
Or storing a password by accident
Oh XD
Imagine doing that in a public repository
Oh rip
you can remove the history in git with some good old filter branch + force push
I've done it a few times to remove sensitive information from github repos before making them public
But well, I have not only meant that... for example things I have done in Botranktir is a thing that is triggering me now as it is starting to be messy in new pull requests 😄
Let's see 
whatup devs
That's a classic...
"Who wrote this mess?"
# git blame -L23,23 Bot.cs
514894d2 (3ventic 2019-05-05 15:07:47 +0200 23) public static string CurrentVersion => "3.17.6";
oh
laravel expert, i've a question for you: any ideas why redirect()->previous() or back() returns to / instead of returning to previous page in production while in local it works fine?
@opal arch @cinder spear
I've never even looked at the laravel website
....and? no ideas? :D
hard to say anything when I don't know how they work
usually how do you redirect back when an action is performed?
like back()->with() to show a success message or an error?
Well, have you tried to simulate the same situation on the localhost?
I write SPAs so navigation is all in javascript
it could be that cookies are either blocked or not getting set correctly on the production page
Can you send me your site, please? You can send it to the DM, too
@opal arch unfortunately i cant now because it's closed to public and I've to set you as early accesser
the strange thing is that back() in other contexts works fine
Well, check if in the header you have referer. If you do not have it there, check if sessions work fine (as 3ventic suggested, check if cookies are okay, too).
Also, what version of Laravel are you using?
latest? I've installed it some weeks ago
maybe the only difference is that where it works, i do back() from a post action while where doesnt work i do back() from get action
but in local works fine... so... i dont get why...
It should work for them, too iirc
i know
and no errors in logs
i see in developer console that the destination page returns 302 to /
so i dont get why...
Have you checked the thing I suggested?
not yet, i cant now, I'm from the phone out of home but lately as soon i can i will check
session is working tho, because authentication works correctly, and other flash messages works too
I'm just thinking about a http/https problem due to cloudflare flexible ssl?
fundamentally i think only https
@raw notch did you check the headers? The previous method in the UrlGenerator class checks for the header first and if that’s not set then the session.
If neither are being set then it redirects to /
You should see a previous url in the session if no header
Ye, that is what I have said 
He only checked the session 😉
Welp
😂
actually i didnt checked nothing because is from this morning that i dont touch my pc :D
Then I got baited from Ratcho 😄
@opal arch @rugged copper i checked a couple of things, effectively the referer in destination page is / in production, so laravel act correctly from its point of view
but i dont get why it's / when i navigate to the destination page from a different url, seems more a browser issue than a server side problem
Do you use Cloudflare? Or something similar? It may be an issue, too
mmmm https://www.sentinelstand.com/article/laravel-redirects-break-when-using-origin-referrer-policy
The Origin Only referrer policy can cause Laravel redirects to break, for example when redirecting back after a failed validation attempt.
yes, on production cf is enabled
the referer policy on response header is "strict-origin"
fixed, https://danieldusek.com/blog/2/enabling-security-headers-for-your-website-with-php-and-laravel using this to set referer policy
Glad to hear that
so Laravel sets that headers?
What do you people use to retrieve data from the SCS Telemetry SDK?
All plugins I found are outdated
ETCARS is outdated, Telemetry Web Server is outdated...
@thick hatch Most likely in-house closed source plugins. I.e vtlog uses my plugin LogIt (which is tailored to be used with vtlog, and is closed source) and Trucky uses its own in-house plugin for their overlay telemetry
I see
You know, I don't have any C or C# knowledge whatsoever so I need to use someone else's plugin, can't create my own like you did 😛 @quick glen
Anyone got any good tutorials / ways to learn Laravel?
Laracasts 💯
Like Shawn said, Laracasts is great. They have a free course for learning Laravel
Ok thank you I'll have a look at that
today in things you don't want to see on a live server
root@3v:~# systemctl list-units --failed
UNIT LOAD ACTIVE SUB DESCRIPTION
● networking.service loaded failed failed Raise network interfaces
😂👍🏻
@cinder spear maybe could add also "don't use root in production"
Yeah
saves typing sudo for every single command when touching a lot of system stuff at once
Aaaaaaaaaaaand I have a JS problem... 😠
Can someone help me?
I add to array thru function elements from JSON.
However when everything is fine and I want to access it outside of function, I get undefined...
What can be a solution for this?
Send a snippet
var url = './top10';
xmlhttp.onreadystatechange = function () {
if (this.readyState == 4 && this.status == 200) {
show_results(this.responseText);
}
}
xmlhttp.open('GET',url,true);
xmlhttp.send();
var array_nicknames = [];
var array_amount_trips = [];
function show_results(incoming_data) {
var arr = JSON.parse(incoming_data);
for(var x = 0; x < arr.length; x++)
{
array_nicknames.push(arr[x].nickname);
console.log(arr[x].nickname);//arusf2011
console.log(array_nicknames[0]);//arusf2011
array_amount_trips.push(arr[x].amount_trips);
}
}
var nickname = array_nicknames[0];
console.log(nickname);//undefined
console.log(array_nicknames); //array[0]```
I made comments, so you can see where I get data and where not
And here is what it gets from JSON
@strong quail you must understand the async way of life
you are calling an async function and print immediately after the array you fill after the async
try to move that console log inside the show_result function
I hate async, it is completely blow my mind, I can't comprehend it.
....
Well... In that case I need to get those data into chart
So use async await or Promises
To show to the user.
Or callback function after the request
yes so you have to invoke chart functions in show_results function
i know
But wait - still... I don't want to do that, what should I do? 🤔
btw, to make ajax calls from browser, maybe you should use something simple like jquery
what do you don't want to do?
I don't want to have approx. 80 lines of code for chart into this function.
So in that case it will be better to use jquery?
so write another function and call it from there
..
It is not going to be 80 lines
jquery simplify a great number of things, like making ajax calls without using native objects, traversing dom, controlling and modifying it, solving also cross browsr issues
see $.get from jquery docs
or $.getJSON
In order to have a small JS footprint you can have an axios
In modern JS you can use fetch like so:
fetch("/echo/html/", {
method: "POST",
})
.then((response) => response.text())
.catch((error) => {
console.error(error)
})
but jquery is not only for calls...
Yeah, but modern JS is quite fine to do w/o jquery (if you have enough skills)
traversing the dom?
let response = await fetch("/async/await/is/awesome/")
let json = await response.json()
await works in all browsers, also old ie? 😄
much of jquery's popularity was due to solving browser compatibility, but we have better tools for that now
i think using jquery in browser development, unless you are not using react or vue, respect its motto "write more with less"
await works if you run it through Babel
if i want to transpile, i should use react directly 😄
But jQuery isn't "less", it's 30 kB minified
and with fibers and 5g, is a great problem 😄
who cares if you have 5g when you have a few hundred MB monthly cap on it
I've almost exclusively moved to using typescript instead of normal js
i have monthly cap and navigating a lot on many sites using jquery, bootstrap and 104757 js plugins, youtube etc etc i've never ended up my gigs
this is the most js I've written recently: https://github.com/3ventic/moderation-station-auther/blob/master/public/discord.js
and i moved to react
I am moving to Vue.js, but much slower as I want to
but the utility of jquery is always a great hand when you write "plain old" js
I want to try vue, but don't really have the time or reason to do it
react is great, i've my boilerplate with all goodies i need
I agree. React is great
and react-native is better
Has it improved a lot in the last year?
latest version after 0.40 and also with the 0.50 added a lot of thinhgs
btw, i've never had issues developing with react native
Twitch decided against it (despite React being heavily used otherwise, on both web and mobile web) last year
also Airbnb
but, as usual, depends on what you have to do
for Trucky, react native is just win win, simple, fast to develop, share codes with other Trucky's react app, it simply works on Android and iOS
quitting the context, i want to use this https://github.com/spatie/schema-org
A fluent builder Schema.org types and ld+json generator - spatie/schema-org
if i install via Composer, it should be available everywhere in laravel right?
I'm not sure, haven't my development setup on me.
It is not a Laravel package, this is a PHP Package
So you can use factory class or new keyword
A fluent builder Schema.org types and ld+json generator - spatie/schema-org
yes but it change something if is simply a php package?
Not really. See, this package doesn't really need a Laravel components to work with, so it can be decoupled from it.
yes... i see...
And can be used in whatever project you want, even w/o Composer (but you should make an autoload manually)
but as i'm inside a laravel controller, i would have to know if a composer package is always available everywhere
btw, works and no error
but no intellisense from vscode
the second one is already installed
Did you try composer dump-autoload? Sorry, can't reproduce since I am not near my development setup.
So, it was indexing. Makes sense.
Yay... Found a better solution for this....
Instead of going with e.g. await I've found on Internet a solution which use of jQuery.post
Hopefully it will work fine...
You mean, "better"? 
Nah, they're different. And PHP isn't async.
Ik... But still I hate JS. 😂
When I was in the technical colleague, it was a nightmare for me...
Even our teacher of WebDev didn't even help...
Because he didn't know what we can do... And the only thing he was saying was "Please do this lesson"
can't understand what's difficult to understand in js...
Basics 👍
JS learning curve is so low
But other things 👎 - not for me
Maybe when I'll start learning e.g. React.js, maybe I'll change my mind.
You'll need to learn plain js first...
quitting the context again, I want to learn Elixir language
what about R?
I want to use Phoenix in the next iteration of TruckersMP Helper: https://github.com/phoenixframework/phoenix
Basically, it'll be Vue.js PWA with Phoenix backend
Phoenix looks interesting
hey I also have a question where I find "RSS feed News" in the forum tmp ?
Open the topic you want and scroll down
thank you Developer 😉
Does anyone know how to add video to VTC news?
@clever flicker When you go to create the news you might be able to embed something using iframe or something similar however the devs might not have enabled it
Heyho, i want to change from Eclipse to Microsoft Visual Studio Code - how can I create a Workspace in VS Code? (Lang: JAVA)
File > New Workspace iirc
In the top left, click on 'File'
Yah?
i have that, yes
you open a folder and it creates a workspace
Open Workspace?
no, open folder
if you only have a single folder in your workspace, you just use open folder
if you add more, then save workspace and later open workspace
Aw I don't think there's a way then sorry
I can add pictures, but I can't add videos!
Unfortunately, you can't have videos in VTC description
@clever flicker That's a limition of Markdown... In order to support embeding of e.g. YT video it'll be needed to add a different plugin or handler of shortcodes.
What?
Just use what Penguin suggested: [](http://www.youtube.com/watch?v=YOUTUBE_VIDEO_ID_HERE)
I think that is a good solution, anyway
I understand. I'm glad you can help me!
@clever flicker Post it in the Suggestion section on our Forum.
I know, not everyone likes JAVA. But Minecraft runs on it, so i'm forced to use it.
Since, i patched up to Serverversion 1.12.2 (from 1.8) - my verification-system dont works anymore.
Code: https://pastebin.com/ef4ZPdT0
Console: https://pastebin.com/7ZbDquHC
Used API: default spigot 1.12.2 server .jar and this one: https://github.letsplaybar.de/Letsplaybar/SQL/src/branch/master
I hope, anyone can help me.... and i want to avoid to patch down the version :/
Did you patch Mincraft only or JAVA as well?
Best would be downgrading to 1.8 and then upgrade step-by-step from 1.8 over 1.9 over ... to 1.12.2
only Minecraft as Server - but it all runs on Java 8 O.o
i did already on the server update && upgrade
Are you using 32 bit Java (x86) or 64 bit (x64)?
Which update did break your verifictation system? was it 1.12.2 after an update from 1.11 / 1.12.x ?
but the funny one is, its only in my plugin and there is no failure - i let checked the code from a really good MC-dev 😄
64bit 😄
in 1.8 it worked very good - since update to 1.12.2 it isnt working anymore
but its just that
other commands with mysql are working perfect
try reverting to 1.8 then update to 1.9 and see if it breaks
then 1.9 to 1.10 and so on
yayaya... okay.... ill try that
If it breaks, you know where it breaks and may ask someone to check it in regards of changes that were pushed with that specific version
okay
thanks RayRay 
I mean, Django already has that, but neat
Would be nice for you guys, @opal arch :P
Less random bugs where one field doesnt fill on error from old() etc :3
Well, I made templates for it in PhpStorm 🙈
I am not familiar with this package as sometimes it is hard to set own styling with them
Thank you, I will check it 
Looks similar ish to django forms (but without handling validation), which is quite nice to use
Customization of these automated froms would be a pita
Also, Client-Side Validation is in early stage, so it would be a pita too. I'm not gonna invest on this package for now.
Well, validation in Laravel can be very easily done on the server side. And client-side validation is in early stages? What do you mean?
Most of browsers support it iirc
all up-to-date browsers with any significant market share support the standard input validation params on <input>
and you can always write your own with some js
Check package manual.
I know how to make validation in JS, but it would be a pita for generated forms too like styles.
This might be a stupid question but can you get an API key for a TMP for use in private API requests?
What do you mean? All API calls are free to use
I mean as in access private information such as private bans and reports using an API key for your TMP account
Ok thank you
Does anyone know which is better. Django or Flask for form management and validation?
Django has more built in form tools, and a built in ORM
Django will also handle things like CSRF for you by default, which Flask won't (you need to write code for it or get a library doing it)
Flask is lighter, but you'll probably need to do more work to get going to handle form validation, security, and saving the input to a database
Ok thanks I'll have a deeper look into both of them when I get back home
Do that :3
It's up to preference, largely :P
Though, they have different tools in them, so different things they are good at out of hte box
Joomla 
Joomla 
The ultimate framework
How about Moodle? 
cgi with raw C 
With visual basic
router manufacturers love doing that
consequently a lot of them get buffer overflow vulns discovered at some point in their lifetime
Omg joomla what a meme
I've also seen routers with old .asp apps, even slightly more recent routers
Mikrotik 
Just checked, my router has an old ASP app :p
Oof
asus ones used some ungodly mix of asp and native binary cgi last I checked
Could be worse, could be built on Wordpress 😛
Can I talk about 3D modeling here ?
Sure, why not
Can I drop it a screen of my last creation ?
Go ahead
Any description? Number of polygons, programs used, etc.
Yeah, I used blender for the modelling and I made the rendering on Eevee
The number of poly is useless because the model insn't game ready and didn't do a low poly version
I made this model to have fun
How eevee works? (in terms of quality/stability) Do you have any experience with a previous engine?
Eevee is a real time engine. It is rather young, and well accepted by the community. I can't give more details, I'm not an expert^^ and yes I used "cycles" before Eevee
Cycles is more complete than eevee
you can do more things
but eevee is not too bad at all
I talk as if I do presentation for the school ahah
Yay... I think that on Sunday I'll be ready to publish my GitHub repo to public. 😊
But in BETA 😛
What is the repo about?
It's related to tachograph. That one that I create with Fat-free Framework. Will support both TMP API and ets2map
Thank You!
New Functions of VTC System Waiting for TMP😃
🔜
Well... For now I have 5 tables in the database, but 2 more will come, so this tachograph system will be complex.
That's 5 more tables then in the 1st tachograph that I made in past 🙈
laravel guys @opal arch @cinder spear i have a strange problem with the laravel cache: i put a value with timespan 1 day and use it as "timestamp" for static assets to avoid caching, then at every release, i do php artisan cache:clear but the token doesn't expire and remains the same. what I'm wronging?
@strong quail I think we have like 55 or so tables in our DB for vtlog
working on like dozens of database and hundreds table make me win the battle?
That's a lot. But I don't want to do such
working on like dozens of database and hundreds table make me win the battle?
Shhhh
Guys - I'm not WebDeveloper yet 🙈
Or at least the good WebDev. I learn, so don't want to combat with anyone XD
I do web development, but I primarily stick to software
@raw notch if you want to cache Laravel assets, take a look at Laravel Mx
I am not sure what your issue is as you mention some "token"
no i dont want to cache assets
?v=cachetoken
to all js/css inclusion
because browsers and cf cache too much and some users dont see css and js edits unless emptying voluntarily the browser cache or disable cf cachinf
Check Laravel Mix then, it will help you a lot
It exactly fixes this problem as you do not have to care about it on your own
ok
thanks
oh it's really interesting
but @opal arch my doubt remains, why that cache key isnt invalidated and recreated after cache:clear?
no?
Cache key will be stored in a separate file and will be checked when you use mix() helper iirc
I am using Laravel Mix very extensively on Helper 😉
Version key is manage by Webpack underneath Laravel Mix
It changes only when file contents changes
no no ok, I'm not referring to mix
is a general question about the cache
i put something in cache, a string, with a simple check: if there isn't, add it with a random value (a uuid), cache:clear and the value remajns the same
... why?
the default cache, filesystem
Do you have proper permissions for /storage folder?
i think so @unkempt hamlet because upload and other things works
meanwhile mix works great
I wonder what the future use of VTC's member ID will be? I haven't found any relevant information on the website at present!
It is just a unique VTC Member ID. Nothing more.
is the identity of vtc_members table :D
You can get information about the member: https://stats.truckersmp.com/api#vtc_member_info
IMO this endpoint is a little bit redundant
I have not made it 
ikr
Wow, membership lists are useful for my software development!😃
Thank you for everything!
I think there should be a system were I could send someone money and they type /bankrequests or something and then they can see all the requests to send money, and it will give them an ID such as 1111111 and then they can do /redeem 11111111 and gain what ever amount they had sent, this should all be done by a simple command /money (ID)
@ember canyon: Please provide your suggestion in #discord-suggestions if it is related to this discord or please head to https://forum.truckersmp.com/index.php?/forum/285-suggestions/ if it is related to TruckersMP, in-game or our forum.
I do apologise
Does anyone have a list of companies of both ETS2 and ATS in plain text/SQL format? 🤔
@strong quail they're in your savegame in plain text
New Laravel site is live https://laravel.com/
Looks quite cool. I just quite miss the example of the model class :/
True, it was a classic
A few weeks ago during Taylor’s Laracon US Keynote, he announced Laravel 6 and a new Laravel logo, plus a brand new website in the works. Today, that website is now live at you can see it at Laravel.com. The new design was created by Focus Lab, and if you know your Laravel ...
And this is quite interesting, too :)
Laravel is moving to Semver so next version is 6.0
Yep :)
Do we know what's new?
Semver, Laravel Valet and... that's all I know so far
They don't really have a changelog on 6.0 in their main repo
That's weird for 443 commits

I don't think 6.0 release would be a major for framework. Just for semver.
Btw, Laravel 5.8.35 is now supports Redis 5
I am making an application using Visual Studio 2019. I don't know how to change the background. If anyone knows how could they drop me a DM?
the background of what?
My application i am making
that's going to depend entirely on how you're rendering your application
Could i DM you 3ventic?
Why is the Arcade 1 server closed?
Can I know how many active users in China do we currently have? Developers👋
According to the latest news, Steam will launch the Chinese version of the client, and (possibly) will not continue to support the current version in China, which means that the current steam account may be invalid in China. In this case, what should we do? TruckersMP
The devs here know as much as you about that Steam account issue.
Probably less, tbh
Better option would be to ask Steam what will happen to the accounts. I am guessing they would let you transfer them in some way, if there is a difference in the account itself
If nothing is mentioned, the accounts will likely be the same, just a different client with some feature differences/censorship, while blocking normal client connections, or something
And from the brief article I just read, it seems like people in China will still be able to access the 'global' version so not too sure. We'll just see how it plays out and go from there
I need to go buy a notebook for cryptography stuff soon, to be able to do stuff on paper more easily x3
It's nice to get an understanding of the algorithms and mechanisms :>
I'm still not sure if chinese can get access to steam instead of that perfect world version. If players are forced to be only accessible to steam China, a lot of functions in steam will be blocked and it's almost impossible for them to play TruckersMP unless using VPN
Steam will probably give more information then, too. As if the changes are too huge, it may affect all actual games and services. And I doubt that. I think Steam will handle this for us, to be honest
If Steam client can't login in China, it can only login with Steam China's client. Will TruckersMP support Steam China's client login when it logs in?
We have no idea how it will work at this stage so we can’t really make any promises. And as Shawn said, a lot of other services are heavily integrated with Steam so anything they do will affect a lot of people. So I’m sure Steam (Valve) will do something about that
insert Valve time joke here
This? https://developer.valvesoftware.com/wiki/Valve_Time
I think it will happen later this year 
Steam gave the agent in China to a local company. The latest news is that we will not be able to use steam globally, but use a new account and Steamid, I am worried that this will affect my continued use of my TMP account.
I will share the latest news with you.
possibly TMP need more steps for authentication when it comes out
imo it will end up like CS:GO's Perfect World - it is still the same game on Steam, just a different client and it works differently
I hope so
Last year I received an email from one of the developers of TruckersMP ( truckersmp.com ) a multiplayer-modification for Euro Truck Simulator 2 asking if we wanted to use some of their location data to create a visualisation of where players are travelling in-game. Obviously,...
Gonna reinstall the mod creating thing again soon.
Had to reset@my computer
So time to get back into the making game
That visualization is awesome. I love digging into stuff like that
@tidal zodiac how they got these datas? speed isnt tracked in ets2map api
Distance between time intervals?
could be a solution. so he used ets2map data?
Yep. Not sure what time resolution though. And for that stuff you don't need an exact number, just something relative
I've gotten speeds working before on ETS2Map, just based on the time interval and distance between the 2 coordinates. But it wasn't that accurate. Plus or minus 20 km/h
i know, i used it to calculate the average speed of an area but it returns strange results
ooo, pretty cool article! 
Huh?
bootleg ?
it means a fake ats and ets2
But why?
@unkempt hamlet just for the fun of it
What's the fun in it?
@unkempt hamlet i can add my own cars in it just installed in the game and make the game look likereal life
So good luck LOL

Or you can just play the SP and use mods there
Em... I imagine those graphics. 
Hurray! Another success. I got a connection with TMP API and for now on the recrutation site will show date of join to TMP and if the user has blocked counter of bans or not and if he hasn't blocked - how many he has. 
I'll add also show up of the servers and will start to intergrate with VTC API. Also the data from specific recruit will be shown with use of dynamic modal. 😉
Ah, sounds nice. Will it be some package or will it be somehow publicly accessible? :p
@opal arch Since I develop with Fat Free, the script on which I'm working will be on GitHub
Publishment of stable version will be approximately on 15th of September.
Beta version however will got out on 1st, but only for beta testers
However to this data irl will have access only those who will be having access to Admin section.
Maybe one day I'll change it to be seperated.
How can I add a hyperlink to the VTC interface?
Thank You Dev

Well, if it supports only one browser...
It costs nothing to support
What do you mean?
I mean, adding loading="auto | lazy | eager" is one second job, even if only one browser supports it now
Google "Markdown"
Markdown is a lightweight markup language with plain text formatting syntax. Its design allows it to be converted to many output formats, but the original tool by the same name only supports HTML. Markdown is often used to format readme files, for writing messages in online d...
Thank you, my problem has been solved!
Where can I see the login record of my TMP account?
What's the login record?
Heya, I'm trying to find resources on how I can create a discord/PHP verification system, so that people can link their discord accounts on my website and then it will give them a discord role. Does anyone have any good resources I can use for this please?
@mossy cloud you could try laravel + socialite plugin for authentication and DiscordPHP for API integration. https://github.com/teamreflex/DiscordPHP
I don't use Laravel :/
or RestCord https://github.com/restcord/restcord
Thanks though, might be a good starting point
so you have to implement the OAUTH authentication by your own
No problem 🙂
I didn’t think this chat was for TMP support or talking with TMP developers about technical issues and bugs, but ok
Reported that grammar mistake to the devs. Thanks ^^
Hi guys!
Does anyone know a good PHP library which will generate PDF files?
mPDF?
Okay. I know how I'll invent VTC API of TMP.
Since I don't want to make this system relying only on data from DB, I have decided to add to my tachograph:
- news list inside dashboard (in the section named "News" - only listing, the main content of it will be displayed on TMP website),
- some basic information about company (such as their socials, requirements, rules, information and language it supports) will be displayed in "Register/Recruitment" from user POV.
For now that will be enough. In the future maybe I'll start to create a "newsletter" system, but not sure if it will be good enough and if it'll be a good option.
Gonna check out mPDF, started digging.
laravel experts, i have a (another) strange problem on production: from my pc, posts with csrf token dont work, get always 419 Page Expired while on other clients and in local, same actions, works. What could be the problem? Tried from chrome and firefox, don't work from both
Check SESSION_SECURE_COOKIE config
By setting this option to true, session cookies will only be sent back the server if the browser has a HTTPS connection. This will keep cookie from being sent to you if it can not be done securely.
@unkempt hamlet and should be true or false?
Can't say for sure now. play with it
well i havent that conf settings in .env and can't find in config/session.php
What is your Laravel version then?
5.8
Did you upgrade it over previous version?
Laravel Framework 5.8.33
i think so
but the fact is that is working fine on some pc.. so it shouldnt be a server problem
Play with sessions settings
i did actually but nothing changed
ah here it is the SESSION_SECURE_COOKIE , i've searched with ctrl+f and didnt show up.. btw is false
oh... changing the session driver from file to cookie fixed the issue
i've tried all but not this before
Yeah, file driver can be dumb sometimes
now i want to try redis
btw thanks @unkempt hamlet
Hello.
I have a problem with MariaDB.
I've decided to sort by short name of load in order to give it proper ID (so i'll not have any problems when displaying the data).
But I did (in my opinion) in the stupid way.
I went with
ALTER TABLE load_tonnage ORDER BY short_name
Thanks to this query I can't switch back to ID and for me when I go to phpmyadmin I see this table having a query
SELECT * FROM load_tonnage ORDER BY short_name
Is there any possibility to remove that or should I leave it?
should be able to just alter table load_tonnage order by id
the table doesn't stay in that order with inserts and deletes either way
it just makes ordering for that slightly more efficient, if it's a common select order by
if it's an innodb table, it doesn't even matter for that
not at all sure where you set the default order by for phpmyadmin, but pretty sure that's not the way
Pog
Wow... just wow... https://laravel.com/docs/5.8/telescope
How did I missed this package...
Because we have better tools 
@opal arch there are? because telescope seems great
I used
, I did not mean it
ah, a question, for laravel jobs and queue, I have to schedule something in production with something like a crontab?
queue:work or similar?
Well, when we started talking about packages, you can use this: https://horizon.laravel.com/
is interesting but don't think I will need a such power on queue management
Well, that's just a queue
thanks anyway :) but my initial question remains, to run jobs and use queue there must be something that invoke queue:work explicitly?
cron
Exactly 1 munite
why exactly?
Because minimum cron interval is one minute
well, can schedule every 30 seconds with a trick
I don't think that is needed in most cases
Depends what you want to do through queue
Because you can also run some update tasks through it and they should be just scheduled, not executed later
That is why Horizon is much better option in this case imo
ooh finally! can integrate it in Trucky without using steam
Why do you need Steam for?
We used forum topic RSS before
Btw thanks for mentioning scrapping, I should definitely remove it from Helper right now
ah yes, there was he forum rss but never thought to them
Sentry is fun
@raw notch you have some error here - https://truckyapp.com/trucky-team/
ye i know, discord changed auth system and i've never time to check it out
meanwhile i've added the new tmp rss to api
it's already in prod
You can use some library and you will have it done in a few minutes
actually i having a similar problem using passport-discord in nodejs
For those of you who use Laravel and Vue, just come across this https://livewire-framework.com/
Very Good!
I would swap twitch and YouTube as the colours blend a bit to much
Hello. Does anyone have idea how to create a notification system e.g. when the trip is accepted, the person gets information on the website, not email?
I'm thinking of utilising db and maybe some event via xmlhttp request (like I do on "dynamic loading")
But not sure if I think the good way.
Nope, I use Fat Free Framework 😂
Yeah - I'm limited a bit, but as I said multiple times - it's my first time working with any PHP framework, so yeah...
But maybe one day I'll switch to Laravel, who knows...
@strong quail I have a database table called Notifications, then a column for UID,content,is_read
Then I simply have a global function that is createNotification($uid,$content)
Then the unread counter for Notifications is simply SELECT * FROM notifications WHERE $userDetails->ID AND is_read=0
Well that gets the list of them anyway, the actual count uses SELECT COUNT(ID)
Okay. Then when clicks on the bell the site loads up the notifications, right?
Yeah :)
Then the page query just loads their notifications via DB and puts it in a nice lil' table :P
Okay, thanks for advice
No worries :)
@unkempt hamlet @opal arch i've again the 419 Page Expired problem on posts but i've discovered maybe what could be the case, it happens after deploys
some days ago i tried to change the APP_KEY with php artisan key:generate and php artisan config:cache and my posts back to work

composer install --optimize-autoloader --no-dev
php artisan config:cache
php artisan route:cache
php artisan migrate --force
npm install
npm run production
this is my deploy scriptys
after git pull
#!/usr/bin/env bash
start=$(date +%s)
export SENTRY_AUTH_TOKEN=XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
export SENTRY_ORG=XXXXXXXX
VERSION=$(sentry-cli releases propose-version)
php artisan opcache:clear
php artisan down
composer install --no-dev -o
composer dump-autoload --optimize
php artisan cache:clear
php artisan config:cache
php artisan route:cache
php artisan view:cache
php artisan grab:info && php artisan grab:news && php artisan grab:map && php artisan grab:status
wait
php artisan up && php artisan grab:wote && php artisan opcache:optimize
wait
sentry-cli releases new -p tmp-helper --finalize $VERSION && sentry-cli releases set-commits --auto $VERSION
wait
now=$(date +%s)
sentry-cli releases deploys $VERSION new -e production -t $((now-start))
That's my script
I am producing js/css assets on development machine and push it to Git.
nice sentry integration
i'm getting big doubt... why the storage folder in under git???
it should? i think not
Because it has folder structure in it
so the structure but not the content?
Yes. Just to make sure of correct folder permissions
ah no ok, on git that folders are empty already
because every has its own gitignor
just tried with your script.. nothing, post to 419
If you get into the beta for Github Actions, it's worth poking at for quick and easy CI setups for personal projects :>
I have Gitlab 🙂
me too
Did you have SESSION_DOMAIN changed from null?
Also do you have any changes to \App\Http\Middleware\VerifyCsrfToken::class?
yes and no
just tried to change session management from redis to cookies, always 419
regenerated app key, always 419
Dude, domain, not a driver
yes... 'domain' => env('SESSION_DOMAIN', null),
same_site?
'same_site' => null,
Change to strict and test
I don't have any other tips for you, unfortunately.
Because I didn't post any photos last time, I will do it now.
Below on the pictures is the presentation of recrutation form.
I use data from one of the Polish VTCs.
I know that Markdown here is messed up, but if you use it properly, the effect should be awesome.
Connection made here - TruckersMP VTC API (ID of VTC is taken from my DB and thru JSON shown here) & SteamID API (in the example there is no getting of the username, however irl perfomance in the username should be the nickname from Steam and in the background to form will be gathered SteamID and link to their profile).
Last image - presentation of Social Media which are attached (again) via TruckersMP VTC API.
It is in English too, so don't worry. ;)
Unfortunately I had to delay beta tests because not everything was ready, however this Sunday I think that I'll be ready.
@unkempt hamlet the session cookie is supposed to have the same value across the whole session right?
I think so
and why mine change value every page load? 😄
Something wrong with server settings, I guess
i see session creating in redis, every page load is a new (or two) new entries
yes, my session is resetting every page load, using database as session driver, make fill the sessions table
oh... maybe fixed..
Lesson for you, fellow Laravel developers: never mix web and api middleware in one Route
api middleware doesn't care about context, hence session will be new for each load.
Hey i was just wondering if someone from the truckersmp team could provide me with some information. I want to learn how to make a multiplayer mod, i know C++ and how to read and write asm, find values using cheat engine and recreating a player class in reclass, I know how to network things. But that is about the extent of my knowledge of this subject. I want to try and make a simple multiplayer mod with ets or ats because it seems like a simple game to start with. So i guess what i really want to know is how does one find a way to spawn in other trucks and connect them to a server in same way you guys have done?
I ain't no dev (only discord bots), but considering how many people tried to make a multiplayer mod for ets and ats, and only TruckersMP succeeded (as far as I know), it says how hard it is.
@pallid kelp we have an in-house technology for that and can't share a details with you. This is a product of our hard work over the last 5 years. However, you can check this repository with some old codebase https://github.com/RootKiller/ETS2MP/. This can give you some basic idea on how to do certain things (at least back then).
Thanks ill take a look at that!
Try to find messages from mwl4 here, I think somebody needed help with reverse engineering here before, too
*hard work @unkempt hamlet 

Ah yeah, it's September 3rd already
hows all the guys doing to day?
Hi guys. Did anyone try to use ETS2Map API?
Because sometimes I don't get proper results (even though user is inside the game, sometimes it shows that he isn't).
Well, ETS2Map API is pretty straightforward. As for reliability, I am not sure.
Can you provide an example? I have never seen any weird results
stalking command done 
Well, here we go! https://laracasts.com/series/whats-new-in-laravel-6
I'll show examples tomorrow once I'll have complete data that I want to present.
But as far as it goes ets2map doesn't allow iframe, so that's sad.
(even though I set up correctly URL e.g. https://ets2map.com/?follow=63320 )
what you want to do exactly?
Firstly - I want to let user know of the specific person is in ETS2 or not.
have you tried Trucky API?
And if he/she is, then show a position of he/she via ets2map
I mean... I can deal with it also via SteamAPI without any problems.
But I want to snap it right from the ets2map API, because it gives also some other info
E.g. Server on which he/she is driving
It's using ETS2Map data, right?
So, reliability should be the same 
it is
Why do you need iframe to use map api then, @strong quail?
To display the map and the location. Don't want to build my own map.
oh @cinder spear you are using my API :D
look at 3ventic example, you can use Trucky api and link trucky map
if you need an iframe mod, well, we can sort it :)
it was easier to find than ets2map's 
want to see the actual mess? 
sure
I want too
[equals [customapi https://api.truckyapp.com/v3/map/online?playerID=[0|31812] $.response.online] True "[customapi https://api.truckyapp.com/v3/map/online?playerID=[0|31812] $.response.name is on $.response.serverDetails.game $.response.serverDetails.name near $.response.location.poi.realName $.response.location.poi.country - https://web.truckyapp.com/map?follow=[0|31812]]" "they're not trucking :("]
there is a prop tell you if the player is near or inside an area :)
and I have a 500 character limit
is "area", if true, is inside the area
What are thooooose?
I don't think I can fit another equals check for that
you have 500 chars.. for what?
maybe I can
It's moon runes
So, no caching? 
yes caching
it proxies all requests to external servers through a proxy server so that it doesn't expose the server IP
you are caching the online response?
the proxy server caches the whole response
Ah ok
it also processes inner [] first; it's not a short-circuited equals check
but which language is?
it's a custom... I don't know if you can even call it a scripting language, but let's call it that
you wrote a scripting language?
It's not Turing-complete for sure
doing basic if == is pretty much as far as it gets
so people can do complex commands.. like that one
without me adding explicit support for it
ah for custom commands
yeah
why not something JavaScript?
and the 500 character limit comes from the fact that you configure the bot via twitch chat
could've used js if I researched sandboxing it properly
I'd rather have a dashboard with custom scripts in it
well, add support for multimessage commands
I'd rather have a dashboard too but the architecture doesn't really support it.... I started writing it in 2014
.startcommand .addline ... .endcommand
before I really considered things like maintainability
:D
Well, you have time to rewrite it 😉
good joke 
Also, use Elixir for the next time 
C# is awesome
nice numbers
there's more if you also like pretty colors: https://ohbot.3v.fi/stats/d/uG_TOgJmz/ohbot-primary?orgId=1
but the real language behind for bot and server is?
core was already in 2014? really?
it started as a Mono app
oh mono 
@raw notch I think you have issue somewhere 
known problem :D
Let's try then iframe'ing the Trucky Web 
Idk why, but I always get "web.truckyapp.com refused to connect."
Example - in the gray box should be shown map with exact localisation of player
(forgot to add - the code to load the page is loading after showing the collapsed content
Not sure, what I do wrong
https://pastebin.com/UvxzCrTJ Take a look
I have jQuery attached to main site, to which this code is loaded.
Hm... 
I guess then it's blocked because of that.
And if I would like to use it, I would to have to render map by myself
I guess, it's blocked by Cloudflare edges.
Maybe 
Scrape Shield
Same goes to ets2map.com, so yeah...
Well, time to render your own map 
Hm... But wait a second
What if... 
I know how I'll deal with it.
Workaround 
I'll do in that way - when player is online, in the tab will show up location with city etc (like TruckyApp) and on clicking follow, will popup the map
Well, that's how my Helper works 😉
@unkempt hamlet you use also trucky api?
@raw notch Your API is syncing with ets2map API every 5s, right?
map or online API?
Map API
every 1 minute



