Toribash Community » Toribash » Mods » Lua scripts
Thread Tools Display Modes
Old Apr 24, 2018   #51
Senior Member
8th Dan Black Belt
Join Date: Aug 2014
Posts: 580
Clan: Spark

Originally Posted by Pouffy View Post
id use the "end_game" hook, and skip waiting altogether.

otherwise, there is the "enter_frame" hook, if you really need to check each frame for a particular thing

couldn't find that hook, nor can i find the startup file where all the hooks are haha. do you know where that's located? Thanks!
Kris is offline   Reply With Quote
Old Apr 25, 2018   #52
<cocacobra> hes like an neckbeardling
7th Dan Black Belt
Join Date: Sep 2014
Posts: 2,033

its startup.lua in the scripts folder. you can also look at the sdk folder for some different functions
pouffy is offline   Reply With Quote
Old Apr 26, 2018   #53
Senior Member
8th Dan Black Belt
Join Date: Aug 2014
Posts: 580
Clan: Spark

Can you manipulate game rules during a single player game? You can manipulate the mod, im unsure of how to change something like gravity though

EDIT: I assume you cant't; you cant change the gravity of a replay mid replay lol

Last edited by Kris; Apr 26, 2018 at 04:08 AM..
Kris is offline   Reply With Quote
Old Nov 12, 2018   #54
Junior Member
White Belt
Join Date: Nov 2018

The get_head_info function
Hello !

I would like to have the info of the head position !
That is not shown by get_joint_pos function !
and get_head_info(index_player) return 0...

How to get it ?

I am also trying to connect information given by the POS in replay and the one given by get_joint_pos

In the replay there are 21*3 coordinate. But get_joint_pos only give 20*3 coordinate.
I am supposing that the 3 first coordinate are the one related with the head.
How to get it ?

thank you guys !
reHello !

I saw that the NEWGAME line is not completly know (some piece of it are still unknow)

Does anyone know all the information inside the NEWGAME line ?

I suppose that it should contain most of information contained in the get_world_state but I still have no idea which one for the most of the entries


It seems that POS in .rpl file is refering to get_body_info(player_index).pos
I am not sure of tht but the 21*3 parameters would make more sense.

If anyone know for sure that my supposition is right it could be nice to confirm !

The 3 first cordinate are the head one. I edited a .rpl file to change head position to be sure.

the 3 next are the neck then I do not check. But I suppose that it is the same order that with get_body_info.


NEWGAME line is a mess and differs according to versions of replay.
In Version 12 we have :

1000 1 15 0 0 2 1000 0 0 classic 0 0 100 0 0 0 1 0 2 0 0 0 0 0 0 0.000000 0.000000 -9.820000 0 0 0 0 8 :
matchframe turnframes reactiontime ? ? flag engadistance damage sumo mod ? dojosize dismemberthreshold fracturethreshold engageheight ? ? ? ? engagerotation ? engagespace dqtimeout ? dojotype gravity.x gravity.y gravity.z dqflag ? drawwinner pointthreshold maxcontacts

Last edited by adeeplearn; Nov 13, 2018 at 09:20 AM.. Reason: <24 hour edit/bump
adeeplearn is offline   Reply With Quote
Old Jun 1, 2019   #55
Senior Member
4th Dan Black Belt
Join Date: Dec 2011
Posts: 1,480
Clan: Origin

How do I install scripts using linux?
~#1 Of The Shittiest Shitposter of TP 2016~
L3rkDeath is offline   Reply With Quote
Old Jun 2, 2019   #56
5th Dan Black Belt
Join Date: Dec 2016
Posts: 189
Clan: Nausea

goto ~/.local/share/Steam/steamapps/Toribash/data/script
paste lua script there.
"at least i stay grounded in conversation" ~ mitch to gang
mitchy is offline   Reply With Quote

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

All times are GMT +1. The time now is 10:09 PM.

Powered by vBulletin® Version 3.8.2
Copyright ©2000 - 2019, Jelsoft Enterprises Ltd.
ragdoll fighting game physics fighting game ragdoll fighting physics funmotion joints martial arts karate pc mac free game turn based game