Tutorial for adding vehicles

Tutorials for Halo CE.
Post Reply
babelfish





Posts: 470
Joined: Fri Sep 16, 2005 5:30 pm

Tutorial for adding vehicles

Post by babelfish »

Okay, well this is a short explanation of how to add custom vehicle tags (like the pelican,downloaded vehicle tags, or one you made yourself) to your map in sapien WITHOUT having to swap them for another vehicle like a warthog or something.
In this tutorial I'll be showing you how to add the Mongoose.
Download here: http://hce.halomaps.org/index.cfm?pg=3&fid=1539
Well to start off make sure that your directory is set up correctly...should look like this (or similar if you are using another vehicle):
Image
Now, please note that if you later get a "whoops" error when you add the tag in sapien (happens with any tags, not just vehicles), it means that your tag files arn't in the right spot. I'll show how to fix this later in the tutorial.
Now open up geurilla. Open up the globals.globals file in your tags/globals folder. Scroll down to where I am in this picture to the vehicles section.
Image
Okay...click the add button and then click the "..." to add your ".vehicle" tag. When you add the vehicle it should look like this...
Image
Now close the file (save it of course :P) and geurilla and open sapien.
Do whatever you need to do first (you know radiosity and such...I like to do it in the command prompt though because it works better for me.) and then click "edit types" in the hierarchy view. Add the vehicle from your vehicle's tag folder and click done/ok or whatever.
Image
Now go to your vehicle section under the hierarchy view and go up the properties view and scroll to your new vehicle in the "types" section.
Right click somewhere on your map and look at your awesome new ride :)
Image
Okay, notice I circled a section in the properties pallet about spawn flags.
Make SURE that all of these that I check you check! (unless you only want it for a certain gametype...then only check like the slayer ones or whatever) This pretty much tells halo that you want your vehicle to be allowed to spawn in all game types. It will not spawn otherwise.
Do whatever else you want to your map (adding scenery, spawn points, the goods :D) and compile normally from this point. Load halo CE, open your new map, and saddle up!
Image
Well that's it! If you followed these steps correctly you should have a new vehicle in your map without replacing any others! And it's sooo easy to do isn't it? :P I guess this turned out longer than I expected, but I hope this tutorial helped you all.

ABOUT THE WHOOPS ERROR: *gasp*
I tried to add my new tag and it gave me an error! WHAT TO DO?!?!
Well this is an easy fix, but I don't know how well I can explain it...
First what you want to do is try to add your tag. When you get the whoops error delete the bad tag from the list and press done, and ok to exit the tag adding menu. After you exit this menu it should temporarily show a list of errors that sapien received after you tried to load the tag. Press the "printscreen" button quickly before it disappears and paste it in paint.
While you have the image up, look at the names of tags it couldn't find.
I'll use one of my tags as an example...
Image
As you can see my pelican tag has some shaders, effects, etc. it can't find.
This simply means that some files aren't pointing to the right place.
IF YOU EVER GET THE WHOOPS ERROR IN SAPIEN DO NOT SAVE CHANGES TO YOUR MAP. THE NEXT TIME YOU TRY TO OPEN IT, SAPIEN WILL SUDDENLY CLOSE AND CRASH WHEN YOU OPEN YOUR MAP.
Open up geurilla.
Image
Once the tags point to the right place and there are NO files in red in any tag for your vehicle, open up sapien again and try to add your vehicle. If the problem persists, repeat the above steps for the missing files it lists. (take a screenshot of the errors it gives you when you add it).
Well I will go finish up on fixing my pelican. The same rules apply for all tags: shaders, effects, sounds, etc. Just find which tag needs them and change the path so that it is pointing to the right directory.
I guess this turned out longer than I expected, but I hope this tutorial helped you all.

EDIT: Just had quite a shock lol
I finished fixing my pelican's sound tag errors and added it to my map. I added a "NONE" tag by mistake to my map and then switched it out for the pelican. My computer crashed and my keyboard temporarily broke! I went back into sapien to make sure my map still worked...it did. And I tried adding the pelican again which this time it worked 100%. Silly sapien!
Just be aware that maybe sapien doesn't like it when you swap a custom tag from a NONE tag.
I am the 14,229th member to register at halomods. And 14229 is my lucky number.
User avatar
TomClancey





