gerkone / pyTORCS-docker

Docker-based, gym-like torcs environment with vision.
17 stars 3 forks source link

Cannot switch the type of car #9

Closed zzlqwq closed 1 year ago

zzlqwq commented 1 year ago

I switched the car type from car1-trb1 to pw-306wrc in the configuration file, but after starting the game, I found that the car type did not change. I carefully checked the car name in torcs/configs/drivers/scr_server/scr_server.xml. I am sure I have successfully modified the content of the xml file. After that, I also checked the mapped xml file in the docker container. The content has also been successfully modified. I don't know where the problem is. Can you help me?

zzlqwq commented 1 year ago

I have solved this issue. The reason for this problem was that the root user and non-root user were using different configuration paths when starting the TORCS platform. The solution was to delete the contents of the ~/.torcs folder in the Docker container.