Author Topic: Ported Box Truck  (Read 3562 times)

Hey guys.
I have no idea how to script or model. But I do have some idea on packaging addons. I found the .zip for the Box Truck on the web and it seemed to be in working order, just with things and folders that aren't needed in V9+. So, I grabbed all the files and tried to place them in the right place, when I moved it to my addons folder it didn't show up. If anyone has any tips or wants the file post it here in this topic.
Website:
http://kaje202.googlepages.com/retailvehicles
If Kaje did not want this ported, he can PM me and I will snip and lock topic.

Done: http://www.bduhq.com/tf2/maps/Vehicle_boxtruck.zip

Just to help you out a little bit.

Here's what i did to port it.

Created a .zip
Renamed Vehicle_Boxtruck.cs to server.cs (The execution cs of course)
Put shapes folder into zip. (Because the script calls "./shapes/boxtruck.dts" etc.)

It's not hard.
« Last Edit: October 02, 2009, 06:52:47 PM by MtnDew »


Done: http://www.bduhq.com/tf2/maps/Vehicle_boxtruck.zip

Just to help you out a little bit.

Here's what i did to port it.

Created a .zip
Renamed Vehicle_Boxtruck.cs to server.cs (The execution cs of course)
Put shapes folder into zip. (Because the script calls "./shapes/boxtruck.dts" etc.)

It's not hard.
Thanks for the tips.
Ported
http://uppit.com/v/S535AQ26

(because Pandan's wasn't correct)
What did he do wrong?

Double post:
I knew about description.txt, and all that junk. Is the shapes file only because thats were the execution file was directed to go to?

Ported
http://uppit.com/v/S535AQ26

(because Pandan's wasn't correct)
You're handicapped?

The only thing i see different between mine and yours is the following.

Code: [Select]
if(!isObject(jeepExplosionSound))
{
   exec("./Support_jeep.cs");
}
Which is completely unnecessary.

If anything, we should have fixed this.
Code: [Select]
<bitmap:base/client/ui/ci/carExplosion> %1',    '%2 <bitmap:base/client/ui/ci/carExplosion>

Code: [Select]
<bitmap:base/client/ui/ci/carExplosion> %1',    '%2 <bitmap:base/client/ui/ci/carExplosion>Which is exactly what I did?

Code: [Select]
<bitmap:base/client/ui/ci/carExplosion> %1',    '%2 <bitmap:base/client/ui/ci/carExplosion>Which is exactly what I did?
Huh, i guess i didn't read it right.
Well, i updated mine anyways. :/


Code: [Select]
if(!isObject(jeepExplosionSound))
{
   exec("./Support_jeep.cs");
}
Which is completely unnecessary.

Still wondering why you left this in there though.

Code: [Select]
if(!isObject(jeepExplosionSound))
{
   exec("./Support_jeep.cs");
}
What if the jeep wasn't executed yet?
But it's not like that's the correct file, anyway.

Tom

Kalph, yours isn't correct either. You need to do the proper check and UI rename as shown in some default add-ons.

UI rename as shown in some default add-ons.
God dammit, is that not what I did?
Code: [Select]
AddDamageType("boxtruckExplosion",   '<bitmap:base/client/ui/ci/carExplosion> %1',    '%2 <bitmap:base/client/ui/ci/carExplosion> %1');

Code: [Select]
if(!isObject(jeepExplosionSound))
{
   exec("./Support_jeep.cs");
}
What if the jeep wasn't executed yet?
But it's not like that's the correct file, anyway.
My point :)

Tom

God dammit, is that not what I did?
Code: [Select]
AddDamageType("boxtruckExplosion",   '<bitmap:base/client/ui/ci/carExplosion> %1',    '%2 <bitmap:base/client/ui/ci/carExplosion> %1');
What if the user doesn't want to use the jeep add on? You should be using code like this:
Code: [Select]
%errorA = ForceRequiredAddOn("Vehicle_Jeep");
%errorB = ForceRequiredAddOn("Weapon_Rocket_Launcher");
%errorC = ForceRequiredAddOn("Projectile_GravityRocket");

if(%errorA == $Error::AddOn_Disabled)
   JeepVehicle.uiName = "";
if(%errorB == $Error::AddOn_Disabled)
   rocketLauncherItem.uiName = "";
if(%errorC == $Error::AddOn_Disabled)
   gravityRocketProjectile.uiName = "";

if(%errorA == $Error::AddOn_NotFound)
   error("ERROR: Vehicle_Tank - required add-on Vehicle_Jeep not found");
else if(%errorB == $Error::AddOn_NotFound)
   error("ERROR: Vehicle_Tank - required add-on Weapon_Rocket_Launcher not found");
else if(%errorC == $Error::AddOn_NotFound)
   error("ERROR: Vehicle_Tank - required add-on Projectile_GravityRocket not found");
else
   exec("./Vehicle_Tank.cs");

Quote
%errorA = ForceRequiredAddOn("Vehicle_Jeep");
%errorB = ForceRequiredAddOn("Weapon_Rocket_Launcher");
%errorC = ForceRequiredAddOn("Projectile_GravityRocket");

if(%errorA == $Error::AddOn_Disabled)
   JeepVehicle.uiName = "";
if(%errorB == $Error::AddOn_Disabled)
   rocketLauncherItem.uiName = "";
if(%errorC == $Error::AddOn_Disabled)
   gravityRocketProjectile.uiNam e = "";

if(%errorA == $Error::AddOn_NotFound)
   error("ERROR: Vehicle_Tank - required add-on Vehicle_Jeep not found");
else if(%errorB == $Error::AddOn_NotFound)
   error("ERROR: Vehicle_Tank - required add-on Weapon_Rocket_Launcher not found");
else if(%errorC == $Error::AddOn_NotFound)
   error("ERROR: Vehicle_Tank - required add-on Projectile_GravityRocket not found");
else
   exec("./Vehicle_Tank.cs");
What?