Forums

Full Version: Day/night problem
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
I’m testing EF scenario ‘Pillau – East Prussia’s bloody end’ and problem is that from time to time when I get the turn from my opponent I can see replay in day but when my turn starts (arty fire first) it automatically change in to night. Variable visibility is off. Any ideas what it may be?
(07-28-2010, 01:47 AM)von Manstein Wrote: [ -> ]I’m testing EF scenario ‘Pillau – East Prussia’s bloody end’ and problem is that from time to time when I get the turn from my opponent I can see replay in day but when my turn starts (arty fire first) it automatically change in to night. Variable visibility is off. Any ideas what it may be?

In the bte file the day/night flag is 11 lines beneath the title. 0 = day, 1 = night. Check if it is not on 1.
(07-28-2010, 05:06 AM)Huib Versloot Wrote: [ -> ]In the bte file the day/night flag is 11 lines beneath the title. 0 = day, 1 = night. Check if it is not on 1.

When I get the file is 0 but after replay and save is 1. I may change it back to 0 but arty fire is still in night and I don't see any enemy units except those next to my units.
(07-28-2010, 06:18 AM)von Manstein Wrote: [ -> ]
(07-28-2010, 05:06 AM)Huib Versloot Wrote: [ -> ]In the bte file the day/night flag is 11 lines beneath the title. 0 = day, 1 = night. Check if it is not on 1.

When I get the file is 0 but after replay and save is 1. I may change it back to 0 but arty fire is still in night and I don't see any enemy units except those next to my units.

Is it a dusk scenario? (Check the header in the scn editor)
Yes, it's a Dusk Attack
(07-28-2010, 10:03 PM)von Manstein Wrote: [ -> ]Yes, it's a Dusk Attack

That explains it. After a number of turns it will turn to darkness with a % chance of happening. A day night or vice versa change always happens after the replay.

If you don't want that you will need to change the scenario type in the header (dusk / dawn attack are the only ones connected with automatic visibility changes). There is no code behind the other types.
So what we need to do? I've changed it to non-specific and still is night after replay.
(07-28-2010, 10:17 PM)von Manstein Wrote: [ -> ]So what we need to do? I've changed it to non-specific and still is night after replay.

Restart the game. Changes in the scn file don't affect bte files of ongoing games.
(07-30-2010, 05:56 PM)Huib Versloot Wrote: [ -> ]Restart the game. Changes in the scn file don't affect bte files of ongoing games.

Well it's a little bit to late for that :P But thanks for the tips cheers.