16:41 <&Eleeleth> am I right in thinking
16:41 <&Eleeleth> if we had a lua api like
16:41 <&Eleeleth> get_ghost_joint_pos(frame, joint_id)
16:42 <&Eleeleth> we would easily be able to make a working tb ai
16:42 <&Eleeleth> right?
16:42 <&Eleeleth> because you can just brute force it
16:42 < charles> it would make the process a lot simpler, i'd think
16:42 < charles> don't know about easy, cause it still seems tedious as shit
16:42 <&Eleeleth> I mean basically the struggle with my process
16:42 <&Eleeleth> was I needed to re-implement all of fucking tb's physics model
16:43 <&Eleeleth> because I need a way to predict my position
16:43 <&Eleeleth> if I have access to ghost data, that's fucking solved
16:43 < charles> Eleeleth: I'm not sure AI for TB is that viable tbh bro
16:43 <&Eleeleth> and it becomes getting over the tedium of implementing it
16:43 < charles> because even knowing how things will play out from here
16:43 <&Eleeleth> charles: it's more a toy thing to point to
16:43 <&Eleeleth> 'hey I built an AI for a physics game'
16:43 < charles> Eleeleth: what kind of logic would you put in place
16:44 < charles> like always aim a extremity at their vital parts
16:44 <&Eleeleth> charles: first iteration is a bot that tries to not DQ
16:44 <&Eleeleth> easy to test, right
16:44 < charles> relatively simple (but tedious)
16:44 <&Eleeleth> hit uke, if he doesn't dq it works
16:44 < charles> y
16:45 <&Eleeleth> second iteration is 'attempt to get points and not dq
16:45 <&Eleeleth> '
16:45 < charles> would make for some nice desparate looking replays
16:45 < charles> Eleeleth: but how many frames ahead is it looking
16:45 <&Eleeleth> and by 'attempt to get points'
16:45 < charles> like is it looking to do it in the next immediate turn
16:45 <&Eleeleth> minimum implementation is a basic opener script
16:45 < charles> what if it cant reach the person in that amount of frames
16:45 <&Eleeleth> charles: that's a later iteration
16:46 <&Eleeleth> where it tries to predict opponent movement
16:46 <&Eleeleth> apply the same logic you're running to your opponent
16:46 < charles> Eleeleth: i've never actually tried to do any sort of AI (unless you
consider complex automations to be AI)
16:46 <&Eleeleth> and choose the move that results in the highest likelyhood of success
16:46 <&Eleeleth> it's literally just a brute force solution
16:46 < charles> or anything self-teaching
16:46 < charles> i assumed
16:46 <&Eleeleth> you could elegance can come later
16:47 <&Eleeleth> I want a proof of concept
16:47 < charles> you can see it in a lot of existing games
16:47 < charles> where you can predict the behavior based upon the situation, and
manipulate the logic to do the same shit over and over
16:47 <&Eleeleth> yes
16:48 <&Eleeleth> charles: ideally it would learn and apply things to similar situations
16:48 <&Eleeleth> but that requires some fudging of details
16:48 <&Eleeleth> time to bug hampa for that api
And then I punch uke, he falls over and looks like he's having a seizure on the ground.
If it's so easy to write a good bot, write one.
2 posts back bro.. 2 posts back... ^^
http://forum.toribash.com/showpost.p...1&postcount=47
zh0ul, is your space bar broken? Who uses 12 spaces for a single level of indents, and furthermore:
What is that?if ( cur_ ...
if ( string.find(cur_user_input,"[+-]") ~= nil )
then
well, thats a part of /mnt/jakeC/Games/Toribash-4.41/replay/Head_Cannon.rpl
while mine says:C:\Games\Toribash-4.41\replay\Head_Cannon.rpl
Is it broken? If so, how long do you expect it will take to fix it? I really want to fight the AI computer player.
Example: C:\Games\Toribash-4.7\data\script
The files:/ls ps.lua
3) I suggest you try one of the mods which I've provided default settings for:/lm twinsword4fixed.tbm
4) Start fighting