Need help with a custom battle CTD

Moderator: rbodleyscott

Post Reply
SmickeyMcgee
Senior Corporal - Ju 87G
Senior Corporal - Ju 87G
Posts: 76
Joined: Wed Jul 21, 2010 6:39 pm

Need help with a custom battle CTD

Post by SmickeyMcgee »

Im making a AGOT mod and everything is working fine except one faction. The mod adds a bunch of modded AGOT Armylists to custom battles. I've played custom battles with all the modded factions and they work except for Norvos. Whenever i try to fight with the custom Norvos faction the game crashes, i checked the ArmyList, text2, BannerSideIDs, and Banner txts and couldnt find anything wrong there. I mod each faction the same way following the same steps so im totally confused that one isn't working but the rest are.

Here's the error log i'm hoping someone can help me figure out what i've missed.

20220701_111752
VER:10406 BUILD:10009
PLATFORM: WINDOWS
WinVer:10.0.19041.1741
0: NVIDIA GeForce GTX 1660 Ti
CPU String: GenuineIntel
Stepping ID = 10
Model = 14
Family = 6
Extended model = 9
CLFLUSH cache line size = 64
APIC Physical ID = 8
CPU Brand String: Intel(R) Core(TM) i5-9400F CPU @ 2.90GHz
Cache Size = 256K
Found DirectX Version Number: 4.09.00.0904
Creating Device.....
MonkeyInitStart
MIS: Found DD
MIS: IsHW
MIS: SetCoop
MIS: Setting Disp Mode
MIS: Done Init 3D Device
MIS: Tex Enum
MIS: SDRS
MIS: Init Decal Render
TS: Start
TS: IAPSent
TS: UILoaded
INITIAL LOAD 12379
TS: BattleObj
TS: Managers
TS: BFBB
TS: LT
TS: InitDLUI
TS: Messages
TS: Ended
Received stats and achievements from Steam
WARNING: SCRIPT ID: duplicate script id found (92000002 for DATA/UI/UNITLIST.BSF [D:/SteamLibrary/steamapps/common/Field of Glory II Medieval/DATA/UI/UNITLIST.BSF])
D:/SteamLibrary/steamapps/common/Field of Glory II Medieval/DATA/UI/UNITLIST.BSF exists
RESET
Rebuilding the Device....
SUCCESS!!!! Rebuilding the Device....
WARNING: Banner ignored because already set: 1 : Banner1 (DATA/BATTLE/BANNERS/BANNER.TXT)
WARNING: Banner ignored because already set: 2 : Banner2 (DATA/BATTLE/BANNERS/BANNER.TXT)
WARNING: Banner ignored because already set: 3 : Banner3 (DATA/BATTLE/BANNERS/BANNER.TXT)
WARNING: Banner ignored because already set: 4 : Banner4 (DATA/BATTLE/BANNERS/BANNER.TXT)
WARNING: Banner ignored because already set: 5 : Banner5 (DATA/BATTLE/BANNERS/BANNER.TXT)
WARNING: Banner ignored because already set: 6 : Banner6 (DATA/BATTLE/BANNERS/BANNER.TXT)
WARNING: Banner ignored because already set: 7 : Banner7 (DATA/BATTLE/BANNERS/BANNER.TXT)
WARNING: Banner ignored because already set: 8 : Banner8 (DATA/BATTLE/BANNERS/BANNER.TXT)
WARNING: Banner ignored because already set: 9 : Banner9 (DATA/BATTLE/BANNERS/BANNER.TXT)
WARNING: Banner ignored because already set: 10 : Banner10 (DATA/BATTLE/BANNERS/BANNER.TXT)
WARNING: Banner ignored because already set: 11 : Banner11 (DATA/BATTLE/BANNERS/BANNER.TXT)
WARNING: Banner ignored because already set: 12 : Banner12 (DATA/BATTLE/BANNERS/BANNER.TXT)
WARNING: Banner ignored because already set: 13 : Banner13 (DATA/BATTLE/BANNERS/BANNER.TXT)
WARNING: Banner ignored because already set: 14 : Banner14 (DATA/BATTLE/BANNERS/BANNER.TXT)
WARNING: Banner ignored because already set: 15 : Banner15 (DATA/BATTLE/BANNERS/BANNER.TXT)
WARNING: Banner ignored because already set: 16 : Banner16 (DATA/BATTLE/BANNERS/BANNER.TXT)
WARNING: Banner ignored because already set: 17 : Banner17 (DATA/BATTLE/BANNERS/BANNER.TXT)
WARNING: Banner ignored because already set: 18 : Banner18 (DATA/BATTLE/BANNERS/BANNER.TXT)
WARNING: Banner ignored because already set: 19 : Banner19 (DATA/BATTLE/BANNERS/BANNER.TXT)
WARNING: Banner ignored because already set: 20 : Banner20 (DATA/BATTLE/BANNERS/BANNER.TXT)
WARNING: Banner ignored because already set: 21 : Banner21 (DATA/BATTLE/BANNERS/BANNER.TXT)
WARNING: Banner ignored because already set: 22 : Banner22 (DATA/BATTLE/BANNERS/BANNER.TXT)
WARNING: Banner ignored because already set: 23 : Banner23 (DATA/BATTLE/BANNERS/BANNER.TXT)
WARNING: Banner ignored because already set: 24 : Banner24 (DATA/BATTLE/BANNERS/BANNER.TXT)
WARNING: Banner ignored because already set: 25 : Banner25 (DATA/BATTLE/BANNERS/BANNER.TXT)
Playing as: 0
DATA/OBJECTS/SouthernEurope/CropRye.S3F: 4 -> 4
trees_n_grass_v014:fbx_ShrubC____-_rough RATIO: 1.531062
Lossless
DATA/OBJECTS/SouthernEurope/ShrubC.S3F: 1528 -> 1528
trees_n_grass_v014:fbx_ShrubA__-_rough__###### RATIO: 1.590829
Lossless
DATA/OBJECTS/SouthernEurope/ShrubA.S3F: 1804 -> 1804
trees_n_grass_v014:fbx_ShrubB RATIO: 1.664000
Lossless
DATA/OBJECTS/SouthernEurope/ShrubB.S3F: 1248 -> 1248
DATA/OBJECTS/SouthernEurope/CropHay.S3F: 4 -> 4
trees_n_grass_v014:fbx_treeC2_grass RATIO: 1.844156
Lossless
DATA/OBJECTS/SouthernEurope/TreeC2.S3F: 1311 -> 1311
trees_n_grass_v014:fbx_ShrubsDenseC_#### RATIO: 1.679348
Lossless
DATA/OBJECTS/SouthernEurope/ShrubsDenseC.S3F: 1236 -> 1236
DATA/OBJECTS/SouthernEurope/CropDryPasture.S3F: 4 -> 4
trees_n_grass_v014:fbx_treeA2_grass RATIO: 1.851546
Lossless
trees_n_grass_v014:fbx_treeA2 RATIO: 0.901082
DATA/OBJECTS/SouthernEurope/TreeA2.S3F: 2379 -> 2330
trees_n_grass_v014:fbx_ShrubsDenseA___-_grassland RATIO: 1.937107
Lossless
DATA/OBJECTS/SouthernEurope/ShrubsDenseA.S3F: 616 -> 616
trees_n_grass_v014:fbx_treeC1_grass RATIO: 1.614493
Lossless
DATA/OBJECTS/SouthernEurope/TreeC1.S3F: 1575 -> 1575
trees_n_grass_v015:fbx_forest_grass RATIO: 1.636364
Lossless
trees_n_grass_v015:fbx_forest RATIO: 0.631677
DATA/OBJECTS/SouthernEurope/Forest.S3F: 7354 -> 6884
trees_n_grass_v014:fbx_ShrubsDenseD__-_grassland_#### RATIO: 1.719547
Lossless
DATA/OBJECTS/SouthernEurope/ShrubsDenseD.S3F: 1214 -> 1214
trees_n_grass_v014:fbx_ShrubsDenseB RATIO: 1.780488
Lossless
DATA/OBJECTS/SouthernEurope/ShrubsDenseB.S3F: 876 -> 876
trees_n_grass_v014:fbx_treeA1_grass RATIO: 1.744480
Lossless
trees_n_grass_v014:fbx_treeA1 RATIO: 0.901082
DATA/OBJECTS/SouthernEurope/TreeA1.S3F: 1689 -> 1640
SE_Castle_v067:fbx_village_w_church RATIO: 1.520451
Lossless
DATA/OBJECTS/SouthernEurope/VillageChapel.S3F: 2156 -> 2156
SE_Castle_v067:fbx_Village_A RATIO: 1.567650
Lossless
DATA/OBJECTS/SouthernEurope/VillageA.S3F: 1541 -> 1541
SE_Castle_v067:fbx_Village_C RATIO: 1.482730
Lossless
DATA/OBJECTS/SouthernEurope/VillageC.S3F: 1803 -> 1803
SE_Castle_v068:fbx_Village_D RATIO: 1.411273
Lossless
DATA/OBJECTS/SouthernEurope/VillageD.S3F: 1352 -> 1352
Ditch_v010:fbx_Bushes_Edge_Dense RATIO: 0.739310
DATA/OBJECTS/SouthernEurope/BushesEdgeDense.S3F: 536 -> 397
trees_n_grass_v014:fbx_trees_edgeSparseA RATIO: 1.297131
Lossless
DATA/OBJECTS/SouthernEurope/TreesEdgeSparseA.S3F: 2091 -> 2091
DATA/OBJECTS/SouthernEurope/TreesEdgeSparseB.S3F: 687 -> 687
trees_n_grass_v014:fbx_Trees_Road_Straight RATIO: 0.859962
DATA/OBJECTS/SouthernEurope/TreesRoadStraight.S3F: 1267 -> 1206
trees_n_grass_v014:fbx_trees_Copse_grass RATIO: 1.633028
Lossless
trees_n_grass_v014:fbx_trees_Copse RATIO: 0.879699
DATA/OBJECTS/SouthernEurope/TreesCopse.S3F: 1414 -> 1373
trees_n_grass_v014:fbx_trees_road_bend RATIO: 0.846617
DATA/OBJECTS/SouthernEurope/TreesRoadBend.S3F: 1426 -> 1345
trees_n_grass_v014:fbx_trees_road_t_Junction_grass RATIO: 1.828851
Lossless
trees_n_grass_v014:fbx_trees_road_t_Junction RATIO: 0.870751
DATA/OBJECTS/SouthernEurope/TreesRoadTsection.S3F: 3443 -> 3251
trees_n_grass_v015:fbx_forest_edge_GRASS RATIO: 1.644397
Lossless
trees_n_grass_v015:fbx_forest_edge RATIO: 0.925549
DATA/OBJECTS/SouthernEurope/ForestEdge.S3F: 2707 -> 2608
SIDE 0
######## EXCEPTION: 0xC0000005 at address: 0x005E7D8F
Starting Debugger
SEARCHING: D:\SteamLibrary\steamapps\common\Field of Glory II Medieval;D:\SteamLibrary\steamapps\common\Field of Glory II Medieval;C:\WINDOWS
D:\SteamLibrary\steamapps\common\Field of Glory II Medieval;D:\SteamLibrary\steamapps\common\Field of Glory II Medieval;C:\WINDOWS
SGA: CBattleDisplay::UpdateBanners
CBattleDisplay::UpdateBanners
c:\dev\ba2_tile_shader\game\battledisplay.cpp(20581) : +40 bytes (CBattleDisplay::UpdateBanners) 0
SGA: CBattleDisplay::Update
CBattleDisplay::Update
c:\dev\ba2_tile_shader\game\battledisplay.cpp(6323) : +0 bytes (CBattleDisplay::Update) 0
SGA: CUIManager::UpdateObjects
CUIManager::UpdateObjects
c:\dev\archon\ui\uimanager.cpp(1700) : +0 bytes (CUIManager::UpdateObjects) 0
SGA: CUIManager::Update
CUIManager::Update
c:\dev\archon\ui\uimanager.cpp(2865) : +0 bytes (CUIManager::Update) 0
SGA: CGame::Update
CGame::Update
c:\dev\ba2_tile_shader\game\game.cpp(1124) : +0 bytes (CGame::Update) 0
SGA: CPlatform::MainLoop
CPlatform::MainLoop
c:\dev\archon\platform_windows.cpp(1070) : +11 bytes (CPlatform::MainLoop) 0
SGA: WinMain
WinMain
c:\dev\archon\platform_windows.cpp(577) : +11 bytes (WinMain) 0
SGA: __tmainCRTStartup
__tmainCRTStartup
f:\dd\vctools\crt_bld\self_x86\crt\src\crtexe.c(578) : +29 bytes (__tmainCRTStartup) 0
SGA: BaseThreadInitThunk
BaseThreadInitThunk
SGA: RtlGetAppContainerNamedObjectPath
RtlGetAppContainerNamedObjectPath
SGA: RtlGetAppContainerNamedObjectPath
RtlGetAppContainerNamedObjectPath
Debugger Cleanup
rbodleyscott
Field of Glory 2
Field of Glory 2
Posts: 28052
Joined: Sun Dec 04, 2005 6:25 pm

