1. This Software is no longer supported by us. Please download the new motion control software SimTools.
    Dismiss Notice
  2. 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
  3. 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!
  4. 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
  5. 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

DiRT is working with outsim!

Discussion in 'Force-Sender & Plugins' started by SimHawk, Nov 5, 2007.

  1. SimHawk

    SimHawk Member

    Joined:
    Oct 3, 2007
    Messages:
    120
    Occupation:
    Engineer
    Location:
    Norway
    Balance:
    0Coins
    Ratings:
    +0 / 1 / -0
    I just managed to capture DiRT motion data! :razz:

    The only downside is that DiRT is freezing if you configure it to use the X-sim lfs plugin port 4123. I got it to work with a standalone outsim-listener I made using this C# library:
    http://lfs.fullmotionracing.com/Default.aspx?topic=FullMotion.LiveForSpeed.InSim+Namespace

    In that application I could use the default port number used by DiRT (Port 20777) and it now works. I could see motion data extracted from the game. But since it is the wrong port it wont work with Force Sender's LFS plugin.

    Change motion=true in this file to make DiRT send lfs-outsim compatible data.
    C:\Documents and Settings\All Users\Codemasters\DiRT\hardware_settings_config.xml

    Question for the LFS plugin developer: Can we change the port number used by the lfs outsim plugin?? Or make it configurable in a new release?
  2. egoexpress

    egoexpress Active Member

    Joined:
    Dec 13, 2006
    Messages:
    3,839
    Location:
    Germany - Frankfurt/M
    Balance:
    421Coins
    Ratings:
    +10 / 1 / -0
    Amazing great news!

    A second game that works as good with our sims like LFS :gut:

    Shouldn't be a problem for Sirnoname to change the port in the Force Sender imho.
  3. tronicgr

    tronicgr

    Balance:
    Coins
    Ratings:
    +0 / 0 / -0
    I know that it was going to work! :D Good work!!

    Sirnoname could create a new plugin for DiRT (same as LFS) but with the ability to change listening port...

    Thanos
  4. SimHawk

    SimHawk Member

    Joined:
    Oct 3, 2007
    Messages:
    120
    Occupation:
    Engineer
    Location:
    Norway
    Balance:
    0Coins
    Ratings:
    +0 / 1 / -0
    I will test some more to find out why DiRT freezes when using port 4123. It froze using 100 as delay as well. I will test some more consistency tests and come back with the result. I was just kind of excited so I had to tell you.
  5. SimHawk

    SimHawk Member

    Joined:
    Oct 3, 2007
    Messages:
    120
    Occupation:
    Engineer
    Location:
    Norway
    Balance:
    0Coins
    Ratings:
    +0 / 1 / -0
    Sorry folks... it had to be some trouble and mixup. Seemes that there are two different freeze situations. If the motion delay setting is too high dirt will not enter the race/car view at all, just a white screen. I thought it was this error 'mboRacing' talked about.

    DiRT works even with port 4123 and the lfs plugin (good news - no change needed) but the game freezes after about 45 sec (bad news). Last night I only tested for 30 sec or so and claimed victory! :(

    So LFS plugin is working with DiRT, but DiRT has a problem that needs to be solved. Maybe 'mboRacing's offset research is a faster way to our goal.
  6. SimHawk

    SimHawk Member

    Joined:
    Oct 3, 2007
    Messages:
    120
    Occupation:
    Engineer
    Location:
    Norway
    Balance:
    0Coins
    Ratings:
    +0 / 1 / -0
    I just found out that the shakedown stages works perfectly OK, I can run them over and over again and see the blue dot in profiler on my laptop follow the cars forces. But as soon as I enter a real stage...45 sec and freeze! :( .
  7. SimHawk

    SimHawk Member

    Joined:
    Oct 3, 2007
    Messages:
    120
    Occupation:
    Engineer
    Location:
    Norway
    Balance:
    0Coins
    Ratings:
    +0 / 1 / -0
    Good news again! The DiRT freeze has something to do with the graphic setup as well, so maybe the force output made the CPU working a bit harder and then trigged the freeze. Because I lowered my graphic setup and now I can drive forever! :D

    So the conclusion is that the motion interface in DiRT works perfectly OK if no other problem is making DiRT freeze.
  8. egoexpress

    egoexpress Active Member

    Joined:
    Dec 13, 2006
    Messages:
    3,839
    Location:
    Germany - Frankfurt/M
    Balance:
    421Coins
    Ratings:
    +10 / 1 / -0
    Great to know!

    In a few days I will power up my SimforceGT and test it by myself :)
  9. SimHawk

    SimHawk Member

    Joined:
    Oct 3, 2007
    Messages:
    120
    Occupation:
    Engineer
    Location:
    Norway
    Balance:
    0Coins
    Ratings:
    +0 / 1 / -0
    @Sirnoname - thank you for your source code. I am not sure if we need to change anything, because as you can read in my previous post it works now with port 4123. The DiRT freeze was triggered by the motion output= true, but the actual cause was graphic related. As soon as I lowered my graphic setting a bit it worked with the LFS plugin! Anyway I looked at the code just to see how things work. If we do need some rework on the plugin I could maybe help, but I only have the C# express edition.
  10. SimHawk

    SimHawk Member

    Joined:
    Oct 3, 2007
    Messages:
    120
    Occupation:
    Engineer
    Location:
    Norway
    Balance:
    0Coins
    Ratings:
    +0 / 1 / -0
    No it is not, only one port. The DiRT readme says it is compatible with LFS's outsim.
  11. tronicgr

    tronicgr

    Balance:
    Coins
    Ratings:
    +0 / 0 / -0
    Hi Simhawk,

    I bought DiRT yesterday to test it, but I could not get it connect it localy (127.0.0.1) as I did in LFS.

    Do you use second computer to retrieve the data? Can explain in detail all the connections you did and what software did you run on each computer?

    Regards, Thanos
  12. SimHawk

    SimHawk Member

    Joined:
    Oct 3, 2007
    Messages:
    120
    Occupation:
    Engineer
    Location:
    Norway
    Balance:
    0Coins
    Ratings:
    +0 / 1 / -0
    Hello Thanos,

    I have tried both locally and with a standalone computer running profiler.
    This is how I run the local setup:

    Open up DiRT file hardware config.xml or something. :!: Note that this file is located two places if I recall correctly. One in the DiRT folder (used for default setup for new users) and one in documents and settings/application data/DiRT or something like that. On my Vista machine it is somewhere else. Point is that it is located under a user setting folder somewhere. You have to edit the last one, the other will have no effect.

    find the xml tag motion enabled and set it to true, ip address 127.0.0.1 and port 4123 (outsim), delay to 1 and extradata= 0.

    I start force sender (select LFS plugin if not selected), dial in 127.0.0.1 as IP address and press send data.

    Start profiler. load your setup and start simulator.

    Start DiRT and when the race starts you should have changing values in your outsim window and sim should be running.

    I guess you have edited the wrong xml file as all other things are similar to LFS. Good luck! I enjoy DiRT very much. For simulations you HAVE to mod the brakes and tire grip. If you want to know how I'll tell you, or you could google it. :)
  13. tronicgr

    tronicgr

    Balance:
    Coins
    Ratings:
    +0 / 0 / -0
    I think I already edited the xml file you mentioned... I'll take a better look to see if something else is wrong...

    Generaly works very fast for me even with x-sim software running in background... Never expierenced lock-up!!! Cool!


    I google it a little but couldn't find much... Can you tell us a little more on these mods? We interested in realistic simulation after all! :)

    Thanos
  14. SimHawk

    SimHawk Member

    Joined:
    Oct 3, 2007
    Messages:
    120
    Occupation:
    Engineer
    Location:
    Norway
    Balance:
    0Coins
    Ratings:
    +0 / 1 / -0
    DiRT mods
    http://www.colinmcrae.110mb.com/dirt_mods-tools-hints.htm
    * DiRT Demo RealisticGrip Alpha
    I made an excel spreadsheet that mods this tyregrip.csv file just by entering the % traction I want. I could send it to you if you want to alter the grip more than this mod. I use 85% percent of original grip.


    http://community.codemasters.com/forum/showthread.php?t=189525&highlight=brake
    * Set brake to pro-sim

    With these mods you can make it more realistic to drive. I would say it is competing with RBR rally. Enjoy! :)
  15. tronicgr

    tronicgr

    Balance:
    Coins
    Ratings:
    +0 / 0 / -0
    Great links!!! Thanks :)


    Thanos
  16. tronicgr

    tronicgr

    Balance:
    Coins
    Ratings:
    +0 / 0 / -0
    Yes!!!! DiRT works for me too!!!!

    I found some time to take a closer look on whats going on and found that I needed to edit the hardware.config file in the dirt installation folder with the settings and then copy it over the hardware.config file on the users profile area!!!

    It worked! The two files weren't the same. The one on the Dirt installation folder was in editable CR/LF txt format, while the other in users profile in stripped format that looked strange in notepad...

    Anyway I got it working and I'm very happy about it!!!

    Thanos
  17. SimHawk

    SimHawk Member

    Joined:
    Oct 3, 2007
    Messages:
    120
    Occupation:
    Engineer
    Location:
    Norway
    Balance:
    0Coins
    Ratings:
    +0 / 1 / -0
    Congratulations!!! God news!! :top: Happy driving!

    I found some of the cars kind of weird to drive, until I saw that the differential setup was way off. You should check it if you want the perfect feeling. The cars respond well to setup changes.

    Cant wait to see how your sim reacts to bumpy roads and twisty turns. Video????? :D

    Do you think wiper motors used in a frex setup is powerful enough to make the sim shake? It will be interresting to see when the other wiper-frex projects are realized.
  18. tronicgr

    tronicgr

    Balance:
    Coins
    Ratings:
    +0 / 0 / -0
    The wipers will shake the sim for sure! And as I have seen from my joyrider, you can feel more the vibrations than you can see them from outside (as viewer!). I may build a SimForceGT simulator for myself until summer, if I can save some money for the materials...

    I will take a video with Dirt as soon as I connect my fixed AVR motion controller on it. The wiring is troubles me now as I need to make new wire connectors to the RN-VN2 controller.

    Thanos
  19. SimHawk

    SimHawk Member

    Joined:
    Oct 3, 2007
    Messages:
    120
    Occupation:
    Engineer
    Location:
    Norway
    Balance:
    0Coins
    Ratings:
    +0 / 1 / -0
    Good to know! :) I will also possibly convert to electric wiper-frex sometime in the future.
  20. RaceRay

    RaceRay Administrator Staff Member SimAxe Beta Tester

    Joined:
    Nov 8, 2006
    Messages:
    4,656
    Occupation:
    Self-employed | Web and application development
    Location:
    Hamburg, Germany
    Balance:
    23,862Coins
    Ratings:
    +1,999 / 13 / -0
    My Motion Simulator:
    2DOF, DC motor, SimAxe, SimforceGT