Page 1 of 1

Vehicle Spawn Errors

Posted: Wed Mar 21, 2007 11:51 am
by Alpha
The Mungelog is fine, but I get this when my vehicle doesn't spawn in the BFront2.txt:

Message Severity: 2
.\Source\VehicleSpawn.cpp(139)
Vehicle spawn command post "cp3" has no control region

Message Severity: 2
.\Source\VehicleSpawn.cpp(191)
Vehicle spawn missing class "tank"

Message Severity: 2
.\Source\VehicleSpawn.cpp(191)
Vehicle spawn missing class "tank"

cp3 is a control region and tank is in my LUA and in the req files and everything. How do I fix this?

-Alpha

Posted: Wed Mar 21, 2007 11:58 am
by Elmo
For the control region part, did you assign the vehicle spawn to a cp? For the tank part though I'm not 100% sure :?

Edit: Do you have "tank" in the appropriate vehicle spawn slots?

Posted: Wed Mar 21, 2007 1:24 pm
by Rends
Alpha,
to correct you.
CP3 is a Command post and you need to assign a Control region to the CP. By the way vehicle spawn should work even withouit a control region.

About the class "tank". Is it a shipped class or did you create your own?

If it´s your own and you say it´s in the lua. did you also add it to your side req?

Posted: Wed Mar 21, 2007 1:48 pm
by Alpha
I created it in its own side. Yes, I did add to the req and LUA. I'll try doing it with a default vehicle and see if it's my side or something else.

EDIT: Tried with an all_fly_snowspeeder after adding that to my LUA and nothing spawned still. Does the vehcile spawn have to be a certain layer? Is my class name wrong?

BTW, Rends:
Rends
-----
Joined: Oct 15, 2004
Posts: 1337
Xfire Username :: Germany
Status: Offline

Nice post count. :D

Posted: Wed Mar 21, 2007 6:28 pm
by Rends
Well without all informations we don´t know where to find the bug.

But did you :

1. Add a CP called CP3
2. Add a control region and name it CP3_control
3. back to CP3 and add CP3_control under object instance->control region
4. Add a vehicle spawn and type CP3_control under Object Instance->control zone
5. Add "tank" under Object Instance->class where it belongs to (for example classallatk)

well at least it should work with a standart "all_fly_snowspeeder" vehicle.
I´m not sure but it might be possible that you need to add the sidename in front of your new unit like "all_tank"
Oh and i have my vehicle spawns in the conquest layer but i think it should work in every layer.

Posted: Thu Mar 22, 2007 9:18 am
by Alpha
Alright, the snow speeder spawns at cp8 now. However, my combat speeder will not spawn. This is a custom side made from the combat speeder from SWBF1.

The ODFs
I have these ODFs in the ODF folder for the side "tnk":
all_hover_combatspeeder
all_hover_combatspeeder_exp
all_hover_combatspeeder_cannon
all_hover_combatspeeder_cannon1
all_hover_combatspeeder_cannon1_exp
all_hover_combatspeeder_cannon1_ord
all_hover_combatspeeder_cannon_exp
all_hover_combatspeeder_cannon_ord
all_hover_combatspeeder_missile
all_hover_combatspeeder_missile_exp
all_hover_combatspeeder_missile_ord

REQs
I have these req files.

This one is the the req folder and has the name: all_hover_combatspeeder
and this is its contents:

Code: Select all

ucft
{
	REQN
	{
		"class"
		"all_hover_combatspeeder"
	}
}
the second Req is in the base of the side folder "tnk" and is titled "tnk"
and these are its contents:

Code: Select all

ucft
{
	REQN
	{
		"lvl"
		"all_hover_combatspeeder"
	}
}
Munged
I copied the clean.bat and munge.bat from the _Build/Sides/ALL folder in my map to here.

Effects
Empty

MSH
Here are the files in this folder:
Image

-Alpha

Posted: Thu Mar 22, 2007 1:13 pm
by Rends
You still get the missing class error message?

I also don´t understand what and why you did here:

"Munged
I copied the clean.bat and munge.bat from the _Build/Sides/ALL folder in my map to here."

Posted: Thu Mar 22, 2007 4:59 pm
by Alpha
It says to do that in the Sides Creation section in the documentation that came with the modtools.