Try to open the .splane file with simpleplanes.
It seems that you are using a mac, and I don't know to do that on one.
Is there an open-with button there?
@helilover03
Rudder?
A small vertical stabilizer won't make it that agile either, and a huge one is just plain ugly. Also, I believe that simpleplanes does not have water physics, but treats water like air.
@WNP78
You shouldn't need a reflection to modify the amount of fuel in your aircraft. The serviceprovider probably has all you need to add fuel. Serviceprovider.Instance.PlayerAircraft.Fuel is able to add to your total fuel value, but when it does that the fuel capacity also changes. There should be a way to prevent this, but I have not yet found one. If there is no way to do so, this could either be a bug (unlikely), or it could be a bit harder to do this than it seems.
@WNP78
Seems like a good idea, but ServiceProvider.Instance.PlayerAircraft.FuelCapacity seems to be read-only. There is no way to set the fuel capacity (as far as I know). I've tried to use ServiceProvider.Instance.PlayerAircraft.FuelCapacity = (variable), but this throws an error that says that ServiceProvider.Instance.PlayerAircraft.FuelCapacity cannot be assigned to.
To create map mods (or any other mods, by the way) you'll want to download unity. Get personal edition, as it is the only free one, and it has all that you need to make a mod. You will need the simpleplanes mod tools (found at the beginning of the following reddit page), which can be added into unity by going into the 'assets' tab and clicking 'import package' (take them out of the .zip first). A tutorial on how to start creating maps can be found on the simpleplanes modding subreddit. Read the video tutorials section, there should be a video on making maps.
Yes, ServiceProvider.Instance.PlayerAircraft.FuelCapacity is for reading the plane's capacity,
And yes, even if the fuel level is 0, and you add 1 with PlayerAircraft.Fuel, the capacity will be set to 1. I check the fuel level with that same 'if' statement, and after the fuel decreases, the script sets the fuel capacity and the fuel level itself to the current fuel level + 1.
Also, how can I make the code colorful in the forums? Its a bit hard to read when the code is the same color as the text.
Try to open the .splane file with simpleplanes.
It seems that you are using a mac, and I don't know to do that on one.
Is there an open-with button there?
@helilover03
Rudder?
A small vertical stabilizer won't make it that agile either, and a huge one is just plain ugly. Also, I believe that simpleplanes does not have water physics, but treats water like air.
@EliteIndustries1
Sure makes a simple (and effective) rudder, but this doesn't make it very agile.
(Or maybe I'm using it wrong)
@EliteIndustries1
Alrighty then, I will try that...
This looks cool, though
The thing it, it's not
There is a Tupolev Tu-95 "Taran" though...
It's a mass - produced bomber used today by the Russian air force.
@HellFireKoder @WNP78
So how exactly would this be done with a reflection? Haven't used C# in awhile, so I have no idea on how to do this.
Also, thanks for your help.
@WNP78
You shouldn't need a reflection to modify the amount of fuel in your aircraft. The serviceprovider probably has all you need to add fuel.
Serviceprovider.Instance.PlayerAircraft.Fuel
is able to add to your total fuel value, but when it does that the fuel capacity also changes. There should be a way to prevent this, but I have not yet found one. If there is no way to do so, this could either be a bug (unlikely), or it could be a bit harder to do this than it seems.@WNP78
Seems like a good idea, but
ServiceProvider.Instance.PlayerAircraft.FuelCapacity
seems to be read-only. There is no way to set the fuel capacity (as far as I know). I've tried to useServiceProvider.Instance.PlayerAircraft.FuelCapacity = (variable)
, but this throws an error that says thatServiceProvider.Instance.PlayerAircraft.FuelCapacity
cannot be assigned to.@ThatOnion Thanks
To create map mods (or any other mods, by the way) you'll want to download unity. Get personal edition, as it is the only free one, and it has all that you need to make a mod. You will need the simpleplanes mod tools (found at the beginning of the following reddit page), which can be added into unity by going into the 'assets' tab and clicking 'import package' (take them out of the .zip first). A tutorial on how to start creating maps can be found on the simpleplanes modding subreddit. Read the video tutorials section, there should be a video on making maps.
@HellFireKoder
Ok thanks.
red
Yes,
ServiceProvider.Instance.PlayerAircraft.FuelCapacity
is for reading the plane's capacity,And yes, even if the fuel level is 0, and you add 1 with PlayerAircraft.Fuel, the capacity will be set to 1. I check the fuel level with that same 'if' statement, and after the fuel decreases, the script sets the fuel capacity and the fuel level itself to the current fuel level + 1.
Also, how can I make the code colorful in the forums? Its a bit hard to read when the code is the same color as the text.