Bay 12 Games Forum

Please login or register.

Login with username, password and session length
Advanced search  

Author Topic: Help PLEASE! UNIX LINE ENDINGS  (Read 1831 times)

Cioffi888

  • Escaped Lunatic
  • Liberty or Death!
    • View Profile
Help PLEASE! UNIX LINE ENDINGS
« on: December 13, 2012, 08:09:18 pm »

Alright, first let me explain, I have a mac os x, I downloaded wine console and i thought i could finally play liberal crime squad. But here's the catch, I can only launch version 3.19, but I want one of the newer versions, like 4.04, but when I try to launch the newer ones it says Attempting to open filename: sitemaps.txt Failed to load sitemaps.txt!Reverting
 to old map mode.FAILED to load vehicles.xml!FAILED to load clips.xml!FAILED to
load weapons.xml!FAILED to load armors.xml!FAILED to load loot.xml!,
 I have attempted to look for a solution for this EVERYWHERE!!!! All I know is i have to convert the files to unix line endings, BUT i have no idea what they are, I don't know where i'm supposed to place them. PLEASE will anyone be an Elite Liberal and tell me a solution!?!?!
Logged

Soadreqm

  • Bay Watcher
  • I'm okay with this. I'm okay with a lot of things.
    • View Profile
Re: Help PLEASE! UNIX LINE ENDINGS
« Reply #1 on: January 06, 2013, 05:38:44 am »

A quick google search turned up flip, which is apparently a command-line utility for dealing with line endings. Seems simple enough to use. A sufficiently advanced text editor should also be able to do it for you.
Logged

Cioffi888

  • Escaped Lunatic
  • Liberty or Death!
    • View Profile
Re: Help PLEASE! UNIX LINE ENDINGS
« Reply #2 on: January 10, 2013, 07:56:10 pm »

\n (Line Feed) for Unix
\r (Carriage Return) for Mac
\r\n (Carriage Return, Line Feed) for Windows
Also, I can send you the game if you want. 4.04
Also, http://www.bay12forums.com/smf/index.php?topic=77389.0
Yeah, I think its best if you send me a copy of the game with the mac endings, I ain't good at all this programming stuff...Nor do i think i have that much time for it,
« Last Edit: May 25, 2015, 05:50:57 pm by Cioffi888 »
Logged

Jonathan S. Fox

  • Bay Watcher
    • View Profile
    • http://www.jonathansfox.com/
Re: Help PLEASE! UNIX LINE ENDINGS
« Reply #3 on: January 10, 2013, 07:58:45 pm »

Is there a way I can make the game NOT CARE about this sort of thing? It can't be that hard to read files with knowledge that the line endings can be in one of three formats. It's such a pointless issue to have a bunch of files needing to have line endings converted whenever running on a different OS.
Logged

Carlos Gustavos

  • Bay Watcher
    • View Profile
Re: Help PLEASE! UNIX LINE ENDINGS
« Reply #4 on: January 11, 2013, 12:30:25 pm »

All I know is i have to convert the files to unix line endings,
I have to ask, how do you know you need to convert the line endings?
Logged

Cioffi888

  • Escaped Lunatic
  • Liberty or Death!
    • View Profile
Re: Help PLEASE! UNIX LINE ENDINGS
« Reply #5 on: January 11, 2013, 03:21:51 pm »

All I know is i have to convert the files to unix line endings,
I have to ask, how do you know you need to convert the line endings?
Because in the past, i've searched in the forums about the problem with the files failing to load and i read that some people said that mac users have to change the line endings to unix line endings, but they never explained how to, and to add on i'm not good with this programming stuff.
Logged

Carlos Gustavos

  • Bay Watcher
    • View Profile
Re: Help PLEASE! UNIX LINE ENDINGS
« Reply #6 on: January 12, 2013, 03:30:18 pm »

I don't have a mac and have barely used one, but I've checked the files and only loot.xml, masks.xml and pawnshop.xml have windows-style line endings. The rest of the xml files and sitemaps.txt have unix-style line endings.

From what directory are you trying to run LCS? Or what do you type to run the game? I'm assuming you have to type something when using wine console. I haven't used it myself.
Logged

Cioffi888

  • Escaped Lunatic
  • Liberty or Death!
    • View Profile
Re: Help PLEASE! UNIX LINE ENDINGS
« Reply #7 on: January 12, 2013, 05:16:28 pm »

I don't have a mac and have barely used one, but I've checked the files and only loot.xml, masks.xml and pawnshop.xml have windows-style line endings. The rest of the xml files and sitemaps.txt have unix-style line endings.

From what directory are you trying to run LCS? Or what do you type to run the game? I'm assuming you have to type something when using wine console. I haven't used it myself.
I type into terminal wineconsole /Users//Downloads/lcs_win32_4.04.0/crimesquad.exe, it opens then with x11
« Last Edit: May 25, 2015, 05:51:51 pm by Cioffi888 »
Logged

Carlos Gustavos

  • Bay Watcher
    • View Profile
Re: Help PLEASE! UNIX LINE ENDINGS
« Reply #8 on: January 12, 2013, 07:24:29 pm »

Try typing first: cd /Users/dylancioffi/Downloads/lcs_win32_4.04.0/
then: wineconsole crimesquad.exe

ie run lcs from within its own directory.
Logged

Cioffi888

  • Escaped Lunatic
  • Liberty or Death!
    • View Profile
Re: Help PLEASE! UNIX LINE ENDINGS
« Reply #9 on: January 13, 2013, 12:16:16 pm »

Try typing first: cd /Users//Downloads/lcs_win32_4.04.0/
then: wineconsole crimesquad.exe

ie run lcs from within its own directory.
Holy jumping liberals IT WORKED, thanks a million dude
« Last Edit: May 25, 2015, 05:52:05 pm by Cioffi888 »
Logged