Tabletop Simulator

Tabletop Simulator

31 ratings
Tombola's OPR AF to TTS Army Importer
2
   
Award
Favorite
Favorited
Unfavorite
Type: Utility
Complexity: Low Complexity
File Size
Posted
Updated
128.614 KB
Apr 30, 2023 @ 3:07pm
Dec 1, 2024 @ 1:44pm
17 Change Notes ( view )

Subscribe to download
Tombola's OPR AF to TTS Army Importer

Description
Use this tool in conjunction with OPR's Army Forge and Tombola's OPR AF to TTS web tool to quickly build and setup One Page Rule armies!

Please watch this 5 minute YouTube video youtu.be/O7ERtMcB8NQ for a rundown of what this mod and sister webtool are, why the webtool is needed, and how to use them.



---

How to Use:

1. Go to One Page Rule's Army Forge https://army-forge.onepagerules.com/ and make an army.
2. Hit "Share as link", paste it into the OPR AF to TTS web tool https://opr-af-to-tts.netlify.app/
3. Define your distinct models, load out quantities on those models, and desired TTS output formatting.
4. Hit "Generate shareable link for TTS" at the bottom of the page.
5. Grab that link, paste it into the input on this mod.
6. Follow the in-mod instructions on the note cards to easily setup your models in your army.
7. Done!

Designed to work with most of the One Page Rule's games - Grimdark Future, Grimdark Future: Fightfight, Age of Fantasy, and Age of Fantasy: Skirmish.

You can find a link to the OPR AF to TTS web tool above, in the description of the attached Youtube video, or on a notecard in the mod itself.

---

Features:

  • easily assign OPR unit profiles onto TTS objects, including names, descriptions, relevant special rules, Tough values, etc. Everything you need to actually play without cross-referencing army PDFs!
  • assign a unit profile on a object by object basis, or mass assign multiple objects at once.
  • right-click menu based scripting functionality to help make your game smoother:
    • marking whole units as activated, pinned, wavering, etc.
    • measuring circles that automatically adapt to non-circular bases, different scales.
    • count the number of models left in a unit.
    • select all models in that unit.

---

Huge thanks to the developers of One Page Rule's Army Forge for their great tool, and their support in building this mod and its sister web tool.

Thanks to "Neurotrace" and their original OPR importer mod, which provided the inspiration for this mod.
28 Comments
Mateboom69 Dec 19, 2024 @ 3:02pm 
where can i get the models?
Tombola  [author] Dec 1, 2024 @ 2:44pm 
@fifolozada1990
This is now done! Apologies for the long wait. New context menu items for measuring off, and army measuring off

@Axlion
Thanks for the message; I've improved the error messaging in the mod, so hopefully better at tracking down what has happened.
Axlion Nov 16, 2024 @ 2:44am 
I seem to have encountered a bug related to the importer reading the code generated by the web tool. To quote from the game window,
Error in Script (Global): chunk_4:(883,4-55): attempt to index a nil value
This has come up when, in the web tool, I use the "Duplicate this model definition" to have an entry that would have just one of the checkable items marked.
Also a minor bug when I didn't have any models selected and may have not had one of the assignment cards active, pressing Scripting Key 2 resulted in
Error in Script (Global) function <onScriptingButtonDown>: chunk_4:(839,22-76): attempt to concatenate a nil value
Hope this helps with the next update.
fifolozada1990 Jun 8, 2024 @ 1:29pm 
Love this, can we add measuring off context menu? I tested with the following and should work, this would help me save time not having to add it to each model after the fact

i created an extra function called cycleMeasuringRadius1

function cycleMeasuringRadius1()
local decodedMemo = JSON.decode(self.memo)
measuringCircle.radius = 0;
if measuringCircle.radius == 0 then
printToAll("measuring aura turned off")
end
rebuildStatusEffectThings();
end

then within the preexisting "function rebuildcontext()" i added another context menu under the preexisting self.addContextMenuItem("Measuring", cycleMeasuringRadius, true)

note that the code before and after the self.addContextMenuItems in this example was removed to shorten the post

function rebuildcontext()
self.addContextMenuItem("Measuring", cycleMeasuringRadius, true)
self.addContextMenuItem("Measuring off ", cycleMeasuringRadius1, true)

let me know if you have any questions, need help, and if we can update this
Tombola  [author] Jun 8, 2024 @ 3:50am 
@GoonyGooma should be fixed now! Thanks
GoonyGoomba May 24, 2024 @ 11:41pm 
Mod's been working great. Only real issue is the one detailed here https://github.com/thomascgray/opr-af-to-tts/issues/44 . Happening with quite a few of the army special rules.
Mr. Shoes May 1, 2024 @ 11:12am 
Ah shoot. It works now. I think I was screwed up. I think I tried to copy the generated link on the bottom of your website, but I didn't, so the Army Forge link was still in my clipboard. I was trying to put the army forge link directly into the TTS mod without knowing it.

User error :)
Tombola  [author] Apr 28, 2024 @ 1:37pm 
@Mr Shoes if you don't mind, could you make an issue at https://github.com/thomascgray/opr-af-to-tts/issues/new ? With as much detail as possible - the game system, the army, any links to the Army Forge army, etc. Thanks!
Mr. Shoes Apr 25, 2024 @ 3:37pm 
Love this mod! I started to get this error today. Expected string argument to JSON.decode(), got HTML?

Where should I submit these? it's pretty consistent.
GoonyGoomba Mar 30, 2024 @ 11:02am 
Absolutely great mod! I've been trying to find a Yellowscribe equivalent for OPR and, standard bugs aside, you've nailed it here. Even has some better functionality than Yellowscribe. Thanks for the hard work!