Jump to content

(Engine's mod problem) Vehicle turning to the right


alanESV2

Recommended Posts

I'm making a mod that will introduce a completely new way to make wheels work. I already have the models and the basic systems working. The mod will add a new resource, torque, that engines make in exchange of fuel. Wheels use torque instead of electric charge.

The thing is that it seems KSP, when the wheels are checking for torque, checks the left wheels first and therefore gives more power to them. This makes the car turn slightly to the right.

The easy fix is that every player adjusts the traction limiter of the wheels perfectly, which is pretty time consuming and confusing.

 

My idea, in which I need help with, is making it so that the wheels somehow check for the amount (persentage) of torque in the engine and adjust how much they take. 

This sounds pretty simple but I have ZERO background in coding and these CFG files in general.

 

As of right now, this is how the wheel takes torque, just for clarification:

RESOURCE
        {
            name = Torque
            rate = 1000
        }        

 

And this is the resource conversion part of the engine:

INPUT_RESOURCE
         {
            ResourceName = LiquidFuel
            Ratio = 0.035
            FlowMode = STAGE_PRIORITY_FLOW
         }
        
         OUTPUT_RESOURCE
         {
            ResourceName = Torque
            Ratio = 200
            DumpExcess = false
         }
    }


    
    RESOURCE
    {
        name = Torque
        amount = 20
        maxAmount = 20
    }

 

Any ideas, help, or feedback are seriously appreciated :wink:

Link to comment
Share on other sites

This thread is quite old. Please consider starting a new thread rather than reviving this one.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...