The Protectors Forum
Would you like to react to this message? Create an account in a few clicks or log in to continue.


A place to discuss about The Protectors mod for Warlords Battlecry 3. Visit http://the-protectors.webs.com for more info.
 
HomeLatest imagesSearchRegisterLog in

 

 [FIXED] Crash at starting first Sir Melvin mission

Go down 
2 posters
AuthorMessage
levimag
Squire
Squire
levimag


Posts : 5
Join date : 2018-10-21

[FIXED] Crash at starting first Sir Melvin mission Empty
PostSubject: [FIXED] Crash at starting first Sir Melvin mission   [FIXED] Crash at starting first Sir Melvin mission I_icon_minitimeTue Mar 24, 2020 4:30 pm

To the brilliant and inspired creators of this masterpiece-in-progress,

I seem to be getting a crash when trying to launch the first Sir Melvin mission in the Prologue. Only that one, as far as I have observed. The mission loads to 81%, then I get the following error message from Microsoft Visual C++ Runtime Library:
____________________________________
Debug Assertion Failed!

Program: C:\Program Files (x86)\The Protectors\The Protectors.exe
File: D:\Microsoft Visual Studio\2017\Community\VC\Tools\MSVC\14.10.25017\include\
vector
Line: 1740

Expression: vector subscript out of range

For information on how your program can cause an assertion failure, see the Visual C++ documentation on asserts.

(Press Retry to debug the application)
_____________________________________

Needless to say, Retry does not work, and Ignore causes CTD. (Unfortunately I know zero about C++.) What do you think?
Back to top Go down
Patrick_the_Winekiller
Devourer of bugs
Devourer of bugs
Patrick_the_Winekiller


Posts : 1136
Join date : 2012-01-04

[FIXED] Crash at starting first Sir Melvin mission Empty
PostSubject: Re: [FIXED] Crash at starting first Sir Melvin mission   [FIXED] Crash at starting first Sir Melvin mission I_icon_minitimeTue Mar 24, 2020 5:37 pm

We've had this report before (and fixed it in 0.9). To quote from Kharn:
Kharn wrote:
And then there's a crash trying to load some of the Chapters. You'll get a Vector Subscript error during the 81% mark of the loading screen which is the faction cache blowing up because the Chapter's mission uses an invalid race/faction entry when trying to read data from the cache. This technically can be fixed on the user's end but it's a little more complicated than traditional fixes, as it requires the use of an XCR tool and editing specific .MAP files found in the Chapter's XCR file.
Back to top Go down
http://the-protectors.webs.com
levimag
Squire
Squire
levimag


Posts : 5
Join date : 2018-10-21

[FIXED] Crash at starting first Sir Melvin mission Empty
PostSubject: Re: [FIXED] Crash at starting first Sir Melvin mission   [FIXED] Crash at starting first Sir Melvin mission I_icon_minitimeTue Mar 24, 2020 5:53 pm

Hmm, that’s a pity, I was really hoping to play the chapters. I guess the only thing to do is to wait for 0.9, then? (Unless you happen to have detailed instructions for the fix on my end Very Happy )

EDIT: You know, if you just tell me a good tool to use with which to edit the .MAP files and how exactly I should edit it, I believe I can do it myself. I'm looking at the chapter's XCR file here, and I see the following:

MAP_PIRATEamb1.map
MAP_ROPcity1.map
MAP_ROPcity2.map
MAP_ROPcity3.map
MAP_THEcity1.map
MAP_THEcity2.map
MAP_TrollAmbush.map

I assume the relevant file is MAP_ROPcity1.map and those after it? What program should I make use of to open these?
Back to top Go down
Patrick_the_Winekiller
Devourer of bugs
Devourer of bugs
Patrick_the_Winekiller


Posts : 1136
Join date : 2012-01-04

[FIXED] Crash at starting first Sir Melvin mission Empty
PostSubject: Re: [FIXED] Crash at starting first Sir Melvin mission   [FIXED] Crash at starting first Sir Melvin mission I_icon_minitimeThu Apr 02, 2020 6:35 pm

Notepad will do. They are all just text files.
Back to top Go down
http://the-protectors.webs.com
levimag
Squire
Squire
levimag


Posts : 5
Join date : 2018-10-21

[FIXED] Crash at starting first Sir Melvin mission Empty
PostSubject: Re: [FIXED] Crash at starting first Sir Melvin mission   [FIXED] Crash at starting first Sir Melvin mission I_icon_minitimeThu Apr 02, 2020 11:43 pm

Hmm. Are you sure Notepad will work? Because it looks like gibberish, unless I am doing something wrong here. MAP_ROPcity1.map looks like

.CæØŹA-uC¤,„µR,ÅVõ]Ç…ýå.tæ -˜Vb-u# „µe¤:CR“,:¤ì9eÅVõ] Ç…ýå.þæb-•VŹõu#æHAæAعVH#uWXVAA-HuW˜¹Ìu]b-•-bu&­-##uW Ç…ýå.ƒVA-VAuW-#¹Å-#ua-æ uW Ç…ýå.ƒVA-VAu]æÅ-uWa-#¹Å-#ua-æ u]æVuWH¹X-¹u]H¹-VH-u] Ç…ýå.ƒVA-VAuaæÅ-u]&-#¹Å-#ua-æ u]æVuH¹X-¹u]H¹-VH-u] Ç…ýå.ƒVA-VAuzæÅ-u]&-#¹Å-#ua-æ u]æVuWH¹X-¹u]H¹-VH-u] Ç…ý. CæØÇ…ý
Back to top Go down
Patrick_the_Winekiller
Devourer of bugs
Devourer of bugs
Patrick_the_Winekiller


