I'm making a new thread to consolidate all the fixes I've been working on.
I've already found and fixed the problem with the game crashing when you try to save a game, and ending up with a corrupted save. Pieter has that code already.
I'm adding points to the worldmap islands to help with island transitions when two islands are close together, or aren't round. This is going to take a lot of testing, and I'm manually sailing to each of the new points to make sure I've got the coordinates right... they don't show up in the sail-to list.
Note that every time you make a change to the world map, you have to run wdmInit() and SetCorrectWorldMapPosition() in the console for the changes to take effect on a saved game. New games would use the new world map, but old ones have the world map saved with the game. We may be able to automate this, running wdmInit() every time you load a game if it doesn't take too long on a slow computer.
These new points aren't necessary or even useful if you're sailing in Iron Man mode, as the islands are farther apart and do not have problems with direct sail transitions. I may look at adding a switch for the new points to remove them for Iron Man, although the player shouldn't notice any difference.
I've added code to increase (or decrease if you wish) the size of the HUD and other on-screen displays for those with high resolution monitors. This is mostly working, but needs testing on a monster resolution monitor to make sure it works for super-high resolutions. Some of the text doesn't scale, and I'm using the two default font sizes with a switch to decide which one to use, normal or small, depending on the scale selected. Currently the scale is set in globals.c but eventually a slider on the options screen would be useful.
I have JUST NOW found and hopefully fixed the problem with the ships being in the wrong place after a direct sail transition. Not only the display of your ship on the map, but the world coordinates were wrong, and you could end up in the open sea somewhere on the map with no islands around anywhere. Or off the map. I saw some nasty cases before I went looking for that code. My test cases work, but I want to test it during normal sailing.
More to come.
Hook
I've already found and fixed the problem with the game crashing when you try to save a game, and ending up with a corrupted save. Pieter has that code already.
I'm adding points to the worldmap islands to help with island transitions when two islands are close together, or aren't round. This is going to take a lot of testing, and I'm manually sailing to each of the new points to make sure I've got the coordinates right... they don't show up in the sail-to list.
Note that every time you make a change to the world map, you have to run wdmInit() and SetCorrectWorldMapPosition() in the console for the changes to take effect on a saved game. New games would use the new world map, but old ones have the world map saved with the game. We may be able to automate this, running wdmInit() every time you load a game if it doesn't take too long on a slow computer.
These new points aren't necessary or even useful if you're sailing in Iron Man mode, as the islands are farther apart and do not have problems with direct sail transitions. I may look at adding a switch for the new points to remove them for Iron Man, although the player shouldn't notice any difference.
I've added code to increase (or decrease if you wish) the size of the HUD and other on-screen displays for those with high resolution monitors. This is mostly working, but needs testing on a monster resolution monitor to make sure it works for super-high resolutions. Some of the text doesn't scale, and I'm using the two default font sizes with a switch to decide which one to use, normal or small, depending on the scale selected. Currently the scale is set in globals.c but eventually a slider on the options screen would be useful.
I have JUST NOW found and hopefully fixed the problem with the ships being in the wrong place after a direct sail transition. Not only the display of your ship on the map, but the world coordinates were wrong, and you could end up in the open sea somewhere on the map with no islands around anywhere. Or off the map. I saw some nasty cases before I went looking for that code. My test cases work, but I want to test it during normal sailing.
More to come.
Hook