1. Do not share user accounts! Any account that is shared by another person will be blocked and closed. This means: we will close not only the account that is shared, but also the main account of the user who uses another person's account. We have the ability to detect account sharing, so please do not try to cheat the system. This action will take place on 04/18/2023. Read all forum rules.
    Dismiss Notice
  2. For downloading SimTools plugins you need a Download Package. Get it with virtual coins that you receive for forum activity or Buy Download Package - We have a zero Spam tolerance so read our forum rules first.

    Buy Now a Download Plan!
  3. Do not try to cheat our system and do not post an unnecessary amount of useless posts only to earn credits here. We have a zero spam tolerance policy and this will cause a ban of your user account. Otherwise we wish you a pleasant stay here! Read the forum rules
  4. We have a few rules which you need to read and accept before posting anything here! Following these rules will keep the forum clean and your stay pleasant. Do not follow these rules can lead to permanent exclusion from this website: Read the forum rules.
    Are you a company? Read our company rules

Question Problems when trying to make a new plugin for Carla

Discussion in 'SimTools DIY Version' started by Di Huang, May 30, 2018.

  1. Di Huang

    Di Huang New Member

    Joined:
    May 30, 2018
    Messages:
    2
    Location:
    US
    Balance:
    104Coins
    Ratings:
    +0 / 0 / -0
    My Motion Simulator:
    6DOF
    I am trying to use the simtools for Carla, which is an open source game under ubuntu. So for this task we have to use two separate computers, one running Ubuntu and the game and the other one is running Windows and Simtools. We will use UDP to send data between them.

    My question is how to design a plugin to foul the Simtool that the game is running in the same computer. I try to modify the plugin and set the patch function to disabled. But I cannot get the game engine's game list dropdown box enabled after I install my plugin.

    There is also another problem is that the pluginupdater is not working properly when I drag the plugin file onto it. It always say the game plugin is installed successfully but when I open the game manager there is nothing but the LFS on the list. Finally, I have to manually replace the .dll file in the appdata file to get the game manager recognize the new plugin. Is this a wrong way to do it and the reason why I cannot use the game engine? How can I deal with it? Thank you so much!

    upload_2018-5-30_13-22-55.png
    upload_2018-5-30_13-23-19.png
  2. Di Huang

    Di Huang New Member

    Joined:
    May 30, 2018
    Messages:
    2
    Location:
    US
    Balance:
    104Coins
    Ratings:
    +0 / 0 / -0
    My Motion Simulator:
    6DOF
    It seems that the reason why the game manager doesn't have the game list drop down is just because I don't choose Axis type. I now get the game engine works. But I still don't know if it is possible to get the Simtools to receive the udp message from the other computer. Or maybe I can write a script to receive the UDP message from server and then forward this message to the local port. Is this a good direction for me to work on?

    upload_2018-5-30_13-43-13.png
  3. noorbeast

    noorbeast VR Tassie Devil Staff Member Moderator Race Director

    Joined:
    Jul 13, 2014
    Messages:
    20,461
    Occupation:
    Innovative tech specialist for NGOs
    Location:
    St Helens, Tasmania, Australia
    Balance:
    144,596Coins
    Ratings:
    +10,741 / 52 / -2
    My Motion Simulator:
    3DOF, DC motor, JRK
    In Interface Settings you can set the Interface Type to Network and fill in the rest of the details to tell SimTools where to listen.
  4. Longxiang Guo

    Longxiang Guo New Member

    Joined:
    May 30, 2018
    Messages:
    4
    Balance:
    10Coins
    Ratings:
    +1 / 0 / -0
    After adding a self-made UDP .exe as the game and patch it in the game manager, I was able to get the game data from the tuning center when I sent out UDP message using that .exe. But I cannot get any output in the output testing section. Only the purple area is responding to the data stream. I have also tried setting the interface to make it send the data to 127.0.0. 1 through a random port but still don't get any response in the virtual axis section. Does anybody know why? Thanks in advance.

    upload_2018-5-30_22-28-27.png
    upload_2018-5-30_22-28-49.png
    upload_2018-5-30_22-29-6.png
  5. noorbeast

    noorbeast VR Tassie Devil Staff Member Moderator Race Director

    Joined:
    Jul 13, 2014
    Messages:
    20,461
    Occupation:
    Innovative tech specialist for NGOs
    Location:
    St Helens, Tasmania, Australia
    Balance:
    144,596Coins
    Ratings:
    +10,741 / 52 / -2
    My Motion Simulator:
    3DOF, DC motor, JRK
  6. yobuddy

    yobuddy Well-Known Member Staff Member Moderator SimAxe Beta Tester SimTools Developer Gold Contributor

    Joined:
    Feb 9, 2007
    Messages:
    5,133
    Occupation:
    Computer Technician
    Location:
    Portland, Oregon - USA
    Balance:
    47,902Coins
    Ratings:
    +5,027 / 16 / -0
    @Longxiang Guo,
    What do your axis assignments look like for your tester exe?
    Also looks like you need to capture Min/Max numbers for the game.
    Chat soon buddy,
    yobuddy
  7. Longxiang Guo

    Longxiang Guo New Member

    Joined:
    May 30, 2018
    Messages:
    4
    Balance:
    10Coins
    Ratings:
    +1 / 0 / -0
    Actually I haven't spent time in assigning all the axis because I am not having the motion base at my place right now so I just want to check if I can get this work.

    Rightnow my setting is:
    1. One computer(server) running Linux and also the Carla game. It sends the Roll Pitch Yaw data to another computer(client).
    2. The client is running Simtools and a executable named Faker.exe. I use Python to write this Faker and what it will do is receiving data from server and send it back to the local port to Simtools. I modify a simple UDP plugin and let the Simtool patch to the Faker.exe.
    3. The client will connect to the motion base and control the motor in it. I don't have it in my place right now so cannot test this part.


    upload_2018-5-31_1-0-35.png
  8. Longxiang Guo

    Longxiang Guo New Member

    Joined:
    May 30, 2018
    Messages:
    4
    Balance:
    10Coins
    Ratings:
    +1 / 0 / -0
    Thanks! I look through it but that is not my serious concern now. I have done the data collection for the Carla and I sent it use structure like this : ROLL,PITCH,YAW,HEAVE,SWAY,SURGE. And now I just try to get the virtual axis move when I send this data to the Simtools. But thanks for your help bro.
  9. yobuddy

    yobuddy Well-Known Member Staff Member Moderator SimAxe Beta Tester SimTools Developer Gold Contributor

    Joined:
    Feb 9, 2007
    Messages:
    5,133
    Occupation:
    Computer Technician
    Location:
    Portland, Oregon - USA
    Balance:
    47,902Coins
    Ratings:
    +5,027 / 16 / -0
    You need to set the max / min values for the plugin.
    And then you will see some action.
    yobuddy
  10. Longxiang Guo

    Longxiang Guo New Member

    Joined:
    May 30, 2018
    Messages:
    4
    Balance:
    10Coins
    Ratings:
    +1 / 0 / -0
    That works!! Thank you!
    • Like Like x 1
  11. tu xiao mi

    tu xiao mi Member Gold Contributor

    Joined:
    Aug 10, 2021
    Messages:
    71
    Balance:
    486Coins
    Ratings:
    +5 / 0 / -0
    My Motion Simulator:
    Arduino, 6DOF
    Finally, did you successfully connect carla and simtools?