Scripts signature

Discussion in 'Modding' started by Rik, Oct 4, 2014.

  1. Rik

    Rik Registered

    Joined:
    Oct 5, 2010
    Messages:
    1,174
    Likes Received:
    9
    hi,
    I wanted to change some core files in the folder core\scripts.
    they have a signature control.
    what type of signature is ?. how can I get the signature for the new mas file?

    I've tested my new pitexitworker in Developer mode and he work, now i want put him in game.

    Thanks in advance!
     
  2. Rik

    Rik Registered

    Joined:
    Oct 5, 2010
    Messages:
    1,174
    Likes Received:
    9
    i think that is not possible to change pitexitworker with another one in core folder.
    I've tried also to made a script rfcmp with a new mtf file but there is no way to change the pitexitworker.
    I think there is a check in rfactor exe file
    Is this correct?

    Thanks
     
  3. redapg

    redapg Registered

    Joined:
    Jan 16, 2012
    Messages:
    4,008
    Likes Received:
    2,875
    Would you upload your rfcmp of the changed pitworker that we can try it out?
     
  4. Rik

    Rik Registered

    Joined:
    Oct 5, 2010
    Messages:
    1,174
    Likes Received:
    9
    my rfcmp install my file in:
    \Installed\Scripts\
    the list of files is:
    pitexitworker.mft
    pits.mas
    pitcrewnormal.mas
    pitcrewleft.mas
    pitcrew10sec.mas

    and not work. if i replace with this files, the files in \core\scripts when start rF2 an error message appears : scripts 1.0d is missing, invalid or damaged.
    so there is a check for this scripts.
    it is the executable that does the check ? or some other scripts?
    Thanks

    in dev mode work:
     
  5. redapg

    redapg Registered

    Joined:
    Jan 16, 2012
    Messages:
    4,008
    Likes Received:
    2,875
    I guess the one in the ..\Core\Scripts folder is the default pitcrew, used for all mods as long as no other is set in the rfm of your own car-comp/mod.

    Did you try to set it in your rfm or do you definitly want to replace the default one?

    And it seems to be "hardcoded", because you get the error message that the comp 1.0d is missed, invalid... when overwriting the original files in the ..\Core\Scripts folder.

    But i have no idea how to install/register an installation into that folder, instead of the normal ..\Installed\Scripts folder.
     
    Last edited by a moderator: Oct 5, 2014
  6. Rik

    Rik Registered

    Joined:
    Oct 5, 2010
    Messages:
    1,174
    Likes Received:
    9
    Thanks redapg

    in rfm? how you can put a script in rfm?
    and if i replace the default one i get the same error.
    :)
     
  7. Denstjiro

    Denstjiro Registered

    Joined:
    Oct 6, 2010
    Messages:
    2,952
    Likes Received:
    14
    No idea how to help out but +1 because of the girl :)
     
  8. Rik

    Rik Registered

    Joined:
    Oct 5, 2010
    Messages:
    1,174
    Likes Received:
    9
    Thanks Denstjiro
    and i have also animation for others pit crew. of course women. :p
    I have an animation to be replaced the red marks when entering in to the pitlane to do the pit and when you go in start grid.
    but I need to figure out how to do this in user mode.
    in developer mode I have understood and experienced.
     
  9. redapg

    redapg Registered

    Joined:
    Jan 16, 2012
    Messages:
    4,008
    Likes Received:
    2,875
    Now i have a little problem :) in rFactor 1 you have been able to refer to your customized Pitcrew in the rfm, by using the line:
    PitsDir=GAMEDATA\SCRIPTS\[Your Folder]

    And the whole section for that in the rfm looked like this:
    ConfigOverrides
    {
    PitsDir=GAMEDATA\SCRIPTS\[Your Folder]
    }


    I don't know if the needed line/term has been changed in rF2, you would have to try it out.
    But i'm sure the possibility to set an own pitcrew is still present in rFactor 2.
    Maybe it have to be changed into:
    PitsDir=Installed\Scripts\[Your Folder]

    I didn't play around with it yet.


     
  10. Rik

    Rik Registered

    Joined:
    Oct 5, 2010
    Messages:
    1,174
    Likes Received:
    9
    Thanks,
    I thought I had the solution after your post.
    I've tried.
    there is no way to change the rfm file in build 860
    I tried in several ways.
    I've extract the file "my new mod_10.mas" from \installed\rfm with MAS2.exe and i've changed the extracted file "my new mod_10.RFM" with notepad.
    i've added this lines:
    ConfigOverrides
    {
    // Remove the comment marks "//" and set the appropriate dir if you wish to override where
    // this rFm looks for that data.
    // At this time, I do not see a reasonable case for changing GameDir, SaveDir or LogDir
    // Because of this new capability, I would no longer make changes to the Config.ini file
    // except for debug reasons.
    //SoundDir=GAMEDATA\SOUNDS\
    //VehicleSound=GAMEDATA\SOUNDS\
    //OptionsAnim=UIDATA\MOVIES\
    //OptionsFlags=GAMEDATA\NATIONS\
    //OptionsSounds=UIDATA\UISOUNDS\
    //OSCFile=UI.OSC
    //OptionsDir=UIDATA\
    //ReplayDir=REPLAYFRIDGE\REPLAYS\
    //ReplayPluginsDir=REPLAYFRIDGE\PLUGINS\
    //PluginsDir=PLUGINS\
    //MovieDir=MOVIEFILES\
    //TracksDir=GAMEDATA\LOCATIONS\
    PitsDir=INSTALLED\SCRIPTS\PITEXITWORKER\1.0\
    //VehiclesDir=GAMEDATA\VEHICLES\
    //DriversDir=GAMEDATA\TALENT\
    //HelmetsDir=GAMEDATA\HELMETS\
    //GamesDir=RFM\
    //LogDir=USERDATA\LOG\
    //SaveDir=USERDATA\
    //MusicDir=MUSIC\
    //ShadersDir=GAMEDATA\SHARED\
    //ControllerDir=USERDATA\CONTROLLER\
    //ScreenShotsDir=USERDATA\SCREENSHOTS\
    //SupportDir=SUPPORT\
    //LanguagesDir=SUPPORT\LANGUAGES\
    //LanguagesFile=GAME.DIC
    }
    I've create a new "my new mod_10.mas" with MAS2.exe and i've replaced the old one.
    but not work.

    I have also tried to unpack and repack the file my new mod_10.mas
    without making changes.
    after it did not work.
    it is impossible to change the rfm file.
    at least with this new build 860

    you can try to make a change to any file rfm?
    even the number of cars on the track.

    you then give me confirmation of this?

    Thanks in advance
     
  11. redapg

    redapg Registered

    Joined:
    Jan 16, 2012
    Messages:
    4,008
    Likes Received:
    2,875
    I have not so much time at the moment but the next days i will try to add a customized pitcrew to a private mod that i do have.
    I will report here if successful or not :)
     
  12. Rik

    Rik Registered

    Joined:
    Oct 5, 2010
    Messages:
    1,174
    Likes Received:
    9
    well thanks!
     
  13. redapg

    redapg Registered

    Joined:
    Jan 16, 2012
    Messages:
    4,008
    Likes Received:
    2,875
    Made some testing:
    Changing the signatures, written in the mft-file of the original script, manually, makes no difference, the script loads without any error-message. So the signature is not the problem.

    But changing one of the mas files makes the game gives the error-message "core component scripts.......". So that seems to be the problem.

    Then i've tried to assign a simply customized Pitcrew to my vehicle.

    But..... no success :(

    I tried it with some different settings in the rfm file of my single vehicle component, with creating a multiple component with my car and the customized pitcrew and with creating a rfmod.
    But nothing worked.
    The customized pitcrew was shown as "in use by 1 mod" with the multiple component and the rfmod, but it wasn't used by the game.

    So at this point i am helpless too. Maybe ISI can lighten us here? :)
     
  14. Rik

    Rik Registered

    Joined:
    Oct 5, 2010
    Messages:
    1,174
    Likes Received:
    9
    i hope
     
    Last edited by a moderator: Oct 6, 2014

Share This Page