Hello There, Guest! Login Register


Thread Rating:
  • 1 Vote(s) - 1 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Little Help
#1
I'm working on adding armors and such to a server and I think I got everything right but every time the server loads up I get this error



Core3[4198]>> s/object/tangible/wearables/armor/snowtrooper/armor_snowtrooper_chest_plate.lua ERROR ...bles/armor/snowtrooper/armor_snowtrooper_chest_plate.lua:44: attempt to index a nil value (global 'object_tangible_wearables_armor_snowtrooper_shared_armor_snowtrooper_chest_plate')



It happens for any item I try to write in. Is it a tre error or something I am doing wrong in the Lua? I'm including links to the tre I am using as well as a copy of the lua script



-------------------------------------------------LUA Script --------------------------------------------------



object_tangible_wearables_armor_snowtrooper_armor_snowtrooper_chest_plate = object_tangible_wearables_armor_snowtrooper_shared_armor_snowtrooper_chest_plate:new {

templateType = ARMOROBJECT,
objectMenuComponent = "ArmorObjectMenuComponent", 
faction = "Imperial",

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/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/zabrak_male.iff",
"object/creature/player/zabrak_female.iff",
"object/creature/player/wookiee_male.iff",
"object/creature/player/wookiee_female.iff",
"object/mobile/vendor/aqualish_female.iff",
"object/mobile/vendor/aqualish_male.iff",
"object/mobile/vendor/bothan_female.iff",
"object/mobile/vendor/bothan_male.iff",
"object/mobile/vendor/devaronian_male.iff",
"object/mobile/vendor/human_female.iff",
"object/mobile/vendor/human_male.iff",
"object/mobile/vendor/moncal_female.iff",
"object/mobile/vendor/moncal_male.iff",
"object/mobile/vendor/rodian_female.iff",
"object/mobile/vendor/rodian_male.iff",
"object/mobile/vendor/sullustan_female.iff",
"object/mobile/vendor/sullustan_male.iff",
"object/mobile/vendor/trandoshan_female.iff",
"object/mobile/vendor/trandoshan_male.iff",
"object/mobile/vendor/twilek_female.iff",
"object/mobile/vendor/twilek_male.iff",
"object/mobile/vendor/zabrak_female.iff",
"object/mobile/vendor/zabrak_male.iff" },

-- Damage types in WeaponObject
vulnerability = NONE,

specialResists = LIGHTSABER,

-- These are default Blue Frog stats
healthEncumbrance = 1,
actionEncumbrance = 1,
mindEncumbrance = 1,

maxCondition = 225000,

-- LIGHT, MEDIUM, HEAVY
rating = MEDIUM,

kinetic = 70,
energy = 70,
electricity = 70,
stun = 70,
blast = 70,
heat = 70,
cold = 70,
acid = 70,
lightSaber = 50,

numberExperimentalProperties = {1, 1, 1, 1, 2, 2, 2, 2, 2, 1, 1, 2, 1},
experimentalProperties = {"XX", "XX", "XX", "XX", "OQ", "SR", "OQ", "UT", "MA", "OQ", "MA", "OQ", "MA", "OQ", "XX", "XX", "OQ", "SR", "XX"},
experimentalWeights = {1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1},
experimentalGroupTitles = {"null", "null", "null", "exp_durability", "exp_quality", "exp_resistance", "exp_durability", "exp_durability", "exp_durability", "null", "null", "exp_resistance", "null"},
experimentalSubGroupTitles = {"null", "null", "sockets", "hit_points", "armor_effectiveness", "armor_integrity", "armor_health_encumbrance", "armor_action_encumbrance", "armor_mind_encumbrance", "armor_rating", "armor_special_type", "armor_special_effectiveness", "armor_special_integrity"},
experimentalMin = {0, 0, 0, 1000, 1, 30000, 250, 66, 25, 1, 0, 0, 0},
experimentalMax = {0, 0, 0, 1000, 40, 50000, 150, 39, 15, 1, 0, 0, 0},
experimentalPrecision = {0, 0, 0, 0, 10, 0, 0, 0, 0, 0, 0, 0, 0},
experimentalCombineType = {0, 0, 4, 1, 1, 1, 1, 1, 1, 4, 4, 4, 1},
}

ObjectTemplates:addTemplate(object_tangible_wearables_armor_snowtrooper_armor_snowtrooper_chest_plate, "object/tangible/wearables/armor/snowtrooper/armor_snowtrooper_chest_plate.iff")

------------------------------------- End Lua Script -----------------------------------

Tre File being used
 
Reply
#2
I've never done this personally, but I know there are a lot of private servers that have. Check out their githubs to see how they incorporated via the lua.

Also I believe there are a few guides here and on SWGEmu about adding NGE items.

Try joining the Modthegalaxy chat channel as well. There's always friendly advice to be shared there.

Best of luck, I wish I knew more on this subject to help you.
 
Reply
#3
Did you also update your objects and server objects lua files?
 
Reply
#4
Thanks fro the replies. I have updated the object and server object lua files yes, and I was following guides from here when i did the tre file. I'll look into the modthegalaxy channel though. thanks
 
Reply
#5
You probably didn't include the objects.lua in allobjects.lua
 
Reply
  



Forum Jump:


Browsing: 1 Guest(s)