Bay 12 Games Forum

Please login or register.

Login with username, password and session length
Advanced search  
Pages: 1 [2] 3 4

Author Topic: LCS on a mac?  (Read 10911 times)

terroroinker

  • Bay Watcher
    • View Profile
Re: LCS on a mac?
« Reply #15 on: January 06, 2012, 02:31:05 pm »

I just compiled lcs using this from the lcs 4.04 download post: svn co https://lcsgame.svn.sourceforge.net/svnroot/lcsgame/trunk

Everything is fine and so on, but my title screen says  "v3.11.3svn Maintained by the Open Source Community" instead of 4.04. when I start the win version.

Did I get the wrong revision??? :o
Logged

Jonathan S. Fox

  • Bay Watcher
    • View Profile
    • http://www.jonathansfox.com/
Re: LCS on a mac?
« Reply #16 on: January 06, 2012, 03:22:02 pm »

I just compiled lcs using this from the lcs 4.04 download post: svn co https://lcsgame.svn.sourceforge.net/svnroot/lcsgame/trunk

Everything is fine and so on, but my title screen says  "v3.11.3svn Maintained by the Open Source Community" instead of 4.04. when I start the win version.

Did I get the wrong revision??? :o

That is bizarre and runs past the boundaries of my troubleshooting knowledge. The short answer is yes, but I don't know why. There are 584 revisions, and that message only showed up between revision 97 and revision 112. That dates the code as 4 to 5 years old.

Another possibility is that you somehow got the head revision of the long-abandoned "compatability_old" branch, which was created a couple years ago and contained code from the same era.
Logged

Stargrasper

  • Bay Watcher
    • View Profile
Re: LCS on a mac?
« Reply #17 on: January 06, 2012, 04:20:51 pm »

I just compiled lcs using this from the lcs 4.04 download post: svn co https://lcsgame.svn.sourceforge.net/svnroot/lcsgame/trunk

Everything is fine and so on, but my title screen says  "v3.11.3svn Maintained by the Open Source Community" instead of 4.04. when I start the win version.

Did I get the wrong revision??? :o

I think I see the problem, assuming that's exactly what you entered in.

You entered:
Code: [Select]
svn co https://lcsgame.svn.sourceforge.net/svnroot/lcsgame/trunkSourceforge says you should have entered:
Code: [Select]
svn co https://lcsgame.svn.sourceforge.net/svnroot/lcsgame lcsgame
I don't know why grabbing trunk directly wouldn't work, but I know I've never seen an Subversion checkout that did it, so there may well be a problem with trying.  Given how things tend to work, when given the option between a terminal command from Windows and one from Linux, use the Linux one.  Apple OSX and Linux are both derived from Unix and consequently, use the same terminal commands.
Logged

Jonathan S. Fox

  • Bay Watcher
    • View Profile
    • http://www.jonathansfox.com/
Re: LCS on a mac?
« Reply #18 on: January 06, 2012, 07:41:40 pm »

I just compiled lcs using this from the lcs 4.04 download post: svn co https://lcsgame.svn.sourceforge.net/svnroot/lcsgame/trunk

Everything is fine and so on, but my title screen says  "v3.11.3svn Maintained by the Open Source Community" instead of 4.04. when I start the win version.

Did I get the wrong revision??? :o

I think I see the problem, assuming that's exactly what you entered in.

You entered:
Code: [Select]
svn co https://lcsgame.svn.sourceforge.net/svnroot/lcsgame/trunkSourceforge says you should have entered:
Code: [Select]
svn co https://lcsgame.svn.sourceforge.net/svnroot/lcsgame lcsgame
I don't know why grabbing trunk directly wouldn't work, but I know I've never seen an Subversion checkout that did it, so there may well be a problem with trying.  Given how things tend to work, when given the option between a terminal command from Windows and one from Linux, use the Linux one.  Apple OSX and Linux are both derived from Unix and consequently, use the same terminal commands.

