1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

AMS2 Modding Support Feedback

Discussion in 'Automobilista 2 - Modding' started by Renato Simioni, Apr 20, 2023.

  1. kivipallur1

    kivipallur1 Active Member AMS2 Club Member

    Joined:
    Oct 8, 2021
    Messages:
    121
    Likes Received:
    58
    I may be wrong but wasn't this issue because of the CustomAI files, not liveries? So try deleting customAI and keeping skins.
     
    • Informative Informative x 1
  2. blueferrari

    blueferrari Active Member

    Joined:
    Sep 8, 2020
    Messages:
    104
    Likes Received:
    36
    There is a problem with Championship Mode when using Mods. If you set up a Custom Championship with some MOD tracks, once a new update is released the file becomes corrupted, shutting down the sim or SimHub, if using via that.

    Even when I uninstall Mod tracks, I still can't access the Mod championships I set up previously, so stuck with that corrupted setup and unable to access it and the system will always shut down. Reisa need to have a delete option within the Championship mode, not where you create or delete them on the outer menu.
     
  3. blueferrari

    blueferrari Active Member

    Joined:
    Sep 8, 2020
    Messages:
    104
    Likes Received:
    36
    Hi Renato, there is a problem with Championship Mode when using Mods. If you set up a Custom Championship with some MOD tracks, once a new update is released the file becomes corrupted, shutting down the sim or SimHub, if using via that.

    Even when I uninstall Mod tracks, I still can't access the Mod championships I set up previously, so stuck with that corrupted setup and unable to access it and the system will always shut down. Reisa need to have a delete option within the Championship mode, not where you create or delete them on the outer menu.
     
  4. EverlastingApex

    EverlastingApex Procedural Career dev

    Joined:
    Apr 28, 2023
    Messages:
    20
    Likes Received:
    20
    Ok I'm at my wit's end, I can't figure out how to properly read the shared memory from a C# app.

    I just want to get the driver names and positions, what am I doing wrong? The output is a jumbled mess

    11:09:22:710 Driver: c�D, Position: 0
    11:09:22:710 Driver: , Position: 0
    11:09:22:710 Driver: , Position: 3277201533

    I suspect it's an incorrect mapping of the memory structure, but I'm not sure how to fix it

    This is my first time interacting with game memory, be gentle

    [StructLayout(LayoutKind.Sequential, CharSet = CharSet.Ansi, Pack = 1)]
    public struct ParticipantInfo
    {
    public bool mIsActive;
    [MarshalAs(UnmanagedType.ByValArray, SizeConst = 64)]
    public byte[] mName;
    public uint mRacePosition;
    }

    [StructLayout(LayoutKind.Sequential, Pack = 1)]
    public struct PCars2SharedMemory
    {
    public uint mVersion;
    public uint mBuildVersionNumber;
    public uint mGameState;
    public uint mSessionState;
    public uint mRaceState;
    public int mViewedParticipantIndex;
    public int mNumParticipants;
    [MarshalAs(UnmanagedType.ByValArray, SizeConst = STORED_PARTICIPANTS_MAX)]
    public ParticipantInfo[] mParticipantData;
    }

    private void ScanForRacePositions()
    {
    try
    {
    SharedMemory sharedData = sharedMemoryConnector.ReadData();
    int numParticipants = Math.Min(sharedData.mNumParticipants, 64);

    if (numParticipants > 0)
    {
    for (int i = 0; i < sharedData.mNumParticipants; i++)
    {
    var participant = sharedData.mParticipantInfo;
    if (participant.mIsActive)
    {
    string name = Encoding.ASCII.GetString(participant.mName).TrimEnd('\0');
    uint position = participant.mRacePosition;
    if (!string.IsNullOrWhiteSpace(name))
    {
    Debug.WriteLine($"Participant {i + 1}: {name}, P{position}\n");
    }
    if (name == "Safety Car")
    {
    break;
    }
    }
    }
    }
    else
    {
    Debug.WriteLine("not found\n");
    }

    }
    catch (Exception ex)
    {
    Debug.WriteLine($"Failed to read shared memory: {ex.Message}");
    }
    }
     
  5. Quantummodz

    Quantummodz Member

    Joined:
    Sep 29, 2023
    Messages:
    16
    Likes Received:
    27
    I have a couple of suggestions
    I mainly work on Livery mods for the skins templates for each model do not always have a template or example to help skinners with orientation
    The xml seems generalised and has any new offering listed regardless of the fact there may be no template or example in the zip file

    Banner
    Plate
    Lights flare
    Modders are very much left to work it out through trial and error

    glow plates for example seem to be limited to the door area. Why can this not be simplified to be an overlay using existing body mesh template as you may want to locate number plates on rear quarter or bonnet

    light glow and flare are in the xml but an examples or template are not in the template download
    So in essence it seems 50 % is provided and 50% you have to self learn
    It would also be great to see popular livery’s incorporated into game so they are avalible on multi player

    finally save replay ?? Why does it say saving replay but they never seem to be available again “no space in gallery”
     
  6. Sone Angel

    Sone Angel New Member

    Joined:
    Apr 12, 2024
    Messages:
    1
    Likes Received:
    0
    We could use the ability to start the game with parameters from json or other file that would enter race settings automatically. Stuff like track, player car, AI cars, weather, rules, pit stop options etc, basically everything we can click from race setup menu.

    We could also use race results in json or other readable file format.

    I know we have something like presets defined in game, but the purpose of this is to allow external apps to set up the race automatically instead of setting everything manually, and to get results automatically. I've been thinking about developing external app with "career mode", but unless those requirements are met its a huge pain to use an app like that.

    If it is already in the game, please point me to resources that explain it.
     
    • Agree Agree x 2
  7. Neto Soares

    Neto Soares New Member

    Joined:
    Mar 14, 2020
    Messages:
    7
    Likes Received:
    4
    Hello i have a issues with PC2 Cirtuits, provavely its a same issue of other people, but i dont find nothing about this in forum.. So my problem is, when everytime it i begin a new hotlap my hotlap its punish and cancelated because i cut the track, have any fix for this, i want racing in championship with COTA and FUJI... I install the mods with AMS2CM
     
  8. AllocDK

    AllocDK Active Member

    Joined:
    Jun 22, 2024
    Messages:
    140
    Likes Received:
    49
    Did you do as they tell us to do when using the modded track?

    In game, disable penalties to avoid penalty warnings.
     
    Last edited: Aug 2, 2024
    • Like Like x 1
  9. Roy Niessink

    Roy Niessink Well-Known Member AMS2 Club Member

    Joined:
    Mar 27, 2020
    Messages:
    1,328
    Likes Received:
    601
    I dont think your allowed to post links to modded content...
     
  10. AllocDK

    AllocDK Active Member

    Joined:
    Jun 22, 2024
    Messages:
    140
    Likes Received:
    49
    Oh, my bad, removed the link
     
    • Like Like x 1
  11. CrimsonEminence

    CrimsonEminence Administrator Staff Member AMS2 Club Member

    Joined:
    Nov 4, 2018
    Messages:
    9,500
    Likes Received:
    9,114
    To be clear:
    Links to modded content are alright, but links to Rips cannot be allowed.
     
    • Informative Informative x 2
  12. SlyFox035

    SlyFox035 New Member

    Joined:
    Jul 15, 2024
    Messages:
    4
    Likes Received:
    0
    I am not sure if I am on the right thread but I was wondering if it was possible to do some mods with only engine swaps.

    I am asking because I saw the Porsche 911 930 TAG Turbo that some of you may know.
    It is basically the Porsche 911 930 but with the F1 Engine from the MP4/2B! (link to a video: Porsche 930 TAG Turbo with F1 Engine! - 1.5-litre Turbo V6 Swap from a Formula 1! (youtube.com))

    So I was wondering if it was possible to take the RUF Yellowbird mod and use the engine (+sound) of the Formula Classic Gen 1M2?

    Thanks in advance for your help!
     

Share This Page