[Resolved] Refuel Out of Gas Ship

Post bug reports and ask for game support here.

Moderator: MOD_Command

Post Reply
arcistruzzo
Posts: 10
Joined: Mon May 04, 2020 10:25 pm
Location: Italy

[Resolved] Refuel Out of Gas Ship

Post by arcistruzzo »

Hello all,
i'm playing with Med Fury 1 and for the second time have a problem :) (for the 1st time i have needed to redeployed A/c with aa-10 Misisle)
Now i have my Hovercraft are out of Gas but if i try to refuel system give me Message Error to impossible to refuel. Hovercraft are immobilising i suppose but my BEREZINA Fuel Ship can move.
A Proverb Says if mountain will not come to you, you come to the mountain right?
KnightHawk75
Posts: 1850
Joined: Thu Nov 15, 2018 7:24 pm

RE: Refuel Out of Gas Ship

Post by KnightHawk75 »

Berezina can move, but does she have the same fuel type as the unit you are looking to refuel?
She only carries 'Gas' not 'Diesel', i don't know what hovercraft unit is involved but some take diesel not gas. That may be why it tells you it can't, what's the exact unit# of the hovercraft?


A Proverb also says if mountain will not come to you, you deploy LUA to move it to you.

If you find yourself unable to refuel something you think you should for whatever reason, or just want to play with longer battery life on something like a submersible etc...
Load your save in editor, selected side you're playing and create a special action (editor menu\events editor\special actions), press create new, call it 'Refuel Selected Units'. Paste the attached text into the script section. press ok, mark it active and repeatable. Save. Load the save you should now have a special action that lets you refuel any currently selected units or bunch of units.
attch:RefuelSelectedUnits.txt
Attachments
SA_RefuelS..tedUnits.txt
(1.9 KiB) Downloaded 34 times
Rory Noonan
Posts: 2418
Joined: Thu Dec 18, 2014 1:53 am
Location: Brooklyn, NY

RE: Refuel Out of Gas Ship

Post by Rory Noonan »

Logged for investigation.

0013924
Image
Rory Noonan
Posts: 2418
Joined: Thu Dec 18, 2014 1:53 am
Location: Brooklyn, NY

RE: Refuel Out of Gas Ship

Post by Rory Noonan »

Can you provide a save file for us to look into this properly?
Image
arcistruzzo
Posts: 10
Joined: Mon May 04, 2020 10:25 pm
Location: Italy

RE: Refuel Out of Gas Ship

Post by arcistruzzo »

Hi Apache,
try you starting the scenario, i have tried to restart for a check and i have discovered:

1)If you choose the "political Action" like demoliralized Army, Air, Navy or division between Greek and Turkey ( you could choise only one and the other will be hidden) only Action "Demoralized Air" work other not work. ( if i choose for example DIVISION BETWEEN GREEK AND TRK , it dont work, other choise are hidden in exception DEMORALIZED AIR and if i chose there, work it.
2) if you click on the action REFUEL MDK , this action give me an error (attached file)
3) if my Mdk are little of fuel ( MDK are Hovercraft) and ask they to refuel ,they go to Berezina. If they are withouth fuel , they are impossible to refuel.
4) Problem with A/c With AA-10 Missiles ( already resolved changing A/c in Editor Mode)
Attachments
Error.jpg
Error.jpg (534.17 KiB) Viewed 1751 times
arcistruzzo
Posts: 10
Joined: Mon May 04, 2020 10:25 pm
Location: Italy

RE: Refuel Out of Gas Ship

Post by arcistruzzo »

Want you a save file equally?
Rory Noonan
Posts: 2418
Joined: Thu Dec 18, 2014 1:53 am
Location: Brooklyn, NY

RE: Refuel Out of Gas Ship

Post by Rory Noonan »

Yes, the save file will help in identifying the issue.
Image
arcistruzzo
Posts: 10
Joined: Mon May 04, 2020 10:25 pm
Location: Italy

RE: Refuel Out of Gas Ship

Post by arcistruzzo »

Here Save file after 4 hr of game, here you can identify problem 2 And 3 of My precedent post.For problem 1 You can start scenario at The begin
Attachments
Mediterran..um1994.zip
(4.8 MiB) Downloaded 33 times
arcistruzzo
Posts: 10
Joined: Mon May 04, 2020 10:25 pm
Location: Italy

RE: Refuel Out of Gas Ship

