Hey guys I'm pretty new at all of this and having an issue getting 5th gens in the game. I'm using the MTG TRE files and I've copied the lua from the 4th gen craftable one hand lightsaber and appended it to reflect that of a 5th gen. Upon doing so I'm encountering CRC errors.
/object/draft_schematic/weapon/lightsaber/lightsaber_one_hand_gen5.lua
object/weapon/melee/sword/crafted_saber/sword_lightsaber_one_handed_gen5.lua
When I try and use /object createitem for saber itself this gets thrown in the server console:
The CRC exists in the object crc table but shows a different CRC:
I've also tried to create a loot_schematic for this, in which I also failed.
To continue on this issue, I'm also trying to figure out why I do not have a one hand 5th gen option in my LS crafting kit. I've added 'craftSaberOneHand5' under the 'SCHEMATICS_GRANTED' column in the skills.iff for the skill I currently possess, but it does not appear in the kit.
It's also present in schematic_group.iff:
Can anyone please assist?
/object/draft_schematic/weapon/lightsaber/lightsaber_one_hand_gen5.lua
Code:
object_draft_schematic_weapon_lightsaber_lightsaber_one_hand_gen5 = object_draft_schematic_weapon_lightsaber_shared_lightsaber_one_hand_gen5:new {
templateType = DRAFTSCHEMATIC,
customObjectName = "Fifth Generation Lightsaber",
craftingToolTab = 2048, -- (See DraftSchematicObjectTemplate.h)
complexity = 19,
size = 1,
xpType = "jedi_general",
xp = 0,
assemblySkill = "jedi_saber_assembly",
experimentingSkill = "jedi_saber_experimentation",
customizationSkill = "jedi_customization",
factoryCrateSize = 0,
customizationOptions = {},
customizationStringNames = {},
customizationDefaults = {},
ingredientTemplateNames = {"craft_weapon_ingredients_n", "craft_weapon_ingredients_n", "craft_weapon_ingredients_n", "craft_weapon_ingredients_n", "craft_weapon_ingredients_n", "craft_weapon_ingredients_n", "craft_weapon_ingredients_n"},
ingredientTitleNames = {"emitter_shroud", "primary_crystal", "activator", "handgrip", "focusing_crystals", "power_field_insulator", "energizers"},
ingredientSlotType = {0, 1, 0, 0, 1, 0, 0},
resourceTypes = {"steel_duralloy", "object/tangible/component/weapon/lightsaber/shared_lightsaber_refined_crystal_pack.iff", "aluminum_titanium", "petrochem_inert_polymer", "object/tangible/component/weapon/lightsaber/shared_lightsaber_refined_crystal_pack.iff", "gas_inert_culsion", "copper_polysteel"},
resourceQuantities = {40, 1, 22, 28, 1, 28, 28},
contribution = {100, 100, 100, 100, 100, 100, 100},
targetTemplate = "object/weapon/melee/sword/crafted_saber/sword_lightsaber_one_handed_gen5.iff",
additionalTemplates = {}
}
ObjectTemplates:addTemplate(object_draft_schematic_weapon_lightsaber_lightsaber_one_hand_gen5, "object/draft_schematic/weapon/lightsaber/lightsaber_one_hand_gen5.iff")
Code:
object_weapon_melee_sword_crafted_saber_sword_lightsaber_one_handed_gen5 = object_weapon_melee_sword_crafted_saber_shared_sword_lightsaber_one_handed_gen5:new {
playerRaces = { "object/creature/player/bothan_male.iff",
"object/creature/player/bothan_female.iff",
"object/creature/player/human_male.iff",
"object/creature/player/human_female.iff",
"object/creature/player/ithorian_male.iff",
"object/creature/player/ithorian_female.iff",
"object/creature/player/moncal_male.iff",
"object/creature/player/moncal_female.iff",
"object/creature/player/rodian_male.iff",
"object/creature/player/rodian_female.iff",
"object/creature/player/sullustan_male.iff",
"object/creature/player/sullustan_female.iff",
"object/creature/player/trandoshan_male.iff",
"object/creature/player/trandoshan_female.iff",
"object/creature/player/twilek_male.iff",
"object/creature/player/twilek_female.iff",
"object/creature/player/wookiee_male.iff",
"object/creature/player/wookiee_female.iff",
"object/creature/player/zabrak_male.iff",
"object/creature/player/zabrak_female.iff" },
attackType = MELEEATTACK,
damageType = LIGHTSABER,
armorPiercing = MEDIUM,
xpType = "jedi_general",
certificationsRequired = { "cert_onehandlightsaber_gen5" },
creatureAccuracyModifiers = { "onehandlightsaber_accuracy" },
defenderDefenseModifiers = { "melee_defense" },
defenderSecondaryDefenseModifiers = { "saber_block" },
speedModifiers = { "onehandlightsaber_speed" },
damageModifiers = { },
healthAttackCost = 0,
actionAttackCost = 0,
mindAttackCost = 0,
forceCost = 0,
pointBlankRange = 0,
pointBlankAccuracy = 20,
idealRange = 3,
idealAccuracy = 15,
maxRange = 5,
maxRangeAccuracy = 5,
attackSpeed = 4.5,
woundsRatio = 45,
defenderToughnessModifiers = { "lightsaber_toughness" },
noTrade = 1,
childObjects = {
{templateFile = "object/tangible/inventory/lightsaber_inventory_5.iff", x = 0, z = 0, y = 0, ox = 0, oy = 0, oz = 0, ow = 0, cellid = -1, containmentType = 4}
},
numberExperimentalProperties = {1, 1, 2, 2, 2, 2, 2, 1, 1, 1},
experimentalProperties = {"XX", "XX", "CD", "OQ", "CD", "OQ", "CD", "OQ", "SR", "UT", "CD", "OQ", "OQ", "OQ", "OQ"},
experimentalWeights = {1, 1, 1, 2, 1, 2, 1, 1, 1, 1, 1, 2, 1, 1, 1},
experimentalGroupTitles = {"null", "null", "expDamage", "expDamage", "expDamage", "expDamage", "expEffeciency", "expEffeciency", "expEffeciency", "expEffeciency"},
experimentalSubGroupTitles = {"null", "null", "mindamage", "maxdamage", "attackspeed", "woundchance", "forcecost", "attackhealthcost", "attackactioncost", "attackmindcost"},
experimentalMin = {0, 0, 170, 270, 4.3, 25, 53, 45, 60, 95},
experimentalMax = {0, 0, 190, 310, 4.0, 50, 45, 40, 45, 65},
experimentalPrecision = {0, 0, 0, 0, 1, 0, 1, 0, 0, 0},
experimentalCombineType = {0, 0, 1, 1, 1, 1, 1, 1, 1, 1},
}
ObjectTemplates:addTemplate(object_weapon_melee_sword_crafted_saber_sword_lightsaber_one_handed_gen5, "object/weapon/melee/sword/crafted_saber/sword_lightsaber_one_handed_gen5.iff")
Code:
(369 s) [AdminCommands] Deeter used '/object' on (null) with params 'createitem object/weapon/melee/sword/crafted_saber/sword_lightsaber_one_handed_gen5.iff'
(369 s) [ObjectManager] ERROR - trying to create object with unknown objectcrc 0xa2334b02
(369 s) [ZoneServer Degobah] ERROR - TemplateManager::getTemplateFile exception unknown template key 0xa2334b02
TemplateManager::getTemplateFile exception unknown template key 0xa2334b02
Code:
object/weapon/melee/sword/crafted_saber/shared_sword_lightsaber_one_handed_gen5.iff 0x2D9A6E45
To continue on this issue, I'm also trying to figure out why I do not have a one hand 5th gen option in my LS crafting kit. I've added 'craftSaberOneHand5' under the 'SCHEMATICS_GRANTED' column in the skills.iff for the skill I currently possess, but it does not appear in the kit.
It's also present in schematic_group.iff:
Code:
craftSaberOneHand5 object/draft_schematic/weapon/lightsaber/lightsaber_one_hand_gen5.iff