Extra Fuel Tank doesn't work anymore with 1.70
Moderators: winston, another_commander, Getafix
Extra Fuel Tank doesn't work anymore with 1.70
I can buy them but when I use them they give me no fuel.
Another: Advanced navigational array press (!) doesn't work here.
Another: Advanced navigational array press (!) doesn't work here.
-
- Quite Grand Sub-Admiral
- Posts: 6683
- Joined: Wed Feb 28, 2007 7:54 am
- Eric Walch
- Slightly Grand Rear Admiral
- Posts: 5536
- Joined: Sat Jun 16, 2007 3:48 pm
- Location: Netherlands
This oxp uses the command "awardFuel". This command was changed in function, but in this case the target is set proper to the player and it should still work. I tested with fueltank 2.0. It does not work and I can not see a scriptbug.julyy wrote:I can buy them but when I use them they give me no fuel.
But as a quick fix one can replace the "awardFuel" in the AI file by "addFuel". The last can only be used in AI scripting, but this is here the case. This will work as I tested.
-
- Quite Grand Sub-Admiral
- Posts: 6683
- Joined: Wed Feb 28, 2007 7:54 am
-
- Quite Grand Sub-Admiral
- Posts: 6683
- Joined: Wed Feb 28, 2007 7:54 am
- Eric Walch
- Slightly Grand Rear Admiral
- Posts: 5536
- Joined: Sat Jun 16, 2007 3:48 pm
- Location: Netherlands
It is working, I double checked today. Maybe a typo as it must be "addFuel". Or is is because you have to press the shift key during Oolite startup to load the changes in a OXP. I had the same problem at first. Starting with 1.70 you need to press this key. (On 1.69 it was only necessary for some of us)julyy wrote:To exchange "awardfuel" to "addfuel", as mentioned above, doesn't solve anything here, sorry.
.another_commander wrote:Had a look at this. The target in the AI is correctly set to player, but the actual script target remains the fuel tank itself
I don't think so. The fact that it works with addFuel means that targeting on the player is OK.
-
- Quite Grand Sub-Admiral
- Posts: 6683
- Joined: Wed Feb 28, 2007 7:54 am
Yes, targetting on the player is OK for the ship entity AI methods and this is why addFuel works, but the actual script target was being set to the fuel tank. At least, this is what the debug control messages from the game were telling me. Anyway, the fix is now in, so hopefully it will be OK for v1.70.1.Eric Walch wrote:I don't think so. The fact that it works with addFuel means that targeting on the player is OK.
- JensAyton
- Grand Admiral Emeritus
- Posts: 6657
- Joined: Sat Apr 02, 2005 2:43 pm
- Location: Sweden
- Contact:
The script target is not used by addFuel:.Eric Walch wrote:.another_commander wrote:Had a look at this. The target in the AI is correctly set to player, but the actual script target remains the fuel tank itself
I don't think so. The fact that it works with addFuel means that targeting on the player is OK.
Anyway, with another_commander’s change, it works for me in the development build.
E-mail: [email protected]