Results 1 to 11 of 11

Thread: Unlocalized Placement Text

  1. #1

    Default Unlocalized Placement Text

    after adding a new unit using the tutorial here at http://rtw.heavengames.com/rtw/mods/...on/index.shtml , i can't rid myself of the "unlocalized placement text" (no units have names) issue.

    could someone please look at the new sections i've added and tell me what looks wrong?
    export_units
    Spoiler Alert, click show to read: 

    {roman_julii_elite_archer} Elite Archers

    {roman_julii_elite_archer_descr}


    {roman_julii_elite_archer_descr_short}


    export_descr_unit
    Spoiler Alert, click show to read: 

    type roman julii elite archerdictionary roman_julii_elite_archer ; Female Archers
    category infantry
    class missile
    voice_type Female_1
    soldier roman_julii_elite_archer, 40, 0, 1
    attributes sea_faring, hide_forest, hide_long_grass, very_hardy, can_sap
    formation 1.2, 1.2, 2.4, 2.4, 4, square
    stat_health 1, 0
    stat_pri 12, 5, arrow, 170, 40, missile, archery, piercing, none, 25 ,1
    stat_pri_attr no
    stat_sec 10, 5, no, 0, 0, melee, blade, piercing, sword, 25 ,1
    stat_sec_attr no
    stat_pri_armour 8, 6, 0, metal
    stat_sec_armour 0, 0, flesh
    stat_heat 2
    stat_ground 2, 0, 2, 0
    stat_mental 10, disciplined, highly_trained
    stat_charge_dist 40
    stat_fire_delay 0
    stat_food 60, 300
    stat_cost 2, 1400, 500, 100, 150, 800
    ownership romans_julii


    export_descr_buildings
    Spoiler Alert, click show to read: 

    siege_engineer requires factions { carthage, egyptian, macedon, greek_cities, roman, }
    {
    capability
    {
    recruit "carthaginian slinger" 0 requires factions { spain, }
    recruit "carthaginian peltast" 0 requires factions { spain, }
    recruit "barb peltast gaul" 0 requires factions { gauls, }
    recruit "barb peltast german" 0 requires factions { germans, }
    recruit "barb slinger briton" 0 requires factions { britons, }
    recruit "barb archer dacian" 0 requires factions { dacia, }
    recruit "barb archer scythian" 0 requires factions { scythia, }
    recruit "warband archer german" 0 requires factions { germans, }
    recruit "warband archer dacian" 0 requires factions { dacia, }
    recruit "warband archer scythian" 0 requires factions { scythia, }
    recruit "warband huntsman gaul" 0 requires factions { gauls, }
    recruit "barb ballista dacian" 0 requires factions { dacia, }
    recruit "barb onager dacian" 0 requires factions { dacia, }
    recruit "barb onager scythian" 0 requires factions { scythia, }
    recruit "carthaginian peltast" 0 requires factions { carthage, }
    recruit "carthaginian archer" 0 requires factions { numidia, }
    recruit "carthaginian slinger" 0 requires factions { carthaginian, }
    recruit "carthaginian onager" 0 requires factions { carthaginian, }
    recruit "carthaginian heavy onager" 0 requires factions { carthage, }
    recruit "east peltast" 0 requires factions { armenia, pontus, }
    recruit "east slinger" 0 requires factions { parthia, }
    recruit "east archer" 0 requires factions { eastern, }
    recruit "east onager" 0 requires factions { eastern, }
    recruit "egyptian peltast" 0 requires factions { egyptian, }
    recruit "egyptian slingers" 0 requires factions { egyptian, }
    recruit "egyptian archer" 0 requires factions { egyptian, }
    recruit "egyptian archer elite" 0 requires factions { egyptian, }
    recruit "egyptian onager" 0 requires factions { egyptian, }
    recruit "egyptian heavy onager" 0 requires factions { egyptian, }
    recruit "greek peltast" 0 requires factions { greek, }
    recruit "greek archer" 0 requires factions { greek, }
    recruit "greek ballista" 0 requires factions { macedon, greek_cities, }
    recruit "greek heavy peltast" 0 requires factions { greek_cities, }
    recruit "greek onager" 0 requires factions { greek, }
    recruit "greek heavy onager" 0 requires factions { macedon, greek_cities, }
    recruit "roman velite" 0 requires factions { roman, } and not marian_reforms
    recruit "roman light infantry auxillia" 0 requires factions { roman, } and marian_reforms
    recruit "roman archer" 0 requires factions { roman, } and not marian_reforms
    recruit "roman archer auxillia" 0 requires factions { roman, } and marian_reforms
    recruit "roman ballista" 0 requires factions { roman, }
    recruit "roman scorpion" 0 requires factions { roman, }
    recruit "roman onager" 0 requires factions { roman, }
    recruit "roman heavy onager" 0 requires factions { roman, }
    recruit "roman repeating ballista" 0 requires factions { roman, }
    recruit "roman julii elite archer" 0 requires factions { romans_julii, }
    weapon_missile bonus 1
    }


    export_descr_unit_enums
    Spoiler Alert, click show to read: 

    roman_julii_elite_archer
    roman_julii_elite_archer_descr
    roman_julii_elite_archer_descr_short


    descr_model_battle
    Spoiler Alert, click show to read: 

    type roman_julii_elite_archer
    skeleton fs_semi_fast_archer, fs_semi_fast_swordsman
    indiv_range 40
    texture romans_julii, data/models_unit/textures/roman_julii_elite_archer.tga
    model_flexi data/models_unit/unit_roman_julii_elite_archer_high.cas, 15
    model_flexi data/models_unit/unit_roman_julii_elite_archer_med.cas, 30
    model_flexi data/models_unit/unit_roman_julii_elite_archer_low.cas, 40
    model_flexi data/models_unit/unit_roman_julii_elite_archer_lowest.cas, max
    model_sprite romans_julii, 60.0, data/sprites/romans_julii_elite_archer_sprite.spr
    model_tri 400, 0.5f, 0.5f, 0.5f

  2. #2

    Default Re: Unlocalized Placement Text

    i decided to remove all information regarding the new unit. gone from all text files, but all the names still say "Unlocalized Placement Text". i haven't changed any other information in these files (since i started trying to create the new unit), so i'm having trouble understanding how changing something in the text file could corrupt something else if nothing was saved. or am i way off and there MUST be something in these files that i accidentally changes?
    oh yeah, and ever since i started trying to add a new unit, when i go back to the preference file in notepadd++ it has to reload because something in the preference file has changes even though nothing was saved when i went in to test the game (names on units).

  3. #3
    z3n's Avatar State of Mind
    took an arrow to the knee

    Join Date
    Aug 2011
    Posts
    4,640

    Default Re: Unlocalized Placement Text

    This is one of the reasons modders always say "keep back up copies of any files you change".

    Normally it's a tiny problem in retrospect. Double check you're using the correct methods and check your lines, the dictionary line is merged with another one for some reason in your export descr units
    The AI Workshop Creator
    Europa Barbaroum II AI/Game Mechanics Developer
    The Northern Crusades Lead Developer
    Classical Age Total War Retired Lead Developer
    Rome: Total Realism Animation Developer
    RTW Workshop Assistance MTW2 AI Tutorial & Assistance
    Broken Crescent Submod (M2TW)/IB VGR Submod (BI)/Animation (RTW/BI/ALX)/TATW PCP Submod (M2TW)/TATW DaC Submod (M2TW)/DeI Submod (TWR2)/SS6.4 Northern European UI Mod (M2TW)

  4. #4

    Default Re: Unlocalized Placement Text

    Quote Originally Posted by z3n View Post
    This is one of the reasons modders always say "keep back up copies of any files you change".

    Normally it's a tiny problem in retrospect. Double check you're using the correct methods and check your lines, the dictionary line is merged with another one for some reason in your export descr units
    hi, z3n. thanks for replying/responding.
    i have backups for all the files i change. last night i spent a good bit of time opening the backups to compare side by side with the altered files in notepad++. i couldn't see any difference in the files other than the small stuff like adding tax income to buildings.
    i use the "show white space and tab" feature in notepad++ so i can see when to use a tab and when to use a space, so everything looks good as far as that.

    "the dictionary line is merged with another one for some reason"? it looks like all the other sections to me when i open it up in notepad++, including the tabs/spaces. but looking at what i posted/pasted in the original post, i see it looks like those lines are on the same line.

    just as a test to see if pasting it again causes the same:
    Spoiler Alert, click show to read: 

    type roman elite archer
    dictionary roman_elite_archer ; Female Archers
    category infantry
    class missile
    voice_type Female_1
    soldier roman_elite_archer, 40, 0, 1
    attributes sea_faring, hide_forest, hide_long_grass, very_hardy, can_sap
    formation 1.2, 1.2, 2.4, 2.4, 4, square
    stat_health 1, 0
    stat_pri 12, 5, arrow, 175, 45, missile, archery, piercing, none, 25 ,0.9
    stat_pri_attr no
    stat_sec 11, 5, no, 0, 0, melee, blade, piercing, sword, 25 ,0.9
    stat_sec_attr no
    stat_pri_armour 8, 6, 0, metal
    stat_sec_armour 0, 0, flesh
    stat_heat 2
    stat_ground 2, 0, 2, 0
    stat_mental 10, disciplined, highly_trained
    stat_charge_dist 40
    stat_fire_delay 0
    stat_food 60, 300
    stat_cost 2, 1400, 500, 100, 150, 800
    ownership roman

    i think i just messed up the original post/paste

    but i'm assuming that the issue has to be in export_descr_units:
    Spoiler Alert, click show to read: 

    {roman_elite_archer} Elite Archers


    {roman_elite_archer_descr}
    Elite\nFrightens Infantry\nCan Form Cantabrian Circle\n\nLegendary warriors from the land beyond the north wind, these cruel and beautiful women are dangerous indeed to all who oppose them in battle. Many warriors misjudge their alluring appearance, a mistake that few ever live long enough to regret! The thundering sound of their chariots is often enough to un-man even the strongest enemies.\n\nRiding chariots into battle, the Amazon way of warfare relies on using their composite bows to pepper enemies at a distance, before closing to hack enemies to pieces. In either case, they are well protected by the speed of their chariots and by the high quality armour that they wear.


    {roman_elite_archer_descr_short}
    Legendary warriors from the land beyond the north wind, these women are dangerous indeed to all who oppose them in battle.



    (the "description" section there is just a re-copy & paste from another unit for testing)

    or the export_descr_unit_enums:
    Spoiler Alert, click show to read: 

    roman_elite_archer
    roman_elite_archer_descr
    roman_elite_archer_descr_short

    since these have to deal with the unit descriptions. all unit names, and the bottom description (when right clicked to view unit) are the areas showing "unlocalised placement text", while the middle section of the description seems to work fine. the character shows up in-game, and on the recruit/trained section, just with the same missing data as the rest (name and bottom description). am i incorrect to assume it could only be one of these two files?

  5. #5
    z3n's Avatar State of Mind
    took an arrow to the knee

    Join Date
    Aug 2011
    Posts
    4,640

    Default Re: Unlocalized Placement Text

    It could be that you saved the file incorrectly with the wrong encoding type.
    The AI Workshop Creator
    Europa Barbaroum II AI/Game Mechanics Developer
    The Northern Crusades Lead Developer
    Classical Age Total War Retired Lead Developer
    Rome: Total Realism Animation Developer
    RTW Workshop Assistance MTW2 AI Tutorial & Assistance
    Broken Crescent Submod (M2TW)/IB VGR Submod (BI)/Animation (RTW/BI/ALX)/TATW PCP Submod (M2TW)/TATW DaC Submod (M2TW)/DeI Submod (TWR2)/SS6.4 Northern European UI Mod (M2TW)

  6. #6

    Default Re: Unlocalized Placement Text

    Quote Originally Posted by z3n View Post
    It could be that you saved the file incorrectly with the wrong encoding type.
    hmmm...
    looking at them in notepad++, i see that all are UTF-8 encoding format but one. the "export_units" file (from the data\text) folder is in OEM-US. i don't remember changing any of the encoding, but i'll change it to match the others.

  7. #7

    Default Re: Unlocalized Placement Text

    here are the files i'm using if someone could have a look in their spare time.
    Attached Files Attached Files

  8. #8

    Default Re: Unlocalized Placement Text

    Quote Originally Posted by EOO View Post
    hmmm...
    looking at them in notepad++, i see that all are UTF-8 encoding format but one. the "export_units" file (from the data\text) folder is in OEM-US. i don't remember changing any of the encoding, but i'll change it to match the others.
    i forgot to mention i tried to change the encoding to UTF-8, but it changed back after i opened the game, then went back to notepad++. then tried changing the others to OEM-US. nothing happened either way.

    and i don't see an "edit post" button or i would have just edited my previous post. sorry.

  9. #9
    z3n's Avatar State of Mind
    took an arrow to the knee

    Join Date
    Aug 2011
    Posts
    4,640

    Default Re: Unlocalized Placement Text

    It has to be in UTF-8 from what I recall. Did you try replacing it with your backups? That's always the failsafe. Unfortunately, sometimes it takes less time just to start over than try to "fix" these sorts of oddities.

    Normally they arise from some sort of saving issue (formatting was changed from the default UTF-8 or whatever it is in RTW)
    The AI Workshop Creator
    Europa Barbaroum II AI/Game Mechanics Developer
    The Northern Crusades Lead Developer
    Classical Age Total War Retired Lead Developer
    Rome: Total Realism Animation Developer
    RTW Workshop Assistance MTW2 AI Tutorial & Assistance
    Broken Crescent Submod (M2TW)/IB VGR Submod (BI)/Animation (RTW/BI/ALX)/TATW PCP Submod (M2TW)/TATW DaC Submod (M2TW)/DeI Submod (TWR2)/SS6.4 Northern European UI Mod (M2TW)

  10. #10
    Leonardo's Avatar Reborn Old Timer
    Join Date
    Mar 2011
    Location
    Southern Sweden
    Posts
    5,245

    Default Re: Unlocalized Placement Text

    Quote Originally Posted by EOO View Post
    hmmm...
    looking at them in notepad++, i see that all are UTF-8 encoding format but one. the "export_units" file (from the data\text) folder is in OEM-US. i don't remember changing any of the encoding, but i'll change it to match the others.
    That could be what's causing your "Unlocalized Placement Text" issue. Have you tried to re-save that file in Notepad++ from OEM-US to UTF-8 (without BOM or was it BUM?)?

    Based on what I know, I think the OEM-US is CodePage 437 for Windows US-English version.
    Under patronage of General Brewster of the Imperial House of Hader.





    How to make Morrowind less buggy for new players - Of course every player may find it useful.

  11. #11

    Default Re: Unlocalized Placement Text

    Quote Originally Posted by z3n View Post
    It has to be in UTF-8 from what I recall. Did you try replacing it with your backups? That's always the failsafe. Unfortunately, sometimes it takes less time just to start over than try to "fix" these sorts of oddities.

    Normally they arise from some sort of saving issue (formatting was changed from the default UTF-8 or whatever it is in RTW)
    i tried the UTF-8 (without BOM) format, but the game wouldn't start when trying that. and changing it back to OEM-US also prevents the game from starting.
    yes, i've replaced the modded files with the originals multiple times now trying different things.
    even copying the "roman_archer" unit lines for lines and only adding an x at the end of the name and dictionary.
    example:
    Spoiler Alert, click show to read: 

    type roman archerx
    dictionary roman_archerx ; Roman Archersx
    category infantry
    class missile
    voice_type Light_1
    soldier roman_archerx, 40, 0, 0.8
    attributes sea_faring, hide_forest, can_sap
    formation 1.6, 2, 3.2, 4, 3, square
    stat_health 1, 0
    stat_pri 7, 1, arrow, 120, 30, missile, archery, piercing, none, 25 ,1
    stat_pri_attr no
    stat_sec 3, 1, no, 0, 0, melee, simple, piercing, knife, 25 ,1
    stat_sec_attr no
    stat_pri_armour 0, 2, 0, flesh
    stat_sec_armour 0, 0, flesh
    stat_heat 1
    stat_ground 2, 0, 3, 0
    stat_mental 4, normal, untrained
    stat_charge_dist 30
    stat_fire_delay 0
    stat_food 60, 300
    stat_cost 1, 190, 170, 20, 30, 190
    ownership romans_julii,romans_brutii,romans_scipii,romans_senate



    i've done this for every file used to create a new unit. so every entry should just duplicate the original archer.
    in every forum post i've looked up of other people having an issue with "unlocalised placement text" it seems to only effect the new unit for them. but for me even when trying to dupe the original unit all unit names are "unlocalised placement text" with exception to named/family members. is it possible something else other than the custom unit data that is causing this like a patch? (in options it says 1.5) or is it 100% something to do with those unit definition files?

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •