Toribash
<toribashDirectory>/data/script/sdk

This folder contains a series of lua scripts with example usage for the functions TBLua exposes.
<~suomynona> TITS OR ELEELETH
Feel free to take on that project. Banning the use of bots is to stop farming and automated playing. Just don't expect to be able to leave your bot running in order to gain QI or TC while you do nothing.
[23:23:53] <AndChat|700625> Blue eyes ultimate dragon best card
[23:24:29] <AndChat|700625> You know the one with 3 heads
[23:24:39] <~Lightningkid> just like my dick



[11:35:40] <box> Hampa suck
[11:36:21] <hampa> not the first to tell me that today
Originally Posted by HixBigBank View Post
[I] have to shorten my ambitions about writing an genethical algorithm for multiplayer.

I can tell you right now that that's not even going to work.[/QUOTE]

Originally Posted by HixBigBank View Post
Also I am looking forward for the list/library with all ingame functions ( like get_bet_info(1).tc ) and all the other.

Run this:
local funcs = {}
for name, var in pairs(_G) do
	if type(var) == "function" then
		table.insert(funcs, name)
	end
end

table.sort(funcs)

local out = io.open("functions.txt", "w")
if out == nil then
	error("Unable to create functions.txt")
end

for k, name in pairs(funcs) do
	out:write(name.."\n")
end

out:close()
It will generete a file called "functions.txt" in your script folder that countains all function names sorted alphabetically. Some of those are Lua functions for which you will find documentation online. The rest are Toribash functions. For some of those there are examples in the script/sdk folder. Also a few of those functions are deprecated and don't do anything.
Signature temporarily out of order.
Originally Posted by psycore View Post
I can tell you right now that that's not even going to work.

Depends on what you mean by work: http://forum.toribash.com/showthread.php?t=167355

Tl;dr a genetic algorithm for toribash is an interesting idea, but I don't feel like Lua is the best solution. Generations would be super slow. A better idea would be a bot that doesn't rely on having toribash open, but then you fall victim to the bot rules.
<~suomynona> TITS OR ELEELETH
Is there any way to store ghosts to create a stitched together ghost for your past movement?

I've tried to hack together some things and had done different thoughts about how to try to do it but I don't know scripting well enough to get a honest attempt together.
If it is for past movements, just use the player's part locations during each frame.
[23:23:53] <AndChat|700625> Blue eyes ultimate dragon best card
[23:24:29] <AndChat|700625> You know the one with 3 heads
[23:24:39] <~Lightningkid> just like my dick



[11:35:40] <box> Hampa suck
[11:36:21] <hampa> not the first to tell me that today
If I want to retrieve information with, for example, get_bet_info:

Where do I find what information I can retrieve with this command?

For example: get_bet_info(0).num gives the amount of bets placed on tori, get_bet_info(0).tc gives the amount of tcs betted on tori... etc

I want to know how many options there are and what these options are, is there a way to have a list of them?
Originally Posted by EORAS View Post
If I want to retrieve information with, for example, get_bet_info:

Where do I find what information I can retrieve with this command?

I want to know how many options there are and what these options are, is there a way to have a list of them?

get_bet_info returns a table. You can echo the keys and values like this:
for key, value in pairs(get_bet_info(0)) do
    echo(key .. " => " .. value)
end
Signature temporarily out of order.
Thanks!
-----
How does dit work with, for example get_camera_info ?

When I replace get_bet_info with get_camera_info it gives an error..
-----
And third, with what command do I find out what turn frame I'm currently in?

Sorry for all the questions
-----
Figured it all out, sorry;)
Last edited by EORAS; Jun 8, 2014 at 09:38 PM. Reason: <24 hour edit/bump