How to start programming mods for my summer car?

Hey, everyone, I am new too unity and C# but I have programmed in Java and even modified java based games.

How do you all start creating plugins? Like complex ones for example the coffie machine mod, or the colt 1911 mod.
 
Hey guys, been reading your posts and it has assisted me greatly on a plug-in I am developing currently... I am having issues though when trying to pull FsmFloat values when there are multiple Floats with the same name for the gameObject (In this case the Gifu). Waste is listed for both PlaymakerFSM "Waste" and PlaymakerFSM "SpillPump" Under the child "<refuse>Tank" (profanity replaced) - When I try to get the Float "Waste" it is only binding to the LAST Float under SpillPump... is there a way to get the one on the PlaymakerFSM "Waste" specifically?
I have properly attached FuelOil and FuelLevel to my variables, but the last level I am trying to include isn't properly capturing. I assume I am missing something obvious... your help is greatly appreciated!

Below is my code in current state for this module:
Code:
      private void GetGifuStatus()
        {
            if (!_getGifuValues)
            {
                if (GameObject.Find("GIFU(750/450psi)") != null)
                {
                    foreach (var fsm in Resources.FindObjectsOfTypeAll<PlayMakerFSM>())
                    {
                        var fsmfloat = new Func<string, FsmFloat>(fsm.FsmVariables.FindFsmFloat);

                        if (fsm.gameObject.transform.root.name == "GIFU(750/450psi)")
                        {
                            if (fsm.gameObject.name == "FuelTank")
                                _gifuFuel = fsm.FsmVariables.FindFsmFloat("FuelLevel");
                            if (fsm.gameObject.name == "FuelTank")
                                _gifuFuelOil = fsm.FsmVariables.FindFsmFloat("FuelOil");
                            if (fsm.gameObject.transform.root.name == "<refuse>Tank")
                            {
                                if (fsm.gameObject.name == "Waste")
                                {
                                    _gifuWaste = fsm.FsmVariables.FindFsmFloat("Waste");
                                }
                            }
                        }
                    }
                    _getGifuValues = true;
                }
            }
        }
 
can some one do youtube movie hove maker mood for i have look on mood vaz for my sumer car and down lode and the file have sharedassets1.assets and sharedassets1.assets so you get vaz car in game
and i have look in to this and find no answer how i make car mod so i get my own car in game my summer car what software i ned how i save and make mod for car i what to make a Swedish car so i get it in game bute no answer how make a car in my summer car so ples can some on do youtube movie how make you own car in my summer car
 
Are u from poland?
i need some help
i need fix this

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using UnityEngine;
using MSCLoader;
using HutongGames.PlayMaker;


namespace SIX_GEARS_by_KETTLSON
{
public class SIX_GEARS_by_KETTLSON : Mod
{
public override string ID => "SIX_GEARS_by_KETTLSON";
public override string Name => "SIX GEARS by KETTLSON";
public override string Author => "Kettlson";
public override string Version => "1.0a";

public override bool LoadInMenu => false;
public override bool UseAssetsFolder => false;

Drivetrain _satsumaDriveTrain;

GameObject _satsuma;
GameObject player;

public Drivetrain.Transmissions lastDrivetype;
public int driveType = 1;
public float[] oldRatio;
public float[] newRatio = new float[]
{
-4.093f,
0f,
3.424f,
2.141f,
1.318f,
1f,
0.90f,
0.85f,
};

int rememberGear = 0;
bool autoTransEnabled;

public override void OnLoad()
{
try
{
_satsuma = GameObject.Find("SATSUMA(557kg, 248)");
player = GameObject.Find("PLAYER");

AssetBundle ab;

if (_satsuma != null)
{
_satsumaDriveTrain = _satsuma.GetComponent<Drivetrain>();
if (_satsumaDriveTrain != null)
{
defaultRPM = _satsumaDriveTrain.maxRPM;
defaultShiftUpRPM = _satsumaDriveTrain.shiftUpRPM;
defaultShiftDownRPM = _satsumaDriveTrain.shiftDownRPM;
oldRatio = _satsumaDriveTrain.gearRatios;
enableBoost = true;

engineFixerMod.OptimizeEngineFixer();
}
}

ModConsole.Print(Name + ": Mod loaded!");


}
catch (Exception e)
{
ModConsole.Error("Asset load and setup failed. Message: " + e);
return;
}

}
public override void Update()
{
if (_satsumaDriveTrain.gearRatios != newRatio)
{
_satsumaDriveTrain.gearRatios = newRatio;
_satsumaDriveTrain.maxRPM = 8400f;
}
rememberGear = _satsumaDriveTrain.gear;
}
}
}


VISUAL STUDIO 2019 saying 'Nie można znaleść nazwy typu lub przestrzeni nazw "driveTrain" ' (PL)
 
Prev users post.....

VISUAL STUDIO 2019 saying 'Nie można znaleść nazwy typu lub przestrzeni nazw "driveTrain" ' (PL)

I posted an answer here:
 
guys how i load a texture ?
There are a few different way you could proceed on doing this. I'll give you two:
#1: Load the file content using System.IO library and File.LoadAllBytes.
#2: Load the file from disk or an internet source using UnityEngine.Net? library UnityWebRequestTexture.

Im going to provide two simple, uncompleted, snippets which could provide you with some idea on how to proceed.
  1. bytes = System.IO.File.LoadAllBytes(filePath);
  2. texture = new Texture2D(2, 2);
  3. texture.LoadImage(bytes);
_____________________________________________________________________________________________________
  1. var www = UnityWebRequestTexture.GetTexture("file://" + filePath);
  2. yield return www.SendWebRequest();
  3. texture = DownloadHandlerTexture.GetContent(www);
GLHF!
 

Latest News

How long have you been simracing

  • < 1 year

    Votes: 282 15.2%
  • < 2 years

    Votes: 190 10.2%
  • < 3 years

    Votes: 192 10.4%
  • < 4 years

    Votes: 140 7.5%
  • < 5 years

    Votes: 249 13.4%
  • < 10 years

    Votes: 222 12.0%
  • < 15 years

    Votes: 139 7.5%
  • < 20 years

    Votes: 112 6.0%
  • < 25 years

    Votes: 85 4.6%
  • Ok, I am a dinosaur

    Votes: 244 13.2%
Back
Top