how do i weapon?
by Lordrockit · in Torque 3D Beginner · 08/21/2014 (4:34 pm) · 14 replies
Hello all,
i am making this thread in hopes that some one will reply to answer this question:
How do i script a weapon?
i have a model with all the points(like mountpoint)(but no anims... yet)(and its made in 3ds max) ive exported it as a dae file. but now i need to script it into the game, how do i do this.
i haven't done anything with torquescript yet(ive gotten a syntax highlight for it in notepad++).
ive read an old tutorial for this on the forums but it is out of date and does not work :(
so can someone provide me with a tutorial(preferably youtube but text will work)
thanks for your time
-lordrockit
i am making this thread in hopes that some one will reply to answer this question:
How do i script a weapon?
i have a model with all the points(like mountpoint)(but no anims... yet)(and its made in 3ds max) ive exported it as a dae file. but now i need to script it into the game, how do i do this.
i haven't done anything with torquescript yet(ive gotten a syntax highlight for it in notepad++).
ive read an old tutorial for this on the forums but it is out of date and does not work :(
so can someone provide me with a tutorial(preferably youtube but text will work)
thanks for your time
-lordrockit
About the author
I am a game programmer. I mainly work with Java. I started as a 3d artist. I started coding in Java at age 10. I am only 12 years old and im living my dream of making video games.
#2
08/21/2014 (5:52 pm)
thanks again Richard i see you post a lot on these forums with very helpful info so thank you for all the help. any way i looked at that briefly and it confused me i guess because i didn't read it all the way. ill check it out again so thanks for the help.
#3
08/21/2014 (6:10 pm)
I'm in the middle of writing a really beginner-focused tutorial on basic weapons. I should be done within an hour :). Beware, though, it'll be all scripting and no editors!
#4
08/21/2014 (6:36 pm)
Best post title ever.
#5
See how you go with this. You'll probably need to download t3d-bones (just click here), as well as one of the demos to get good executables (I recommend downloading the PhysX demo and using that).
Let me know if anything's unclear!
Richard: oh gosh I hadn't looked through that whole weapon tutorial before. It's so dense. Argh.
08/21/2014 (6:53 pm)
Agreed. 3 internet points to you, Lordrockit.See how you go with this. You'll probably need to download t3d-bones (just click here), as well as one of the demos to get good executables (I recommend downloading the PhysX demo and using that).
Let me know if anything's unclear!
Richard: oh gosh I hadn't looked through that whole weapon tutorial before. It's so dense. Argh.
#6
edit: just one question Daniel
is there an easy way to put this in normal torque 3d?
edit 2:the executable gives me an error when starting with the tutorial
GuiControll::onAdd()unable to find specified profile and GuiDefaultProfile does not exist
08/21/2014 (9:53 pm)
thank you all for the responses. and yes i agree that was pretty funny with the post title.edit: just one question Daniel
is there an easy way to put this in normal torque 3d?
edit 2:the executable gives me an error when starting with the tutorial
GuiControll::onAdd()unable to find specified profile and GuiDefaultProfile does not exist
#7
Ok, remember this quote - "any non-trivial outcome requires non-trivial effort." If making games was easy, everyone would be doing it. Don't give up, don't get discouraged. Just keep learning and doing things and you'll go far.
08/22/2014 (6:26 am)
Yup - that tutorial is a beast.Ok, remember this quote - "any non-trivial outcome requires non-trivial effort." If making games was easy, everyone would be doing it. Don't give up, don't get discouraged. Just keep learning and doing things and you'll go far.
#8
The reason I started t3d-bones is because 'normal' T3D is such a pain to modify :/.
Weird about the error, which executable are you running? Did you just download the demo, no modifications?
08/22/2014 (5:17 pm)
Lordrockit: you just have to know where to put the scripts. Datablocks go somewhere in art/datablocks, callback functions in scripts/server, and make sure all your scripts are actually exec()ed from somewhere and the file paths point to the right art assets. Oh, and the %player.mountImage(Gun, 0) line needs to move. I can't remember where all that stuff happens in stock scripts, but there's a very complicated setup, possibly somewhere in core/scripts, or scripts/server/game.cs?The reason I started t3d-bones is because 'normal' T3D is such a pain to modify :/.
Weird about the error, which executable are you running? Did you just download the demo, no modifications?
#9
i also figured out were most of the functions go in default torque 3d
08/22/2014 (6:13 pm)
i got the physics example(i dont have a nividia card) and just droped all the updated templates into the folder they go i run the exe and crash.i also figured out were most of the functions go in default torque 3d
#10
imgur.com/gallery/sOc91Is
08/22/2014 (7:07 pm)
I don't have anything to add except this off topic link solely related to the title.imgur.com/gallery/sOc91Is
#11
Hey with the physx stuff, no nvidia card needed it is cpu driven and gpu doesn't matter.
08/22/2014 (7:17 pm)
x3 for best title ever! Lordrockit i present you with not just 3 internet points but the entire internet :)Hey with the physx stuff, no nvidia card needed it is cpu driven and gpu doesn't matter.
#12
08/22/2014 (7:19 pm)
Sorry - what I recommend doing is downloading the zip file of the current master branch (the zip I linked to) and extracting it somewhere. Then download the physx demo, and copy/paste the executables and DLLs into the other copy.
#13
BUT i found all the info i needed from your tutorial and from the torque 3d webpage i will pick apart your code and port it to the default torque 3d enviroment
i will get back to you guys with that if i get it to work
also if any of you need 3d assets for a torque 3d game(or any engine for that matter) pleas visit my tumblr for requesting info for free game assets. ill do anything you guys need for your games and all the models are yours to have you dont even need to credit me
click me for info
08/22/2014 (8:47 pm)
for some reason that still doent work same error.BUT i found all the info i needed from your tutorial and from the torque 3d webpage i will pick apart your code and port it to the default torque 3d enviroment
i will get back to you guys with that if i get it to work
also if any of you need 3d assets for a torque 3d game(or any engine for that matter) pleas visit my tumblr for requesting info for free game assets. ill do anything you guys need for your games and all the models are yours to have you dont even need to credit me
click me for info
#14
08/22/2014 (9:44 pm)
Hmm, I can't reproduce that. But as long as you've learned from the tutorial!
Torque Owner Richard Ranft
Roostertail Games
http://www.garagegames.com/products/torque-3d/fps#/5-weapons