I am one of those who are doing the translation at the moment. And this process is filled with pain.
- The same strings in English are not the same in my language. For example, "line" as a ruler...
Type: Posts; User: Maris
I am one of those who are doing the translation at the moment. And this process is filled with pain.
- The same strings in English are not the same in my language. For example, "line" as a ruler...
I'd like to make so if two or more objects are connected, there is visual representation of it.
Ofc I can just highlight objects in the same group.
But:
1) There are only few really different...
Visual bug
1136
e.g. Objects -> Components -> Custom
This causes an error:
function fn()
-- do nothing
end
s = tostring(fn()); -- error
But this is fine:
function fn()
I'm trying to figure it out.
Seems it doesn't work:
local fn_loc = function()end
function onLoad()
print(dynamic.eval("fn_loc")) // nil
end
Fixed by creating another "proxy" variable:
local vec = self:getPosition()
local coords = {vec[1], vec[2], vec[3]}
for i=1,3 do
coords[i] = math.floor(coords[i] * 1000000 + 0.5)/1000000...
local function UpdateCollision()
print('self ',self)
local coords = self:getPosition()
for i=1,3,1 do
print('i ',i)
coords[i] = math.floor(coords[i] * 1000000 + 0.5)/1000000
end...
Let's say I have a card object in a variable.
Is it possible to get its face image (associated with the deck) and coords on this image? E.g. 7th row and 9th column, or just number 69 (if the size...
You may set obj.interactable = false
Actually YOU should tell what's the problem, i.e. what exactly you want to do.
I see that you asking to translate the code to human language and then to the code again. It will be a kind of google...
Is it bad if my deck texture is 4097x4097 or 4100x3900 etc?
Does it consume additional memory? And will Tabletop Simulator autoresize textures to low resulution so it will be ugly?
Is it possible to change image of existing custom table?
Is it possible to replace custom table with new one, i.e. spawn new custom table with new image URL?
How can I get description of an object in a bag that is in another bag?
For example, deck in a bag, and I want to see names of cards in it. Is it possible and how?
Is there an easy way to get number of items in container?
I know:
#self.getObjects()
But this is too complicated I think. You need to get whole table of all items (may be over 1000) despite...
Are there any events when an object is added to bag container?
In documentation I found only this:
onObjectLeaveContainer(Object container, Object leave_object)
But no function for new objects...
I have Infinite Bag with an object (e.g. Red Square).
I check guid of new objects from the bag using function onObjectPickUp().
When I take first object, it has some guid, e.g. 94abd0.
I...
Please add this functions to Lua: loadstring(), setfenv().
P.S. Add load() function if you move to Lua 5.2+
http://f4.s.qip.ru/1HDgF5wr.png
Error when a player is joining.
My icons are hidden behind the buttons.
https://i.imgur.com/JVfI6GO.png
Присоединяйтесь!
Дискорд - https://discord.gg/DtqSgBF
VK - https://vk.com/tabletopsimulator
See "onSave" function for script related variables.
Seems it's a bug!
My few tools http://steamcommunity.com/sharedfiles/filedetails/?id=846029623
Sorry for the Russian language. I made it for myself.
But you can use it "as is" if you like (or you may use google...
..........
local rot = obj:getRotation()
local isFaceUp = (rot.z < 90 or rot.z > 270)
..........
I just wanted EASY way to add thickness to highlight.
Now I made additional BlockSquare to each card in the game. And it acts like a shadow. It's not easy to make it. And it takes much cpu.