I'm certain that's not the problem, because performing a checkout on a subdirectory is a standard feature of SVN and works regardless of your OS. Sourceforge only says to grab the root because their generic instructions make no assumptions about our directory structure. See here under the "read access" heading for an example where they show a checkout command on the trunk of a project, using the official SVN client. I would suggest trying it so you know it works, rather than taking my word for it though; it's a handy feature.

This is especially true for very large projects. A studio game project can easily have hundreds of megabytes in the source code and gigabytes upon gigabytes of uncompressed art assets, making it very important to download only what you actually need. Trying to download multiple tags on a fresh checkout is just masochistic in game projects with that kind of art asset load. I've made that mistake before on moderately sized game projects that still had huge amounts of data. It hurts.

For LCS, the entire repository is under 100 megabytes, so it's pretty harmless to grab the root. Feel free to try it, it should work either way. Just make sure you compile from the trunk rather than in one of the branches or tags, or you'll get the wrong version again.
Logged

Stargrasper

  • Bay Watcher
    • View Profile
Re: LCS on a mac?
« Reply #19 on: January 06, 2012, 07:56:02 pm »

You're right, I've never tried it.  In the 4.04 thread, the svn checkout instructed under Linux is
Code: [Select]
svn co https://lcsgame.svn.sourceforge.net/svnroot/lcsgame/trunk lcsgameand under Windows is
Code: [Select]
svn co https://lcsgame.svn.sourceforge.net/svnroot/lcsgame/trunkOkay, the Windows one just gives the URL, but that's the command the client is all but surely running.

I noted they were different and never checked why they were different.  I assumed it was an OS dependent issue.  I'll switch to the Windows partition and try it, though.  I don't use Subversion for anything but checkout of code because half the stuff on Linux only comes as source code.  I don't claim to know much about it.

So, sorry I'm wrong.  Took my best guess.  Don't shoot me.

As for the problem, I'm not sure then.  Version control software is a class I haven't taken yet; I'm not sure why Subversion would have done that.  Does a new checkout give the correct data?
Logged

Jonathan S. Fox

  • Bay Watcher
    • View Profile
    • http://www.jonathansfox.com/
Re: LCS on a mac?
« Reply #20 on: January 06, 2012, 08:21:01 pm »

No worries Stargrazer, you didn't come across at all arrogant or overconfident with your post; you acknowledged directly that you were speculating based on not having seen it before. Personally, I think better of you for trying to help and being mistaken than I mind that you were wrong about it. So don't worry. The firing squad will be called off.  :P

The reason for the URL alone instead of the "svn co" and "lcsgame" is that a) the client is already open, b) you already selected checkout, and c) the directory you want to checkout to (lcsgame) is implicit because the client, TortoiseSVN, is integrated with the Windows shell, so you're right-clicking a folder you want to target before even getting to the URL prompt. That's a platform thing in a sense, but only to the extent that it's a client difference -- I suspect RabbitVCS for Ubuntu probably does the same thing.
Logged

DrKillPatient

  • Bay Watcher
  • The yak falls infinitely
    • View Profile
Re: LCS on a mac?
« Reply #21 on: January 07, 2012, 12:09:49 am »

If compiling a Mac version proves unsuccessful, you could run the Windows exe through the WINE Windows emulator on either Mac or GNU/Linux (I don't know if it has the same problem as Mac). Just install wine (guide here), then install the Windows version LCS somewhere, and run these two commands:

Code: [Select]
cd /path/to/lcs
wineconsole crimesquad.exe
(you can put them in a bash script too, if you want a shortcut in the Applications folder or somesuch)
Logged
"Frankly, if you're hanging out with people who tell you to use v.begin() instead of &v[0], you need to rethink your social circle."
    Scott Meyers, Effective STL

I've written bash scripts to make using DF easier under Linux!

terroroinker

  • Bay Watcher
    • View Profile
Re: LCS on a mac?
« Reply #22 on: January 07, 2012, 05:15:49 am »

If compiling a Mac version proves unsuccessful, you could run the Windows exe through the WINE.

Compiling is no problem, I even made an app for LCS starting the terminal window with most of the required settings. It is just a matter of which lcs version the app is running now  :)
Logged

