Unsolved Creation of Electric Legran

Discussion in 'Mod Support' started by Otto von Biscuit, Apr 13, 2017.

  1. Otto von Biscuit

    Otto von Biscuit
    Expand Collapse

    Joined:
    Jan 25, 2017
    Messages:
    230
    Hey People,

    im a total newbie to BeamNG modding (i made a few mods and custom !gas! engines for myself, as well as the VMFix) but now whilst creating the eGran i ran into some issues
    I did the following:

    -- I used SushiPro's Resources and before the old VM and permissions beef starts again, i talked to him were cooperating, and i got his permission for being a sneaky ass bastard and stealing his work--

    > I copied the entire LeGran and ediIed/deleted all files i needed (i did only copy one configset thats why the / file is much smalller)
    / engine edited, used SushiPro's condensa motor as guide (i essentially compared and adapted the files)
    / lettering edited to be eGran, removed fueltank, exhaust, radiator .jbeam
    / (later added again)

    > Added batteries at the bottom of the engine.jbeam
    > Made a folder structure and renamed the files to egran_...
    > Selected all and replaced all "legran" with "egran" inside the files with notepad++
    > Pasted all .jbeam .dds .DAE .cdae files into the folder
    > Edited the Base_i4 config (now called base_e) .pc and .json
    > Added the totally not stolen default.png and base_i4.png (_e)
    > Added SushiPro's Condensa Sounds folder and renamed hatch_sounds to egran_sounds and made sure everyhing pointed / at the correct location
    > Put the zip in mods and hoped for the best.

    The following happened:
    The car appeared in the vehicle chooser in its own category with desc, thumbnails and everyhing but it did only spawn in emptiness

    Have i made some obvious mistakes? Any idea what i have screwed up?
     

    Attached Files:

  2. EruptionTyphlosion

    EruptionTyphlosion
    Expand Collapse

    Joined:
    Sep 24, 2016
    Messages:
    2,927
    Probably the Jbeam has issues. My pessima mod wouldn't spawn due to an error in the Jbeam. Make sure everything is named correctly.
     
  3. Otto von Biscuit

    Otto von Biscuit
    Expand Collapse

    Joined:
    Jan 25, 2017
    Messages:
    230
    did that already. everything is named /renamed correctly at least the CTRL+F Replace All in All open Documents is returning zero changes
     
  4. Peter Beamo

    Peter Beamo
    Expand Collapse

    Joined:
    Jun 27, 2016
    Messages:
    3,200
    man
    too much files in there
     
  5. Otto von Biscuit

    Otto von Biscuit
    Expand Collapse

    Joined:
    Jan 25, 2017
    Messages:
    230
    Current Version: eGran_a9 (attempt N°9)

    Have got the major problems (not spwaning/ game crash) sorted myself now.
    Current state:
    > Car Spawns and displays correctly, doesnt move (kind of a major issue too xD)
    > Custom parts are listed in CTRL+W
    > Custom transmission works
    > Shows custom "eGran" lettering (messes up stock lettering, only eGran shows up)
    > There's an issue with either the Motor part or the battery which both as of yet have no model
    (only the Transmission shows up in the Engine bay. SushiPro is working on the battery.)

    To Do:
    > Needs a Custom Gauge Cluster / Edit of the base Cluster (Help needed)
    > Fix Lettering issues (Help needed)
    > Edit Floorshifter labeling as the car only has PRND modes instead of PRND21 (where the heck is that label?)
    > Model Motor, Frunk and Battery Pack (SushiPro)
    > Recheck / Smoothen out the jbeams.
    > Get it moving
     

    Attached Files:

    #5 Otto von Biscuit, Apr 14, 2017
    Last edited: Apr 14, 2017
  6. Peter Beamo

    Peter Beamo
    Expand Collapse

    Joined:
    Jun 27, 2016
    Messages:
    3,200
    Might be an engine jbeam
     
  7. Otto von Biscuit

    Otto von Biscuit
    Expand Collapse

    Joined:
    Jan 25, 2017
    Messages:
    230
    Not Necessarily, i essentially used the condensa as a base
    look into the code. much less files now
    And do you have experience with the gauge systems or so?
     
  8. Peter Beamo

    Peter Beamo
    Expand Collapse

    Joined:
    Jun 27, 2016
    Messages:
    3,200
    Guage system???
    I think i dont have :(
     
  9. iheartmods

    iheartmods
    Expand Collapse

    Joined:
    Aug 8, 2012
    Messages:
    1,482
    Having made a few car mods (including an electric car) here's some tips

    First and foremost, do one thing at a time! This helps make sure after stringing together say, 10 modifications, you know what broke. You can always check the console which can show you exactly where the error is in a file but, sometimes doesn't have that much info if a dire lua error occurred.

    Your battery doesn't go in the engine file. It should go in the body file (possibly main jbeam? I don't have my files in front of me) as a direct replacement of the gas tank. You will have to modify quite a bit here including slots.

    The point here is do one thing at a time, get it working, and then and only then add to the mod.

    Good luck!
    --- Post updated ---
    After looking at your file, I'd say the battery area of your jbeam is holding you back. You have it slotted at 'legran_battery' or something close. That slot doesn't exist in the body (or main) jbeam therefore, it won't create it as a part.
     
    • Like Like x 1
  10. Peter Beamo

    Peter Beamo
    Expand Collapse

    Joined:
    Jun 27, 2016
    Messages:
    3,200
    Good tips ,mr.ihurtmods!! And how is ur wip mod???
     
  11. iheartmods

    iheartmods
    Expand Collapse

    Joined:
    Aug 8, 2012
    Messages:
    1,482
    After looking at your file, I'd say the battery area of your jbeam is holding you back. You have it slotted at 'legran_battery' or som
    My electric ETK-800? It's released on the repo as an Alpha!
     
    • Like Like x 1
  12. Peter Beamo

    Peter Beamo
    Expand Collapse

    Joined:
    Jun 27, 2016
    Messages:
    3,200
    didn't notice that!! Downloaded!
     
  13. Otto von Biscuit

    Otto von Biscuit
    Expand Collapse

    Joined:
    Jan 25, 2017
    Messages:
    230
    @iheartmods I base my work of SushiPro's Condensa and it has the same structure as my eGran with the battery only in the _engine.jbeam (in his case hatch_motor.jbeam) file with no entry except the normal battery for glow-maps in the hatch.jbeam
    Also he takes care of the issue for me.

    I would rather need help with the lettering and the Custom Dash.
     
  14. Otto von Biscuit

    Otto von Biscuit
    Expand Collapse

    Joined:
    Jan 25, 2017
    Messages:
    230
    Heyo,
    I restructured the engine a little and made the battery its own part with own slot section in the _body.jbeam (as ihm advised me to do)

    Now the engine (now called eGran Brushed Motor) and the Battery have models (stock i4 and fueltank) but the car still doesn't move. and the stupid battery doesnt want to load although its defined in the .pc file (in the right slot)
    --- Post updated ---
    Edit:
    I have made the following mods:
    legran_engine:

    "slots" : removed everything except transmission line

    "powertrain": [
    ["type", "name", "inputName", "inputIndex"],
    ["electricMotor", "mainEngine", "dummy", 0],

    "energyStorage": "mainBattery",
    "requiredEnergyType":"electricEnergy",
    "thermalsEnabled":false

    legran_battery:

    "slotType" : "legran_battery",
    "flexbodies": [
    ["mesh", "[group]:", "nonFlexMaterials"],
    ["legran_fueltank", ["legran_body"]],
    ],
    "energyStorage": [
    ["type", "name"],
    ["electricBattery", "mainBattery"],
    ],
    "mainBattery": {
    "energyType":"electricEnergy",
    "fuelCapacity": 45,

    legran_body:

    "slots": [
    [...] //unchanged
    //engine
    ["legran_battery","legran_battery_e", "Battery"],
    ["legran_engine","legran_engine_e", "Engine"],
    [...]//unchanged

    what am I missing? / doing wrong? (that i created a config is not mentioned because obvious)
     
    #14 Otto von Biscuit, Apr 14, 2017
    Last edited: Apr 14, 2017
  15. iheartmods

    iheartmods
    Expand Collapse

    Joined:
    Aug 8, 2012
    Messages:
    1,482
    Post a picture of the error you get in the console.
    EDIT: Does the car load but the parts don't show?
     
    #15 iheartmods, Apr 14, 2017
    Last edited: Apr 14, 2017
  16. Otto von Biscuit

    Otto von Biscuit
    Expand Collapse

    Joined:
    Jan 25, 2017
    Messages:
    230
    The car loads, the parts load everything works (Glowmaps animation etc.) only the engine doesn't rev
    i think that either the engine or the battery are faulty,
    new version attached, changed a line i overread (fuelamount in the battery section or whatever it is called).

    What i did today was build new engine and battery based off legran stock engine whilst comparing to etk800ev and condensa changing the code i posted above.

    Edit: i think its fuelCapacity changed to batteryCapacity. Still no change
    --- Post updated ---
    I would really appreciate it if you who already made a working car could just look trough the code.
    i have most probably just overlooked something really ovbious
    --- Post updated ---
    UPDATE II: IT WORKS. HANDLES LIKE SHIT, BUT WORKS.
    Permanently spawns in without battery. dunno why
    --- Post updated ---
    ONE ISSUE I REALLY WANT FIXED: THE SOUNDS
     

    Attached Files:

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice