Heroscapers
Go Back   Heroscapers > Custom HeroScape Creations > Software
Software Software created for enhancing HeroScape

Notices


Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old May 2nd, 2021, 09:16 AM
A3n's Avatar
A3n A3n is offline
"Let's Nut this Unit Out!"
 
Join Date: April 10, 2008
Location: Australia - Queensland - Nth Rockhampton
Posts: 20,238
Images: 77
A3n is a man of the cloth A3n is a man of the cloth A3n is a man of the cloth A3n is a man of the cloth A3n is a man of the cloth A3n is a man of the cloth A3n is a man of the cloth A3n is a man of the cloth A3n is a man of the cloth A3n is a man of the cloth A3n is a man of the cloth A3n is a man of the cloth A3n is a man of the cloth A3n is a man of the cloth A3n is a man of the cloth
Tabletop Simulator - Heroscape Adding Maps to A3n's script

Hello fellow 'scapers.

Somebody (awesome) created this a brilliant Heroscape mod for Tabletop Simulator. I only know it as the Kraken Table. I don't know who did it but a lot of time & effort was put into it. Thank you whoever it was for all your efforts.

I have spent a bit of time adding a few scripts to this mod.
  • Map Menu - that allows for loading a range of maps.
  • Map Capture - for the Map Menu. This uses a lot of code from the GIT GUID Tool by Felixinius.
  • Dice Tray Dice Roller - I used the Apocalypse Dice Tray by Shoebaca & have added a menu to select number of dice to roll.
  • Playtest Note Taker - Using the Dice Roller & chat commands to record what is happening in the game.

For the Map Menu, currently there are numerous C3G maps already added. This thread is a tutorial on how to add another map to the mod that has my script. Hit me up sometime for the latest version. Or one of the C3G heroes should have a fairly recent version if not the latest.

So let's get into it:
What you will need:
  • Photoshop or other image editing app.
  • Atom https://atom.io/ (I just read, today 16/2/22, that MS Visual Studio Code works as well - but I haven't tried it so you are on your own with it.)
  • The Tabletop Simulator Lua Atom package https://atom.io/packages/tabletopsimulator-lua.
  • Of course Tabletop Simulator
  • And The Kraken Table mod with my script in it.


1/. At the end of the table, hit the Customize Board button.


2/. Next choose Grid from the Options menu.


3/. Check Show Lines.


4/. Build your map. Uncheck Show Lines. Then take a screen capture of the map.


5/. Paste the screen capture into Photoshop (or other editing app). Remove the background & make it a presentable picture that is about 200 x 144 pixels. I have a Photoshop template here that you can use. Save this image for later.


6/. Back in TTS, on the end of the table again, hit the Copy Map Setup button.


7/. Open the Notebook from the menu. Got to the new note page labelled Capture Map_0. Copy all the text from this tab.


8/. In Atom from the Packages menu, in the Tabletop Simulator sub-menu, choose Get Lua Scripts. Then open a new file & paste the text. From the Find menu choose Replace in Buffer. In the "find" value enter map_name. In the "replace" value enter the name of your map. Press Replace All.

8a/. In the 2nd & 3rd line change the words "map_type" to one of: "mapsC3Gcomp" (C3G Competitive map), "mapsC3Gcasual" (C3G Casual map), "mapsWoS" (Wargrounds of Scape map), "mapsWF" (C3G Worlds Finest map) or "mapsFFU" (C3G Fantastic Forces Unite).
8b/. In the 3rd line change the words "IMG_Map_map_name" to be without spaces or punctuation for the "map_name" as per step 12.

9/. Save this map file. You should have a Tabletop Simulator folder in your My Documents folder. Save the file here with the extension .ttslua.


10/. From the Modding menu choose Scripting.


11/. From this scripting window, press the Custom UI Assets tool button in the top-right corner. From the next pop-up window press the largish "+" button.


12/. In the Create Asset window enter a name for the image. To keep to my naming convention use IMG_Map_mapname.


13/. Hit the Folder icon of the image line. Choose Cloud when prompted. Then press Import.


--no longer required to complete:
Spoiler Alert!


17/. From the Packages menu, in the Tabletop Simulator sub-menu, choose Save and Play.


