Error while compiling: SpawnMini.cs(526,73): error CS1061: Type `EntityFuelSystem' does not contain a definition for `GetFuelContainer' and no extension method `GetFuelContainer' of type `EntityFuelSystem' could be found. Are you missing an assembly reference?
Type `EntityFuelSystem' does not contain a definition for `GetFuelContainer'Not An Issue
We are aware of this issue. It will be fixed in the next Oxide update.
ok thank you. got to love the updates :)
Eh, another reboot, ok
Thanks :)
This error is due to a Rust change that we meant to fix for this update, but missed. The next Oxide update will resolve it.
Love the plugin.... hope its not a big deal to fix.
SpawnMini - Failed to compile: SpawnMini.cs(526,73): error CS1061: Type `EntityFuelSystem' does not contain a definition for `GetFuelContainer' and no extension method `GetFuelContainer' of type `EntityFuelSystem' could be found. Are you missing an assembly reference?
I love this plugin! Do we anticipate a next Oxide update soon?
hater79I love this plugin! Do we anticipate a next Oxide update soon?
Should be soon, but you can wait for a release, or use test builds.
- https://ci.appveyor.com/api/projects/oxidemod/oxide-rust/artifacts/Oxide.Rust-develop.zip?pr=false&branch=develop
- https://ci.appveyor.com/api/projects/oxidemod/oxide-rust/artifacts/Oxide.Rust-linux-develop.zip?pr=false&branch=develop
Includes the fuel system exposure fix, some more BaseAIBrain exposures, and 2 hooks for ExcavatorSignalComputer
First link is Windows, second is Linux
I'll wait for the release and leave you folks to do the fine work that you do.
Thanks and cheers :)
Maybe change this
StorageContainer fuelContainer = minicopter.GetFuelSystem().GetFuelContainer();
To
StorageContainer fuelContainer = minicopter.GetFuelSystem()?.fuelStorageInstance.Get(true);
Maybe author will fix it differently, but this code works
igrok0075Maybe change thisStorageContainer fuelContainer = minicopter.GetFuelSystem().GetFuelContainer();
To
StorageContainer fuelContainer = minicopter.GetFuelSystem()?.fuelStorageInstance.Get(true);
Maybe author will fix it differently, but this code works
works a charm thanks
This should also be resolved in the latest Oxide update, thanks!
- Exposed EntityFuelSystem::GetFuelContainer in Rust for plugins (fixes a lot of vehicle plugins)
igrok0075Maybe change thisStorageContainer fuelContainer = minicopter.GetFuelSystem().GetFuelContainer();
To
StorageContainer fuelContainer = minicopter.GetFuelSystem()?.fuelStorageInstance.Get(true);
Maybe author will fix it differently, but this code works
where is this coding in the config for the mod?
It's in the plug-in itself not the config.
sethnsf1It's in the plug-in itself not the config.
no such line i could find in either config or file itself which has
StorageContainer fuelContainer = minicopter.GetFuelSystem().GetFuelContainer();
Locked automatically
- 1
- 2