Jump to content

Leaderboard

Popular Content

Showing content with the highest reputation on 08/19/2018 in all areas

  1. EDIT: Did you know your ports were broken? The built-in map editor always sets the port demand level to 0 when it writes the port data. This results in demand dropping to zero after a single delivery if playing the expert industry model. Many maps exhibit this error, since the only way to fix it, is to directly manipulate the binary data of the map file. As noted in my other thread for 1.57, I tend to like things to be 'right' even if it doesn't really affect the gameplay too much. I also needed a little programming project so I created a little command line tool to display / fix / edit the RT2 ports. It will display in hex, decimal, or words. The fix option will set the demand to 5.0. This value was selected for two reasons, the first is that in most scenario maps, port entry 1 has demand set to 5.0 even if the demand is unneeded for that entry, like a raw producer. The second reason is that according to the strategy guide, demand level 5.0 is the level that pays 100% in the expert industrial model. If one wants to use a different value, the tool will allow you to edit to any reasonable value that you'd like. Just to be explicit for those who didn't realize, ports are not defined in the exe file like other building production data, ports are defined in the map, and once a game is started, the map is copied into your save file. So to fix a port, the map file is modified, and if one wants to fix a port in an ongoing game, then the save file must be modified. Generally, RT2 is installed under C:\Program Files or c:\Program Files (x86) in modern Windows, and this is a protected area, so one can view the port data without privileges, but to make fixes or edits then the shell should be 'Run as Administrator'. As noted in the help option, the program will accept wildcards, but a Microsoft bug causes the first match to be truncated to the first character. Multiple map files may also be specified individually on the same line. As an example if I wanted to look and all the Second Century scenarios in my install, and I type 'RT2_Port maps\#e*' (without the single quotes) then I would get a file error for maps\# then I would get data for all the Second Century maps other than #e01camp.mp2. As a workaround I would type 'RT2_Port maps\#e01camp.mp2 maps\#e*'. You still get the error which can be ignored, but now one gets all the data since the missing file was individually specified. (The above path presumes the RT2_Port.exe file was placed in the main RT2 directory.) Help will be printed if the program is run with -h or -? or any illegal option. I developed the tool for map files and it works with *.map and *.mp2 files. Game files seem to put the data in the same location and so it seems to also work with *.gm2 game files though I didn't test the game files extensively. Note any file names with spaces must be enclosed within double quotes, so the name is recognized as a single token. RT2_Port.zip includes just the RT2_Port.exe file which I recommend putting in the same directory as RT2_Plat.exe for simplicity, but it can go anywhere. Fixed RT2_Plat Maps.zip contains updated maps for a subset of the standard 36 scenarios with the only change being the ports, and a readme file. Note: From my recent experience, guests can download from the download area, but cannot download files within forum posts. If you then create an account to question or comment on this, you'll notice that you can download from forum posts once you have an account. Questions and comments welcome. RT2_Port.zip Fixed RT2_Plat Maps.zip
    1 point
×
×
  • Create New...