Which seems reasonnable to me but isnât really backed by any strong rationnal on the choices of reference models.
So, since I wonât be able to complete this PR before august anyway, I thought that it could be a good idea to discuss it so that we might come up with something better. Or at least something that enough poeple agree on to avoid someone having to change everything all over agin next year.
Whatâs your thought on motor size, weight and power ? Is the solution I proposed good enought, do you have suggestion to improve it ?
The tiny probably isnât tiny enough to be the sort of thing youâd want in an electric fan or a toy or something. Iâd say leave the rest and make the tiny motor like a 12V one that canât be installed on vehicles, only used to craft certain electronics.
Also, and this is probably silly, but round numbers would be a bit easier to work with and remember. Maybe 800, 400, 200 and 20HP?
Yeah, using a âfan motorâ (tiny motor in game) for a bicycle just seemed silly. But if changing those ones to micro, and moving all crafting of tiny parts (automated doors on vehicles, etc) and leaving the tiny motor for bicycles only, seems a good idea.
I think a small project like this one often gets overlooked for bigger, flashier changes. (Weâve had a ton of great changes lately â rotting, lab changes, first aid)
I donât have anything to offer in the way of advice for development, but I can give props.
Youâre refining something in the game. Good job. Thanks for your efforts.
@John_Candlebury : Noted on github that the enhanced electric motor is supposed to be a hub wheel motor so it could stay the way it is. Since the small size was intended from the beginning.
Actually this is a very good question, does anyone know how epower (the power consumption) is calculated ? If we change power on the motors epower should probably follow so that the electric motors donât suddenly become ultra OP. Hopefully we can find an epower that wonât make them useless either âŚ
Well if RC car is an item then someone needs to add that behaviour to the game. If RC car is a vehicle : first you would need to implement miniature_frame and all the other miniature part of the car, and second I was planning to make micro_motor not be instalable so that would not work.
But If power can be set as something between 0 and 1, then we could make a micro_motor have less than 0.5HP and be instalable.
int vehicle::epower_to_power(int const epower)
{
// Convert epower units (watts) to power units
// Used primarily for calculating battery charge/discharge
// TODO: convert batteries to use energy units based on watts (watt-ticks?)
constexpr int conversion_factor = 373; // 373 epower == 373 watts == 1 power == 0.5 HP
int power = epower / conversion_factor;
// epower remainder results in chance at additional charge/discharge
if (x_in_y(abs(epower % conversion_factor), conversion_factor)) {
power += epower >= 0 ? 1 : -1;
}
return power;
}
int vehicle::power_to_epower(int const power)
{
// Convert power units to epower units (watts)
// Used primarily for calculating battery charge/discharge
// TODO: convert batteries to use energy units based on watts (watt-ticks?)
constexpr int conversion_factor = 373; // 373 epower == 373 watts == 1 power == 0.5 HP
return power * conversion_factor;
}
1 epower is 1 watt is 1/373 power. 1 power is 1/2 HP is 373 watts is 373 epower.
Altenators are 50-75% efficient in converting power to epower.
Electrical motors should be 75-90% efficient in turning input energy into power but I havenât worked through the code to figure that out - the actual numbers (ie, a small motor has -1000 epower and 20 power) canât be applied directly because that would have the small motor consuming ~3 HP of power to produce 10 HP and thatâs not right.
Does this mean that the value are wrong and âgameyâ or does it mean that your missing info to explain them ?
I fear that the changes I suggested, especially on power, will break electric engines. For example enhanced_electric_motor would go from 500 power to 1560 power and if I keep same ratio between epower and power it gets -187200 epower.
So maybe it would be better to just change volume and weight and not touch power so that it doesnât mess with game balance ?
I traced through the code last night and had a discussion with Kevin about how things worked. And the answer is, electrical motors actually are 700% efficient: they produce 37.3 kW of motive power at the cost of 5 kW of electrical power.
I donât intend to fix the problem right now, beyond changing the units of power from 1/2HP to watts so that itâs easier to reason about the problem.
I donât intend to fix the wonky math for vehicle speeds. I would just like to add a way to display a vehicleâs current power epower consumption/generation and approximate time to full recharge/discharge.
Doing that becomes slightly easier if everything is in the same units.
Ok new problem : If I replace motor_small and medium_storage_battery by motor_tiny and small_storage_battery in the Electric Bicycle recipe I get this :
With a tiny motor of 2 HP itâs not enought to move the electric bike, which is annoying since the real life equivalent is 0.7 HP.