Giter Club home page Giter Club logo

40k-roster-formatter's Introduction

40k-roster-formatter

Just 40 001st way to format your Warhammer 40 000 BattleScribe rosters.
Current website: https://www.40001format.xyz/

API usage

Q: Wait, there's an API?!
A: Always has been! /astronaut-meme.jpg/

You can download the Postman and import the collection file from here (docs/40001format.xyz.postman_collection.json) to explore the API.

Or do it by hand, if you're a masochist.

curl --location 'https://www.40001format.xyz/api/formatter' \
--form 'formats="default"' `# default/wtc/rus` \
--form 'hide_basic_selections="on"' `# on/off` \
--form 'show_secondaries="on"' `# on/off` \
--form 'roster=@"/home/user/BattleScribe/rosters/SCARAAAAABS.rosz"' `# roster file` \
--form 'remove_costs="on"' `# on/off` \
--form 'show_model_count="on"'  `# on/off`

40k-roster-formatter's People

Contributors

broadside3 avatar jloach avatar maybe-hello-world avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

Forkers

jloach freekkel

40k-roster-formatter's Issues

UI update

As a user, I want UI to be simplified and expanded:

  • Remove the "Upload" button and automatically upload on every file choice
  • Reformat the "Options" menu to add there additional checkboxes

Fix orks

Some ork bosses are forgotten

Planes not counting for Bring It Down

When submitting a list with 2 Archeopter Fusilave for the Adeptus Mechanicus, the "Bring It Down" scoring section at the top of the sheet shows 4 fewer points than it should. (In my case, 5x Kastelan Robots, 5x Ironstrider Ballistarii, and 2x Archaeopter Fusilaves)
When the planes are not included, the other vehicles all show correctly.

type 'unit' for Grimnyr and Brokhyr Iron master

Both these units have type 'unit' and have additional sub-models (drones). The problem is, that for type unit current parsing logic is , and this models themselves are not descendants of the unit, so the function incorrectly counts models (X-1 from real) in the unit.

Currently, in Tau codex Riptide + drones are posted as models, so for type 'model' with descendants parsing logic works well.

Resolution:

  • wait for an answer from Mad-Spy regarding consistency of this

Missing some basic_selections for new CSM 9e codex

There are a few required wargear selections missing due to renames, etc in the new codex:

   Possessed:
     - Horrifying Mutations
+    - Hideous mutations

+  Master of Possession:
+    - Staff of Possession
+
+  Venomcrawler:
+    - Soulflayer tendrils and claws

I would be happy to help out keeping that up to date and adding others I spot if you give me access to file a PR.

Secondaries bugs

  • All Gladiators of Space Marines are of type 'upgrade', not 'unit' or 'model'.
  • Blood Claws & Wolf Guard Terminator - profile problems
  • Find reliable way to check if selection is a model or unit (do not trust 'model' and 'unit' type)

Minimize output - refactor

Refactor output minimization and provide a full path to the selection (like "rostername/forcename/tankbustaz/nob boss"), so you can remove selections only from some units

Decouple roster processing and representation

As a developer, I want to decouple roster parsing and processing (such as wargear removal or secondary counting) from representation (formatting to text output). This would allow specifying different output formats and easily expand the formatter.

Terminus Est

Terminus Est is not shown for Death Guard in the output.
Possibly other non-standard are also not shown, like armies of renown

New Arks Detachment Parse error

invalid literal for int() with base 10: 'detachment'

I grabbed the files from BSData/wh40k repo for BS and noticed the formatter isn't coping with the new detachment when uploaded.

Thanks

Issue formatting list from Andriod phone/dropbox

Getting an error when I try to put list through formatter using my android phone and my lists are on my Dropbox. The location seems to get changed once I select my roster file (rosz) and I can't seem to correct it. The app doesn't seem to recognize it. Get some kind of "inbound" location that doesn't seem to be correct

Sisters of battle supreme command detachment

When converting a BS list with a supreme command detachment containing morvehn vahl it lists her twice which also causes errors for secondaries, and point total of the detachment

image

No additional wargear

Hi! Thanks for cool tool, it really helps

But working with my guard rosters I found that it skips some wargear like hunter-killer missiles on some units, like Sentinnels and Manticores.

Here is my roster
2k-2-2-3DornLRManty.zip

Here is output

Army name: New Roster  
Factions used: Imperium - Astra Militarum  
Total cost: 2000 pts  
  
Number of Units: 15  
Character Units (Models): 4 (4)   
Vehicle/Monster Models (Max Points): 9 (27)   
++++++++++++++++++++++++++++++++++++++++++++++++++  
  
