people playing: 276
servers online: 80
games played: 73,234,707

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



Weekly Mod Mini Tutorials (5:) Weapons Special!
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
Week 5, Weapons Special!

Make sure to read previous tutorials before this one!

This week will be a little different, I will show you how to make a variety of toribash weapons, then you can post saying what weapon you want to learn how to do.

Week 5- Weapons Special!


Dagger: Easy


Starting
- Ok first we need to make the basic dagger in Worldbuilder
- I have the x and y size as small as possible (still positive) and the bottom object instagib



- Now I'm ready to save it and open it in notepad to do some small changes (Don't unload worldbuilder

Notepad Editing
- At default the dagger objects is way to heavy at .1, I will lower them to .001

material steel
mass 0.001

- Now the mass is all good, but now I will make the x and y sides of the instagib part to make it more "sharp"

rot 0 0 0
sides 0.0325 0.0125 0.25
material steel

- So the weight and size is set, all I have to do is joint the two objects together, using the following tactic:



- In worldbuilder I make another object, a small sphere and then place it in between the 2 parts of the dagger, I will copy this location for my env_obj_joint

env_obj_joint 1 1 2
pos -.4375 .375 1.9375

- That is all the notepad editing needed, the mod is ready to go!

Finishing

- I just need to unload worldbuilder and drag my mod into the mods folder and it is ready to play






Ball & Chain: Medium


Starting

- Ok, now for a little more difficult, and fun mod, a ball and chain
- As always, open up worldbuilder and place the objects down, I have a handle, some small cube blocks to represent the chain, and a ball for smackin' uke with:



- Now for the "fun" part, notepad editing, save your mod then open it in wordpad, leave worldbuilder open though

Notepad Editing

- Firstly I will lower the mass of the objects to around .0005 so it is easy to swing
- Most importantly, what I need to do is to joint the objects together, I will use the same tactic as I did for the dagger.
- Place a small object where you want the joint to be located, then copy the pos for it when you write out the object joint format.



- I will then write out the object joint formatting, and write in the pos:

env_obj_joint 1 1 2
pos -.375 1.375 2.4375

- This is linking the handle to the first chain joint, I will now do the same for the rest of the joints, (chain to other chain, again, again, etc. chain to ball):

env_obj_joint 1 1 2
pos -.375 1.375 2.4375

env_obj_joint 2 2 3
pos -.375 1.375 2.8125

env_obj_joint 3 3 4
pos -.375 1.375 3.125

etc.

