Comments on: Interview with SMR for Mac OSX developers https://smrsimple.com/2012/12/interview-with-smr-for-mac-osx-developers/ Custom Maps for Sid Meier's Railroads! Fri, 22 Feb 2013 20:20:42 +0000 hourly 1 https://wordpress.org/?v=6.2.6 By: CalmDragon https://smrsimple.com/2012/12/interview-with-smr-for-mac-osx-developers/#comment-2969 Fri, 22 Feb 2013 20:20:42 +0000 http://smrsimple.com/?p=1276#comment-2969 Glad SanFran is working. Long Beach and Sosaria should too then since they were made the same way without custom content. May have to buy the Mac version just to play and enjoy the game again…

]]>
By: Jr_Mac_SMR https://smrsimple.com/2012/12/interview-with-smr-for-mac-osx-developers/#comment-2804 Wed, 02 Jan 2013 15:45:12 +0000 http://smrsimple.com/?p=1276#comment-2804 Here is the link http://pastebin.com/xnRsHGgW

Big thanks to Warll

JR

]]>
By: Warll https://smrsimple.com/2012/12/interview-with-smr-for-mac-osx-developers/#comment-2803 Wed, 02 Jan 2013 15:12:53 +0000 http://smrsimple.com/?p=1276#comment-2803 Since the comments are formatting out some of the unicode and xml may I suggest pastebin? http://pastebin.com/

You paste the text you want to show and then link to resulting pastebin.

]]>
By: Jr_Mac_SMR https://smrsimple.com/2012/12/interview-with-smr-for-mac-osx-developers/#comment-2802 Wed, 02 Jan 2013 15:05:00 +0000 http://smrsimple.com/?p=1276#comment-2802 Well, had the same problem but I think I fixed it.
There is a problem with the RRT_Industrie_UK_Lower.xml file
RRT_Industrie_UK_Lower I commented out
<!–
216
234
45.000656
0
TAG_CITY_NAME_LYDFORD
–>

<!–
129
-220
45.000656
0

TAG_CITY_NAME_ILFRACOMBE
–>

These 2 cities don’t exist in Names_UK_Lower and RRT_Cities_UK_Lower

After the change it loads without the save trick.

I also wander if it crashes under windows.
JR

]]>
By: princeofcups https://smrsimple.com/2012/12/interview-with-smr-for-mac-osx-developers/#comment-2800 Wed, 02 Jan 2013 05:44:23 +0000 http://smrsimple.com/?p=1276#comment-2800 Using the method above, I know have working: ChicagoToTheRockies, Japan3, Northern Germany, and Wisconsin. It did not work with UK_Lower; still crashes on load. So what’s different about UK_Lower…??

]]>
By: princeofcups https://smrsimple.com/2012/12/interview-with-smr-for-mac-osx-developers/#comment-2799 Tue, 01 Jan 2013 16:40:30 +0000 http://smrsimple.com/?p=1276#comment-2799 Using your textedit method open and save method on the xml files, I got Japan to load. Haven’t played it yet. Under OSX 10.7.5, I have file versioning enabled, so textedit had to “unlock” the file before saving. The files are still UTF-8 CRLF, so it’s confusing as to what is really going on here.

]]>
By: princeofcups https://smrsimple.com/2012/12/interview-with-smr-for-mac-osx-developers/#comment-2797 Tue, 01 Jan 2013 05:10:58 +0000 http://smrsimple.com/?p=1276#comment-2797 Of the non-crashing maps, two have the xml version 1.0 line, and the rest don’t. That doesn’t seem to make a difference. Every xml file that I’ve looked at (spot check), working or not working, is UTF-8, CRLF. I don’t know if the unzip built into OSX does any text conversion. It’s interesting you got some maps working that still crash for me. Is there any way to post/make available the xml files for those 5 maps? I wonder if your conversion did any xml cleanup when you weren’t looking.

]]>
By: TMiller https://smrsimple.com/2012/12/interview-with-smr-for-mac-osx-developers/#comment-2792 Mon, 31 Dec 2012 12:28:33 +0000 http://smrsimple.com/?p=1276#comment-2792 Jr_Mac_SMR, Interesting. The Terrain Editor on my PC saves xml files in ANSI. I carefully checked this in all 3 editors. This may be one of the differences between SMR operation on the PC (ANSI)vs the Mac (UTF-8). I opened the RRT_Scenario_User_mapname.xml with XML Notepad and resaved it. The encoding changed from ANSI to UTF-8. When I tried to run the map it crashed on startup. Changed it back to ANSI and it ran fine. Oddly, when I changed only the RRT_Trains_mapname.xml file to UTF-8, it worked OK in the game. Strange! The RRT_Scenario file is the first one the program has to read to set up the map and game conditions, so maybe it is key. Another thing – when opening an xml file and saving it without changes, different editors behave differently. In Notepad using “save as”, it defaults to saving the program with the same encoding as the original. You have to instruct it to change encoding. While XML Notepad automatically changes the encoding to UTF-8. Maybe “TestEdit” works the same way. Another thing I noticed is that my Terrain Editor places no top line in the file indicating the encoding, but when viewed with “XML Edit” it shows ANSI encoding. I remember this encoding issue being a big problem when I first started making my own maps, especially due to the different behavior of the xml editors. Why don’t you look at the encoding on the RRT_Scenario_User_mapname.xml file for one of the maps that will not run on your Mac. See if it is ANSI. If so, change it to UTF-8 and see if it runs. You may have to change all the xml files to UTF-8 or maybe not. Who Knows!! Very frustrating. Good Luck.

]]>
By: Jr_Mac_SMR https://smrsimple.com/2012/12/interview-with-smr-for-mac-osx-developers/#comment-2789 Sun, 30 Dec 2012 22:20:16 +0000 http://smrsimple.com/?p=1276#comment-2789 Well I did not work for me either

JR

]]>
By: Jr_Mac_SMR https://smrsimple.com/2012/12/interview-with-smr-for-mac-osx-developers/#comment-2788 Sun, 30 Dec 2012 22:19:34 +0000 http://smrsimple.com/?p=1276#comment-2788 TMiller, Did have a look at 3 editors, the encoding that the mac uses for new documents is UTF-8. I tried to compare 2 different files previously and on 1 occasion it gave me a discrepancy CRLF (windows) and UTF-8 while the mac uses LF. The preferences of TextEdit for HTML documents is encoding UTF-8 on save. The other editors are also referring to UTF-8.

Another thing I discovered that files saved by the Terraineditor are saved in UTF-8 format. I added the code below
“”””

JR

]]>