Hello There, Guest! Login Register


Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[Tre] Custom NPC name help
#1
Hello,

I'm trying to change the name of a NPC and I'm encountering some roadblocks, I think I'm missing something just not sure what. 

I've created a custom tre file called han_test.tre and its structure is:
string -> en -> mob -> creature_names.stf

It only has one entry:
ID: han_solo_unlock 
Value: Han Solo Test

My mobile:
Code:
han_solo_unlock = Creature:new {
    objectName = "@mob/creature_names:han_solo_unlock",
    socialGroup = "rebel",
    faction = "rebel",
    level = 100,
    chanceHit = 1,
    damageMin = 645,
    damageMax = 1000,
    baseXp = 9429,
    baseHAM = 24000,
    baseHAMmax = 30000,
    armor = 0,
    resists = {0,0,0,0,0,0,0,0,-1},
    meatType = "",
    meatAmount = 0,
    hideType = "",
    hideAmount = 0,
    boneType = "",
    boneAmount = 0,
    milk = 0,
    tamingChance = 0,
    ferocity = 0,
    pvpBitmask = NONE,
    creatureBitmask = PACK,
    optionsBitmask = INVULNERABLE + CONVERSABLE,
    diet = HERBIVORE,

    templates = {"object/mobile/han_solo.iff"},
    lootGroups = {},
    weapons = {"han_solo_weapons"},
    conversationTemplate = "theme_park_rebel_mission_giver_convotemplate",
    attacks = {
    }
}

CreatureTemplates:addCreatureTemplate(han_solo_unlock, "han_solo_unlock")

I have it listed in my config.lua for the server:
Code:
TreFiles = {
    "default_patch.tre",
    "patch_sku1_14_00.tre",
    "patch_14_00.tre",
    "patch_sku1_13_00.tre",
    "patch_13_00.tre",
    "patch_sku1_12_00.tre",
    "patch_12_00.tre",
    "patch_11_03.tre",
    "data_sku1_07.tre",
    "patch_11_02.tre",
    "data_sku1_06.tre",
    "patch_11_01.tre",
    "patch_11_00.tre",
    "data_sku1_05.tre",
    "data_sku1_04.tre",
    "data_sku1_03.tre",
    "data_sku1_02.tre",
    "data_sku1_01.tre",
    "data_sku1_00.tre",
    "patch_10.tre",
    "patch_09.tre",
    "patch_08.tre",
    "patch_07.tre",
    "patch_06.tre",
    "patch_05.tre",
    "patch_04.tre",
    "patch_03.tre",
    "patch_02.tre",
    "patch_01.tre",
    "patch_00.tre",
    "data_other_00.tre",
    "data_static_mesh_01.tre",
    "data_static_mesh_00.tre",
    "data_texture_07.tre",
    "data_texture_06.tre",
    "data_texture_05.tre",
    "data_texture_04.tre",
    "data_texture_03.tre",
    "data_texture_02.tre",
    "data_texture_01.tre",
    "data_texture_00.tre",
    "data_skeletal_mesh_01.tre",
    "data_skeletal_mesh_00.tre",
    "data_animation_00.tre",
    "data_sample_04.tre",
    "data_sample_03.tre",
    "data_sample_02.tre",
    "data_sample_01.tre",
    "data_sample_00.tre",
    "data_music_00.tre",
    "bottom.tre",
 "han_test.tre"
}

and in my swgemu_live.cfg:
Code:
[SharedFile]
    maxSearchPriority=26
    searchTree_00_25=default_patch.tre
    searchTree_01_24=patch_sku1_14_00.tre
    searchTree_00_23=patch_14_00.tre
    searchTree_01_22=patch_sku1_13_00.tre
    searchTree_00_21=patch_13_00.tre
    searchTree_01_20=patch_sku1_12_00.tre
    searchTree_00_19=patch_12_00.tre
    searchTree_00_18=patch_11_03.tre
    searchTree_01_17=data_sku1_07.tre
    searchTree_00_16=patch_11_02.tre
    searchTree_01_15=data_sku1_06.tre
    searchTree_00_14=patch_11_01.tre
    searchTree_00_14=patch_11_00.tre
    searchTree_01_13=data_sku1_05.tre
    searchTree_01_13=data_sku1_04.tre
    searchTree_01_13=data_sku1_03.tre
    searchTree_01_13=data_sku1_02.tre
    searchTree_01_13=data_sku1_01.tre
    searchTree_01_13=data_sku1_00.tre
    searchTree_00_12=patch_10.tre
    searchTree_00_11=patch_09.tre
    searchTree_00_10=patch_08.tre
    searchTree_00_9=patch_07.tre
    searchTree_00_8=patch_06.tre
    searchTree_00_7=patch_05.tre
    searchTree_00_6=patch_04.tre
    searchTree_00_5=patch_03.tre
    searchTree_00_4=patch_02.tre
    searchTree_00_3=patch_01.tre
    searchTree_00_2=patch_00.tre
    searchTree_00_1=data_other_00.tre
    searchTree_00_1=data_static_mesh_01.tre
    searchTree_00_1=data_static_mesh_00.tre
    searchTree_00_1=data_texture_07.tre
    searchTree_00_1=data_texture_06.tre
    searchTree_00_1=data_texture_05.tre
    searchTree_00_1=data_texture_04.tre
    searchTree_00_1=data_texture_03.tre
    searchTree_00_1=data_texture_02.tre
    searchTree_00_1=data_texture_01.tre
    searchTree_00_1=data_texture_00.tre
    searchTree_00_1=data_skeletal_mesh_01.tre
    searchTree_00_1=data_skeletal_mesh_00.tre
    searchTree_00_1=data_animation_00.tre
    searchTree_00_1=data_sample_04.tre
    searchTree_00_1=data_sample_03.tre
    searchTree_00_1=data_sample_02.tre
    searchTree_00_1=data_sample_01.tre
    searchTree_00_1=data_sample_00.tre
    searchTree_00_1=data_music_00.tre
    searchTree_00_0=bottom.tre
    searchTree_00_0=han_test.tre

Yet Han's name still shows up as "mob/creature_names:[han_solo_unlock]"

Have I missed something?


Thank you!
 
Reply
#2
you need to add the following field to your mobile file

customName = "<name you want>",
 
Reply
#3
(2017-08-10, 10:41 AM)gyrantol Wrote: you need to add the following field to your mobile file

customName = "<name you want>",

So the tre file can be bypassed, okay, that's good to know  Big Grin

Assuming I did want to use a name from a tre file however, what would I have done wrong?

Edit: Nevermind! What I have works, it turns out I was just launching the wrong copy of SWG, I somehow managed to have nested an extra copy of SWG in my SWG folder
 
Reply
  



Forum Jump:


Browsing: 1 Guest(s)