Closed Kanenashi closed 2 years ago
I don't know, perhaps the port is already in use. However, you cannot change it as it is in the plugin. First fire up the game, see Waiting for connection in openplanet log, then use Driver.py. You can try to create a single socket in a different script, just to see what's the problem. I can tell you the usual (restart the computer, follow the setup) but I believe you have already tried that. Also, try installing python in C:, I had issues with D: for different programs.
Ok I'll check again since my C drive only has 200 MB left
I didn't check the logs and I got an invalid signature error for the plugin
Ok, so that happens if you are on EpicGames launcher. Try running the game from .exe, or use UbisoftConnect
I used ubisoft connect and I got the same error still
Did you clone this repo? It can sometimes download a scrambled file. You need to copy both plugin and signature files to the openplanet folder.
I'm sorry but uh... I downloaded.
and yes I have copied both files
Ok, so download git for windows. Then, git clone this repo, and then copy the files
.as and .sig right?
yes
Both files are in scripts folder for openplanet
I copied both of them as you said in the instructions
I don't know exactly. All I can do is tell you to try various things. Every issue that is solved, I put in the readme. I haven't seen this yet. Usually the solution is to use git to clone the repo and Ubisoft Connect. You can also try to hash the files so I can check if they aren't scrambled
How do I hash the files? I'm new to github
google certutil, open cmd
certutil -hashfile "plugin file" SHA1 certutil -hashfile "sig file" SHA1
save the hashes
6f64dd63d8a9ee776c92d09be773b07a85a25996 for the .as 2cbc5d2206ca5c3e7483435d3b9da38b0bc966b7 for the as.sig
that's it right?
as.sig is ok, the .as is not it is 2e627700f726f9883781d61f238024c61a2f745a
don't edit that file
so do I download it again?
git clone it then
Don't know, try to download it again, maybe you don't need to git clone but it will work definitely
Ok on it
I downloaded it again and I still got the same error of invalid signature
Is the hash ok?
I got the same hash 6f64dd63d8a9ee776c92d09be773b07a85a25996
No, that means that the file is not ok. You need to have a file that produces the hash i gave you
so gitclone it then?
It will work.
Ok I'm git cloning and it worked the hash matches
But I still get an invalid signature and it says "Loading legacy plugin"
I really don't know, try reinstalling the game or running from .exe or check if you copied files correctly. If you find a solution, let me know so I can write it in the readme for others
I recopied the files again and now I get this error File "D:\Python399\lib\threading.py", line 973, in _bootstrap_inner self.run() File "D:\Python399\lib\threading.py", line 910, in run self._target(*self._args, *self._kwargs) File "D:\TrackMania_AI-main\Driver.py", line 63, in data_getter_function data = GetData.get_data(s) File "D:\TrackMania_AI-main\GetData.py", line 7, in get_data data['speed'] = unpack(b'@f', s.recv(4))[0] 3.6 # speed struct.error: unpack requires a buffer of 4 bytes
The plugin works? If the plugin works I do not know why this won't work
That's the error message I get when I use driver.py in the Logs
sorry for being such an idiot
Wait, how? That's from plugin, they are not connected directly
I really recommend to place everything on C:
File "D:\Python399\lib\threading.py", line 973, in _bootstrap_inner self.run() File "D:\Python399\lib\threading.py", line 910, in run self._target(*self._args, **self._kwargs) File "D:\TrackMania_AI-main\Driver.py", line 61, in data_getter_function s.connect(("127.0.0.1", 9000)) ConnectionRefusedError: [WinError 10061] No connection could be made because the target machine actively refused it