Posts: 2565
Joined: Sat Jan 28, 2006 6:49 am
Location: Ohio
Contact:

Post by TomClancey »

Nice tutorial, this will come in handy.
babelfish





Posts: 470
Joined: Fri Sep 16, 2005 5:30 pm

Post by babelfish »

Thanks for the feedback man ^^
I am the 14,229th member to register at halomods. And 14229 is my lucky number.
User avatar
llamaboy772





Posts: 729
Joined: Mon Apr 05, 2004 2:29 pm
Location: The diamond in the rough...
Contact:

Post by llamaboy772 »

I'm not sure what you did in this tutorial, but you can't have more then six types of vehicles spawn in your map without scripting.
Image
babelfish





Posts: 470
Joined: Fri Sep 16, 2005 5:30 pm

Post by babelfish »

Ahh..
Coulda sworn I said that...anyway:
Yeah you need to have the script in your map to have more than 6 types playable at the same time. However, since you don't swap out or rename the vehicles (like make a new one called warthog) and just add it, all you need to do is set priority over the other vehicles.
For example the list goes something like this...
0. rocket warthog
1. banshee
2. ghost
3. scorpion
4. gun turret
etc...(not in that order though)
The first vehicle has priority over the ones after it.
So if you have a 7th vehicle (8. on the list, since it counts 1 as 0) the one in slot 8. will not be counted. All you have to do is change which vehicles you want to add first.
Again sorry I didn't make this too clear: This adds more than 6 vehicles to the map, yeah. But in order to have more than 6 actually playable you would need to create a script (there's a tutorial for it in this forum) and put it in a "scripts" folder in your tags/levels/mapname directory
I am the 14,229th member to register at halomods. And 14229 is my lucky number.
User avatar
super_man916





Posts: 359
Joined: Thu Mar 08, 2007 4:00 pm
Location: Up in your buttocks

Post by super_man916 »

uhhhhhh i dont get sapien because when i open sapien it closes just as quick...
Budders13





Posts: 22
Joined: Wed Apr 25, 2007 4:55 pm

Post by Budders13 »

dude what do you mean radiosity and such??????
User avatar
Andrew_b




Socialist

Posts: 4188
Joined: Sat Feb 24, 2007 4:52 pm
Contact:

Post by Andrew_b »

ok i tried this tut, and i keep trying to work with guerilla and saipen but i cant ever see my vehicles in my maps...i swap out the vehicles from the scenario in guerilla, it didnt show up; i tried this, it didnt work.

I have Vista, is that why?
Budders13





Posts: 22
Joined: Wed Apr 25, 2007 4:55 pm

Post by Budders13 »

nope cuz I get the same freakin problem. I put them in and then do the scrpt like this guy says, and It never works. Startin to frustrate me here.
User avatar
Cryticfarm





Posts: 3611
Joined: Sat Dec 09, 2006 7:23 pm
Location: canada
Contact:

Post by Cryticfarm »

Me too!
User avatar
Yoda117





Posts: 105
Joined: Mon Jun 11, 2007 12:14 pm
Location: None yo biz!

Post by Yoda117 »

How do get scenerio tag for sapian I cant fin any and I dont know how to make them?
User avatar
Yoda117





Posts: 105
Joined: Mon Jun 11, 2007 12:14 pm
Location: None yo biz!

Bad you

Post by Yoda117 »

When I do this my sapien wont work. In debug.txt it says this:


