Generate Map Preview issue

Moderators: Order of Battle Moderators, The Artistocrats

Post Reply
Erik2
Order of Battle Moderator
Order of Battle Moderator
Posts: 9633
Joined: Thu Jul 14, 2011 12:59 pm
Location: Norway

Generate Map Preview issue

Post by Erik2 »

Sometimes when generating the map preview, this process will never finish and at some point you need to hit the No button.
This may cause the scenario to then fail loading into the editor.
I have attached such a scenario. It was close to finished so I hope it can be salvaged.
It was created as a mod, but the units.csv is currently just a duplicate of the official one.

Thanks

Edit: attached output.log
Attachments
output_log.zip
(2.29 KiB) Downloaded 78 times
10Tarawa.zip
(146.86 KiB) Downloaded 90 times
Horst
Brigadier-General - 15 cm Nblwf 41
Brigadier-General - 15 cm Nblwf 41
Posts: 1927
Joined: Mon Feb 18, 2013 1:22 pm

Re: Generate Map Preview issue

Post by Horst »

It possibly takes a very long while on giant maps. The button usually feels somewhat unresponsively when pressing that you don't know for sure if you have pressed it now or not. I tend to punch on "Yes" twice, just to be sure.
Erik2
Order of Battle Moderator
Order of Battle Moderator
Posts: 9633
Joined: Thu Jul 14, 2011 12:59 pm
Location: Norway

Re: Generate Map Preview issue

Post by Erik2 »

This specific scenario is the 11th one in a series using the same map size. The scenarios are roughly the same unit-wise.
It loaded before I stupidly clicked yes to generate the preview, and then the damage was done.
But please let me know if you are able to load it :D
Horst
Brigadier-General - 15 cm Nblwf 41
Brigadier-General - 15 cm Nblwf 41
Posts: 1927
Joined: Mon Feb 18, 2013 1:22 pm

Re: Generate Map Preview issue

Post by Horst »

NullReferenceException: Object reference not set to an instance of an object
at FilesUnitsV045.ReadUnits (.Game game, System.IO.BinaryReader reader) [0x00000] in <filename unknown>:0
at FilesUnitsV045.Read (.Game game, System.IO.Stream stream, Int64 position) [0x00000] in <filename unknown>:0

The map seems to look for a new unit maybe which at least I do not have. That shouldn't have something to do with the preview pictures.
Be careful with changing that mod's units.csv. If you remove units or change IDs, the map won't load anymore. Maybe that map is KIA now if you can't restore all conditions anymore as they have been when creating the map.
Erik2
Order of Battle Moderator
Order of Battle Moderator
Posts: 9633
Joined: Thu Jul 14, 2011 12:59 pm
Location: Norway

Re: Generate Map Preview issue

Post by Erik2 »

Thanks, Sherlock.

I have not used any non-official unit, so that is odd.
Post Reply

Return to “Order of Battle : World War II - Tech Support”