Spot the issue from .pm file

Discussion in 'Car Modding' started by jtbo, Sep 25, 2012.

  1. jtbo

    jtbo Registered

    Joined:
    Jan 12, 2012
    Messages:
    1,668
    Likes Received:
    48
    New game :rolleyes:

    Actually I'm going to rewrite numbers from this file to have bit better geometry, but I have run into issue that I have not been able to solve, Suspension editor software is not loading up this file:
    Code:
    [BODY]
    name=body mass=(1075) inertia=(996.75, 1283.82, 287.19)
    pos=(0.0, 0.0, 0.0) ori=(0.0, 0.0, 0.0)
    
    [BODY]
    name=fuel_tank mass=(2.0) inertia=(0.02, 0.18, 0.18)
    pos=(0, 0.5, 0.1) ori=(0.0, 0.0, 0.0)
    
    [BODY]
    name=driver_head mass=(5.0) inertia=(0.0125, 0.0125, 0.0125)
    pos=(-0.5, 0.5, 0.5) ori=(0.0, 0.0, 0.0)
    
    [BODY]
    name=fl_wheel mass=(10.0) inertia=(1.292, 0.724, 0.724)
    pos=(0.685, 0.049, -1.2) ori=(0.0, 0.0, 0.0)
    
    [BODY]
    name=fr_wheel mass=(10.0) inertia=(1.292, 0.724, 0.724)
    pos=(-0.685, 0.049, -1.2) ori=(0.0, 0.0, 0.0)
    
    [BODY]
    name=fl_spindle mass=(10.0) inertia=(0.0275, 0.0260, 0.0245)
    pos=(0.635, 0.049, -1.2) ori=(0.0, 0.0, 0.0)
    
    [BODY]
    name=fr_spindle mass=(10.0) inertia=(0.0275, 0.0260, 0.0245)
    pos=(-0.635, 0.049, -1.2) ori=(0.0, 0.0, 0.0)
    
    [JOINT&HINGE]
    posbody=fl_wheel negbody=fl_spindle pos=fl_wheel axis=(-1.00, 0.0, 0.0)
    
    [JOINT&HINGE]
    posbody=fr_wheel negbody=fr_spindle pos=fr_wheel axis=(1.00, 0.0, 0.0)
    
    //Front-Left
    [BAR]
    name=fl_fore_upper posbody=body negbody=fl_spindle pos=(0.3496457, 0.12727907, -1.5488917) neg=(0.61341351, 0.13380173, -1.2488917)
    
    [BAR]
    posbody=body negbody=fl_spindle pos=(0.3496457, 0.13380173, -1.2488917) neg=(0.61341351, 0.13380173, -1.2488917)
    
    [BAR]
    posbody=body negbody=fl_spindle pos=(0.37350311, -0.03735282, -1.2911083) neg=(0.66696984, -0.11102, -1.2911083)
    
    [BAR]
    name=fl_fore_lower posbody=body negbody=fl_spindle pos=(0.37350311, -0.04387548, -1.5911083) neg=(0.66696984, -0.11102, -1.2911083)
    
    //Front-Right
    [BAR]
    name=fr_fore_upper posbody=body negbody=fr_spindle pos=(-0.3496457, 0.12727907, -1.5488917) neg=(-0.61341351, 0.13380173, -1.2488917)
    
    [BAR]
    posbody=body negbody=fr_spindle pos=(-0.3496457, 0.13380173, -1.2488917) neg=(-0.61341351, 0.13380173, -1.2488917)
    
    [BAR]
    posbody=body negbody=fr_spindle pos=(-0.37350311, -0.03735282, -1.2911083) neg=(-0.66696984, -0.11102, -1.2911083)
    
    [BAR]
    name=fr_fore_lower posbody=body negbody=fr_spindle pos=(-0.37350311, -0.04387548, -1.5911083) neg=(-0.66696984, -0.11102, -1.2911083)
    
    //Front-Left steering
    [BAR]
    name=fl_steering posbody=body negbody=fl_spindle pos=(0.136157441, 0.0506161, -1.09) neg=(0.63220924, 0.049, -1.09)
    
    //Front-Right steering
    [BAR]
    name=fr_steering posbody=body negbody=fr_spindle pos=(-0.136157441, 0.0506161, -1.09) neg=(-0.63220924, 0.049, -1.09)
    
    [BODY]
    name=rl_wheel mass=(10.0) inertia=(1.292, 0.724, 0.724)
    pos=(0.69, 0, 1.2) ori=(0.0, 0.0, 0.0)
    
    [BODY]
    name=rr_wheel mass=(10.0) inertia=(1.292, 0.724, 0.724)
    pos=(-0.69, 0, 1.2) ori=(0.0, 0.0, 0.0)
    
    [BODY]
    name=rear_axle mass=(30.0) inertia=(0.0275, 9.25, 9.25)
    pos=(0, 0, 1.2) ori=(0.0, 0.0, 0.0)
    
    [JOINT&HINGE]
    posbody=rl_wheel negbody=rear_axle pos=rl_wheel axis=(-1.00, 0.0, 0.0)
    
    [JOINT&HINGE]
    posbody=rr_wheel negbody=rear_axle pos=rr_wheel axis=(1.00, 0.0, 0.0)
    
    //Kanga-link - body mounting is 10m to left of car, simulates Watts linkage in rFactor
    [BAR]
    name=track_bar posbody=body negbody=rear_axle pos=(10, 0, 1.2) neg=(0, 0, 1.2)
    
    //Torque link left
    [BAR]
    posbody=body negbody=rear_axle pos=(0.65, 0.15, 0.2) neg=(0.65, 0.189066575598997, 1.2)
    
    //Torque link right
    [BAR]
    posbody=body negbody=rear_axle pos=(-0.65, 0.15, 0.2) neg=(-0.65, 0.189066575598997, 1.2)
    
    //Torque link centre
    [BAR]
    posbody=body negbody=rear_axle pos=(0, -0.189066575598997, 0.2) neg=(0, -0.15, 1.2)
    rF2 seems to be working with it, even file is rubbish really, but for some reason Suspension editor says read 0 lines, it does read HDV properly as I have this there PhysicalModelFile=v360_cf_p.pm and file name is v360_cf_p.pm so that too looks to be same to me.

    I have tried to replace sections of file from another that does work, also have made new file, but still problem persists. Problems started with this latest generation for .pm files I made with car factory, there has been comma/dot errors that were annoying to find, but now I have compared file that works and this that does with Notepad++ compare function and only thing different are numbers or at least what I could find out.

    Weights, inertias and so on are far from finisihed as well is the geometry too for this one, this real car that is what I base rF2 actually has hubs, brakes and suspension at front from F1 car, bit hard to work without exact measurements though.

    Anyway, I think that there must be some line too many, some bracket or such missing, but I have now tried to find reason for weeks and so far nothing I have found, I was wondering if someone has made tool for Notepad++ to find out missing brackets or some of such errors? Or if file does work for you in suspension editor and it is only for me that it does not work?

    I also have gone character by character hdv files using compare and haven't found any explanation from there either, but suspension editor does show that file just fine.

    Must be some very simple thing that I miss constantly.
     
  2. Oleg

    Oleg Registered

    Joined:
    Sep 19, 2012
    Messages:
    20
    Likes Received:
    0
    looks like it's either did not found the file at all or didn't read anything. In first case, rename the file or remove it and try again. if you get an error like "file not found" or "missing", then editor is surely tries to read THIS file. Concerning a failed read, may be you've saved it as unicode?

    Just guessing.
     
  3. krivjur

    krivjur Registered

    Joined:
    Oct 5, 2010
    Messages:
    64
    Likes Received:
    7
    I tested it quickly and seems to open fine when saved as ANSI (UTF-8 is also fine, but only without Byte Order Mark, so normal Windows notepad won't work). I'm using Suspension Editor v2 build 20. Used GTR .HDV as base and only changed the pm name there.

    [​IMG]
     
    Last edited by a moderator: Sep 25, 2012
  4. sugarfoot

    sugarfoot Registered

    Joined:
    Jan 3, 2012
    Messages:
    60
    Likes Received:
    3
    I've had this problem when there are 2 or more .pm files named in the line:

    PhysicalModelFile=xxx.pm // xxx.pm

    Tony
     
    1 person likes this.
  5. jtbo

    jtbo Registered

    Joined:
    Jan 12, 2012
    Messages:
    1,668
    Likes Received:
    48
    We have a winner! :D

    Thx, that was really weird one, must be bug of sorts, perhaps in Suspension editor as it still works fine in rF2 with such commented out .pm line.
     
  6. sugarfoot

    sugarfoot Registered

    Joined:
    Jan 3, 2012
    Messages:
    60
    Likes Received:
    3
    Yes works fine in rFactor, it's only suspension editor with the problem.

    Tony
     
  7. krivjur

    krivjur Registered

    Joined:
    Oct 5, 2010
    Messages:
    64
    Likes Received:
    7
    Good catch. I should mention though that Suspension Editor fails to load the .pm even if you just put "//" at the end PhysicalModelFile line on .HDV. Probably stems from the fact ISI made HDVs never had a comment there.
     

Share This Page