Author Topic: I need some help on making a weapon.  (Read 2367 times)

Ok, so I'm new to this weapon making stuff. So, I made my first weapon, a dodgeball, using Blender. I did all the texturing and stuff, but I need help on how to make it a working weapon. Basically I need a script. I want my dodgeball to be like thorwing a spear. How the arm comes up then throws it. Then I want it to be a one-hit kill weapon. So yea please help me. 

« Last Edit: May 27, 2009, 11:51:53 PM by Niven »

Also whenever I start up BL and go into single player it says:

AddDamageType() - Dodgeball file "add-ons/ci/Dodgeball.png" does not exist!
AddDamageType() - DodgeballRadius file "add-ons/ci/DodgeballRadius.png" does not exist!


Halp plz.


You're telling it to load CI that don't exist, isn't that a given?
In the case you DID make it, check the file names, I'm not sure, but I think caps matters.

Ok well here are all the files in my file. (Blockland-->Add-ons-->Weapon_Dodgeball)

blank.png
ci_Dodgeball.bmp
ci_DodgeballRadius.bmp
description.txt
rtbInfo.txt
Dodgeball.dts
DodgeballFire.wav
DodgeballHit.wav
Dodgeballprojectile.dts
icon_Dodgeball.bmp
namecheck.txt
server.cs

Exactly the way it is. D:

ci_Dodgeball.bmp
ci_DodgeballRadius.bmp
Errors in bold.
Firstly, it's saying that there isn't a space, or, at least, you are.
Secondly, add-ons in BL, or rather Torque, and pretty much all game engines for that matter, load .PNG files, but you are using .BMPs. Convert the file, then it should work. If not, come back and check with me, or whoever else is here.

Will do. EDIT: here's part of the code in my server.cs:
AddDamageType("Dodgeball",   '<bitmap:add-ons/ci/Dodgeball> %1',    '%2 <bitmap:add-ons/ci/Dodgeball> %1',1,1);
AddDamageType("DodgeballRadius",   '<bitmap:add-ons/ci/DodgeballRadius> %1',    '%2 <bitmap:add-ons/ci/DodgeballRadius> %1',1,0);

Off Topic: How do you post pictures in a post? I wanna show you meh dodgeball :3
« Last Edit: May 27, 2009, 05:18:26 PM by Niven »

Use [ img ] tags.
Fix the file names, or the code's loading, and the file types already.

What do you mean? What do you want me to fix??

Errors in bold.
Firstly, it's saying that there isn't a space, or, at least, you are.
Secondly, add-ons in BL, or rather Torque, and pretty much all game engines for that matter, load .PNG files, but you are using .BMPs. Convert the file, then it should work. If not, come back and check with me, or whoever else is here.
Learn2read.

Ok I converted them to PNG but it still  says they don't exist. Am I supposed to change bitmap to PNG in my code I posted?

Ok I converted them to PNG but it still  says they don't exist. Am I supposed to change bitmap to PNG in my code I posted?
Yes. Make sure the files are pngs and the script registers them as pngs.

will try. BTW heedicalking, how do you post images on posts? Taboo isn`t helping much

OK well the message is gone but everytime, in the console, it says:

Code: [Select]
Loading Add-On: Weapon_Dodgeball
Executing Add-Ons/Weapon_Dodgeball/server.cs
Add-on/Weapon_Dodgeball/server.cs (0): preload failed for DodgeballProjectile: ProjectileData::load: Couldn't load shape "Add-Ons/Weapon_Dodgeball/shapes/Dodgeball.dts".
Add-on/Weapon_Dodgeball/server.cs (0): preload failed for DodgeballItem: ShapeBaseData: Couldn't load shape "Add-Ons/Weapon_Dodgeball/shapes/Dodgeball.dts".
Object 'DodgeballProjectile' is not a member of the ProjectileData' data block class
Add-on/Weapon_Dodgeball/server.cs (0): preload failed for DodgeballImage: Unable to load shape: Add-Ons/Weapon_Dodgeball/shapes/Dodgeball.dts

HALP HEEDICALKING!

It looks like you are somehow linking to a folder named shapes inside your folder.
Code: [Select]
Add-Ons/Weapon_Dodgeball/shapes/Dodgeball.dtsEither create a shapes folder and put the dodgeball in it or remove it in the script.

Now its saying (when I put a shapes folder in Weapon_Dodgeball):

Loading Add-On: Weapon_Dodgeball
Executing Add-Ons/Weapon_Dodgeball/server.cs
Error: attempt to load a version 66 dts-shape, can currently only load a version 24 and before.
Add-on/Weapon_Dodgeball/server.cs (0): preload failed for DodgeballProjectile: ProjectileData::load:
Error: attempt to load a version 66 dts-shape, can currently only load a version 24 and before.
Add-on/Weapon_Dodgeball/server.cs (0): preload failed for DodgeballItem: ShapeBaseData: Couldn't load shape "Add-Ons/Weapon_Dodgeball/shapes/Dodgeball.dts".
Object 'DodgeballProjectile' is not a member of the ProjectileData' data block class
Error: attempt to load a version 66 dts-shape, can currently only load a version 24 and before.
Add-on/Weapon_Dodgeball/server.cs (0): preload failed for DodgeballImage: Unable to load shape: Add-Ons/Weapon_Dodgeball/shapes/Dodgeball.dts

So am I supposed to make it smaller?