people playing: 255
servers online: 74
games played: 73,166,478

  Toribash Community » Toribash » Tutorials
Reply
 
Thread Tools Display Modes
Old Sep 6, 2009   #1
culapou
Elitist
 
Master Belt
Join Date: Dec 2007
Posts: 6,025



Weekly Mod Mini Tutorials (2:) Basic Notepad Editing
Week 1, Basic Making and Saving
Week 2, Advanced Worldbuilder and Basic Notepad
Week 3, Intermediate Notepad Editing
Week 4, Advanced Notepad & Basic Body Editing

Make sure to read previous tutorials before this one!

Week 2- Basic Notepad Editing



Starting
- Once you have Toribash open and worldbuilder loaded, open up the 3 palletes, Press C,M,F
- Now that that is done, make a new object (*)
- Make this object whatever you want

- I have a purple board floating below uke at around 300 engage height
- Make another object by pressing P, I changed this object to a cylinder, and placed it below my first object like this:

- You can make however more objects you want (limit 12), but I am done, I am going to save my mod


Notepad Editing
- Ok, the mod will be in scripts folder, bring it into the mods folder, then open it with notepad, my mod looks like this:

# Environment exported by WorldBuilder
######################################

env_obj 1
shape box
pos 1 0.9375 1.6875
color 0.6 -0.1 0.5 1
rot 0 0 0
sides 1.8125 0.75 0.125
material steel
mass 0.2
flag 0
#END 1

env_obj 2
shape cylinder
pos 1 0.9375 1.5
color 0.6 -0.1 0.5 1
rot 90 0 0
sides 0.0625 1.125 0.5625
material steel
mass 0.1
flag 24
#END 2


- The second object, (the cylinder) I don't want to be visible while playing the mod, so under flag 24 and before #END 2 I will type: visible 0

material steel
mass 0.1
flag 24
visible 0
#END 2

-The cylinder now disappears while ingame, and appears as if you are floating



- Now, I want my hands and feet to be more heavy, to do this you use the density function

- Bellow everything else I will type this to make my hand and feet more heavy, 30 makes your feet stuck in the ground and .05 is around normal:

body l_foot
density 1

body r_foot
density 1

body l_hand
density 1

body r_hand
density 1


- This works for any body part, just type out the body part using the same format (body side_name) or if it is in the middle, (body head)

- After typing this, anything you put under that will edit that body part, some functions include the size, flag, joust, but we will get to this next time

- You can make the mod automaticaly set the gamerules for you when you open the mod, make some space in between the ##### and obj 1 and write out rules in this format:

gamerule
ed 200
eh 180
gravity 0 0 -30
dojosize 1

- You can use shortcuts like ed for engage distance, dt for dismember threshold, etc.

- This is what my final mod appears like ingame:



Basic Notepad Functions
gamerule: type gamerule, then write out the rules below it
visible 0: makes objects invisible
(body side_part): makes it so information written below it will affect the body part
density: affects the weight of the body part
the god

Last edited by culapou; Sep 29, 2009 at 03:27 AM..
culapou is online now   Reply With Quote
Old Sep 6, 2009   #2
DoubleDagR
Senior Member
 
Black Belt
Join Date: Oct 2008
Posts: 614




env_obj 2
shape cylinder
pos 1 0.9375 1.5
color 0.6 -0.1 0.5 1
rot 90 0 0
sides 0.0625 1.125 0.5625
material steel
mass 0.1
flag 24
#END 2


- The second object, (the cylinder) I don't want to be visible while playing the mod, so under flag 24 and before #END 2 I will type: visible 0

material steel
mass 0.1
flag 24
visible 0
#END 2

Alternatively, you can change the alpha in the RGBA (Red/Green/Blue/Alpha) to 0 (color 0.6 -0.1 0.5 0) also any number between 0.01~0.9 makes objects opaque (All the color values range from 0.01 to 1).
/set gr 0 0 -30
DoubleDagR is offline   Reply With Quote
Old Sep 6, 2009   #3
culapou
Elitist
 
Master Belt
Join Date: Dec 2007
Posts: 6,025



Yes, but the ghost will still show up against another object. If you really care.
the god
culapou is online now   Reply With Quote
Old Sep 6, 2009   #4
granate08
Senior Member
 
3rd Dan Black Belt
Join Date: Jul 2009
Posts: 1,047



Wow thanks... And the next will be what?

Joints? Enviroment?
granate08 is offline   Reply With Quote
Old Sep 6, 2009   #5
culapou
Elitist
 
Master Belt
Join Date: Dec 2007
Posts: 6,025



Prolly environment joints and more body part functions.
the god
culapou is online now   Reply With Quote
Old Sep 6, 2009   #6
granate08
Senior Member
 
3rd Dan Black Belt
Join Date: Jul 2009
Posts: 1,047



Great because i could need that
granate08 is offline   Reply With Quote
Old Sep 7, 2009   #7
guenther
Junior Member
 
Brown Belt
Join Date: Jul 2009
Posts: 14



I have a problem: when i make an objekt really big it`s ingame not in that size.
guenther is offline   Reply With Quote
Old Sep 18, 2009   #8
DoubleDagR
Senior Member
 
Black Belt
Join Date: Oct 2008
Posts: 614



Originally Posted by culapou View Post
Yes, but the ghost will still show up against another object. If you really care.

Yeah actually it makes a difference and thanks for letting me know actually I learned something new from this tutorial. I credited you in my latest mod.
/set gr 0 0 -30
DoubleDagR is offline   Reply With Quote
Old Sep 26, 2009   #9
danjrdood
Member
 
Black Belt
Join Date: May 2009
Posts: 162



When I saved my mod, it didn't appear in the scripts folder. What do I do?
danjrdood is offline   Reply With Quote
Old Sep 26, 2009   #10
culapou
Elitist
 
Master Belt
Join Date: Dec 2007
Posts: 6,025



Did you write the name and .tbm extension in the white box in the middle of the screen?
the god
culapou is online now   Reply With Quote
Reply

Thread Tools
Display Modes

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 11:45 AM.


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