Automobilista 2 Mods!!!

Discussion in 'Automobilista 2 - Modding' started by ZeferinoCoutinho, Jan 4, 2021.

  1. TheRaptor103

    TheRaptor103 Consistently inconsistent AMS2 Club Member

    Joined:
    Nov 28, 2021
    Messages:
    20
    Likes Received:
    24
    I actually have a question in this regard: if I wanted to swap the engine from one car to another, not modifying the engine's stats or anything else about a car in the process, how would you go about doing that? Or, if it's easier to answer, simply which files for a car should I start to look at and what can I ignore?
     
  2. Seb02

    Seb02 Active Member

    Joined:
    Mar 12, 2022
    Messages:
    521
    Likes Received:
    237
    Thank you for your answer. I have assigned a livery but I still have the white square. I will continue to search. Thanks again.
     
  3. Seb02

    Seb02 Active Member

    Joined:
    Mar 12, 2022
    Messages:
    521
    Likes Received:
    237
    I was unable to create a custom AI file for the VRC Auriel. How did you do ?
     
  4. jusk

    jusk Well-Known Member AMS2 Club Member

    Joined:
    Jan 13, 2022
    Messages:
    233
    Likes Received:
    369
    If you have a white square in the menu screens it is because you don't have a gui preview image. This is a dds image (2048x640) that you need to create and place in the /gui/vehicleimages/[modname] folder.
     
    • Like Like x 1
    • Informative Informative x 1
  5. jusk

    jusk Well-Known Member AMS2 Club Member

    Joined:
    Jan 13, 2022
    Messages:
    233
    Likes Received:
    369
    Try the attached file as a starting point-
    Screenshot 2023-05-12 224308.jpg
     

    Attached Files:

    • VRC.xml
      File size:
      328 bytes
      Views:
      127
    • Like Like x 1
    • Useful Useful x 1
  6. Scar666

    Scar666 Zum Glück bin ich verrückt

    Joined:
    Jul 1, 2020
    Messages:
    1,232
    Likes Received:
    1,378
    The 3 files you'll want to work on are the engine file (edfbin), gearbox file (gdfbin) and the chassis file (cdfbin)...

    If you miss one of the 3 files your gear ratios will be off... You'll also want the same drivetrain as the new engine...

    For best results you'd want to keep the original chassis file of the car you want to bring a new engine into and enter the new gear ratio numbers for the set up... But that requires hex editing... Swapping in another chassis file would change the entire car... So try doing it without the chassis file to begin with (just swap the engine and gearbox files and have the driveline entry the same)... And maybe make changing the gear ratios in the chassis file (controls the default gear ratios) your first entry into the hex coding stages... As it's just a byte you only need to find 1 not 4 bytes after the code for the gear that you are editing...

    It's not really possible without hex editing in a lot of cases because of the difference in ratios... If they are within the same class with the same gearbox/drivetrain then there's a good chance you can swap the engine file out by itself and get the results you want...

    If you want to swap in a turbo for a N/A or the other way around however it also involves the vehicle file (vdfm)... Which has a pointer to the turbo file... Which you would also need to bring in from the other engine files... However this is also like the chassis file and can't be swapped in without editing in hex... As the vdfm also contains information about where the wheels and tyres are and their physical properties as well as other features that define the car...

    Then there's the weight of the engine to consider... That will effect the inertia and the mass of the car... Both of which are part of the chassis file...
     
    • Informative Informative x 3
    • Like Like x 1
  7. Seb02

    Seb02 Active Member

    Joined:
    Mar 12, 2022
    Messages:
    521
    Likes Received:
    237
    @jusk , thanks a lot.
     
    • Like Like x 1
  8. TheRaptor103

    TheRaptor103 Consistently inconsistent AMS2 Club Member

    Joined:
    Nov 28, 2021
    Messages:
    20
    Likes Received:
    24
    Took a look at all the files and ouch, you weren't kidding, it all requires "blind" hex-editing... and here I thought I might've had a chance at making something without relatively too much effort. I think I'll have to leave the modding to those who already know what they're doing. Thank you for the explanation though, all the knowledge about modding AMS2 is so little (publicly, at least); we really need someone to make a write-up on all the known info for modding the game but it's admittedly a huge ask considering how often the game is changing....
     
    • Agree Agree x 3
  9. Scar666

    Scar666 Zum Glück bin ich verrückt

    Joined:
    Jul 1, 2020
    Messages:
    1,232
    Likes Received:
    1,378
    It's not completely blind,
    AMS2 modding docs

    There's also some helpful info on the Project cars modding team discord...

    Just search for the parameter code in HxD and then look for the following bytes to make the changes... Floats and intergers are 4 bytes long but the information you want to change will be in a different spot on right dependant on what it is... They'll make more sense once you get used to it... And bytes are a single byte long, which makes it easier to change the gear settings...

    Bytes cannot have a decimal and only have a limited range, hence intergers are used for larger numbers and floats for numbers with a decimal...

    I think the fact that the game is still in such flux is keeping a lot of modding teams at bay... That and without the documentation they are running blind into a lot of parameters... But the more that get involved the more there is to be learned and shared within the community...
     
    • Like Like x 2
  10. Racinglegend1234

    Racinglegend1234 AMS2 wiki founder AMS2 Club Member

    Joined:
    Jul 28, 2022
    Messages:
    5,791
    Likes Received:
    2,014
    Will modded cars be able to utilise V1.5 tyres and physics when this month’s update arrives?
     
  11. Scar666

    Scar666 Zum Glück bin ich verrückt

    Joined:
    Jul 1, 2020
    Messages:
    1,232
    Likes Received:
    1,378
    Tyres involve a pointer... They will automatically get the update...

    This will change the behaviour of the mods and possibly break them...
     
  12. Racinglegend1234

    Racinglegend1234 AMS2 wiki founder AMS2 Club Member

    Joined:
    Jul 28, 2022
    Messages:
    5,791
    Likes Received:
    2,014
    But will that happen this month, next month or both?
     
  13. Gevatter

    Gevatter The James May of Simracing AMS2 Club Member

    Joined:
    Mar 10, 2016
    Messages:
    1,506
    Likes Received:
    894
    Depends on what gets updated when and which mod points to which tires.
     
    • Like Like x 1
  14. Racinglegend1234

    Racinglegend1234 AMS2 wiki founder AMS2 Club Member

    Joined:
    Jul 28, 2022
    Messages:
    5,791
    Likes Received:
    2,014
    Then my thought was correct
     
  15. Scar666

    Scar666 Zum Glück bin ich verrückt

    Joined:
    Jul 1, 2020
    Messages:
    1,232
    Likes Received:
    1,378
    As soon as the release hits and the tyres are changed the mods will either reap the benefits of the new tyres or be broken...

    Most likely all mods will need their physics tweaked for the new tyres...
     
  16. mad maxx

    mad maxx Active Member AMS2 Club Member

    Joined:
    Jun 14, 2016
    Messages:
    303
    Likes Received:
    190
    A surprise from..... japan? On pc2 Modding Team.....!!!
     
    Last edited: May 27, 2023
    • Like Like x 4
    • Friendly Friendly x 1
  17. Racinglegend1234

    Racinglegend1234 AMS2 wiki founder AMS2 Club Member

    Joined:
    Jul 28, 2022
    Messages:
    5,791
    Likes Received:
    2,014
    A certain mountain?
     
    • Like Like x 1
    • Funny Funny x 1
  18. Eric Rowland

    Eric Rowland Well-Known Member AMS2 Club Member

    Joined:
    Mar 10, 2016
    Messages:
    423
    Likes Received:
    674
  19. Periophtalmus Spintirus

    Periophtalmus Spintirus [3DP]BumbleBee AMS2 Club Member

    Joined:
    Dec 10, 2016
    Messages:
    714
    Likes Received:
    392
    Nice surprise! :D
     
    • Agree Agree x 2
  20. FearFactor

    FearFactor New Member

    Joined:
    Jun 5, 2021
    Messages:
    19
    Likes Received:
    3
    I have a general question....i saw few days ago a video about the Group5 for AMS2.
    Where can i find it or is it already "released"/possible to download?
     

Share This Page