Stuck in "Readying" State
Moderator: MOD_Command
Stuck in "Readying" State
Does anyone know how to get aircraft out of a "Readying" state in the scenario editor?
RE: Stuck in "Readying" State
Theres' an option for "ready immediately" when you click on the a/c in the Air Ops window.
RE: Stuck in "Readying" State
Theres' an option for "ready immediately" when you click on the a/c in the Air Ops window.
I've been trying that and it doesn't seem to want to get out of "Readying" even though it's listed as "Ready"
RE: Stuck in "Readying" State
Odd, ah you can try setting the time to ready, with all digits set to 0.
EDIT: I've just tried adding an a/c to a carrier giving it an A/A loadout and had it ready immediately and it worked. Not sure why you're having this problem maybe you should post a save and this ought to be moved to the Tech Support forum.
EDIT: I've just tried adding an a/c to a carrier giving it an A/A loadout and had it ready immediately and it worked. Not sure why you're having this problem maybe you should post a save and this ought to be moved to the Tech Support forum.
RE: Stuck in "Readying" State
I think it has something to do with how I'm doing it using LUA.
On scenario load, I have some logic that says sometimes I want a given aircraft to got into "Maintenance" and sometimes I want it to go into a "Default Configuration," usually air-to-air, cargo or tanking. The aircraft set to "Maintenance" remain in a "Parked" state, while the aircraft set to their default configuration go into a "Readying" state, even though their time to ready is zero. Once they're in the "Readying" state you can't get them out!
On scenario load, I have some logic that says sometimes I want a given aircraft to got into "Maintenance" and sometimes I want it to go into a "Default Configuration," usually air-to-air, cargo or tanking. The aircraft set to "Maintenance" remain in a "Parked" state, while the aircraft set to their default configuration go into a "Readying" state, even though their time to ready is zero. Once they're in the "Readying" state you can't get them out!
ORIGINAL: cns180784
Odd, ah you can try setting the time to ready, with all digits set to 0.
EDIT: I've just tried adding an a/c to a carrier giving it an A/A loadout and had it ready immediately and it worked. Not sure why you're having this problem maybe you should post a save and this ought to be moved to the Tech Support forum.
Odd, ah you can try setting the time to ready, with all digits set to 0.
RE: Stuck in "Readying" State
I see now well i dont know about that, i've yet to use LUA. Best to fully explain the problem in your initial post.
RE: Stuck in "Readying" State
Often units that are in a 'readying' state but have 0 time left to ready will click to 'Ready' after a few seconds of game time.
B
B
Check out our novel, Northern Fury: H-Hour!: http://northernfury.us/
And our blog: http://northernfury.us/blog/post2/
Twitter: @NorthernFury94 or Facebook https://www.facebook.com/northernfury/
And our blog: http://northernfury.us/blog/post2/
Twitter: @NorthernFury94 or Facebook https://www.facebook.com/northernfury/
- michaelm75au
- Posts: 12455
- Joined: Sat May 05, 2001 8:00 am
- Location: Melbourne, Australia
RE: Stuck in "Readying" State
ORIGINAL: SeaQueen
I think it has something to do with how I'm doing it using LUA.
On scenario load, I have some logic that says sometimes I want a given aircraft to got into "Maintenance" and sometimes I want it to go into a "Default Configuration," usually air-to-air, cargo or tanking. The aircraft set to "Maintenance" remain in a "Parked" state, while the aircraft set to their default configuration go into a "Readying" state, even though their time to ready is zero. Once they're in the "Readying" state you can't get them out!
I actually noticed that last night while doing some work on Lua coding in the Unit wrapper. I have made an exception case for 'Reserve' and 'Maintenance' loadouts so it will 'park' a 'Maint' and allow 'Reserve' to 'Ready'
It never expected to have to fix them.
Michael
- michaelm75au
- Posts: 12455
- Joined: Sat May 05, 2001 8:00 am
- Location: Melbourne, Australia
RE: Stuck in "Readying" State
It might come out of 'readying' if you give it a minute of ready time. That should force it thru the status checks when the timer runs out I think.
--
You are talking about planes not in 'Maintenance' that are not becoming 'ready'? The ones in 'Maint' that were set by the SetLoadout() wont go back to 'Parked'
--
You are talking about planes not in 'Maintenance' that are not becoming 'ready'? The ones in 'Maint' that were set by the SetLoadout() wont go back to 'Parked'
Michael
RE: Stuck in "Readying" State
Yes. So it's like...
I have function which calculates the number of aircraft which should be "Ready" with a certain configuration, counts those out and sets them to the specified configuration, and then sets the remaining aircraft to the "Maintenance" loadout. The ones who go into a "Maintenance" configuration remain in a "Parked" state. The ones who go into a non-Maintenance one go into a "Readying" state. Once there they stay there. I'm wondering if this is a bug.
The big problem with this is that if I load the scenario in the editor, the "Scenario is Loaded" action is performed on the necessary aircraft and they're set correctly. Now... I go and make some changes to the scenario, save it, and load it again some other time. Now the aircraft are in a "Readying" state and when the same "Scenario is Loaded" action is performed it throws an error because it won't change the configuration of aircraft which aren't "Parked." The only thing I can think to do is re-populate the airbases with aircraft.
I have function which calculates the number of aircraft which should be "Ready" with a certain configuration, counts those out and sets them to the specified configuration, and then sets the remaining aircraft to the "Maintenance" loadout. The ones who go into a "Maintenance" configuration remain in a "Parked" state. The ones who go into a non-Maintenance one go into a "Readying" state. Once there they stay there. I'm wondering if this is a bug.
The big problem with this is that if I load the scenario in the editor, the "Scenario is Loaded" action is performed on the necessary aircraft and they're set correctly. Now... I go and make some changes to the scenario, save it, and load it again some other time. Now the aircraft are in a "Readying" state and when the same "Scenario is Loaded" action is performed it throws an error because it won't change the configuration of aircraft which aren't "Parked." The only thing I can think to do is re-populate the airbases with aircraft.
ORIGINAL: michaelm
It might come out of 'readying' if you give it a minute of ready time. That should force it thru the status checks when the timer runs out I think.
--
You are talking about planes not in 'Maintenance' that are not becoming 'ready'? The ones in 'Maint' that were set by the SetLoadout() wont go back to 'Parked'
RE: Stuck in "Readying" State
i think the way around that is to just write a script that creates the desired aircraft on the field and then use setloadout to assign the desired loadouts. then again there may be a hook somewhere that allows you to ready aircraft immediately using a script. the editor can do it via button click after all.
unless i'm really misunderstanding you, i don't think there's a bug here(?) you assign the loadout via a script (that is, essentially the same thing as clicking ready/arm choosing loadout etc.) and they go into a re-arm cycle that lasts X hours. then save, then .01 seconds later in game time (after the save/load cycle) you try to assign loadout again and they're already arming so i guess they aren't "parked"
which is weird behavior (because you can do it via the normal editor) that should probably be changed. but i'm not sure it's technically a bug(?)
either way it's a pain, though. here's hoping the script you have to retool isn't too long.
unless i'm really misunderstanding you, i don't think there's a bug here(?) you assign the loadout via a script (that is, essentially the same thing as clicking ready/arm choosing loadout etc.) and they go into a re-arm cycle that lasts X hours. then save, then .01 seconds later in game time (after the save/load cycle) you try to assign loadout again and they're already arming so i guess they aren't "parked"
which is weird behavior (because you can do it via the normal editor) that should probably be changed. but i'm not sure it's technically a bug(?)
either way it's a pain, though. here's hoping the script you have to retool isn't too long.
- michaelm75au
- Posts: 12455
- Joined: Sat May 05, 2001 8:00 am
- Location: Melbourne, Australia
RE: Stuck in "Readying" State
Can you send me a sample save showing this? I think I get it. The SetLoadout() allows 'parked' and 'readying' aircraft to update the loadout; originally it was only one condition -'parked' IIRC. Possible some other check is firing.ORIGINAL: SeaQueen
Yes. So it's like...
I have function which calculates the number of aircraft which should be "Ready" with a certain configuration, counts those out and sets them to the specified configuration, and then sets the remaining aircraft to the "Maintenance" loadout. The ones who go into a "Maintenance" configuration remain in a "Parked" state. The ones who go into a non-Maintenance one go into a "Readying" state. Once there they stay there. I'm wondering if this is a bug.
The big problem with this is that if I load the scenario in the editor, the "Scenario is Loaded" action is performed on the necessary aircraft and they're set correctly. Now... I go and make some changes to the scenario, save it, and load it again some other time. Now the aircraft are in a "Readying" state and when the same "Scenario is Loaded" action is performed it throws an error because it won't change the configuration of aircraft which aren't "Parked." The only thing I can think to do is re-populate the airbases with aircraft.
ORIGINAL: michaelm
It might come out of 'readying' if you give it a minute of ready time. That should force it thru the status checks when the timer runs out I think.
--
You are talking about planes not in 'Maintenance' that are not becoming 'ready'? The ones in 'Maint' that were set by the SetLoadout() wont go back to 'Parked'
At least it will give me something to verify against.
Michael
RE: Stuck in "Readying" State
Savegame, screenshots, description?
Thanks! [8D]
Thanks! [8D]
Developer "Command: Modern Air/Naval Operations" project!
RE: Stuck in "Readying" State
ORIGINAL: SeaQueen
Does anyone know how to get aircraft out of a "Readying" state in the scenario editor?
Don't know if this is the case for your situation, but I have experimented and found that if the airfield or supporting buildings, ammo depots, tarmacs, etc have been damaged that it will affect aircraft ready times as well as how long it takes to launch aircraft after they are ready and ordered to launch