rweyrauch / PrettyScribe

Pretty-printer for Battlescribe Warhammer 40k, Kill Team and Age of Sigmar rosters.
https://rweyrauch.github.io/PrettyScribe/
ISC License
59 stars 17 forks source link

Missing and duplicate sections within a unit block from .ROSZ import #138

Closed Ironscyde closed 11 months ago

Ironscyde commented 11 months ago

Current When importing a .ROSZ file previously I would see section about the 'UNIT' with the characteristics like Movement, Toughness, etc but in some cases this has disappered and instead skips straight to the weapon profiles. In some cases the 'UNIT' section is there but only includes one of the profiles or duplicates.

I have also noticed various duplicate weapon profiles in both the 'RANGED' and 'MELEE' sections.

image image image

Expected Each unit block should contain one copy of all applicable 'UNIT', 'RANGED WEAPON, 'MELEE WEAPON' profile.


I was wondering if Battlescribe (v. 2.03.21) or the Battlescribe Data (v. 10.1.4)has changed how it's now recording model configurations. So when I equip a special weapon, that "model" is being treat as it's own entity (i.e. has it's own 'UNIT' profile, any basic loadout weapons are duplicated etc). Not sure why that would cause some 'UNIT' profiles to disapear though unless there is a limit. I've attached my .ROSZ (changed the file type to .txt to allow it to be uploaded) and a PDF from PrettyScribe as well as how Battlescribe exports my list.

01 LoV Leviathan v0102.txt

PrettyScribe 01 LoV Leviathan _ v0102.pdf

01 LoV Leviathan v0102.html.pdf

rweyrauch commented 11 months ago

Thanks for the detailed error report.
I'll investigate the display errors you reporting.

bo0ples commented 11 months ago

I’m having the same issues as Ironscyde but noticed that it’s only affecting 10E exports. I’ve attached two similar rosters from BS, one being from 9th and the other from 10th, which will show the differences.

PrettyScribe Ultramarines_9E.pdf PrettyScribe Ultramarines_10E.pdf Ultramarines_9E.rosz.txt Ultramarines_10E.rosz.txt Ultramarines_9E_BS.pdf Ultramarines_10E_BS.pdf

rweyrauch commented 11 months ago

I reverted the most recent changes the broke a few things.

mardanbeigi commented 11 months ago

Thanks Rick, I have an idea what the underlying problem is, the example ros files are great test cases that I'll add and then take a stab at a fix forward

rweyrauch commented 11 months ago

Great. I looked at the code but decided it would be easier to revert and work on fix later.