5th gen draft schematics & lightsabers

octayn

New Member
Joined
Oct 26, 2011
Messages
9
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

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")
object/weapon/melee/sword/crafted_saber/sword_lightsaber_one_handed_gen5.lua

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")
When I try and use /object createitem for saber itself this gets thrown in the server console:

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
The CRC exists in the object crc table but shows a different CRC:

Code:
object/weapon/melee/sword/crafted_saber/shared_sword_lightsaber_one_handed_gen5.iff    0x2D9A6E45
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:
Code:
craftSaberOneHand5   object/draft_schematic/weapon/lightsaber/lightsaber_one_hand_gen5.iff
Can anyone please assist?
 

Aeryna

Moderator
Staff member
Moderator
Joined
Oct 10, 2017
Messages
359
Did you set the item up on server side?. I know you did on Client side but the Server also needs to know what's that you're calling:

1) 5GenSaber.Lua [Server]
2) objects.lua [Server << >> Client]
3) Serverobjects.lua [Server]
 

octayn

New Member
Joined
Oct 26, 2011
Messages
9
Yeah, those are present as well.

objects.lua:

Code:
object_weapon_melee_sword_crafted_saber_shared_sword_lightsaber_one_handed_gen5 = SharedWeaponObjectTemplate:new {
        clientTemplateFileName = "object/weapon/melee/sword/crafted_saber/shared_sword_lightsaber_one_handed_gen5.iff"
}

ObjectTemplates:addClientTemplate(object_weapon_melee_sword_crafted_saber_shared_sword_lightsaber_one_handed_gen5, "object/weapon/melee/sword/crafted_saber/shared_sword_lightsaber_one_handed_gen5.iff")
serverobjects.lua:
Code:
includeFile("weapon/melee/sword/crafted_saber/sword_lightsaber_one_handed_gen5.lua")
 
Top Bottom