Toribash
Original Post
[REL]judobot - small ukebot that plays a mean game of judo
--gmon judo uke script, created by gmon Oct 3, 2008


Openers={}
Openers = {
{ { {1,2}, {2,2}, {3,1}, {4,2}, {6,2}, {8,1}, {9,2}, {12,2}, {13,2}, {14,2}, {15,1}, {16,1}, {17,4}, {18,2}, {19,1}, }, { {0,0} }, },
{ { {1,1}, {2,1}, {3,1}, {4,1}, {5,1}, {6,2}, {7,2}, {9,2}, {12,2}, {13,2}, {14,1}, {15,2}, {16,1}, {17,1}, {18,1}, {19,2}, }, { {0,0} }, },
{ { {1,1}, {2,1}, {3,1}, {4,1}, {5,1}, {6,2}, {7,2}, {12,2}, {13,2}, {14,1}, {15,2}, {19,2}, }, { {0,0} }, },
{ { {1,2}, {2,2}, {3,1}, {4,2}, {5,4}, {7,2}, {8,4}, {12,2}, {13,2}, {14,2}, {15,1}, {18,2}, }, { {0,0} }, },
{ { {2,4}, {3,1}, {4,2}, {7,2}, {12,2}, {13,2}, }, { {0,0} }, },
{ { {1,1}, {2,1}, {4,2}, {6,1}, {7,2}, {9,2}, {10,1}, {11,1}, {12,2}, {13,2}, {15,1}, {16,1}, {17,2}, {18,2}, {19,2}, }, { {0,1} }, },
{ { {1,2}, {2,2}, {3,1}, {4,2}, {5,4}, {7,2}, {8,4}, {12,2}, {13,2}, {14,1}, {15,2}, {16,2}, {17,4}, {18,2}, {19,2}, }, { {0,2} }, },
{ { {0,1}, {1,2}, {2,2}, {3,1}, {4,2}, {6,2}, {7,1}, {8,2}, {9,2}, {12,2}, {13,2}, {14,2}, {15,1}, {18,2}, {19,1}, }, { {0,1} }, },
{ { {1,2}, {2,2}, {3,1}, {4,2}, {6,1}, {7,2}, {9,1}, {12,2}, {13,2}, {14,2}, {15,1}, {16,1}, {17,1}, {18,2}, {19,1}, }, { {0,0} }, },
{ { {1,2}, {2,2}, {3,2}, {4,2}, {6,2}, {7,2}, {9,2}, }, { {1,1} }, },
{ { {1,2}, {2,2}, {4,2}, {7,2}, {12,2}, {13,2}, {14,2}, {15,1}, }, { {1,1} }, },
{ { {1,2}, {2,1}, {3,1}, {4,2}, {6,2}, {7,2}, {12,2}, {14,1}, {15,1}, {16,2}, }, { {0,1} }, },
{ { {1,2}, {2,2}, {3,1}, {4,2}, {6,2}, {7,1}, {9,2}, {12,2}, {13,2}, {14,2}, {15,1}, {16,2}, {17,1}, {18,2}, {19,1}, }, { {0,0} }, },
{ { {1,1}, {2,2}, {3,1}, {4,1}, {6,2}, {7,2}, {9,2}, {15,1}, }, { {1,0} }, },
{ { {1,4}, {2,4}, {4,2}, {7,2}, {8,4}, {9,4}, {10,2}, {12,2}, {13,2}, {15,1}, {17,4}, {18,2}, }, { {0,1} }, },
{ { {1,4}, {2,4}, {3,1}, {4,2}, {7,2}, {12,2}, {13,2}, }, { {2,2} }, },
{ { {1,1}, {2,1}, {4,2}, {7,2}, {10,4}, {11,4}, {12,2}, {17,2}, }, { {1,1} }, },
{ { {1,1}, {2,1}, {3,1}, {6,4}, {7,2}, {8,4}, {9,2}, {10,4}, {11,4}, {12,2}, {13,2}, {14,1}, {15,2}, {16,1}, {17,1}, {18,1}, {19,2}, }, { {1,1} }, },
{ { {1,2}, {2,2}, {3,1}, {4,2}, {5,4}, {6,2}, {7,1}, {8,2}, {9,2}, {12,2}, {13,2}, {14,2}, {15,1}, {16,1}, {17,1}, {18,2}, {19,1}, }, { {0,0} }, },
{ { {1,2}, {2,2}, {4,2}, {6,2}, {7,2}, {9,1}, {10,1}, {11,1}, {12,2}, {13,2}, {14,1}, {16,2}, {17,1}, {18,2}, {19,2}, }, { {1,1} }, },
{ { {1,2}, {2,2}, {3,1}, {4,2}, {7,1}, {9,2}, {11,1}, {12,2}, {13,2}, {14,2}, {15,1}, {16,1}, {17,1}, {18,2}, {19,1}, }, { {0,0} }, },
{ { {1,1}, {2,2}, {4,2}, {7,2}, {12,2}, {13,2}, {14,1}, {15,2}, }, { {0,0} }, },
{ { {1,2}, {2,2}, {4,2}, {12,2}, {13,2}, }, { {0,0} }, },
{ { {1,1}, {2,1}, {4,2}, {6,1}, {7,2}, {9,2}, {10,1}, {11,1}, {12,2}, {13,2}, {15,1}, {16,1}, {17,2}, {18,2}, {19,2}, }, { {1,1} }, },
{ { {1,2}, {2,1}, {4,2}, {7,2}, {12,2}, {13,2}, {14,2}, {15,1}, }, { {0,0} }, },
{ { {1,2}, {2,1}, {4,2}, {6,2}, {7,2}, {12,2}, {13,1}, {14,1}, {17,2}, }, { {1,1} }, },
{ { {1,2}, {2,2}, {3,1}, {4,2}, {5,4}, {7,2}, {8,4}, {12,2}, {13,2}, {14,2}, {15,1}, {17,4}, {19,1}, }, { {0,0} }, },
{ { {1,2}, {2,2}, {3,1}, {4,2}, {7,1}, {8,2}, {9,2}, {12,2}, {13,2}, {14,1}, {15,2}, {16,2}, {17,4}, {18,2}, {19,2}, }, { {0,1} }, },
{ { {1,2}, {2,2}, {3,1}, {4,2}, {7,2}, {12,2}, {13,2}, {14,2}, {15,1}, {18,2}, }, { {0,0} }, },
{ { {0,1}, {1,1}, {2,1}, {3,1}, {4,1}, {5,2}, {6,2}, {7,2}, {9,2}, {12,2}, {13,2}, {14,1}, {15,2}, {18,1}, {19,2}, }, { {1,0} }, },
{ { {1,2}, {4,2}, {12,2}, {13,2}, {14,2}, {15,1}, }, { {0,1} }, },
{ { {1,2}, {2,2}, {3,1}, {4,2}, {6,2}, {7,1}, {9,4}, {12,2}, {13,2}, {14,2}, {15,1}, {16,4}, {17,1}, {18,2}, }, { {0,0} }, },
{ { {0,4}, {1,1}, {2,1}, {3,1}, {4,1}, {5,4}, {6,4}, {7,2}, {8,4}, {9,4}, {12,2}, {13,2}, {14,1}, {15,2}, {17,4}, {19,2}, }, { {0,0} }, },
{ { {1,1}, {2,1}, {3,2}, {4,1}, {5,2}, {6,2}, {7,2}, {9,2}, {10,1}, {12,2}, {13,2}, {14,1}, {15,2}, {19,2}, }, { {1,0} }, },
}