Post by arcistruzzo »

...And here a save file after few second for check about problem 1 of My previus post.
Attachments
Mediterran..ND1994.zip
(2.89 MiB) Downloaded 32 times
Rory Noonan
Posts: 2418
Joined: Thu Dec 18, 2014 1:53 am
Location: Brooklyn, NY

RE: Refuel Out of Gas Ship

Post by Rory Noonan »

Thank you for the files.

Based on this I've made some improvements to how refueling is handled for ships that are 'dead in the water' with tankers nearby.

The issue with the 'political' special actions are due to a typo in the Lua code (ferment vs forment, which I think is meant to be foment). Contact the scenario author to have this rectified.

The issue with the 'refuel MDK' special action is due to errors in the Lua code; it references UnitX() when the special action is triggered manually. This will work occasionally if a MDK was the last unit to trigger an event and fail silently if another unit has triggered an event. If no unit has yet triggered an event, it will throw the error you saw. Contact the scenario author to have this rectified.

Suggestion for the refuel MDK special action; use VP_GetSide().units and ipairs to iterate through all units on the side, refueling them if they are ships with the same DBID as the MDKs.

The AA-10 thing is something I'm trying to fix for good. It's a convoluted issue so might be a little while [:)]
Image
KnightHawk75
Posts: 1850
Joined: Thu Nov 15, 2018 7:24 pm

RE: Refuel Out of Gas Ship

Post by KnightHawk75 »

ORIGINAL: arcistruzzo

Here Save file after 4 hr of game, here you can identify problem 2 And 3 of My precedent post.For problem 1 You can start scenario at The begin
arcistruzzo,

With regard to MDK fuel issue #2. It's a problem with the code for that Special Action in the scenario, I've reached out to the author of the scenario via the forums and provided a fix should he wish include it in his next update\re-publishing of the scenario for the future.
Attached is your save for that (saved with build 1147, but should probably work with b1143 that it was originally saved with, or so I hope), it has the fix included. I didn't press play or touch anything other then the special action, which you should now be able to use exactly as the description describes, one time, without encountering a problem.

With regard to #1 - simple typo in the SA code 'ferment' vs 'forment', fix also included in the save. I've left it to you if you want to re-enable them (in the editor) and try them again.

This does not address issues #3 or #4 to which I can't add much.
I will now bud out of the this. [:)]

edit: haha the post timing...I see apache has already addressed those.

Attachments
Mediterran..tUsedYet.zip
(4.6 MiB) Downloaded 39 times
arcistruzzo
Posts: 10
Joined: Mon May 04, 2020 10:25 pm
Location: Italy

RE: Refuel Out of Gas Ship

Post by arcistruzzo »

I want to restart with a Scenario fixed.
So summarizing,
i need to change "Ferment" with "forment" in SA "Division between….." and , i saw now, "Moral" with "moralE" in the same SA.
for MDK Refuel and other problem i can use old DB or wait fix of Gunner in next release, really?
For me work with LUA are like a nuclear reactor, very very difficult to understand.



KnightHawk75
Posts: 1850
Joined: Thu Nov 15, 2018 7:24 pm

RE: Refuel Out of Gas Ship

Post by KnightHawk75 »


Either wait, or yes restart the original and before playing...
1 - Fix the spelling in all 3 or 4 of those SA's.
2 - Open the attached in notepad, select it all, copy, and then paste it into the MDK Refuel action, replacing entirely what's there.

No nuclear reactor necessary to copy and paste. If you can change spellings I'm pretty sure you can copy and paste just fine.[:)]

Attachments
RefuelAllT..ingMatch.txt
(2.06 KiB) Downloaded 32 times
arcistruzzo
Posts: 10
Joined: Mon May 04, 2020 10:25 pm
Location: Italy

RE: Refuel Out of Gas Ship

Post by arcistruzzo »

I like your mode to resolve it for a NB like me.Remain only Issue 3 (but i try to check any 30 min to avoid to remain out of fuel and issue 4 that i have already resolved changin A/c).

Thanks Knight , Thanks Apache this evening i can restart to play.[&o]

ps thank also for no word about my english [:D]
Rory Noonan
Posts: 2418
Joined: Thu Dec 18, 2014 1:53 am
Location: Brooklyn, NY

RE: Refuel Out of Gas Ship

Post by Rory Noonan »

Your English is far better than my Italian [:)]
Image
Post Reply

Return to “Tech Support”