Skip to content

silverXnoise/Beamng_Hybrid_and_EV_Mod

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Read in other languages: English, 汉语.
TODO List: TODO List.

This is a mod for ICE cars exported from automation the car company tycoon game in BeamNG.drive to turn into hybrid cars or EVs exported from the game to get a advance electric control.

If you want to submit content containing this mod to a media platform, please indicate this repository URL.

Here is the guide for using it.

Suggestion: Download and install Visual Studio Code or Visual Studio Codium and JBeam extension for vscode JBeam extension in vsix first.

Hybrid

  1. Export the car and cancel "Zip-Pack Mod". alt text

  2. Download the pack and latest release from GitHub.

Main Mod or pull the repository via Git
.pc File Editor
Toque Table Creator
alt text alt text alt text

  1. Unzip the zip file from the first link of step 2 (or pulled files). Copy all files under "mod_package" folder to the mod folder of exported car.
    Open "vehicles" folder in mod folder, copy all the files in "(vehicle_Name)" folder and paste them to the car name folder.

    alt text alt text alt text alt text alt text alt text

  2. Run the .exe file downloaded from the second link. Choose the form of hybrid and click the "copy" button.

    alt text

  3. Open the .pc file of the car which is waiting for being modified and paste the content under "parts" part. Comment the duplicate lines. If the function is not needed, the content in the quotation marks can be deleted.

    alt text alt text alt text

  4. Start the game and choose the car to check if the car was modified correctly. Some parts can be exchanged in the game menu.

    alt text alt text

  5. The "controller" part of the "main" slot of the car can be edited like this to allow AI in the game to drive the modified car.

    alt text

    Now the mod can replace the vehicle controller automatically, so this step is no longer necessary.

EV

  1. Export the car and cancel "Zip-Pack Mod".

    alt text

  2. Download the pack from GitHub.

    Main Mod or pull the repository via Git
    Toque Table Creator alt text alt text

  3. Unzip the zip file from the first link of step 2. Copy all files under "EV" folder to the folder of exported car.

    alt text

  4. Copy the code under.

    "Camso_Engine": "Advance_Engine_ElectricController",
    // "Motor_Drive_Type": "Front_Single_Rear_None",
    // "Motor_Drive_Type": "Front_Dual_Rear_None",
    // "Motor_Drive_Type": "Front_None_Rear_Single",
    // "Motor_Drive_Type": "Front_None_Rear_Dual",
    "Motor_Drive_Type": "Front_Single_Rear_Single",
    // "Motor_Drive_Type": "Front_Single_Rear_Dual",
    // "Motor_Drive_Type": "Front_Dual_Rear_Single",
    // "Motor_Drive_Type": "Front_Dual_Rear_Dual",
    
    "Camso_ElectricMotor_F": "Single_ElectricMotor_F",
    // "Camso_ElectricMotor_F": "Dual_ElectricMotor_F",
    "Camso_ElectricMotor_R": "Single_ElectricMotor_R",
    //"Camso_ElectricMotor_R": "Dual_ElectricMotor_R",
    "Camso_differential_front": "Single_motor_differential_front",
    // "Camso_differential_front": "Dual_motor_differential_front",
    "Camso_differential_rear": "Single_motor_differential_rear",
    // "Camso_differential_rear": "Dual_motor_differential_rear",
    
    "Camso_DSE": "EV_DSE_01",
    "Camso_TC": "EV_TC",
    "Camso_ESC": "EV_ESC",
    "Camso_DriveModes": "EV_DriveModes_01",
    
    "Dynamic_System": "",
    "Dynamic_awd": "",
    "Dynamic_lsd": "",
    "Rear_Wheel_Steering": "",
    "Suspension_Lift": "",
    
  5. Open the .pc file of the car which is waiting for being modified and paste the content under "parts" part. Comment the duplicate lines. If the function is not needed, the content in the quotation marks can be deleted.

    alt text

  6. Start the game and choose the car to check if the car was modified correctly.

    alt text

Extensional Functions (for .pc files)

"Lights_Control": "Lights_Control",
 "Wiper_Control": "Wiper_Control",
 "Camso_tpms": "Camso_tpms_4w",
 "camso_tuning_parameters": "camso_tuning_parameters",
 "Dynamic_System": "Dynamic_System",
 "Dynamic_awd": "Dynamic_awd",
 "Dynamic_lsd": "Dynamic_lsd",
 "Rear_Wheel_Steering": "Rear_Wheel_Steering",
 "Suspension_Lift": "Suspension_Lift",

Automation Description Scriptions

Replace the "indexNumber"s with fixtures' index number and put them into Automation game's description box to use.

  1. Steering Wheel
~prop:indexNumber,steering,0,1,0,0,0,0,-900,900,0,1~
  1. Pedals and Parking Brake (For pedals' first number, -1 represents firewall mount and 1 represents floor mount.)
~prop:indexNumber,throttle_input,-1,0,0,0,0,0,0,40,0,10~
~prop:indexNumber,brake_input,-1,0,0,0,0,0,0,40,0,10~
~prop:indexNumber,clutch_input,-1,0,0,0,0,0,0,40,0,10~
~prop:indexNumber,parkingbrake_input,1,0,0,0,0,0,0,10,0,10~
  1. Pointers (For the second number, -1 represents clockwise and 1 represents counterclockwise. The eighth number represents the maxium pointer angle. The tenth number should be pointer angle value devided by source value.)
~prop:indexNumber,rpmTacho,0,-1,0,0,0,0,0,270,0,0.03~
~prop:indexNumber,wheelspeed,0,-1,0,0,0,0,0,360,0,2.95~
  1. Extensional Functions (need additional control)
~prop:indexNumber,hourNeedle,0,-1,0,0,0,0,0,360,0,1~
~prop:indexNumber,minuNeedle,0,-1,0,0,0,0,0,360,0,1~
~prop:indexNumber,wiper,0,-1,0,0,0,0,0,90,0,1~
~prop:indexNumber,wiper,0,1,0,0,0,0,0,173,0,2~
~prop:indexNumber,spoiler,0,0,0,0,1,0.1,0,1,0,0.1~
~prop:indexNumber,keyAngle,0,0,-1,0,0,0,0,180,0,1~

About

Files for BeamNG.drive cars to realize a kind of hybrid drive or advance EV control.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Lua 100.0%