terroroinker

  • Bay Watcher
    • View Profile
Re: LCS on a mac?
« Reply #23 on: January 07, 2012, 08:26:36 am »

# Checkout from svn.
svn co https://lcsgame.svn.sourceforge.net/svnroot/lcsgame/trunk lcsgame
# Enter directory.
cd lcsgame
# Some configuration.
./bootstrap
# More configuration. Install whatever it says you're missing.
./configure
# Compile.
make
# Run game. The binary is in the src directory.
src/crimequad

Did exactly this again and SVN tells me that I got revision 584 after checkout. However, after compiling it still shows 3.11.3.

Edit: I also tried with http://sourceforge.net/projects/lcsgame/ which is not containing any old branches, but I encountered the same problem. Could it be due to a very old install of lcs I did two years ago?  ???
« Last Edit: January 07, 2012, 12:23:43 pm by terroroinker »
Logged

Karlito

  • Bay Watcher
    • View Profile
Re: LCS on a mac?
« Reply #24 on: January 07, 2012, 01:44:31 pm »

Hey guys, I tried compiling LCS from the trunk on the mac at my parents house and I have the exact same problem as terroroinker, so it's not just his system. Can someone else grab revision 584 and check if it's actually the code it's supposed to be?
Logged
This sentence contains exactly threee erors.

Carlos Gustavos

  • Bay Watcher
    • View Profile
Re: LCS on a mac?
« Reply #25 on: January 07, 2012, 02:15:56 pm »

I checked and it says the wrong version for me too.

Looking through the files I have found it is because the version is set as 3.11.3svn in configure.ac. When configure is run, PACKAGE_VERSION gets defined as 3.11.3svn in the makefile. Then when you compile, PACKAGE_VERSION is defined so it does not get defined as 4.04.0 by includes.h because there's a check for if PACKAGE_VERSION is already defined.

You can now update and recompile to fix this. Or configure and then compile but it seems to me that make notices the change in configure.ac and automatically runs configure again.


In case it's not clear above, it was just a little bit of text that hadn't been updated. You do have the right version.
« Last Edit: January 07, 2012, 02:22:02 pm by Carlos Gustavos »
Logged

terroroinker

  • Bay Watcher
    • View Profile
Re: LCS on a mac?
« Reply #26 on: January 07, 2012, 03:21:17 pm »

Yeah
In case it's not clear above, it was just a little bit of text that hadn't been updated. You do have the right version.

I was thinking that too after considering the different new game options  :)

Great, I will upload my lcs app later (after some extensive testing)
Logged

Jonathan S. Fox

  • Bay Watcher
    • View Profile
    • http://www.jonathansfox.com/
Re: LCS on a mac?
« Reply #27 on: January 07, 2012, 03:37:35 pm »

You can now update and recompile to fix this. Or configure and then compile but it seems to me that make notices the change in configure.ac and automatically runs configure again.

Excellent, thanks for fixing that.
Logged

terroroinker

  • Bay Watcher
    • View Profile
Re: LCS on a mac?
« Reply #28 on: January 07, 2012, 07:11:47 pm »

Great, I will upload my lcs app later (after some extensive testing)

LCS_4.04.app

uncheck "use bold text" in terminal settings for best experience
« Last Edit: January 07, 2012, 07:18:39 pm by terroroinker »
Logged

lerugray

  • Bay Watcher
    • View Profile
Re: LCS on a mac?
« Reply #29 on: January 25, 2012, 07:51:05 am »

Great, I will upload my lcs app later (after some extensive testing)

LCS_4.04.app

uncheck "use bold text" in terminal settings for best experience

Thank you for making this! im thrilled i can finally play this game. i cant figure out how to not make the text bold as when i go into settings, all of the options are blacked out. would love a more old school terminal look, either way, that doesn't really matter, this game is amazing.
« Last Edit: January 26, 2012, 07:40:07 am by lerugray »
Logged
Pages: 1 [2] 3 4