![]() |
SUBSIM: The Web's #1 resource for all submarine & naval simulations since 1997 |
|
|
04-08-14, 11:25 PM
|
#1 | |
|
Canadian Wolf
|
Quote:
Well we know that it is possible : ) |
|
|
|
04-09-14, 08:44 AM
|
#2 |
|
Black Magic
![]() |
Yes it is possible but not easy to do.
You'd be surprised how much SH4 is in SH5 but just turned off or disabled. All the watch rotation stuff and sounds for it are loaded when the game runs but right after that some new code ensures that those features are disabled or turned off so they are never used Just total piss poor and lazy coding (not to mention inefficient memory management - why allocate memory to things that are never used?). They also left entire chunks of SH4 code in SH5. Instead of stripping them out they changed the pointers to those functions to point to 'null' functions or stubs - functions that immediately return to the caller (once again inefficient memory management - why have code in memory that is never called/used?).Oh but it gets even better! As SH4 was based on SH3 I even see SH3 code in the SH5 code. Same thing as I described above - instead of removing the SH3 code from SH4 they just set 'null' functions or stubs Laziness compounded onto more laziness...
|
|
|
04-09-14, 12:45 PM
|
#3 |
|
Admiral
![]() Join Date: May 2005
Location: Berlin
Posts: 2,015
Downloads: 165
Uploads: 0
|
TDW you seem to be the only person here who has the ability and energy to unravel the mysteries of SH5.exe. I am not suprised that many of the old stuff is still there, if it can be made to work even it could be very fortunate. Really looking forward what you and others can do with the game.
It does not surprise me though that you find large portions of hidden, disabled code. They must have decided that with Silent Hunter 5 the engine needs to be completely upgraded. One reason would be that UBI wanted to have the AssCreed graphics engine in their newer product. Another will have been that many new programmers were bitterly complaining that the older stuff was not always working and that they were losing countless hours trying to figure out what would work - similar to our experiences with SH4. So they would make tabula rasa, and put everything on a new, much improved foundation. Unfortunately the same old casualness set in quickly (management issues?), and some people refactored stuff from Silent Hunter IV, which was often stuff that had already been refactored from Silent Hunter III. At the same time fundamental changes must have happened inside of UBI that forced them to finish the game at a point where they were barely halfway on the move to the new engine. For I don't think I have seen many games that were out of the box so badly configured as Silent Hunter V.
__________________
|
|
|
![]() |
| Thread Tools | |
| Display Modes | |
|
|