Re: Need help with a custom battle CTD

Post by rbodleyscott »

I can't tell much from that except that the problem appears to be something to do with banners.

Can you post your armylist.txt file and your banners.txt file, and your bannerSideIDs.txt file?
Richard Bodley Scott

Image
SmickeyMcgee
Senior Corporal - Ju 87G
Senior Corporal - Ju 87G
Posts: 76
Joined: Wed Jul 21, 2010 6:39 pm

Re: Need help with a custom battle CTD

Post by SmickeyMcgee »

Heres the armylist banners and bannersideIDs.
ModTxtFiles.zip
(4.34 KiB) Downloaded 20 times
rbodleyscott
Field of Glory 2
Field of Glory 2
Posts: 28052
Joined: Sun Dec 04, 2005 6:25 pm

Re: Need help with a custom battle CTD

Post by rbodleyscott »

SmickeyMcgee wrote: Fri Jul 01, 2022 6:25 pm Heres the armylist banners and bannersideIDs.
ModTxtFiles.zip
Nothing immediately obvious. I guess I would need to try the whole mod to see if I can see the reason,
Richard Bodley Scott

Image
SmickeyMcgee
Senior Corporal - Ju 87G
Senior Corporal - Ju 87G
Posts: 76
Joined: Wed Jul 21, 2010 6:39 pm

