View Single Post
Old 04-21-2011, 11:54 PM   #15
overkiller
Minors (Double A)
 
Join Date: May 2007
Posts: 104
Carriage Return for Windows/Mac/Linux FIX

Hope the OP fixed his issue. If not, this is what I did to fix the problem:

I just recently converted OOTP11 from windows to Linux. I had the same strange player/league history display - the dates are all mashed together and not listing correctly. I used the flip file mentioned earlier and it worked perfectly. My league, team and player histories are all displaying correctly in linux, as they did in windows.

If anyone is having the same issue, do this:

Download the flip file for your operating system. Use the command line switch for the OPERATING SYSTEM YOU ARE USING NOW. In other words, I had a windows copy of my database. I installed OOTP11 for linux and now I use "unix". Therefore the command I used was flip.linux -u.

I went to my ootp11/data/saved_games/"name of league".lg/news folder and copied the txt folder (as a backup). Then I went into the txt folder. I had three folders here - league, players and teams. In each folder I ran the flip script, as such:

./"location of flip file"/flip.linux -u *

This converted all the txt files from windows (or whatever) to unix. I had to make the file executable first (chmod +x flip.linux).

Note that I ran the script with the -t flag first to see what file set was being used (mine said "MIXED").

I made a backup copy of the txt folder, just in case...

To open a command window in Mac OS, use this sequence:

Command + Space to open spotlight, and type "terminal".

Terminal is the same as a command line in windows, for this discussion at least.

I downloaded the file from https://ccrma.stanford.edu/~craig/utility/flip/

I selected the libc6 linux pre-compiled script. You should select whatever version you need. The source code is available as well, if for some reason you want to compile it.

These same instructions should work for a windows to Mac OS conversion as well. In fact this should be a sticky post, so anyone else with a similar issue can quickly reference this post and fix the problem with a simply forum search.

Hope this helps!!
overkiller is offline   Reply With Quote