Author Topic: Wrong Map Version - Ubuntu  (Read 2432 times)

DaRkNeSS

  • Autococker
  • Posts: 622
Wrong Map Version - Ubuntu
« on: January 15, 2008, 12:11:15 AM »
I copied my map folder from XP over to my map folder on Ubuntu, but every server makes me redownload the map.  Why is that?

y00tz

  • Autococker
  • Posts: 2742
Re: Wrong Map Version - Ubuntu
« Reply #1 on: January 15, 2008, 12:15:44 AM »
I'd put my money on checksum difference from Windows to Linux. 

Zorchenhimer

  • Autococker
  • Posts: 2614
Re: Wrong Map Version - Ubuntu
« Reply #2 on: January 15, 2008, 12:50:56 AM »
I'd put my money on checksum difference from Windows to Linux. 

Didn't happen to me.  What version of Ubuntu are you running?

sk89q

  • Global Moderator
  • Autococker
  • Posts: 1049
Re: Wrong Map Version - Ubuntu
« Reply #3 on: January 15, 2008, 01:20:58 AM »
If you play with a map that has already been re-downloaded, does it try to download again?

And how did you copy the files?

DaRkNeSS

  • Autococker
  • Posts: 622
Re: Wrong Map Version - Ubuntu
« Reply #4 on: January 15, 2008, 01:26:23 AM »
Ubuntu 7.10

I put my maps on a flash drive before I switched to Ubuntu.  Then I put em in my maps folder once I had the linux build.

DaRkNeSS

  • Autococker
  • Posts: 622
Re: Wrong Map Version - Ubuntu
« Reply #5 on: January 16, 2008, 12:59:46 PM »
If I download the map from dplogin and then put it in my maps folder it works fine.  Why won't the maps that I copied on my flash drive work?

XtremeBain

  • Developer
  • Autococker
  • Posts: 1470
Re: Wrong Map Version - Ubuntu
« Reply #6 on: January 16, 2008, 01:32:39 PM »
Because the file got slightly changed either when being written to the flash drive, or while being read from the flash drive.

Unix and Windows bump heads when it comes to text files because of the way that each OS handles new lines.  This is only supposed to apply to text files, but if a map is being interpreted as a text file when it's really a binary file and the conversion is still being done somewhere then it would essentially corrupt the map.  I just copied my entire map folder from Linux->Windows no problems, and I've done the other direction a few times without problems.  I've never tried it with a flash drive, though.

sk89q

  • Global Moderator
  • Autococker
  • Posts: 1049
Re: Wrong Map Version - Ubuntu
« Reply #7 on: January 16, 2008, 04:34:01 PM »
A flash drive just uses a regular filesystem though? I don't understand why any flash drive would ever copy any file as text vs. binary, because who knows what you would destroy.

XtremeBain

  • Developer
  • Autococker
  • Posts: 1470
Re: Wrong Map Version - Ubuntu
« Reply #8 on: January 16, 2008, 04:44:54 PM »
A flash drive just uses a regular filesystem though? I don't understand why any flash drive would ever copy any file as text vs. binary, because who knows what you would destroy.

Not the flash drive, the OS.

sk89q

  • Global Moderator
  • Autococker
  • Posts: 1049
Re: Wrong Map Version - Ubuntu
« Reply #9 on: January 16, 2008, 05:09:24 PM »
I thought Windows (and all major OSes) copied files only as if they were binary. I know file open calls can have a binary flag, but doesn't this only affect the program opening the file?

jitspoe

  • Administrator
  • Autococker
  • Posts: 18802
Re: Wrong Map Version - Ubuntu
« Reply #10 on: January 16, 2008, 11:38:09 PM »
Map files are handled as binary on both systems, so that shouldn't be an issue.

DaRkNeSS

  • Autococker
  • Posts: 622
Re: Wrong Map Version - Ubuntu
« Reply #11 on: January 17, 2008, 12:18:01 AM »
So anything I can do to fix this error?  Or will I just need to redownload all the maps?

sk89q

  • Global Moderator
  • Autococker
  • Posts: 1049
Re: Wrong Map Version - Ubuntu
« Reply #12 on: January 17, 2008, 01:23:59 AM »
Zip maps, copy ZIP, unzip.