Re: Need help with a custom battle CTD

Post by SmickeyMcgee »

rbodleyscott
Field of Glory 2
Field of Glory 2
Posts: 28052
Joined: Sun Dec 04, 2005 6:25 pm

Re: Need help with a custom battle CTD

Post by rbodleyscott »

It is definitely something to do with the banner. When I switch Norvos to using a different banner, the CTD does not occur. When I switch Qohor to using the Novros banner, the CTD occurs.

I have not been able to figure out why Flag_22 is causing problems. I can only suggest that you remake it from scratch.

Other things I noticed:

1) The unit numbers in the ArmyList.txt file need to be scaled for a 2000 point army. They will be scaled down for smaller numbers of points. You need to make sure there are enough units for some choice.

For example, the Night Watch list has too few units to even spend all its points. (At least at 1200 points)

2) The Name in the army list needs to be in the form IDS_ARMY_name, where name is the name of the list chunk in square brackets.

e.g. [Norvos] should have NAME IDS_ARMY_NORVOS, not NAME IDS_ARMY_GEN_NORVOS.

You won’t see an error message, but I do because I am running in Debug Mode. Where you would see the error is in the MP Lobby if you set up an MP battle between such army lists.
Richard Bodley Scott

Image
Paul59
General - King Tiger
General - King Tiger
Posts: 3808
Joined: Tue Jul 21, 2015 11:26 pm

