General > User modifications
Crash because of aircraft type
TrashMan:
I added some weapons and made changes to hte game and everything worked fine. However, I then decided to add a newaircraft. I did thing before in the older UFO versions.
This time however, whenever I clock on their aircraft tab (in buy/sell) the game crashes stating that inter_starfire is not a known type.
tehy tpsye is set to interceptor tough.
I made the necessarsy meshes and placed them in appropriate folders, added hte craft to the research.ufo, models.ufo and aircraftmanagment.ufo.
Here:
*** aircrafttpyes***
aircraft craft_inter_starfire
{
param {
speed 18
maxspeed 24
shield 9
ecm 110
damage 500
accuracy 120
range 150
antimatter 100
}
name "_starfire-class Interceptor"
defaultname "_starfire"
type interceptor
model "geoscape/inter_starfire"
numteam 0
size 1
price 40000
building building_intercept
image "geoscape/air_interceptor"
slot {
type weapon
position nose_center
size medium
}
slot {
type weapon
position wing_left
size light
}
slot {
type weapon
position wing_right
size light
}
slot {
type electronics
position wing_left
}
slot {
type electronics
position wing_right
}
}
*** research***
tech rs_craft_inter_starfire
{
type craft
description {
default "_inter_starfire_txt"
}
pre_description {
default "_inter_starfire_pre_txt"
}
up_chapter crafts
mail_pre
{
from "_mail_from_paul_navarre"
to "_mail_to_base_commander"
// subject defined by "name"
icon icons/mail_tech
}
mail
{
from "_mail_from_paul_navarre"
to "_mail_to_base_commander"
// subject defined by "name"
icon icons/mail_tech
}
provides craft_inter_starfire
require_AND {
tech rs_craft_inter_dragon
}
time 15000
producetime 600
require_for_production
{
item alienmaterials 6000
item craft_alien_propulsion 2
item craft_alien_astrogation 1
item craft_alien_detection 2
}
mdl inter_starfire
}
**models ***
// ============== Starfire Interceptor ======================
menu_model inter_starfire_gear
{
model "aircraft/inter_starfire/starfire_gear"
}
menu_model inter_starfire
{
model "aircraft/inter_starfire/starfire_folded"
need "inter_starfire_gear"
}
menu_model inter_starfire_flying
{
model "aircraft/inter_starfire/starfire"
}
What the hell could be causing this weird error?
Mattn:
you would have to modify code to make this work (scripts.c, humanAircraftType_t, V_AIRCRAFTTYPE)
TrashMan:
WUT?
You hard-coded aircraft now?
WHY??
I had no problem adding my own aircraft in 2.3.
And the only type listed in any file is "craft" or "interceptor....
I'm confused...is it possible to add a new interceptor or not?
TrashMan:
another question: Is there any way to set the ratio of male-to-female recruits?
Mattn:
currently you have to modify the code to add new interceptors or aircraft. this is due to the fact that we have to be able to identify the craft for various in-game structs. i hope this will get removed anytime soon - but not for 2.4
Navigation
[0] Message Index
[#] Next page
Go to full version