function start()

choose()

end




function choose()
   for i=0, 19 do
     set_joint_state(1, i, 3)
   end
   local mi=math.random(1, #Openers)
   local move=Openers[mi]
   for k, v in pairs(move[1]) do
        set_joint_state(1, v[1], v[2])
   end

   for k, v in pairs(move[2]) do
      set_grip_info(1, BODYPARTS.L_HAND, v[1])
      set_grip_info(1, BODYPARTS.R_HAND, v[2])
   end

end



add_hook("new_game", "random_lua", start)

add_hook("enter_freeze","lua_bot",choose)
I put it in code tags for you. ~Blam
Last edited by Blam; Oct 4, 2008 at 02:18 PM.
OMFG EPIC!

Props to u !
[18:04:54] <aracoon> Eureka is a powerhungry fag
______________
[13:13] <Eureka> also dota is kinda for pigfuckers
[13:13] <jalis> ban eureka
[13:13] <jalis> thanks
He isn't doing anything except openers =/
Would be cool if he would try to not dq.
Oblivion: that wasn't hilarious
Oblivion: it was brilliantly complex though
Oblivion: hands down man
Oblivion: today I genuinely believe more than I ever did before
Oblivion: that you are better than me
Oblivion: gg NutHug

Like my stuff?
Join my FunClub or subscribe on Youtube
I would have made it a little more complicated, but you are limited to posts that are only 10kb. Makes it hard to do the ground detect in that space.

The openings are taken from some of the best judo players, so you can at least practice your openings.

Also thanks ~Blam for the code box..
Uhhh, I pasted the code into a text document and made it a lua file, but it doesn't work!
Originally Posted by Unknown View Post
Uhhh, I pasted the code into a text document and made it a lua file, but it doesn't work!

make sure the lua file is in the right directory (toribash/data/script)

then when you load toribash, first go to options and load the Judo Mod.

after the judo mod is loaded, go back to the options menu and load the lua script.

the game should start with the lua script active and your uke playing judo.
Originally Posted by gmon View Post
make sure the lua file is in the right directory (toribash/data/script)

then when you load toribash, first go to options and load the Judo Mod.

after the judo mod is loaded, go back to the options menu and load the lua script.

the game should start with the lua script active and your uke playing judo.

Nevermind, it worked.