Jump to content


Photo

fixing crash bug on 2d maps in DP


  • Please log in to reply
16 replies to this topic

#1 SirRH

SirRH

    title available

  • Members
  • 604 posts
  • Location:Uranus

Posted 12 October 2016 - 08:08 PM

I have been thinking of attempting to fix some of the 2d maps that crash whenever one of your men get shot off screen. So to make things easier I have made this list for which missions needs to be fixed, i will update it when any have been fixed. If I have missed any missions or put a wrong mission please let me know. This is based on current DP version (1.43). 
Edit: Now I have completed them all, please let me know if I left any bugs
 

Download full pack:

http://www.mediafire... Fix for DP.zip

 

Download Separate:

[BEL 00] New Mission Fixed using shrink y64 method: http://www.mediafire... new method.zip

[BEL 01] Baptism of Fire Fixed by herbert3000 using shrink y64 method. Download: https://www.mediafir...xmib98odosa1pu9

[BEL 02] A Quiet Blow-Up Fixed using shrink y64 method: http://www.mediafire... y64 shrink.zip

[BEL 03] Reverse Engineering Fixed using shrink y64 method: http://www.mediafire..._y64_shrink.zip

[BEL 04] Restore Pride Fixed using shrink y64 method: http://www.mediafire... y64 shrink.zip

[BEL 05] Blind Justice Fixed using shrink y64 method: http://www.mediafire..._y64_shrink.zip

[BEL 06] Menace of the Leopold Fixed using shrink y64 method: http://www.mediafire... y64 shrink.zip

[BEL 07] Chase of the Wolves Fixed using shrink y64 method: http://www.mediafire... y64 shrink.zip

[BEL 08] Pyrotechnics Fixed using shrink y64 method: http://www.mediafire... y64 shrink.zip

[BEL 09] A Courtesy Call Fixed using shrink y64 method: http://www.mediafire... y64 shrink.rar

[BEL 10] Operation Icarus Fixed using shrink y64 method: http://www.mediafire... y64 shrink.zip

[BEL 11] In The Soup Fixed using shrink y64 method: http://www.mediafire... y64 shrink.rar

[BEL 12] Up on the Roof Fixed using shrink y64 method: http://www.mediafire... y64 shrink.zip

[BEL 13] David and Goliath Fixed using shrink y64 method: http://www.mediafire... y64 shrink.zip

[BEL 14] D-Day Kick Off Fixed using shrink y64 method: http://www.mediafire... y64 shrink.zip

[BEL 15] End of the Butcher Fixed using shrink y64 method: http://www.mediafire... y64 shrink.zip

[BEL 16] Stop Wildfire Fixed using shrink y64 method: http://www.mediafire... y64 shrink.zip

[BEL 17] Before Dawn Fixed using shrink y64 method: http://www.mediafire... y64 shrink.zip

[BEL 18] The Force of Circumstance Check BEL 16, uses same files

[BEL 19] Frustrate Retaliation Fixed using shrink y64 method: http://www.mediafire... new method.zip

[BEL 20] Operation Valhalla Fixed using shrink y64 method: http://www.mediafire... y64 shrink.zip

 

[BCD 01] Dying Light Is already fixed in 1.43 other than the .des file. Here is fixed 4 view .des file: http://www.mediafire... 4 view DES.zip

[BCD 02] The Asphalt Jungle Fixed using shrink y64 method: http://www.mediafire... y64 shrink.zip

[BCD 03] Dropped Out of the Sky Fixed using shrink y64 method: http://www.mediafire... y64 shrink.zip

[BCD 04] Thor's Hammer Is already fixed in 1.43 other than the .des file. Here is fixed 4 view .des file: http://www.mediafire... 4 view DES.zip

[BCD 05] Guess Who's Coming Tonight Fixed using shrink y64 method: http://www.mediafire... y64 shrink.zip

[BCD 06] Eagle's Nest Fixed using shrink y64 method: http://www.mediafire... y64 shrink.zip

[BCD 07] The Great Escape Fixed using shrink y64 method: http://www.mediafire..._y64_shrink.zip

[BCD 08] Dangerous Friendships Fixed using shrink y64 method: http://www.mediafire... y64 shrink.zip

[BCD 09] Tutorials Fixed using shrink y64 method: http://www.mediafire... y64 shrink.zip

 

[SINP 01] Down to Hell Fixed using shrink y64 method: http://www.mediafire... y64 shrink.zip

[SINP 02] Rejected Shelter Fixed using shrink y64 method, also fixed white line graphic bug in y64: http://www.mediafire... y64 shrink.zip

[L12] Rescue of Life and Death  Check BCD 03, uses same files

[L13] Schwerer Gustav Check BCD 04, uses same files

[Y1] Fortress (Japan)  Is already fixed in 1.43 other than the .des file. Here is fixed 4 view .des file: http://www.mediafire... 4 view des.zip

[Y3] Salvation (Japan) Check BCD 03, uses same files

[Y4] Enemy at the Front (Japan) Fixed using shrink y64 method: http://www.mediafire... y64 shrink.zip

[BCDMP 6] Lights Out Fixed using shrink y64 method: http://www.mediafire... y64 shrink.zip


Edited by robb, 10 November 2016 - 11:08 PM.


#2 SirRH

SirRH

    title available

  • Members
  • 604 posts
  • Location:Uranus

Posted 14 October 2016 - 09:24 PM

1 issue with this i've noticed is how much will increase file size, some y64 with 4 views are over 100mb. Which is what you call a bit bloody excessive for just a few 2d pictures. If all these maps have this fix it could make the whole mod a extra 2-3gb or so which is way too much for just for a bug fix. So i was wondering if there's any other solution that could be better for file size? Such as referencing the same images in all 4 views, or perhaps maybe it could work with just 2 views instead of 4?


Edited by robb, 14 October 2016 - 09:28 PM.


#3 extrano1955

extrano1955

    title available

  • Members
  • 666 posts
  • Location:Spain

Posted 14 October 2016 - 10:55 PM

1 issue with this i've noticed is how much will increase file size, some y64 with 4 views are over 100mb. Which is what you call a bit bloody excessive for just a few 2d pictures. If all these maps have this fix it could make the whole mod a extra 2-3gb or so which is way too much for just for a bug fix. So i was wondering if there's any other solution that could be better for file size? Such as referencing the same images in all 4 views, or perhaps maybe it could work with just 2 views instead of 4?

Yes, thats why I didnt fix these maps, I hope to find any alternative in future, anyway you are doing a great work



#4 SirRH

SirRH

    title available

  • Members
  • 604 posts
  • Location:Uranus

Posted 14 October 2016 - 11:25 PM

 

1 issue with this i've noticed is how much will increase file size, some y64 with 4 views are over 100mb. Which is what you call a bit bloody excessive for just a few 2d pictures. If all these maps have this fix it could make the whole mod a extra 2-3gb or so which is way too much for just for a bug fix. So i was wondering if there's any other solution that could be better for file size? Such as referencing the same images in all 4 views, or perhaps maybe it could work with just 2 views instead of 4?

Yes, thats why I didnt fix these maps, I hope to find any alternative in future, anyway you are doing a great work

 

Well good news, after a lot of testing and trying random methods, i've found out it is in fact possible only using 2 views, so this can help a lot with file size. Tested on BEL 19, i structured the y64 like this:
 

2112ca5092399804e0ee97372a7b8013.png

 

Then in the MA2 and DES file i only listed view 0 and view 3 (since view 3 is always the view that shows in the death camera in every map), like this as an example (for every part):

 

b44ade969824474017f6a647c1550622.png
 

And result:

5f93535674dd50a11303a08430b753d6.png

Download here if want to see:

http://www.mediafire...x_-_2_views.zip


Edited by robb, 14 October 2016 - 11:49 PM.


#5 SirRH

SirRH

    title available

  • Members
  • 604 posts
  • Location:Uranus

Posted 15 October 2016 - 12:01 AM

Also I tested just using 1 view and changing the ma2/des files to try and use view 3 only, but sadly xmlconverter automatically changes it back to view 0, so seems 2 views is best for now, unless someone can edit xmlconverter to not automatically change the value back?



#6 herbert3000

herbert3000

    Guilty Until Proven Innocent

  • Division Admins
  • 593 posts
  • Location:Austria
  • Division:Commandos HQ
  • Job:Division Admin

Posted 15 October 2016 - 08:47 PM

Actually XmlConverter ingnores everything between <!-- and --> because it's a comment.

The MA2/DES files also don't store the index of the view. The programmer of the ComDevToolkit put the comments with the indices in the xml files because it's easier to read for us modders :)

 

Anyway, it's awesome that you already fixed that many maps! And great find about using only two views, that's very helpful information.



#7 herbert3000

herbert3000

    Guilty Until Proven Innocent

  • Division Admins
  • 593 posts
  • Location:Austria
  • Division:Commandos HQ
  • Job:Division Admin

Posted 22 October 2016 - 05:29 PM

I think I found a way to reduce the size of the Y64 files (if all views are the same).

