Tabletop Simulator

Tabletop Simulator

Settlers of Catan (scripted with manual edit)
Finaryman  [developer] 11 Sep, 2021 @ 9:29am
Self-help / Oma-apu
to scale multiple object fast
1. select objects to scale
2. write to console (replace White with your color and 1.5 (order: X,Y,Z) with scale you want)
lua for _, obj in ipairs(Player["White"].getSelectedObjects()) do obj.setScale(Vector(1.5,1.5,1.5)) end
this one respects previous scale (use this when you want to preserve diffrences in scale of selected objects that have different scale)
lua for _, obj in ipairs(Player["White"].getSelectedObjects()) do local scal=obj.getScale(); obj.setScale(Vector(scal.x*1.5,scal.y*1.5,scal.z*1.5)) end

resource/gold collection not working
1. select all your personal play pieces and type command #väri on chat (or change tint from quick menu to player tint which should own pieces (all player colors are list on bottom right)).
valitse kaikki omat pelinappulat ja kirjoita komento #väri keskusteluun (tai vaihda värjäys väri pikavalikosta väriin jonka nappuloita niiden pitäisi olla (kaikki pelaajien värit on listassa oikella alhalla)).

rivers are blocking other objects / joet estää muita esineitä
1.select rivers / valitse joet
2.type #luo command, they get locked and passthrough mode.
kirjoita #luo komento, se lukitsee ne ja laitaa ne läpäiseviksi.

saving own maps via objects maps get little bit off rotation / tehdessä omia kartan lataus esineitä kartat menee vinoon
1. make sure that last object is at correct rotation when creating map object with #luosetti
2. make sure that map object is at correct rotation when loading map.
1. varmista että viimmeinen esine ei ole vinossa kartta esinettä tehdessä #luosetti komenolla.
2. varmista että kartta tallennus esine ei ole vinossa ladatessa.

loeded bags from map save object aren't corrrecly used after #luo / ladatut laukut kartan lataus esineestä ei toimi oikein
-delete two orginal empty bags before loading / poista kaksi alkuperäistä tyhjää pussia ennen latausta
-don't load many maps at time / älä lataa monta karttaa kerralla.

rivers and #luosetti / joet ja #luosetti
1. use #luo command at rivers first.
käytä #luo komentoa ensin jokiin.

how to select center tile from map last / miten valita keskimmäinen laatta viimmeiseksi
1. select all wanted objects / valitse kaikki halutut esineet
2. zoom in near center tile / zoomaa lähelle keski laattaa
3. hold ctrl and click the tile / pohjassa ctrl ja klikkaa laatasta
4. move cursor away (you should see yellow lines show up)
/ siirrä hiiri pois (keltaisten viivojen pitäisi näkyä)
5. hold ctrl and click the tile (yellow lines should be gone (around last object))
/ pohjassa ctrl ja klikkaa laattaa (keltaisten viivojen pitäisi olla poissa (viimmeisen esineen ympärillä))
6. #luosetti

commands wont work / komennot ei toimi
1. write commands to chat, NOT console. If commands contains ä or ö, it should also work with a or o respective to the letter (if it does not it's a BUG).
kirjoita komennot keskusteluun, EI konsoliin.

creating map fast / kartan tekeminen nopeasti
1. select piece type you want to make / valitse pala tyyppi jota haluat tehdä
2. ctrl + c
3. aim grid at points where you want to create that piece / tähtää ruudukkoon paikkaan johon haluat luoda sen palasen
4. ctrl + v
5. repeat from 3 until done creating that piece / aloita uudestaan kohdasta 3 kunnes olet tehnyt kaikki sellaiseet palat

Batch script for creating Hexagons for GIMP paths (import path)
https://pastebin.com/a9bpFByF
usage (on command prompt directory where batch file is)
batchfilename > outputfilename
edit numbers vakio, width, height to value you want. vakio is length edge of hexagon (value 100 means 1 pixel). width and height is number of hexagons. (866 is cos 30 deg (if you are creating your own (more accurate calculation (batch won't support it properly already at 1:39364))))


this is out of place but...
server for virtualbox guest os networking.
virtualbox 6.1.28 is not working (if not win11), use 26 instead. 30 available but don't work with os core protection on (or so i have heard, never tried to disable it). as from 6.1.32 works fine...
https://pastebin.com/VgCA9FHw better help and autolocal ip
https://pastebin.com/xYE1RGh3 added support for dns names for the ip
https://pastebin.com/zF1jart7 fixed autolocal ip
https://pastebin.com/CG4BFvU6 autolocal ip
https://pastebin.com/9i5NXqkx
https://pastebin.com/WusM92xP
https://pastebin.com/3fUMG41m damn
https://pastebin.com/uNPjgxN7 stupid mistakes
https://pastebin.com/JqL5b4FY older_version
https://pastebin.com/m6Gh9rDC older_version (log file fails)
works (after configuring (editing udp_relay_server.py file)) with python 3.10 embed edition (embed python does not require configuring)
replace "C:\python\" with your extracted location, save also as file from pastebin (put in same folder as extracted python) (udp_relay_server.py)
cd /d "C:\python\" python udp_relay_server.py
Last edited by Finaryman; 29 Nov, 2022 @ 3:50am