Page 2 of 2 FirstFirst 12
Results 21 to 36 of 36

Thread: Battle editor / Historical Battle editor won't work - MTW2

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Gigantus's Avatar I am not special - I am a limited edition.
    Moderator Emeritus Administrator Emeritus

    Join Date
    Aug 2006
    Location
    Goa - India
    Posts
    52,682
    Blog Entries
    35

    Default Re: Battle editor / Historical Battle editor won't work - MTW2

    I saw your other thread and replied there - I misunderstood what you meant (here).










  2. #2
    Gigantus's Avatar I am not special - I am a limited edition.
    Moderator Emeritus Administrator Emeritus

    Join Date
    Aug 2006
    Location
    Goa - India
    Posts
    52,682
    Blog Entries
    35

    Default Re: Battle editor / Historical Battle editor won't work - MTW2

    Encoding of files in the data\text folder: use the BinEditor (see my collection of tutorials) as follows

    1. 'Import' (Open) the TXT file
    2. 'Export' (Save) the TXT file
    3. Now 'Save' in string.bin format as well

    The above three steps should create a working txt\string.bin combo, even with Chinese symbols - it will however only display as question marks due to the limitation of the CUF files.










  3. #3
    Seba14's Avatar Civis
    Join Date
    Sep 2013
    Location
    London - Uk
    Posts
    133

    Default Re: Battle editor / Historical Battle editor won't work - MTW2

    Thanks for this, it is working indeed ! yay, another victory

    I copied the Chinese .cuf to mtw2/data/fonts folder, display works like a charm since

    It seems the text part is pretty good, although there are some errors found by TWTECV tool (Pic attached) do you think it could be the reason why the Battle editor isn't working ?

    Spoiler Alert, click show to read: 
    Click image for larger version. 