Basically I used a hex editor to change the addresses in the Y64 header. Now all views point to the same data chunk.

So far the mission starts and doesn't crash but it would be great if someone else could test it too.

https://www.mediafir...xmib98odosa1pu9



#8 SirRH

SirRH

    title available

  • Members
  • 604 posts
  • Location:Uranus

Posted 24 October 2016 - 03:54 PM

I think I found a way to reduce the size of the Y64 files (if all views are the same).

Basically I used a hex editor to change the addresses in the Y64 header. Now all views point to the same data chunk.

So far the mission starts and doesn't crash but it would be great if someone else could test it too.

https://www.mediafir...xmib98odosa1pu9

Yes this seems to work good, tested dying off screen a few times and it didn't crash



#9 herbert3000

herbert3000

    Guilty Until Proven Innocent

  • Division Admins
  • 593 posts
  • Location:Austria
  • Division:Commandos HQ
  • Job:Division Admin

Posted 31 October 2016 - 05:39 PM

Hey, robb! You can use this java program instead of editing the Y64 files with a hex editor.

Attached File  Y64 Shrinker.zip   2.46MB   187 downloads

The usage is simple: It's a runnable JAR so either double-click it or run it from the command prompt (java -jar "Y64 Shrinker.jar"), then drag the Y64 onto the tool, select the number of views and hit the save button.



#10 extrano1955

extrano1955

    title available

  • Members
  • 666 posts
  • Location:Spain

Posted 07 November 2016 - 11:42 PM

Hey, robb! You can use this java program instead of editing the Y64 files with a hex editor.

attachicon.gifY64 Shrinker.zip

The usage is simple: It's a runnable JAR so either double-click it or run it from the command prompt (java -jar "Y64 Shrinker.jar"), then drag the Y64 onto the tool, select the number of views and hit the save button.

awesome work, finally we have an easy way for fix this annoying bug!



#11 SirRH

SirRH

    title available

  • Members
  • 604 posts
  • Location:Uranus

Posted 08 November 2016 - 03:53 AM

Hey, robb! You can use this java program instead of editing the Y64 files with a hex editor.

attachicon.gifY64 Shrinker.zip

The usage is simple: It's a runnable JAR so either double-click it or run it from the command prompt (java -jar "Y64 Shrinker.jar"), then drag the Y64 onto the tool, select the number of views and hit the save button.

Good work :) i've now updated all my old fixes so they have this instead of the old method and i will use this shrinker for any other i fix in the the future. I didn't update the ones that already have a 4 view y64 in the 1.43 files though.

Also for BEL 15 when i tried fixing it always crashed, but i figured out the reason is the h2o file that the map uses because after i changed the water to the default bel h2o file it worked. So i wont upload this one till find a way to work with the h2o file it normally uses.


Edited by robb, 08 November 2016 - 04:28 AM.


#12 herbert3000

herbert3000

    Guilty Until Proven Innocent

  • Division Admins
  • 593 posts
  • Location:Austria
  • Division:Commandos HQ
  • Job:Division Admin

Posted 08 November 2016 - 09:55 PM

I checked BEL15.H2O - it only has one view, that's why it crashed.

Here's the h2o file with 2 views: Attached File  BEL15.H2O_2views.zip   843.53KB   97 downloads



#13 SirRH

SirRH

    title available

  • Members
  • 604 posts
  • Location:Uranus

Posted 10 November 2016 - 11:08 PM

Thank you, now I have completed fixing all the maps.
Download here: http://www.mediafire... Fix for DP.zip



#14 herbert3000

herbert3000

    Guilty Until Proven Innocent

  • Division Admins
  • 593 posts
  • Location:Austria
  • Division:Commandos HQ
  • Job:Division Admin

Posted 11 November 2016 - 05:07 PM

Wow, that is fantastic! Thank you so much!  :thumbsuphappy:



#15 Salvadorc17

Salvadorc17

    title available

  • Members
  • 507 posts
  • Location:Colombia
  • Projects:Destination Norway

Posted 12 November 2016 - 01:43 AM

Rob, why not change the topic name to some more general, like "Bel to c2 missions bugfixes", i want also to help with this.



#16 SirRH

SirRH

    title available

  • Members
  • 604 posts
  • Location:Uranus

Posted 12 November 2016 - 01:58 AM

Rob, why not change the topic name to some more general, like "Bel to c2 missions bugfixes", i want also to help with this.

Because it's more than just bel missions and it's only a fix for the crash bug. And I already finished.



#17 JONUCI

JONUCI
  • Members
  • 50 posts

Posted 15 November 2016 - 02:18 PM

great job

 






0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users