Re: Need help with a custom battle CTD

Post by Paul59 »

SmickeyMcgee wrote: Sat Jul 02, 2022 6:02 pm Here's a link to the whole mod.
https://www.mediafire.com/file/1acjqqr4 ... 3.zip/file
I have taken the liberty of checking this myself. After the TT Mod I have a lot of experience of working with banners!

The problem lies with the Flag_22.txt file. You have named it "Flag_22 .txt", ie; with a space between the last 2 and the full stop. This is what is causing the game to crash, it cannot find the file it is searching for.

BTW, I was mucking about with the banners in the Editor, and noticed that some of the alpha channels were not working for some banners. Sorry I didn't make a note of which ones they were.


cheers

Paul
Field of Glory II Scenario Designer - Age of Belisarius, Rise of Persia, Wolves at the Gate and Swifter than Eagles.

Field of Glory II Medieval Scenario Designer.

FOGII TT Mod Creator

Warhammer 40,000: Sanctus Reach Tournament Scenario Designer.
SmickeyMcgee
Senior Corporal - Ju 87G
Senior Corporal - Ju 87G
Posts: 76
Joined: Wed Jul 21, 2010 6:39 pm

Re: Need help with a custom battle CTD

Post by SmickeyMcgee »

Thanks so much! I noticed the alpha channel thing but thankfully it seems to just show up briefly by showing black where the alpha should be at the beginning of a battle but then stops after the end of deployment.
rbodleyscott
Field of Glory 2
Field of Glory 2
Posts: 28052
Joined: Sun Dec 04, 2005 6:25 pm