Posts : 1136
Join date : 2012-01-04

[FIXED] Crash at starting first Sir Melvin mission Empty
PostSubject: Re: [FIXED] Crash at starting first Sir Melvin mission   [FIXED] Crash at starting first Sir Melvin mission I_icon_minitimeThu Apr 02, 2020 11:58 pm

Use unit editor MFC to extract the MAP files from the XCR while also decrypting. Then open the extracted decrypted MAP files with notepad.

Alternatively, you can use XCR.exe to directly edit the MAP file without extracting. It all depends on the tool you use.
Back to top Go down
http://the-protectors.webs.com
levimag
Squire
Squire
levimag


Posts : 5
Join date : 2018-10-21

[FIXED] Crash at starting first Sir Melvin mission Empty
PostSubject: Re: [FIXED] Crash at starting first Sir Melvin mission   [FIXED] Crash at starting first Sir Melvin mission I_icon_minitimeFri Apr 03, 2020 2:17 am

Okay that's awesome, thank you! Now one last thing: what do I add/change? Here are the files:

Map code="MAP_ROPcity1"
Name file="sm_REALMOFPLAGUEcity1"/
Battle victory="standard" points="0" hidden="0" fog="1" level="5" quests="0"/
Side id="0" resources="2" team="0"/
Side id="1" race="02"  resources="2" team="1" ai="0" nohero="1" noretinue="1"/
Side id="2" race="15"  resources="2" team="1" ai="8" nohero="1" noretinue="1"/
Side id="3" race="15"  resources="2" team="1" ai="0" nohero="1" noretinue="1"/
/Map


Map code="MAP_ROPcity2"
Name file="sm_REALMOFPLAGUEcity2"/
Battle victory="standard" points="0" hidden="1" fog="1" level="0" quests="0"/
Side id="0" resources="2" team="0"/
Side id="1" race="02"  resources="2" team="1" ai="0" nohero="1" noretinue="1"/
Side id="2" race="15"  resources="2" team="1" ai="0" nohero="0" noretinue="1"/
/Map


Map code="MAP_ROPcity3"
Name file="sm_REALMOFPLAGUEcity1"/
Battle victory="standard" points="0" hidden="0" fog="1" level="5" quests="0"/
Side id="0" resources="2" team="0"/
Side id="1" race="02"  resources="2" team="1" ai="0" nohero="1" noretinue="1"/
Side id="2" race="15"  resources="2" team="1" ai="3" nohero="0" noretinue="1"/
/Map
Back to top Go down
Patrick_the_Winekiller
Devourer of bugs
Devourer of bugs
Patrick_the_Winekiller


Posts : 1136
Join date : 2012-01-04

[FIXED] Crash at starting first Sir Melvin mission Empty
PostSubject: Re: [FIXED] Crash at starting first Sir Melvin mission   [FIXED] Crash at starting first Sir Melvin mission I_icon_minitimeFri Apr 03, 2020 2:38 am

You need to edit ACT_ROPcity1.act line 1 to:
Code:
<Action code="ACT_ROPcity1" type="battle">
Back to top Go down
http://the-protectors.webs.com
levimag
Squire
Squire
levimag


Posts : 5
Join date : 2018-10-21

[FIXED] Crash at starting first Sir Melvin mission Empty
PostSubject: Re: [FIXED] Crash at starting first Sir Melvin mission   [FIXED] Crash at starting first Sir Melvin mission I_icon_minitimeFri Apr 03, 2020 3:05 am

EDIT: Whoops, at first that did not work, then I realized it was because I was trying to edit without running as administrator.

Thank you so much Mr. Winekiller! Works beautifully :-) I appreciate your patience in walking me through all this.
Back to top Go down
Patrick_the_Winekiller
Devourer of bugs
Devourer of bugs
Patrick_the_Winekiller


Posts : 1136
Join date : 2012-01-04

[FIXED] Crash at starting first Sir Melvin mission Empty
PostSubject: Re: [FIXED] Crash at starting first Sir Melvin mission   [FIXED] Crash at starting first Sir Melvin mission I_icon_minitimeFri Apr 03, 2020 6:35 pm

Fixed in 0.9. Topic closed.
Back to top Go down
http://the-protectors.webs.com
Sponsored content





[FIXED] Crash at starting first Sir Melvin mission Empty
PostSubject: Re: [FIXED] Crash at starting first Sir Melvin mission   [FIXED] Crash at starting first Sir Melvin mission I_icon_minitime

Back to top Go down
 
[FIXED] Crash at starting first Sir Melvin mission
Back to top 
Page 1 of 1
 Similar topics
-
» [FIXED] Few Starting problems
» [FIXED] Random Map Starting Locations
» [FIXED] c.campaing first mission problem.
» [FIXED] Multiplayer crash 0.8.5
» [FIXED] Multiplayer Crash 8.4a

Permissions in this forum:You cannot reply to topics in this forum
The Protectors Forum :: Bugs reporting-
Jump to: