thomascgray / opr-af-to-tts Goto Github PK
View Code? Open in Web Editor NEWSister webtool to "Tombola's OPR AF to TTS Army Importer" Tabletop Simulator mod
Sister webtool to "Tombola's OPR AF to TTS Army Importer" Tabletop Simulator mod
I think this is honestly probably really useful - let people keep multiple settings of colours for output, etc.
Needs to have
We probably don't need to start fucking around with keeping lists and deleting and editing and all that, but just some general kind of "the thing you're currently working on persists between refreshes" would be a nice quality of life improvement.
Some way of;
This is the army being imported: https://army-forge.onepagerules.com/share?id=f_LxS1oZBmEw&name=750_Eternal%20Wardens
This is the resulting opr-af-to-tts link: https://opr-af-to-tts.netlify.app/.netlify/functions/save-list?listId=3x2MKsJpnOcDuPrWXTV6L
The attached image is the error that shows. There's not much else to this issue.
My army list does not import the Tough information of the units.
One last thing (I promise lol), maybe make the sub/small text an option as well? I had to strain my eyes a little to read it and I fear that it may be unreadable to some people depending on their eyesight or monitor setup.
Just to help people remember what they should be assigned loadouts to and how many of things they have to play with.
A right click option to select a whole unit, and display a count of models in that unit. Useful for when things get tight and chaotic.
I don't know of any better place to put this but it has been infrequent with generating my army. Have done it succesfully before but stopped working now with same way of doing it. Playing Dwarfs at the moment. Has just been saying "Army Forge failed to export list. Sorry!" This is the link used. https://army-forge.onepagerules.com/share?id=5vhz5dG0oqCa&name=Drinkers_Guild
We can detect what game system the army list is for (future, firefight, age of fantasy, age of fantasy skirmish, etc.).
We need to use this to adjust the text output for the special rules that are different between these systems.
Off the top of my head; Hero and Tough are definitely different, quite possibly others.
Hello,
I get this error whenever i try to paste a link from the Army Forge to TTS tool into the OPR AF to TTS mod:
Error in script (global): chunk_0:(679, 11-67): Expected string argument to JSON.decode(), got HTML?
I've tried completely reinstalling everything, including TTS, from what I can see nothing is blocking TTS in my firewall, I'm still able to join other games. I know I'm copying the correct link because i give it to my partner and they load up a room for me to join and use the link I gave them to load and assign my models.
Not sure what else it could be, I've run out of ideas.
If you've some space on your todo list, i could use a "check all" box for the "include item in name" checkboxes. Minor request tbh.
Could just be a panel at the top, etc.
[Issue re. custom armies and custom special rules]
I'm wanting the TTS tool to support custom rules (as evidenced in playing-online earlier today) so I've made this army
https://army-forge.onepagerules.com/share?id=I_PB05NtLD_j&name=Congregation_-%20%22Corona%22
which uses the "Avenger" custom special rule
but when I retrieve that army via the TTS endpoint here
https://army-forge.onepagerules.com/api/tts?id=I_PB05NtLD_j
the rule text for "Avenger" is no where in the output.
Would it be possible to get that in?
This is currently blocked by Army Forge TTS endpoint not returning the rules text for custom special rules.
See https://army-forge.onepagerules.com/api/tts?id=I_PB05NtLD_j for example - "Avenger" is a custom special rule and doesn't have any rule text (unlike something like "Shield Wall" in that example, that you can see does have rule text)
I'd suggest adding options* to also display XP (if it's a campaign list) and the notes on the unit (you'll have to tell me if that's even possible lol).
You can now activate individual units.
Cool.
But in a real game, every unit gets de activated at the same time.
We should add a "deactivate army" right click option menu.
This will also require a new "army id" to be passed across the wire.
I think a very useful feature to implement in the future would be a wound tracker, similar to what Yellowscribe has.
https://steamcommunity.com/sharedfiles/filedetails/?id=2920625970
Yellowscribe (Army importer for 40k units) has a similar feature where you can press NUM 2 and 3 to decrease/increase wound count on the model; shown below.
Title says it all.
I think it would be cool to have the options not to see those markers, just to leave the wounds count in the model description.
Thanks,
Taken from #24 (comment)
Related issue I noticed, Psychic may not be affected by this change, especially not Psychic upgrades:
Notice here that no Psychic (X) is shown and there is no indication on the model stat except the assignment card that it received a Psychic(+1) upgrade.
I think we need to work out some way of saying that certain rules do need their rating included in the main body output, EVEN if they're not innate.
The description field is just getting wayyy too long, to the point that a DAO heavy battlesuit took the text, but the tooltip just doesn't render.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.