Jump to content

ClumsyZombie

Veteran Driver VII
 TruckersMP Profile
  • Posts

    32
  • Joined

  • Last visited

Everything posted by ClumsyZombie

  1. Wondering when truckers MP is going to update ATS so we can get online and play NM??
  2. So I tried something like this below to say hey for the next section of code use the below DB. <?php try { $pdo = new PDO('mysql:host=**********.com;dbname=dbname','user','password'); $sql = "SELECT * FROM users ORDER BY id DESC" ; $q = $pdo->query($sql); $q->setFetchMode(PDO::FETCH_ASSOC); } catch (PDOException $e) { die("Could not connect to the database $dbname :" . $e->getMessage()); } $pdo = null; $truckmp = $row['truckermp']; $apiResponse = json_decode(file_get_contents("https://api.truckersmp.com/v2/bans/".$truckmp.""), true); function checkUser($apiResponse) { return $apiResponse['error'] == false ? true : false; } ?>
  3. I think I found the issue. the main one is that I have 2 different DB calls to 2 different tables in this file so it is grabbing the one closer to it and not the one in the top of the file. like it should be. So going to have to figure that part out. It is grabbing the one right above it when the one above it has nothing to do with that. So i need to figure that out to tell it to use the top DB PBO request for the user table and not the jobs table one that is right above it.
  4. @rayray5 I did the following playing around and what is crazy is it works some times and not others. it is wired. <?php $truckmp = $row['truckermp']; $apiResponse = json_decode(file_get_contents("https://api.truckersmp.com/v2/bans/".$truckmp.""), true); function checkUserID($apiResponse) { return $apiResponse['error'] == false ? true : false; } ?> <div class="container"> <center><h3> -Truckers MP Punishment Details- </h3> <div class="well well-sm" style="width: 80%;"> <div align="left"> <?php if (checkuserID($apiResponse)) { foreach ($apiResponse['response'] as $row) { echo "<b>Time Added: </b>".$row['timeAdded']."<br> <b>Expiration: </b>".$row['expiration']."<br> <b>Reason: </b>".$row['reason']."<br> <b>Admin Name: </b>".$row['adminName']."<br><br>"; } } else { echo $apiResponse['descriptor']; } ?> </div> </div> </center> </div>
  5. Man Thank you so much @RayRay5 I wasn't sure were to just ask for help you provided so much details it is crazy. Thanks figured I was just missing something crazy., It is ok to ask stuff like that here correct? I am just looking to learn and just not a good place to learn as no one wants to show anyone anything because they are scared people are going to steal it. I just want to learn and write my own but have someone show me how they did stuff. Nothing Major I not for sure wanting to use anyone code I want it to be my own. That is why i have been looking at the API's so hard I would like to figure out how to look at hidden API's I know there is tons out there. Man thanks a ton I tried reaching out to people that have made stuff and they just don't want to talk to me.
  6. So i am playing around nothing big just learning so I know not to do a ton of request. This is just mine and just learning. I have some code I am trying to do so I can do calls to the https://api.truckersmp.com/v2/bans/ So I have in a DB someones truckers MP id it is like <?php echo $row['truckermp']; ?> calls for it from my DB. What I wanted to do is have that command about pull the truckers MP ID from the DB and place it in the URL from the calls I have above this. Kind of like before So i am wondering If i need to put it in a function since I am learning I am not stressed about this just wanting to figuer it out and then my next move is to have it pull once and have it placed in my own DB so I am not doing calls to truckers mp API much at all. But it doesn't work So i have a users table that has a field of truckermp and well I might be doing this wrong. I know is I put in https://api.truckersmp.com/v2/bans/24 it works pulling back users 24 details. So how do i code it to pull what I have in the DB. Before you ask I already have all my DB stuff working in other code on the site fine it is just with this one Line wanting to know if anyone could point me the right way or show me where I am wrong. Thank you all. I am just learning so please don;t hurt me too bad in your comments back. <div class="container"> <center><h3> -Truckers MP Punishment Details- </h3> <div class="well well-sm" style="width: 80%;"> <div align="left"> <?php $apiResponse = json_decode(file_get_contents("https://api.truckersmp.com/v2/bans/<?php echo $row['truckermp']; ?>"), true); ?> <?php foreach ($apiResponse['response'] as $row) { ?> <?php echo "<b>Time Added : </b>"; echo $row['timeAdded'] ?><br> <?php echo "<b>Expiration : </b>"; echo $row['expiration'] ?><br> <?php echo "<b>Reason : </b>"; echo $row['reason'] ?><br> <?php echo "<b>Admin Name : </b>"; echo $row['adminName'] ?><br> <br /> <?php } ?> </div> </center> </div>
  7. So I have not see any Admins or Dev's at all on here are they working on the issue at all?
  8. @El1teZombiezHD Was thinking something about pulling the users current position on the map and or what details I could pull via ets2map API that could be useful. With the current player API v2 you can't tell if the user is online or offline. That is where the ets2map.com API comes in just wondering what else I would be allowed to use and or See Also if there is plans on releasing some of the API information for ets2map.
  9. Honestly looking for impersonation on some new crap to learn and do. Wanted to see what is out there.
  10. @Kat_pw and others. I know there is documentation on truckersmp.com API but any documentation on ets2map.com API anywhere? Wondering what we can use I have seen the check if a player is online http://tracker.ets2map.com/doko/{id} but is there any other API we can use from the ets2map site?
  11. @HumaneWolf Thanks for the information.
  12. @Bomlife @illtag Thank you both so much for the help!
  13. I have been toying with this Truckers MP API and well 2 days now been able to get everything else figured out. I wanted to pull the game time API into my site and then display it in Human readable. This is what I have so far. <?php $gametime = json_decode(file_get_contents("https://api.truckersmp.com/v2/game_time"), true); ?> <?php echo "Current Game Time: "; echo $gametime['game_time'] ?><br> So I am trying to figure out when I make the call and this display it how can I convert it and show in human readable. When I go to a converter site it says that Current Game Time: 2423486 = Thu, 29 Jan 1970 01:11:26 GMT Is this not EPOCH time that is reported back in the API? Also any way you all know to convert that I would be greatful..... Just looking for some help as i just started hitting this hard and I am a basic php guy so bear with me please.
  14. ^ So I submited a bug with all that ia did to make it happen and then how to make it work to them. it is listed at https://forum.ets2mp.com/index.php?/topic/26770-unable-to-launch-multi-player-launch-with-software-or-hardware-multi-monitor-system-0206-alpha/ Not sure what else I can do so that I get it noticed and then review it and maybe have a fix for it. Anyone else know what else I can do so that it gets looked at?
  15. So you disabled Auslogic BoostSpeed 8 and now your Display link works with the multi player. Because I have been scared to reinstall it. If you did this can you tell me how you did it? Is it in the C:\Users\****\Documents\ATSMP area? What is the steps to take this out? Where is Auslogic BoostSpeed 8 I have searched I am looking everywhere for it.
  16. So to me is this a Bug then they need to know about if anyone is running multi monitors like a hardware of software one then it won't allow the game to load? How do we go about letting the devs know. Also are you running a Multi-mon program or like a device to run multi monitors? and by you disabling "Auslogic BoostSpeed 8" allowed it to work? So would you advise I try to reinstall my stuff and then disable that setting?
  17. So I know what the problem is now 100% Installed one hardware driver / software and it made it stop working 100%. I play on a laptop and I have this device called a Display Link so that I can run more then on monitor (Many people use them) Once I installed their driver and firmware it stop working. Once I removed it all started working again 100%. So to me this is a bug because the previous version of the client had no issues with this software/driver at all. But do i file it here or with Display Link. Also if I go to display link what the hell do I even tell them. It is like clock work now I remove it and works install it and it doesn't work. BTW... I know I shouldn't game on a Laptop so please don't tell them that. If I had money right now I would have a Intel core i7 6700 with 32 gig ram and a 980. But i don't...... I wish I known what it doesn't like wondering if it is the fact maybe Display link doesn't like Direct X what is funny is that I am not even playing it on that monitor that is my monitor 2 I am playing it on a Direct cabled HDMI to the display port on the system but that software rewrites something that MP doesn't like.
  18. ok so I did this and it is working it is not a solution at all reformatted my system and reinstalled windows installed steam installed ATS and ETS installed the client now I am able to get on Multi Player So please bear with me I am going to start installing stuff back on my system and testing it each time I should post back once I have more information.
  19. So I have ran all as admin and in Windows 8 mode. I have also removed everything that has to do with games and steam and the program I have reinstalled and rebooted after everything I have disabled all and removed all firewalls because to me the error looks like it is unable to make a connection to a server so it just never loads the game like it is a update checker. it has pissed me off that now I am reloading my computer with Windows 10 pro and going to install steam and the game and just this to see what is making it do this and if that doesn't work well then for sure has to be the client. I will keep you posted
  20. I removed the current copy I had of the client for just ETS2 and then I downloaded Client 0.2.0.6 Alpha. I did a full install of the client and it wouldn't install the winter mod but added 2 MP icons on my desktop one for ATS and one for ETS2. I go to launch them and it never loads the game it acts like it is doing something and then nothing even loads up after picking Direct X or Open GL or any of the 3 options. This dose this on ETS2 and ATS now. So I have the log and this is what it tells me This is for ETS [22:18:14] <info> Logger started! [22:18:14] <error> Cannot open config.txt file! [22:18:14] <error> Cannot open config.dat file! [22:18:14] <info> Game version is supported. Base address: 00007FF6BD2A0000 Signature: c00db871756e [22:18:14] <info> [net] <Http async> creating thread... [22:18:14] <info> [net] <Http async> thread created. This is for ATS [23:18:50] <info> Logger started! [23:18:50] <error> Cannot open config.txt file! [23:18:50] <error> Cannot open config.dat file! [23:18:50] <info> Game version is supported. Base address: 00007FF56FFA0000 Signature: a2ffa88cdb93 [23:18:50] <info> [net] <Http async> creating thread... [23:18:50] <info> [net] <Http async> thread created. I only had this problem after I loaded the new client. I have re-downloaded the client 2 or 3 times and I even went to the point of backing up my profiles and then removing all the games from the system and reinstalled it all. Still same issue. I am on Windows 10 and seeing this issue. Also have the latest version of each game from steam. 1 deal I have noticed is that if I have all my stuff set and I run the MP client I have to End task on the game and then if I go back into the game with out MP my video settings default back out to some random settings and I have to set them back to where I had them. This happens every time I run the MP client on either game.
  21. I would like to see this honestly where you can build a list of your friends on the http://ets2map.com/and see what they are doing and where you would like to start would be awesome if you could just change your friends colors so on a busy world you can just follow your friends if you like
×
×
  • 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.