Jump to content

SDCore

Veteran Driver VI
 TruckersMP Profile
  • Posts

    39
  • Joined

  • Last visited

Posts posted by SDCore

  1. I figure the server ID's are more reliant on the game itself than the API, but figured I'd ask anyway.

     

    Do the ID's for servers change at all? For example, it makes sense that the main servers (eu sim 1/2/3, us sim, promods, etc.) don't change, but do event servers change or have specific ID's? Yesterday, one of the event servers (ID 18 according to the API) was for a specific event (I forget which one), but today it's for an event different from yesterdays. Would it be possible to get a list of which ID's are specific to event servers, and/or which ID's are specific to other main servers?

     

    Appreciate it.

  2. On 7/12/2018 at 3:46 PM, BrXEiZ said:

    Does servers contain SSD disks?

    I think servers in France by OVH SAS.

     

    While it's probably likely (high end servers mostly use SSD's), it could be entirely possible (and possibly cheaper) to run just a few hard drives to store user data. I'd assume most of the data needed in-game is stored in RAM since it's gets accessed so often and changes so quickly. 

    • Like 1
  3. On 02/02/2018 at 7:10 AM, HumaneWolf said:

    Something like this can potentially be added when we get a server side economy.

    "When"

     

    So I know it's been planned for a while now, but is there any idea of to when it might actually get released?

  4. So I'm not 100% sure if I'm in the right forum or not, but it's the only one that made the most sense.

     

    In short, I'm basically looking for a way to keyframe camera movements in both ATS and ETS2.

     

    I'm essentially looking for something similar to a Minecraft mod that did the same thing, which you can see in this video (skip to about 20 seconds in or so): 

     

    Basically setting specific keyframed points and having the camera move between them seamlessly. I don't really mind if it's a command or a mod, just wondering if it was possible. Thank you!

  5. In simple terms, it's establishing a connection between you and the server, and then (I'm not 100% sure on how the client works) the client sends a token to verify that you are actually you. Once it does, it means you're authenticated and can connect under your account.

     

    If, for some reason, the authentication would fail, you wouldn't be able to connect. I would assume it's to make sure no one can give false credentials to log in on another account without a password.

    • Upvote 1
  6. 1 minute ago, Ajith18592 said:

    i think when a member has 2-3 google accounts then he can vote 3 times but if you login in game you can vote only for once with you TMPid.:)

    Alright, then make it native to the TMP site. You need a not banned TMP account to be able to vote. Still 100x more convenient.

  7. So now that I actually had a chance to play, here are my thoughts:

     

    I first had to wait nearly an HOUR AND A HALF to join the server. 850 slots with well over 500 people in queue, and the admins thought not to do anything? I understand that lag was pretty bad (I was there), but would it not make sense to, you know, open up a second server? The same thing could be accomplished with half the staff if they were coordinated enough, which it seems like they weren't.

     

    After I finally connected, and waited a good 15 minutes to get through the queue, I hopped over to Salzburg and began my journey. Wasn't too bad, encountered some people here and there. Got into some traffic, which I anticipated and actually liked. Traffic was great, and the people breaking rules didn't really piss me off or anything. What DID piss me off was how poorly the event was done. It felt like a last moment "lets just direct traffic a little bit around a crash and be done." I waited in traffic for a good 30-40 minutes, only to go through the actual event for a good 10-15 seconds. And that was EXTREMELY disappointing to me.

     

    Where were the "custom roadworks, police/border controls, fake accidents and a lot of police force showing on the route. Make sure you behave, or you might get pulled over!" we were promised? Where was the excitement? All I saw was admins in one place. I followed their directions for a good 10-15 seconds, then continued on and saw literally nothing else.

     

    What a disappointment. Poor communication, lack of creativity, and little care for what was supposed to be a "community event".

    • Like 1
  8. There is a way to do this, yes. In the same dataset where you change the colour of your trailer, there's a file path to a certain company trailer decal. I don't know any of them off hand, but if you experiment and take note of what decal corresponds to what company, you should be able to get what you want.

  9. With this new filesystem core, does it mean there's a possibility of other types of mods? ie. Sound mods?

     

    Even just locally would be fine. Essentially using your UI example but as a sound mod, and it'd only replace the sounds of whatever truck locally and defaults to whatever sound if another person doesn't have it, meaning that not everyone has to download said mod.

     

    Just a thought and a hope.

  10. 5 hours ago, HumaneWolf said:

    Wrong.

     

    Active means the player was NOT unbanned before the ban expired. If it says it is not active, then teh player was unbanned early.

    The ban can be active even if it has expired.

     

    Ah, alright, my bad. I've updated my original post.

  11. You need to use PHP to connect to the TruckersMP API (seen here: https://stats.truckersmp.com/api) and use it to get the URL of api.truckersmp.com/v2/bans/{id} where {id} is your TruckersMP account ID (found by going to your account page on the website).

     

    For example, my URL would be the following: https://api.truckersmp.com/v2/bans/1044649

     

    This returns a bunch of JSON strings you can then parse using json_decode in PHP and detect whether or not "active" is set to true or false. I wrote a little example here:

     

    <?php
    	$baseURL = "https://api.truckersmp.com/v2/bans"; // Base URL, does not include player ID
    	$playerID = "1044649"; // ID by itself makes it easier to change on the fly
    	$fullURL = $baseURL."/".$playerID; // Putting the full URL together
    
    	// Making call with cURL, assuming you have cURL installed (you should)
    	$json = file_get_contents($fullURL);
    
    	// Convert JSON to PHP Object
    	$phpObj = json_decode($json);
    
    	$banStatus = $phpObj->response[0]->active; // Checking the most recent ban to see if it's active or not
    ?>

     

    Once you've done this, all you have to do is check whether or not the expiration date has passed the current date. If it has, they aren't banned. If it hasn't, they're still banned. Just make sure to account for timezone differences.

     

    I've provided all you should need to at least get started. Good luck!

  12. On 9/2/2017 at 5:18 PM, Orangee said:

    There are two ways to achieve your goal if you want to do it yourself. Both will require ETS2MAP API.

     

     

    Damn, dude! That's a lot of work and honestly is pretty cool.

     

    Krashnz did provide a way that just returns the amount of traffic in each city, but I do have a few ideas for things using the work you did. I really appreciate the effort!

  13. 19 minutes ago, Tuxy Fluffyclaws said:

    add to ^; iirc. the source data for traffic (I don't know for certain, since I'm not involved with his side projects :P) is ets2map, so "worst" case, you can build it out yourself.

     

    Yeah, on his traffic site, it does say it's built using ets2map. He gave me a link to the json output of all the traffic info so luckily I don't have to build it myself, but it'd be interesting to find out how to do that anyway.

  14. So I just bought the DAF Tuning Pack (along with a multitude of other DLC's), but for some reason I can't really seem to customize it any more than I used to be able to.

     

    Specifically, the tail lights. In the screenshots from the DLC page, there's so much that is there that just doesn't really show up for me.

     

    I do have the DLC installed and I have closed and reopened the game since I've installed them.

     

    It's also not a problem in just MP, it doesn't show up in SP either.

     

    Any help would be gladly appreciated.

     

    Thank you.

  15. While in game, press the tab button on your keyboard and monitor your ping (it should be like #ms). If that's a relatively high number (over 200), it could be you're getting kicked for high ping. Otherwise your internet might not be able to handle it.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.