cos120 / nvidia-self-driving

grab Torcs image
2 stars 2 forks source link

Can't add multiple clients #1

Open MarvinMo opened 6 years ago

MarvinMo commented 6 years ago

I have downloaded scr-linux-patch.tgz and scr-client-cpp.tgz and unpacked them in TORCS directory. And do the order "sh do_patch.sh". But when I start a "Quick race", there is only one client named "scr_server 1" in the initializing screen. image And what does the sentence "At this point, multiple clients can join an instance of the TORCS game by:" mean? I ran "./client port:3002" and got this: image Are there any ideas with this problem? Thanks!

MarvinMo commented 6 years ago

And how can I add some opponent cars?

cos120 commented 6 years ago

First problem The connection problem caused by the udp port in your python programm doesn't match with the port in scr_server, so it blocked until your send message to activate scr_server in correct port. The port in scr_server is 3001 by default,(at 60th line in scr_server.cpp. Second problem You can add more cars in quick race mode, you can only choose one car in practice mode. I have modified torcs for a lot in my another repo. If you want to use image to control cars in torcs, you should try shared memory, the scr_server will have some delay so your can't control the car immediately. This repo will not be update any more, I'm sorry for that. But if you have some other problems I'm glad to help you.