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.
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 ?
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.
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.
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
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
Last edited by Seba14; March 04, 2015 at 05:34 AM.
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.
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
Last edited by Gigantus; March 08, 2015 at 06:48 AM.
Reason: multiple posts merged
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.
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 )
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