18/. Back in Tabletop Simulator, from the Games menu, choose Save and Load. Save the new version of the mod.




FURTHER INFORMATION:
Ok so it appears that if you don't have the files already you cannot (obviously) add to them. So you need to take further steps to initially set it up.

You need to create a folder (usually) in your documents folder. The path to which is specified in the Atom Settings:

If it doesn't already exist create the "Tabletop Simulator" folder then create a sub-folder "HS_Maps". For me the folder structure looks like: C:\Users\amaxs\Documents\Tabletop Simulator\HS_Maps\.

If you can get the files from somebody else (even if it's not the most up-to-date) it may save you a lot of effort. Put the map files you get into this folder.

Next I will explain my understanding of how Atom & TTS scripting interact. So to make things modular & a little easier to understand, Atom allows you to include other files in your script by using the #include <folder/filename> statement. What Atom does when exporting back to TTS is whenever it comes across a #include statement it opens the file, from your folder set above, & copies all the text from it & inserts it into the the uploaded script at the place where the statement occurred. It also precedes & follows the inserted text with "----#include <folder/filename>". For example:
If you have a file like:

Then the statement in the referring script will look like:

But what is uploaded to TTS actually looks like:

So now back to step 8 above: "8/. In Atom from the Packages menu, in the Tabletop Simulator sub-menu, choose Get Lua Scripts. Then open a new file & paste the text." you are going to either see just the #include statement or the commented statement with the script from the file included already. In the settings you can change what you actually get in Atom. By default Atom is set to show the #include statement but it won't download the associated files. You can change the settings to download the full script:

Don't forget to get the script again after changing the settings so you can see the changed script.

What you can do if you don't have the files is: from the full script copy the script between the two commented statements & paste into a new file with the same name as used in the #include statement with an extension of ".ttslua".

Just remember some will be nested. E.g. The Global.ttslua has #include HS_maps/Map_List then the Map_List.ttslua file has #include Map_Grundys_Grave. So the full script will look like :
----#include HS_maps/Map_List
----#include Map_Grundys_Grave
... the script ...
----#include Map_Grundys_Grave
----#include HS_maps/Map_List


You don't necessarily need all files to make the changes to include new maps. However you will continue to receive missing file errors without them. I believe the minimum you would need is the Map_List.ttslua file to add your included map file.


This script may not be the most elegant of solutions & if you think of a better way please let me know.

Last edited by A3n; July 18th, 2022 at 11:50 PM.
Reply With Quote
  #2  
Old May 2nd, 2021, 06:07 PM
japes's Avatar
japes japes is offline
A Man of Taste
 
Join Date: August 3, 2011
Location: USA - TX - Austin (SW)
Posts: 28,810
Images: 51
japes is a wielder of the Ban Hammer japes is a wielder of the Ban Hammer japes is a wielder of the Ban Hammer japes is a wielder of the Ban Hammer japes is a wielder of the Ban Hammer japes is a wielder of the Ban Hammer japes is a wielder of the Ban Hammer japes is a wielder of the Ban Hammer japes is a wielder of the Ban Hammer japes is a wielder of the Ban Hammer japes is a wielder of the Ban Hammer japes is a wielder of the Ban Hammer japes is a wielder of the Ban Hammer japes is a wielder of the Ban Hammer japes is a wielder of the Ban Hammer
Re: Tabletop Simulator - Heroscape Adding Maps to A3n's scri

Great info @A3n . Thanks for taking the time to educate.

Would I want it to be everything I love...sure...but that's just not realistic so I'm going to focus on finding things that will make me unhappy and work on fixing those.
Reply With Quote
  #3  
Old May 2nd, 2021, 06:09 PM
IAmBatman's Avatar
IAmBatman IAmBatman is online now
Best There Is! - C3G Con 2020 Champ
 
Join Date: February 15, 2007
Location: USA - AL - Montgomery
Posts: 134,948
Images: 110
IAmBatman is a wielder of the Ban Hammer IAmBatman is a wielder of the Ban Hammer IAmBatman is a wielder of the Ban Hammer IAmBatman is a wielder of the Ban Hammer IAmBatman is a wielder of the Ban Hammer IAmBatman is a wielder of the Ban Hammer IAmBatman is a wielder of the Ban Hammer IAmBatman is a wielder of the Ban Hammer IAmBatman is a wielder of the Ban Hammer IAmBatman is a wielder of the Ban Hammer IAmBatman is a wielder of the Ban Hammer IAmBatman is a wielder of the Ban Hammer IAmBatman is a wielder of the Ban Hammer IAmBatman is a wielder of the Ban Hammer IAmBatman is a wielder of the Ban Hammer
Re: Tabletop Simulator - Heroscape Adding Maps to A3n's scri

Thanks for putting this together, A3n!

C3G can be played with official Heroscape, but it's not recommended.


DISCLAIMER: C3G claims no ownership of the characters or artwork used for C3G customs. All rights for the characters belong to their respective publishers/creators. C3G cards are not intended for sale, and C3G does not authorize any party to profit from C3G cards.

Reply With Quote
  #4  
Old May 5th, 2021, 05:45 AM
DanieLoche's Avatar
DanieLoche DanieLoche is offline
Marcel Marceau
 
Join Date: May 25, 2011
Location: France - Toulouse
Posts: 1,244
Images: 4
DanieLoche is a penguin with a machine gun DanieLoche is a penguin with a machine gun DanieLoche is a penguin with a machine gun DanieLoche is a penguin with a machine gun DanieLoche is a penguin with a machine gun DanieLoche is a penguin with a machine gun DanieLoche is a penguin with a machine gun DanieLoche is a penguin with a machine gun DanieLoche is a penguin with a machine gun DanieLoche is a penguin with a machine gun DanieLoche is a penguin with a machine gun DanieLoche is a penguin with a machine gun
Re: Tabletop Simulator - Heroscape Adding Maps to A3n's scri

Quote:
Somebody (awesome) created this a brilliant Heroscape mod for Tabletop Simulator. I only know it as the Kraken Table. I don't know who did it but a lot of time & effort was put into it. Thank you whoever it was for all your efforts.
Well it is only a few threads under this one, if we are talking about the same thing.
Right here.


Bunch of useful resources (army cards,
blanks, online databases & more..!)
French Forum's admin.
Reply With Quote
  #5  
Old May 5th, 2021, 08:21 PM
A3n's Avatar
A3n A3n is offline
"Let's Nut this Unit Out!"
 
Join Date: April 10, 2008
Location: Australia - Queensland - Nth Rockhampton
Posts: 20,238
Images: 77
A3n is a man of the cloth A3n is a man of the cloth A3n is a man of the cloth A3n is a man of the cloth A3n is a man of the cloth A3n is a man of the cloth A3n is a man of the cloth A3n is a man of the cloth A3n is a man of the cloth A3n is a man of the cloth A3n is a man of the cloth A3n is a man of the cloth A3n is a man of the cloth A3n is a man of the cloth A3n is a man of the cloth
Re: Tabletop Simulator - Heroscape Adding Maps to A3n's scri

Quote:
Originally Posted by DanieLoche View Post
Quote:
Somebody (awesome) created this a brilliant Heroscape mod for Tabletop Simulator. I only know it as the Kraken Table. I don't know who did it but a lot of time & effort was put into it. Thank you whoever it was for all your efforts.
Well it is only a few threads under this one, if we are talking about the same thing.
Right here.
I looked at that post in the TTS Workshop forums & the picture didn't look like the Kraken Table. But if it is any of them (Dissonance and jawa64) then all props to them. Thank you guys.
Reply With Quote
  #6  
Old October 6th, 2021, 09:46 PM
quozl's Avatar
quozl quozl is offline
Silly quozl, dinosaurs are for orcs!
 
Join Date: January 11, 2008
Location: USA - WA - Vancouver
Posts: 26,738
Images: 143
Blog Entries: 3
quozl is a wielder of the Ban Hammer quozl is a wielder of the Ban Hammer quozl is a wielder of the Ban Hammer quozl is a wielder of the Ban Hammer quozl is a wielder of the Ban Hammer quozl is a wielder of the Ban Hammer quozl is a wielder of the Ban Hammer quozl is a wielder of the Ban Hammer quozl is a wielder of the Ban Hammer quozl is a wielder of the Ban Hammer quozl is a wielder of the Ban Hammer quozl is a wielder of the Ban Hammer quozl is a wielder of the Ban Hammer quozl is a wielder of the Ban Hammer quozl is a wielder of the Ban Hammer
Re: Tabletop Simulator - Heroscape Adding Maps to A3n's scri

I followed all the steps but I am missing the Map_List.ttslua file in my project.

Quote:
Originally Posted by Craig Van Ness View Post
I highly recommend C3V and C3G customs!
Reply With Quote
  #7  
Old October 6th, 2021, 09:53 PM
Ericth74's Avatar
Ericth74 Ericth74 is offline
Setting the Table for Super
 
Join Date: April 6, 2017
Location: Cazenovia, NY
Posts: 7,762
Ericth74 is inducted into the Halls of Valhalla Ericth74 is inducted into the Halls of Valhalla Ericth74 is inducted into the Halls of Valhalla Ericth74 is inducted into the Halls of Valhalla Ericth74 is inducted into the Halls of Valhalla Ericth74 is inducted into the Halls of Valhalla Ericth74 is inducted into the Halls of Valhalla Ericth74 is inducted into the Halls of Valhalla Ericth74 is inducted into the Halls of Valhalla
Re: Tabletop Simulator - Heroscape Adding Maps to A3n's scri

Quote:
Originally Posted by quozl View Post
I followed all the steps but I am missing the Map_List.ttslua file in my project.
So close, hopefully @A3n can help!
Reply With Quote
  #8  
Old October 6th, 2021, 11:06 PM
A3n's Avatar
A3n A3n is offline
"Let's Nut this Unit Out!"
 
Join Date: April 10, 2008
Location: Australia - Queensland - Nth Rockhampton
Posts: 20,238
Images: 77
A3n is a man of the cloth A3n is a man of the cloth A3n is a man of the cloth A3n is a man of the cloth A3n is a man of the cloth A3n is a man of the cloth A3n is a man of the cloth A3n is a man of the cloth A3n is a man of the cloth A3n is a man of the cloth A3n is a man of the cloth A3n is a man of the cloth A3n is a man of the cloth A3n is a man of the cloth A3n is a man of the cloth
Re: Tabletop Simulator - Heroscape Adding Maps to A3n's scri

Quote:
Originally Posted by quozl View Post
I followed all the steps but I am missing the Map_List.ttslua file in my project.
Do you have all the .ttslua files?
Reply With Quote
  #9  
Old October 7th, 2021, 08:49 AM
quozl's Avatar
quozl quozl is offline
Silly quozl, dinosaurs are for orcs!
 
Join Date: January 11, 2008
Location: USA - WA - Vancouver
Posts: 26,738
Images: 143
Blog Entries: 3
quozl is a wielder of the Ban Hammer quozl is a wielder of the Ban Hammer quozl is a wielder of the Ban Hammer quozl is a wielder of the Ban Hammer quozl is a wielder of the Ban Hammer quozl is a wielder of the Ban Hammer quozl is a wielder of the Ban Hammer quozl is a wielder of the Ban Hammer quozl is a wielder of the Ban Hammer quozl is a wielder of the Ban Hammer quozl is a wielder of the Ban Hammer quozl is a wielder of the Ban Hammer quozl is a wielder of the Ban Hammer quozl is a wielder of the Ban Hammer quozl is a wielder of the Ban Hammer
Re: Tabletop Simulator - Heroscape Adding Maps to A3n's scri

Quote:
Originally Posted by A3n View Post
Quote:
Originally Posted by quozl View Post
I followed all the steps but I am missing the Map_List.ttslua file in my project.
Do you have all the .ttslua files?
No, I only get 12 files when I get scripts from game. 7 starting with "Board", 2 with "Extend", 2 with "Global", and 1 "The Kraken Table".

Quote:
Originally Posted by Craig Van Ness View Post
I highly recommend C3V and C3G customs!
Reply With Quote
  #10  
Old October 8th, 2021, 12:48 AM
A3n's Avatar
A3n A3n is offline
"Let's Nut this Unit Out!"
 
Join Date: April 10, 2008
Location: Australia - Queensland - Nth Rockhampton
Posts: 20,238
Images: 77
A3n is a man of the cloth A3n is a man of the cloth A3n is a man of the cloth A3n is a man of the cloth A3n is a man of the cloth A3n is a man of the cloth A3n is a man of the cloth A3n is a man of the cloth A3n is a man of the cloth A3n is a man of the cloth A3n is a man of the cloth A3n is a man of the cloth A3n is a man of the cloth A3n is a man of the cloth A3n is a man of the cloth
Re: Tabletop Simulator - Heroscape Adding Maps to A3n's scri

Quote:
Originally Posted by quozl View Post
Quote:
Originally Posted by A3n View Post
Quote:
Originally Posted by quozl View Post
I followed all the steps but I am missing the Map_List.ttslua file in my project.
Do you have all the .ttslua files?
No, I only get 12 files when I get scripts from game. 7 starting with "Board", 2 with "Extend", 2 with "Global", and 1 "The Kraken Table".
so do you have the 2 high level folders seen in top left of the below screenshot?
Reply With Quote
  #11  
Old October 8th, 2021, 11:21 AM
quozl's Avatar
quozl quozl is offline
Silly quozl, dinosaurs are for orcs!
 
Join Date: January 11, 2008
Location: USA - WA - Vancouver
Posts: 26,738
Images: 143
Blog Entries: 3
quozl is a wielder of the Ban Hammer quozl is a wielder of the Ban Hammer quozl is a wielder of the Ban Hammer quozl is a wielder of the Ban Hammer quozl is a wielder of the Ban Hammer quozl is a wielder of the Ban Hammer quozl is a wielder of the Ban Hammer quozl is a wielder of the Ban Hammer quozl is a wielder of the Ban Hammer quozl is a wielder of the Ban Hammer quozl is a wielder of the Ban Hammer quozl is a wielder of the Ban Hammer quozl is a wielder of the Ban Hammer quozl is a wielder of the Ban Hammer quozl is a wielder of the Ban Hammer
Re: Tabletop Simulator - Heroscape Adding Maps to A3n's scri

I only have the "Tabletop Simulator Lua" folder. No HS_maps folder.

Quote:
Originally Posted by Craig Van Ness View Post
I highly recommend C3V and C3G customs!
Reply With Quote
  #12  
Old October 8th, 2021, 09:48 PM
A3n's Avatar
A3n A3n is offline
"Let's Nut this Unit Out!"
 
Join Date: April 10, 2008
Location: Australia - Queensland - Nth Rockhampton
Posts: 20,238
Images: 77
A3n is a man of the cloth A3n is a man of the cloth A3n is a man of the cloth A3n is a man of the cloth A3n is a man of the cloth A3n is a man of the cloth A3n is a man of the cloth A3n is a man of the cloth A3n is a man of the cloth A3n is a man of the cloth A3n is a man of the cloth A3n is a man of the cloth A3n is a man of the cloth A3n is a man of the cloth A3n is a man of the cloth
Re: Tabletop Simulator - Heroscape Adding Maps to A3n's scri

Quote:
Originally Posted by quozl View Post
I only have the "Tabletop Simulator Lua" folder. No HS_maps folder.
ok. how about in your My Documents folder is there a Tabletop Simulator folder? And does it have any other folders or files in it?
Reply With Quote
Reply

Go Back   Heroscapers > Custom HeroScape Creations > Software
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
The Heroscape Tabletop Simulator Mod needs YOUR help. General J Software 80 November 16th, 2020 09:34 PM
Tabletop Simulator Heroscape Discord Server SmashedFinger Scapers Online 3 June 7th, 2018 02:23 PM
Ultimate Heroscape virtual set for Tabletop Simulator Markb97402 Comic Hero Custom Creations 2 October 15th, 2017 04:23 PM
Anyone here play Tabletop Simulator Heroscape? Razqua Software 5 May 2nd, 2017 03:37 PM
Tabletop simulator heroscape anyone Decko HeroScape General Discussion 1 January 21st, 2017 08:25 PM


All times are GMT -4. The time now is 03:01 PM.

Heroscape background footer

Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
User Alert System provided by Advanced User Tagging (Lite) - vBulletin Mods & Addons Copyright © 2024 DragonByte Technologies Ltd.