Name:	Mayyyybe.jpg 
Views:	6 
Size:	131.1 KB 
ID:	321928

  4. #4
    Gigantus's Avatar I am not special - I am a limited edition.
    Moderator Emeritus Administrator Emeritus

    Join Date
    Aug 2006
    Location
    Goa - India
    Posts
    52,682
    Blog Entries
    35

    Default Re: Battle editor / Historical Battle editor won't work - MTW2

    I am not sure if it is fatal, but duplicate entries should always be resolved. I have made it a habit to fix all errors (where possible) - that way I don't have to bother if they may affect the game.
    Last edited by Gigantus; February 28, 2015 at 08:53 PM.










  5. #5
    Seba14's Avatar Civis
    Join Date
    Sep 2013
    Location
    London - Uk
    Posts
    133

    Default Re: Battle editor / Historical Battle editor won't work - MTW2

    Ok I fixed all the duplicates, now the .log gives me this:


    Spoiler Alert, click show to read: 

    13:54:44.849 [system.rpt] [always] CPU: SSE2
    13:54:44.849 [system.rpt] [always] ==== system log start, build date: Feb 25 2008 version development ===
    13:54:44.849 [system.io] [always] mounted pack packs/data_0.pack
    13:54:44.865 [system.io] [always] mounted pack packs/data_1.pack
    13:54:44.865 [system.io] [always] mounted pack packs/data_2.pack
    13:54:44.865 [system.io] [always] mounted pack packs/data_3.pack
    13:54:44.865 [system.io] [always] mounted pack packs/data_4.pack
    13:54:44.865 [system.io] [always] mounted pack packs/localized.pack
    13:54:44.896 [system.io] [warning] open: mods/hanzhishang/data/text/shortcut.txt.strings.bin is missing
    13:54:44.912 [system.io] [warning] open: mods/hanzhishang/data/text/shortcut.txt is missing
    13:54:49.763 [data.missing] [warning] missing/invalid cursor for ANISELECT
    13:54:49.779 [data.missing] [warning] missing/invalid cursor for MODIFIER_SABOTAGE
    13:54:49.779 [data.missing] [warning] missing/invalid cursor for MODIFIER_TRADE
    13:54:49.810 [data.missing] [warning] missing/invalid cursor for DRAGGABLE
    13:54:49.810 [data.missing] [warning] missing/invalid cursor for DRAGGING
    13:54:49.810 [data.missing] [warning] missing/invalid cursor for MODIFIER_MULTIPLE_SELECT
    13:54:49.810 [data.missing] [warning] missing/invalid cursor for MODIFIER_ATTACK
    13:54:49.810 [data.missing] [warning] missing/invalid cursor for MODIFIER_PLACE_CHARACTER
    13:54:49.810 [data.missing] [warning] missing/invalid cursor for MODIFIER_PLACE_RESOURCE
    13:54:49.810 [data.missing] [warning] missing/invalid cursor for MODIFIER_PLACE_FORT
    13:54:49.810 [data.missing] [warning] missing/invalid cursor for MODIFIER_MOVE_OBJECT
    13:54:49.810 [data.missing] [warning] missing/invalid cursor for MODIFIER_PLACE_WATCHTOWER
    13:54:49.810 [data.missing] [warning] missing/invalid cursor for MODIFIER_DEPLOYMENT_AREA
    13:54:49.810 [data.missing] [warning] missing/invalid cursor for MODIFIER_PLACE_TILE
    13:54:49.810 [data.missing] [warning] missing/invalid cursor for MODIFIER_PLACE_SPECIAL_PIECE
    13:54:49.810 [data.missing] [warning] missing/invalid cursor for MODIFIER_PAINT
    13:54:49.810 [data.missing] [warning] missing/invalid cursor for MODIFIER_ADJUST_HEIGHTS
    13:54:49.810 [data.missing] [warning] missing/invalid cursor for MODIFIER_ADD_UNIT
    13:54:49.810 [data.missing] [warning] missing/invalid cursor for MODIFIER_PLACE_SETTLEMENT
    13:54:57.360 [script.err] [error] Script Error in mods/hanzhishang/data/descr_walls.txt, at line 251, column 31
    stat_pri statistic refers to non-existant projectile type 'oil'
    13:54:57.360 [script.err] [error] Script Error in mods/hanzhishang/data/descr_walls.txt, at line 364, column 31
    stat_pri statistic refers to non-existant projectile type 'oil'
    13:54:57.360 [script.err] [error] Script Error in mods/hanzhishang/data/descr_walls.txt, at line 478, column 31
    stat_pri statistic refers to non-existant projectile type 'oil'
    13:54:57.600 [data.missing] [warning] Cannot find the portrait path: data/ui/northern_european/portraits/portraits/young/heretics/000.tga, using the default culture path if it exists
    13:54:57.600 [data.missing] [warning] Cannot find the portrait path: data/ui/northern_european/portraits/portraits/young/heretics/000.tga, using the default culture path if it exists
    13:54:57.610 [data.missing] [warning] Cannot find the portrait path: data/ui/northern_european/portraits/portraits/young/heretics/000.tga, using the default culture path if it exists
    13:54:57.610 [data.missing] [warning] Cannot find the portrait path: data/ui/northern_european/portraits/portraits/young/witches/000.tga, using the default culture path if it exists
    13:54:57.610 [data.missing] [warning] Cannot find the portrait path: data/ui/northern_european/portraits/portraits/young/witches/000.tga, using the default culture path if it exists
    13:54:57.610 [data.missing] [warning] Cannot find the portrait path: data/ui/northern_european/portraits/portraits/young/witches/000.tga, using the default culture path if it exists
    13:54:57.610 [data.missing] [warning] Cannot find the portrait path: data/ui/northern_european/portraits/portraits/young/inquisitors/000.tga, using the default culture path if it exists
    13:54:57.620 [data.missing] [warning] Cannot find the portrait path: data/ui/northern_european/portraits/portraits/young/inquisitors/000.tga, using the default culture path if it exists
    13:54:57.620 [data.missing] [warning] Cannot find the portrait path: data/ui/northern_european/portraits/portraits/young/inquisitors/000.tga, using the default culture path if it exists
    13:54:58.080 [data.missing] [warning] Cannot find the portrait path: data/ui/middle_eastern/portraits/portraits/young/inquisitors/000.tga, using the default culture path if it exists

    THIS PORTRAITS ERROR GOES FOR SOUTHERN, EASTERN ECT...I TRUNCATED IT TO MAKE THE FILE MORE READABLE

    13:55:00.350 [system.io] [warning] open: mods/hanzhishang/data/loading_screen/loading_bar.tga.dds is missing
    13:55:00.354 [system.io] [warning] open: mods/hanzhishang/data/loading_screen/loading_logo.tga.dds is missing
    13:55:01.670 [system.io] [warning] open: mods/hanzhishang/data/loading_screen/loading_bar.tga.dds is missing
    13:55:01.796 [system.io] [warning] open: data/menu/symbols/FE_symbols_80/slave.tga is missing
    13:55:01.796 [system.io] [warning] open: data/menu/symbols/FE_faction_units/slave.tga is missing
    13:55:01.827 [system.io] [warning] open: data/menu/_M2_PROVINCIAL_CAMPAIGN_PANELS.TGA is missing
    13:55:01.831 [system.io] [warning] open: data/menu/_M2_MP_HISTORICAL_BATTLE_CHOOSE_TEAMS.TGA is missing
    13:55:01.841 [system.io] [warning] open: data/menu/TEXTURES/_M2_MAIN_MENU.TGA is missing
    13:55:02.729 [system.io] [warning] open: mods/hanzhishang/data/menu/buttons_composite2.tga.dds is missing
    13:55:02.732 [system.io] [warning] open: data/menu/slider_composite.tga.dds is missing
    13:55:02.733 [system.io] [warning] open: data/menu/slider_composite2.tga.dds is missing
    13:55:02.735 [system.io] [warning] open: data/menu/border_4pix_black_gold2.tga.dds is missing
    13:55:02.736 [system.io] [warning] open: data/menu/text_border.tga.dds is missing
    13:55:02.737 [system.io] [warning] open: data/menu/yellow_highlight.tga.dds is missing
    13:55:02.738 [system.io] [warning] open: data/menu/border_4pix_black_gold_selected.tga.dds is missing
    13:55:02.739 [system.io] [warning] open: data/menu/border_4pix_black_gold_black.tga.dds is missing
    13:55:02.740 [system.io] [warning] open: data/menu/_M2_Selection_Glow.tga.dds is missing
    13:55:02.742 [system.io] [warning] open: mods/hanzhishang/data/menu/unit_card.tga.dds is missing
    13:55:02.744 [system.io] [warning] open: data/menu/icons.tga.dds is missing
    13:55:10.405 [system.io] [warning] open: mods/hanzhishang/data/world/maps/battle/custom/__temp/description.txt is missing
    13:55:10.877 [system.io] [warning] open: mods/hanzhishang/data/loading_screen/loading_bar.tga.dds is missing
    13:55:10.881 [system.io] [warning] open: mods/hanzhishang/data/loading_screen/loading_logo.tga.dds is missing
    13:55:12.657 [system.io] [warning] open: data/models_engine/heavy_onager_torches.cas is missing
    13:55:13.290 [system.io] [warning] open: mods/hanzhishang/data/loading_screen/loading_bar.tga.dds is missing
    13:55:21.025 [system.io] [warning] open: data/descr_oil_effect.txt is missing
    13:55:21.026 [system.io] [warning] open: data/descr_fire_texture_list.txt is missing
    13:55:23.318 [system.rpt] [error] Uh oh. This isn't good. No idea why, but exiting now. Sorry pal.




    I tried replacing the menu and loading screen folders with another mod's ones, nothing changes
    I've created mods/hanzhishang/data/world/maps/battle/custom/__temp/description.txt, same result

    23:18:21.072 [script.err] [error] Script Error in mods/hanzhishang/data/descr_walls.txt, at line 251, column 31
    stat_pri statistic refers to non-existant projectile type 'oil'

    It seems you are running a kingdoms mod on the medieval2.exe or the kingdoms mod has not been set up properly.
    Since I removed many text issues and tried all I can, I believe the executable (.bat) might be the problem indeed, since the mod asks for files that are non existent and witches/heretics/inquisitors are not needed in Battle editor...do you happen to know how could I check if the mod has been set correctly or verify the .exe utilized ?

    - I've seen also that the Hzs launch file is a 1kb .bat file that leads to kingdoms.exe, whereas on your team's ROTK mod it is 184kb .exe file
    (I'm running both MTW2 and Kingdoms from old DVDs, with 1.03 and 1.05 patches)

    Here is the .bat content :
    Spoiler Alert, click show to read: 
    cd ..\..
    start kingdoms.exe @mods\hanzhishang\hanzhishang.cfg
    Last edited by Seba14; March 03, 2015 at 09:12 AM.

  6. #6
    Gigantus's Avatar I am not special - I am a limited edition.
    Moderator Emeritus Administrator Emeritus

    Join Date
    Aug 2006
    Location
    Goa - India
    Posts
    52,682
    Blog Entries
    35

    Default Re: Battle editor / Historical Battle editor won't work - MTW2

    1. You need the descr_projectiles file from a kingdoms mod (or from my Bare Geomod) to get rid of the 'oil' error. Add the descr_boiling_oil.txt file and descr_area_effects.xml from there as well.
    2. Your BAT file is fine - provided you are not running Steam and your CFG file is named hanzhishang.cfg and that your mod folder is also named hanzhishang










  7. #7
    Seba14's Avatar Civis
    Join Date
    Sep 2013
    Location
    London - Uk
    Posts
    133

    Default Re: Battle editor / Historical Battle editor won't work - MTW2

    Just did it, the 'oil' error disappeared indeed, but I still get the crash and this in the .log among the other "missing files"

    11:07:41.044 [system.io] [warning] open: data/descr_oil_effect.txt is missing
    11:07:41.045 [system.io] [warning] open: data/descr_fire_texture_list.txt is missing

    I'm not on steam and .cfg name is correct, same with folder name, I read most of your tutos and Withwnar's as well, but this CTD stays an enigma Oo

    I noticed these lines in the .log are referring to the battle editor if I'm not not mistaken, could it be the source of the crash ? If so how could I address this in your opinion ? (.log relevant lines and pic of the /data folder below)
    Spoiler Alert, click show to read: 
    13:54:49.763 [data.missing] [warning] missing/invalid cursor for ANISELECT
    13:54:49.779 [data.missing] [warning] missing/invalid cursor for MODIFIER_SABOTAGE
    13:54:49.779 [data.missing] [warning] missing/invalid cursor for MODIFIER_TRADE
    13:54:49.810 [data.missing] [warning] missing/invalid cursor for DRAGGABLE
    13:54:49.810 [data.missing] [warning] missing/invalid cursor for DRAGGING
    13:54:49.810 [data.missing] [warning] missing/invalid cursor for MODIFIER_MULTIPLE_SELECT
    13:54:49.810 [data.missing] [warning] missing/invalid cursor for MODIFIER_ATTACK
    13:54:49.810 [data.missing] [warning] missing/invalid cursor for MODIFIER_PLACE_CHARACTER
    13:54:49.810 [data.missing] [warning] missing/invalid cursor for MODIFIER_PLACE_RESOURCE
    13:54:49.810 [data.missing] [warning] missing/invalid cursor for MODIFIER_PLACE_FORT
    13:54:49.810 [data.missing] [warning] missing/invalid cursor for MODIFIER_MOVE_OBJECT
    13:54:49.810 [data.missing] [warning] missing/invalid cursor for MODIFIER_PLACE_WATCHTOWER
    13:54:49.810 [data.missing] [warning] missing/invalid cursor for MODIFIER_DEPLOYMENT_AREA
    13:54:49.810 [data.missing] [warning] missing/invalid cursor for MODIFIER_PLACE_TILE
    13:54:49.810 [data.missing] [warning] missing/invalid cursor for MODIFIER_PLACE_SPECIAL_PIECE
    13:54:49.810 [data.missing] [warning] missing/invalid cursor for MODIFIER_PAINT
    13:54:49.810 [data.missing] [warning] missing/invalid cursor for MODIFIER_ADJUST_HEIGHTS
    13:54:49.810 [data.missing] [warning] missing/invalid cursor for MODIFIER_ADD_UNIT
    13:54:49.810 [data.missing] [warning] missing/invalid cursor for MODIFIER_PLACE_SETTLEMENT
    Click image for larger version. 

Name:	folders.jpg 
Views:	5 
Size:	128.2 KB 
ID:	322126
    Last edited by Seba14; March 04, 2015 at 05:34 AM.

  8. #8
    Gigantus's Avatar I am not special - I am a limited edition.
    Moderator Emeritus Administrator Emeritus

    Join Date
    Aug 2006
    Location
    Goa - India
    Posts
    52,682
    Blog Entries
    35

    Default Re: Battle editor / Historical Battle editor won't work - MTW2

    This is standard - as far as I know either the cursors are in the pack or it's a left over from RTW. Every log has these lines.
    Same for the missing 'oil\fire' files.
    Last edited by Gigantus; March 04, 2015 at 06:30 AM.










  9. #9
    Seba14's Avatar Civis
    Join Date
    Sep 2013
    Location
    London - Uk
    Posts
    133

    Default Re: Battle editor / Historical Battle editor won't work - MTW2

    Which pack are you referring to ? (The HZS/packs folder is empty)

    If it's a leftover from RTW I have no idea as to how to address this

    I think we tried everything, if this last pack thing doesn't work, it may as well ring the ending bell

  10. #10
    Gigantus's Avatar I am not special - I am a limited edition.
    Moderator Emeritus Administrator Emeritus

    Join Date
    Aug 2006
    Location
    Goa - India
    Posts
    52,682
    Blog Entries
    35

    Default Re: Battle editor / Historical Battle editor won't work - MTW2

    pack - the vanilla pack files
    leftover - does not need addressing, it's not an error

    Compress your work and upload it - I will try and have a look.










  11. #11
    makanyane's Avatar Praeses
    Content Emeritus

    Join Date
    Feb 2006
    Posts
    9,093
    Blog Entries
    1

    Default

    Re; battle editor not opening...

    one thing that definitely does that is any error in the names files, e.g. a name in descr_names.txt which doesn't have a matching entry in data/text/names.txt
    try http://www.twcenter.net/forums/downl...o=file&id=3493

  12. #12
    Gigantus's Avatar I am not special - I am a limited edition.
    Moderator Emeritus Administrator Emeritus

    Join Date
    Aug 2006
    Location
    Goa - India
    Posts
    52,682
    Blog Entries
    35

    Default Re: Battle editor / Historical Battle editor won't work - MTW2

    Quote Originally Posted by makanyane View Post
    Re; battle editor not opening...

    one thing that definitely does that is any error in the names files, e.g. a name in descr_names.txt which doesn't have a matching entry in data/text/names.txt
    try http://www.twcenter.net/forums/downl...o=file&id=3493
    Didn't know this would affect the battle editor, good to know. Geomod actually checks for that when opening a mod, maybe that's why I haven't come across the battle editor thing. Or I am just getting old.










  13. #13
    Seba14's Avatar Civis
    Join Date
    Sep 2013
    Location
    London - Uk
    Posts
    133

    Default Re: Battle editor / Historical Battle editor won't work - MTW2

    Hi there

    Thanks for the tip, indeed, the tool found an awful lot of incorrect entries (234) I'll definitely fix this

    Gigantus, thanks a lot for the offer, I'll fix the names thing first then will prepare a light copy for debug only

    Thanks a lot guys

  14. #14
    makanyane's Avatar Praeses
    Content Emeritus

    Join Date
    Feb 2006
    Posts
    9,093
    Blog Entries
    1

    Default Re: Battle editor / Historical Battle editor won't work - MTW2

    when the editor opens, it's menu system shows a bunch of stuff for historical battles, like which faction can be selected, which leader, which unit, which settlement/ambient etc.. so it can fail on all that sort of stuff and not just the more obvious map related things (I finally realised that after having to completely rebuild a mod to get it to work )

  15. #15
    Gigantus's Avatar I am not special - I am a limited edition.
    Moderator Emeritus Administrator Emeritus

    Join Date
    Aug 2006
    Location
    Goa - India
    Posts
    52,682
    Blog Entries
    35

    Default Re: Battle editor / Historical Battle editor won't work - MTW2

    One of these days I have to try my hand on the historical battles, so far only arranged for the simple battles.










  16. #16
    Seba14's Avatar Civis
    Join Date
    Sep 2013
    Location
    London - Uk
    Posts
    133

    Default Re: Battle editor / Historical Battle editor won't work - MTW2

    Hey guys
    Sorry for the short hiatus, it's been quite hectic lately :p
    I fixed the names issue but still the crash is here and doesn't seem to want to go away ^^

    I noticed the rivers map in custom battles are leading to a dense conifere forest...could it be that the maps are messed up ?

    In any case, I emptied the Characters traits and ancillaries files (In data and text) to make it as simple as it could but it doesn't change either

    Here's a light version of the mod for check :

    https://www.dropbox.com/s/03te49cj51...%20Gig.7z?dl=0

    Thanks a lot guys !
    Last edited by Seba14; March 14, 2015 at 12:59 PM.

Page 2 of 2 FirstFirst 12

Tags for this Thread

Posting Permissions

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