06.12.07 15:17:24 sapien pc 01.00.00.0609 ----------------------------------------------
06.12.07 15:17:24 reference function: _write_to_error_file
06.12.07 15:17:24 reference address: 401b13
06.12.07 15:17:24 Couldn't read map file './sapienbeta.map'
06.12.07 15:17:24 CreateDevice succeeded with refresh rate = 0
06.12.07 15:17:24 Sound card doesn't meet minimum hardware requirements. Disabling hardware option.
06.12.07 15:17:24 Increasing sound decompression buffer size to 1048576 bytes
06.12.07 15:17:25 file_open('tags\scenery\blue_teleporter_shield\bitmaps\teleporter_shield_dust.bitmap') error 0x00000003 'The system cannot find the path specified. '
06.12.07 15:17:25 couldn't open bitmap tag 'teleporter_shield_dust.bitmap'.
06.12.07 15:17:25 file_open('tags\scenery\blue_teleporter_shield\bitmaps\teleporter_shield_dust.bitmap') error 0x00000003 'The system cannot find the path specified. '
06.12.07 15:17:25 couldn't open bitmap tag 'teleporter_shield_dust.bitmap'.
06.12.07 15:17:25 file_open('tags\scenery\blue_teleporter_shield\bitmaps\teleporter_shield_dust.bitmap') error 0x00000003 'The system cannot find the path specified. '
06.12.07 15:17:25 couldn't open bitmap tag 'teleporter_shield_dust.bitmap'.
06.12.07 15:17:25 failed to load shader_transparent_chicago_extended tag 'vehicles\mongoose\shaders\hullinvis'
06.12.07 15:17:25 failed to load vehicle tag 'vehicles\mongoose\atv'
06.12.07 15:17:25 failed to load globals tag 'globals\globals'
06.12.07 15:17:25 couldn't load game globals (get new tags)
06.12.07 15:17:25 need to get the following tags:
06.12.07 15:17:25 scenery\blue_teleporter_shield\bitmaps\teleporter_shield_dust.bitmap
06.12.07 15:17:25 scenery\blue_teleporter_shield\bitmaps\teleporter_shield_dust.bitmap
06.12.07 15:17:25 scenery\blue_teleporter_shield\bitmaps\teleporter_shield_dust.bitmap
06.12.07 15:17:25
06.12.07 15:17:25 game_load() failed.
User avatar
Cryticfarm





Posts: 3611
Joined: Sat Dec 09, 2006 7:23 pm
Location: canada
Contact:

Post by Cryticfarm »

Blue teleporter shield doesn't come with ce...
theghost741





Posts: 28
Joined: Sun Jul 01, 2007 8:27 pm

Post by theghost741 »

In the shader section, in the gbxmodel, go to hull in the drop down, chicago extended, if it's pointing in the right direction, click on open, now, scour what you opened and try to find where it says teleporter junk in drop down lists, the first list that has it in it actually has two of them, delete both of them so you see fuck fuck as the two options, then in the 2D section there will be one teleporter, delete that. all done, loads fine.
goye2cz





Posts: 17
Joined: Sun Apr 09, 2006 12:33 pm

Post by goye2cz »

super_man916 wrote:uhhhhhh i dont get sapien because when i open sapien it closes just as quick...
I would like to see an answer to this, I have the same problem. Not very far into the tut, and I have done everything exactly. Sapien doesn't quite get the map open, and it closes. no error messages whatsoever.

Setting the globals.globals tag mack to it's original state removes the problem with sapien but, I can't get the mongoose in game then.



DISREGARD THAT POST theghost's help worked.
--

$kilit
goye2cz





Posts: 17
Joined: Sun Apr 09, 2006 12:33 pm

Post by goye2cz »

looks like I spoke too soon actually... the atv appears in sapien but not in game. I also have a warthog in there and have no problems with it.
--

$kilit
not_quite_a_nice_guy





Posts: 178
Joined: Fri Aug 26, 2005 12:54 am

Post by not_quite_a_nice_guy »

Thats because, the globals is setup to only load 6 vehicles into a map. Now, if you just get the script they are talking about, you don't need to worry about that. :)
User avatar
Cryticfarm





Posts: 3611
Joined: Sat Dec 09, 2006 7:23 pm
Location: canada
Contact:

Post by Cryticfarm »

Yes, this method doesn't work... for me.
goye2cz





Posts: 17
Joined: Sun Apr 09, 2006 12:33 pm

Post by goye2cz »

not_quite_a_nice_guy wrote:Thats because, the globals is setup to only load 6 vehicles into a map. Now, if you just get the script they are talking about, you don't need to worry about that. :)
just to clarify, even if I only put 2 vehicles into a map, the mongoose is still counted as a 7th vehicle?
--

$kilit
not_quite_a_nice_guy





Posts: 178
Joined: Fri Aug 26, 2005 12:54 am

Post by not_quite_a_nice_guy »

In the globals, you need to add it, if you have more than six, everything listed after the sixth will not show up.
Post Reply