Bay 12 Games Forum

Please login or register.

Login with username, password and session length
Advanced search  

Author Topic: I gave up after several days of research - HOW TO COMPILE ?  (Read 300 times)

RustKnight

  • Bay Watcher
    • View Profile
I gave up after several days of research - HOW TO COMPILE ?
« on: August 03, 2017, 04:08:29 am »

I've been looking through threads on how to compile the latest version of LCS - followed several instructions, but failed miserably.

Would somebody be so kind as to just give me a brief step by step method on how to manage to compile the latest source code of LCS ?
I am really shocked on how easy it is to program and mod, but how abysmal  the difficulty to properly compile the damn thing is.
I must say thou, while I understand basic coding and what libraries are, I really have no idea how to properly set up the compiler, so a step by step would be greatly appreciated!
Logged

IsaacG

  • Bay Watcher
  • Mad Engineer
    • View Profile
Re: I gave up after several days of research - HOW TO COMPILE ?
« Reply #1 on: August 05, 2017, 11:33:54 am »

I've been looking through threads on how to compile the latest version of LCS - followed several instructions, but failed miserably.

Would somebody be so kind as to just give me a brief step by step method on how to manage to compile the latest source code of LCS ?
I am really shocked on how easy it is to program and mod, but how abysmal  the difficulty to properly compile the damn thing is.
I must say thou, while I understand basic coding and what libraries are, I really have no idea how to properly set up the compiler, so a step by step would be greatly appreciated!

I am interested in helping.  Unfortunately Liberal Crime Squad is... badly programmed.  The bulk of it is cobbled together by amateur programmers who learned how through other badly programmed parts of Liberal Crime Squad.
Worse, the programming language C++ has its origins 45 years ago when C was invented, and it's designed to still use much of the architecture and syntax from back then.
When I first got it to compile, I was using Visual Studio 2012, which was not compatible with the Visual Studio 2010 project file, and so I needed direct step by step directions on the conversion.
Then Visual Studio 2015 was released, and I had to figure that one out on my own, since Microsoft doesn't really allow downloads of older versions.
Microsoft recently released Visual Studio 2017, and dropped support for VS 2015.  I'm still using VS 2015 and the last person to try was unable to get the project file to compile with VS 2017.

tldr; it will take dedication to get it to compile.
Logged
Procedural String Support (Custom NewGame and Custom Pickup Lines!)

Quote
Many people, meeting Aziraphale for the first time, formed three impressions: that he was English, that he was intelligent, and that he was gayer than a tree full of monkeys on nitrous oxide.

Akumetsu: it's pretty much Liberal Crime Squad in comic book form.

RustKnight

  • Bay Watcher
    • View Profile
Re: I gave up after several days of research - HOW TO COMPILE ?
« Reply #2 on: August 06, 2017, 03:38:04 pm »

Wow, didn't knew the things were so serious. Too bad thou - it's game design is quite unique.
Anyone feeling up for a total rewrite ?  ;)
Joke aside, I wonder how much time would that take - if one was to work 8 hours per day 5/7 per week.
Logged

Taberone

  • Bay Watcher
    • View Profile
Re: I gave up after several days of research - HOW TO COMPILE ?
« Reply #3 on: August 06, 2017, 11:19:50 pm »

Compiling is a serious pain that's not worth the stress (at least to me), honestly. I know because I used to struggle with that until I eventually gave up. There are versions of LCS that already come with an .exe so you don't have to compile. Unfortunately, if you want to make major modifications to LCS (Ex. anything other than editing the XML files in the Art folder), you're going to have to compile. IsaacG and Kamal-Sadek have more up to date versions of LCS. Use Jonathan S. Fox's if you like outdated versions of LCS.
Logged

RustKnight

  • Bay Watcher
    • View Profile
Re: I gave up after several days of research - HOW TO COMPILE ?
« Reply #4 on: August 07, 2017, 11:07:44 am »

But I don't get it really - why is all this so mystical ? If you got for a step by step instructions I guess you're bound to make it run, right? Right?
Anyway, I'll see what I can manage. Thanks for the info thou.
Logged

IsaacG

  • Bay Watcher
  • Mad Engineer
    • View Profile
Re: I gave up after several days of research - HOW TO COMPILE ?
« Reply #5 on: August 07, 2017, 12:13:22 pm »

But I don't get it really - why is all this so mystical ? If you got for a step by step instructions I guess you're bound to make it run, right? Right?
Anyway, I'll see what I can manage. Thanks for the info thou.
Much of the issue is that, well, there isn't anyone to give step by step instructions.  Fox hasn't been on in years, so just about the only people still here I know who can even get it to compile are myself, Kamel-Sadek, and SlatersQuest.  I have a Windows machine, Kamel-Sadek has Linux, and SlatersQuest has a Mac, meaning each of us has a different set of instructions out of the gate.
Unfortunately I am the least experienced of the three, and am yet to successfully get it to compile for anyone other than myself.
C++ has quite a few different compilers that can be used, and every one of them has different instructions.  To port TerraVitae to Windows using Visual Studio 2015 I have to change four of the source files, and three of them would not have to be changed if I had Visual Studio 2010.
I'll try to cover more specifics in private chat.
Logged
Procedural String Support (Custom NewGame and Custom Pickup Lines!)

Quote
Many people, meeting Aziraphale for the first time, formed three impressions: that he was English, that he was intelligent, and that he was gayer than a tree full of monkeys on nitrous oxide.

Akumetsu: it's pretty much Liberal Crime Squad in comic book form.

zaimoni

  • Bay Watcher
    • View Profile
Re: I gave up after several days of research - HOW TO COMPILE ?
« Reply #6 on: August 07, 2017, 05:39:20 pm »

I have gotten it to compile before; however my development environment is a tarball zoo of MingWin that I have to maintain a full backup of (as the *.exe installers for MingWin are Dead On Arrival on my systems).  Unfortunately, my ideas for new features were inconsistent with the game, so not worth releasing.

However, it's not that difficult.  Once you know you have a good C++ compiler install, you just add the files to the project until they're all there (no more missing includes warnings), then flush the errors out. ;)
Logged