Re: Need help with a custom battle CTD

Post by rbodleyscott »

Paul59 wrote: Mon Jul 04, 2022 12:30 pm The problem lies with the Flag_22.txt file. You have named it "Flag_22 .txt", ie; with a space between the last 2 and the full stop. This is what is causing the game to crash, it cannot find the file it is searching for.
Doh, I should have spotted that! I looked at the contents of the file for errors, but not the filename itself.
Richard Bodley Scott

Image
Paul59
General - King Tiger
General - King Tiger
Posts: 3808
Joined: Tue Jul 21, 2015 11:26 pm

Re: Need help with a custom battle CTD

Post by Paul59 »

SmickeyMcgee wrote: Mon Jul 04, 2022 12:43 pm Thanks so much! I noticed the alpha channel thing but thankfully it seems to just show up briefly by showing black where the alpha should be at the beginning of a battle but then stops after the end of deployment.
I have now solved that issue too, and it was for a similar reason.

The two banners with the problem were Lorath and Volantis, they are using banners 24 and 25. They do not have .s4f and .txt files. If you give them those files the problem is solved.
Field of Glory II Scenario Designer - Age of Belisarius, Rise of Persia, Wolves at the Gate and Swifter than Eagles.

Field of Glory II Medieval Scenario Designer.

FOGII TT Mod Creator

Warhammer 40,000: Sanctus Reach Tournament Scenario Designer.
SmickeyMcgee
Senior Corporal - Ju 87G
Senior Corporal - Ju 87G
Posts: 76
Joined: Wed Jul 21, 2010 6:39 pm

Re: Need help with a custom battle CTD

Post by SmickeyMcgee »

I've given em both the right files loaded em up in custom battle and they worked great. Thanks again for the help it's much appreciated!
Post Reply

Return to “Field of Glory II: Medieval Tech Support”