- Now, in order to create a chain effect, I need to make it so the chain objects can have some range of motion
- 2 -2 is about right, 5 -5 would be no restrictions (can move all 360 degrees", so this is a little less than half of that for each segment
- I add this information to all of the joints under the pos:

env_obj_joint 1 1 2
pos -.375 1.375 2.4375
visible 1
range 2 -2

env_obj_joint 2 2 3
pos -.375 1.375 2.8125
visible 1
range 2 -2

env_obj_joint 3 3 4
pos -.375 1.375 3.125
visible 1
range 2 -2

etc.

(I made my joints visible so you can see them while playing)

- This covers all the things I need for the object joints, I just have a tiny bit of body modding to do
- I will increase the density of the feet so they are easier to stand on, I did them at 15:

body r_foot
density 15

body l_foot
density 15

- And lastly I changed the axis of the wrist, so instead of rotating forward and backwards, it rotates up and down, (y axis)

joint r_wrist
axis 0 1 0

- All the modifacations are done, and the mod is ready to play!

Finishing

- Unload worldbuilder and save your mod, drag it into the mod folder and load it up in toribash
- Due to the limitations of toribash modding, the rope can only rotate on one axis, so it's a little unlrealistic, but not bad:






Chainsaw: Hard


Starting

-Ok, to start I need to make 4 objects in worldbuilder, a body, two "arms", and a square object at the end of the arms (Arms are optional)
-Looks something like this:



-I made the blade object instagib, for better cutting action, I will need to make the blade spin around, and joint all the objects together in notepad
-I will also make the blade smaller so it doesn't catch on the arms (and is more sharp)

Notepad Editing

-The first thing I will do is lower the y size value for the blade, and make it so it has no friction (This will prevent it from jamming)
-Now I will lower the mass of the objects so I can move the chainsaw without it pulling me around, here is what the objects look like in notepad:

env_obj 1
shape box
pos -0.5625 0.5 2.25
color 0.4 0.4 0.4 1
rot 0 0 0
sides 0.5625 0.25 0.25
material steel
mass 0.001
flag 0
#END 1

env_obj 2
shape box
pos -1.125 0.4375 2.25
color 0.6 0.6 0.6 1
rot 0 0 0
sides 0.5625 0.0625 0.0625
material steel
mass 0.001
flag 0
#END 2

env_obj 3
shape box
pos -1.125 0.5625 2.25
color 0.6 0.6 0.6 1
rot 0 0 0
sides 0.5625 0.0625 0.0625
material steel
mass 0.001
flag 0
#END 3

env_obj 4
shape box
pos -1.375 0.5 2.25
color 0.9 0.9 0.9 1
rot 0 0 0
sides 0.45 0.0325 0.45
material steel
mass 0.001
flag 6
friction 0
#END 4

-Object 1 is the body, 2 and 3 are the arms, and 4 is the blade, all I need to do now is joint the objects together and make the blade spin around
- To make the blade spin, I will do the same thing I did for the motor bike mod I made in tutorial 4:

env_obj_joint 1 1 4
pos -1.375 0.5 2.25
axis 0 1 0
range 5 -5
strength 1.3
velocity 80

-I make the position if the joint the same position as the blade object, since the object will rotate around the joint "so it will rotate from it's center"
-I also changed the rotation axis to the Y-Axis so it will rotate like a real chainsaw
-Finally I link the 2 arms to the body, using the position where they meet the body:

env_obj_joint 2 1 2
pos -.875 .4375 2.25
range 0 -0

env_obj_joint 3 2 3
pos -.875 .5625 2.25
range 0 -0

-My chainsaw is all finished, I just made the feet more dense so you have more control, this is my final product:



-You can use what you learned to make grinders and other deadly devices with rotation




Ok everyone, that's all for now, I will get the chainsaw mod up very soon, right now you all can post weapons that you want to learn how to make!!!
the god

Last edited by culapou; Oct 21, 2009 at 12:35 AM..
culapou is offline   Reply With Quote
Old Oct 15, 2009   #2
Meamme0
ub3r
 
Brown Belt
Join Date: Dec 2008
Posts: 3,036
Clan: Sigma



Great tut as aslways.
Thanks for the Avatar, MrAakash
Meamme0 is offline   Reply With Quote
Old Oct 16, 2009   #3
riverchen
Senior Member
 
Brown Belt
Join Date: May 2009



nice!
im gonna atempt this
Clanless? Join The Chosen Ones User was supported by SAN STUDIOS!
riverchen is offline   Reply With Quote
Old Oct 16, 2009   #4
granate08
Senior Member
 
3rd Dan Black Belt
Join Date: Jul 2009
Posts: 1,047



Chainsaw.... =D

Still didn't try any of your tips but when i want i'll do. ^^
granate08 is offline   Reply With Quote
Old Oct 18, 2009   #5
Nirs
Engraze's bitch
 
Snow Belt
Join Date: Jan 2008
Posts: 3,102



cula, ty very much
that is rly very useful

translated to russian by major

--------------------------------
Nirs is offline   Reply With Quote
Old Oct 21, 2009   #6
culapou
Elitist
 
Master Belt
Join Date: Dec 2007
Posts: 6,025



Updated with chainsaw, post weapons you want to learn how to make guys!
the god
culapou is offline   Reply With Quote
Old Oct 21, 2009   #7
granate08
Senior Member
 
3rd Dan Black Belt
Join Date: Jul 2009
Posts: 1,047



Nice chainsaw.
But will there be a next week?

Last edited by granate08; Oct 21, 2009 at 02:32 PM..
granate08 is offline   Reply With Quote
Old Oct 21, 2009   #8
Mars
Senior Member
 
3rd Dan Black Belt
Join Date: Jan 2008
Posts: 1,249



A nice looking gun would be cool to make.
First they ignore you, then they laugh at you, then they fight you, then you win.
-Mohandas Gandhi
Mars is offline   Reply With Quote
Old Oct 22, 2009   #9
Hucota7
Forumite
 
3rd Dan Black Belt
Join Date: Aug 2009
Posts: 1,652
Clan: Family



all of your tuts are very helpful. =] ive already made 2 mods, one made in worldbuilder and edited and one made fully in notepad. =D
Hucota7 is offline   Reply With Quote
Old Oct 23, 2009   #10
riverchen
Senior Member
 
Brown Belt
Join Date: May 2009



need a shootable gun
Clanless? Join The Chosen Ones User was supported by SAN STUDIOS!
riverchen is offline   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 02:58 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