== Combined Regiment Army Roster 2000 pts ==  
  
EH1: Gaunt’s Ghosts: Ibram Gaunt, Tanith Ghost w/ Bragg's autocannon, Tanith Ghost w/ Corbec's Hot-shot Lascarbine, Tanith Ghost w/ Larkin's Long-las, Tanith Ghost w/ Mkoll's Straight Silver Knife, Tanith Ghost w/ Rawne's Lascarbine [100 pts]  
EH2: Lord Solar Leontus: Warlord [125 pts]  
  
CH1: Platoon Command Squad: Platoon Commander (Laspistol), Veteran Guardsman w/ Master Vox, Veteran Guardsman w/ Medi-pack, Veteran Heavy Weapons Team (Mortar) [60 pts]  
CH2: Tank Commander: Demolisher Battle Cannon, Heavy Stubber, Hunter-killer Missile, Lascannon, Two Multi-meltas [205 pts]  
  
BL1: Catachan Jungle Fighters: 1 Jungle Fighter Sergeant and 9 Jungle Fighters (6xJungle Fighter, Jungle Fighter Sergeant, 2xJungle Fighter w/ Flamer, Jungle Fighter w/ Vox-caster) [55 pts]  
  
IN1: Tempestus Scions: Tempestor (Plasma Pistol, Power Fist), 4xTempestus Scion, 2xTempestus Scion w/ Special Weapon (Plasma Gun), 2xTempestus Scion w/ Special Weapon (Meltagun), Tempestus Scion w/ Vox-caster [110 pts]  
IN2: Tempestus Scions: Tempestor (Plasma Pistol, Power Fist), Tempestus Scion, Tempestus Scion w/ Special Weapon (Plasma Gun), Tempestus Scion w/ Special Weapon (Meltagun), Tempestus Scion w/ Vox-caster [55 pts]  
  
VE1: Leman Russ Demolisher: 2 Multi-meltas, Armoured Tracks, Heavy Stubber, Hunter-killer Missile, Lascannon [200 pts]  
VE2: Manticore: Heavy Bolter [150 pts]  
VE3: Manticore: Heavy Bolter [150 pts]  
VE4: Manticore: Heavy Bolter [150 pts]  
VE5: Rogal Dorn Battle Tank: 2 Additional Heavy Stubbers, 2 Multi-meltas, Oppressor Cannon and Co-axial Autocannon, Pulveriser Cannon [260 pts]  
VE6: Rogal Dorn Battle Tank: 2 Additional Heavy Stubbers, 2 Multi-meltas, Oppressor Cannon and Co-axial Autocannon, Pulveriser Cannon [260 pts]  
VE7: Scout Sentinels: Scout Sentinel (Lascannon) [60 pts]  
VE8: Scout Sentinels: Scout Sentinel (Lascannon) [60 pts]  

No Prisoners Secondary Miscounting

Every roster I upload miscalculates the value for No Prisoners, I think by including infantry characters in the calculation.

Here are a few examples of lists I've been uploading.

Rosters.zip

The Necrons list should be 3 points where the program gives 5 points.
Blood Angels should be 10 points where it's listed as 13 points.
Dark Angels are 6/7.
Drukhari/Harlequins are 5/6.

Add Obtainable Secondary Points as a Header

I've seen lists where the secondary points the list gives up is printed at the top, and it makes pre-game discussions much quicker/easier. Something like:

No prisioners: 9
Assasination: 6
Bring it down: 10
...

Reddit posts

Problem: during copying to Reddit post \n symbols are being removed and the result looks bad. I need to investigate the reason and fix line endings.

list index out of range

I tried to upload my Eldar list and it came back with that message. It's a legal list just has a bunch of units.

Abhor the Witch calculation on Dark Angels Ezekiel

It seems that the calculation of Abhor the Witch secondary working incorrectly on Dark Angels Ezekiel as it returning 2 points instead 3.

ABHOR THE WITCH
End Game Objective

The presence of enemy psykers in this theatre of war can no longer be tolerated - hunt them down.
You cannot select this secondary objective if your army includes any PSYKER units. Score 3 victory points at the end of the battle for each enemy PSYKER CHARACTER unit that is destroyed, and 2 victory points for every other enemy PSYKER unit that is destroyed.

Ezekiel
KEYWORDS: CHARACTER, INFANTRY, DEATHWING, INNER CIRCLE, PSYKER, LIBRARIAN, CHIEF LIBRARIAN, EZEKIEL

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.