Bay 12 Games Forum

Please login or register.

Login with username, password and session length
Advanced search  

Author Topic: Creating an EXE from the source?  (Read 1136 times)

The13thRonin

  • Bay Watcher
  • Profession: Handsome Rogue
    • View Profile
Creating an EXE from the source?
« on: May 02, 2010, 04:53:54 am »

I'm using Mircosoft Visual and I forgot how to make an .EXE, I modded a new weapon in and I can't get it into playable form.
Logged
I'm Digging Deeper... AGAIN... You Should Too!

Dig Deeper DIAMOND - 750+ items of new content including; new plants, new creatures, new metals, new woods, new gems, new stones, new crafts and much, much more.

Zeta

  • Bay Watcher
  • Insane guy with a fox civilization
    • View Profile
    • Kitsune Zeta's Domain
Re: Creating an EXE from the source?
« Reply #1 on: May 02, 2010, 05:31:57 am »

Get Visual C++ 2008 or 2010 (either works, and Express Edition will do in a pinch). if you have Visual C++ 2005 Express, it's completely useless, and if you have any other edition of Visual C++ 2005, it's only good after building (with debug symbols) using 2008 or 2010.

That said, open up the workspace in 2008 and hit F7 (if some bullshit error about output filename not matching expected filename, fix the project properties). move/copy the newly-built executable to your standard LCS directory and enjoy.
Logged

The13thRonin

  • Bay Watcher
  • Profession: Handsome Rogue
    • View Profile
Re: Creating an EXE from the source?
« Reply #2 on: May 02, 2010, 05:41:42 am »

I have 2008 express and when I hit F7 it gives me this:

1>------ Build started: Project: game, Configuration: Release Win32 ------
1>Compiling...
1>recruit.cpp
1>..\src\daily\recruit.cpp(192) : error C2196: case value '1' already used
1>pool.cpp
1>..\src\creature\pool.cpp(13) : error C2958: the left parenthesis '(' found at 'c:\documents and settings\michael\desktop\lcs new source mod\src\creature\pool.cpp(11)' was not matched correctly
1>..\src\creature\pool.cpp(13) : error C2228: left of '.subordinates' must have class/struct/union
1>        type is 'Creature *'
1>        did you intend to use '->' instead?
1>..\src\creature\pool.cpp(13) : error C2143: syntax error : missing ')' before '}'
1>..\src\creature\pool.cpp(13) : error C2143: syntax error : missing ';' before ')'
1>..\src\creature\pool.cpp(13) : error C2143: syntax error : missing ';' before '}'
1>..\src\creature\pool.cpp(17) : error C2039: 'iterator' : is not a member of 'pool'
1>        ..\src\creature\pool.cpp(6) : see declaration of 'pool'
1>..\src\creature\pool.cpp(17) : error C2514: 'std::iterator' : class has no constructors
1>        F:\Program Files\Microsoft Visual Studio 9.0\VC\include\xutility(688) : see declaration of 'std::iterator'
1>..\src\creature\pool.cpp(18) : error C2100: illegal indirection
1>..\src\creature\pool.cpp(18) : error C2039: 'second' : is not a member of 'std::iterator'
1>        F:\Program Files\Microsoft Visual Studio 9.0\VC\include\xutility(688) : see declaration of 'std::iterator'
1>..\src\creature\pool.cpp(18) : error C2227: left of '->hireid' must point to class/struct/union/generic type
1>..\src\creature\pool.cpp(18) : fatal error C1903: unable to recover from previous error(s); stopping compilation
1>fight.cpp
1>Generating Code...
1>Build log was saved at "file://c:\Documents and Settings\Robert\Desktop\LCS NEW SOURCE MOD\workspaces\Release\BuildLog.htm"
1>game - 12 error(s), 0 warning(s)
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========

It then gives me a bunch of strange looking files, none of which are exes :(.
Logged
I'm Digging Deeper... AGAIN... You Should Too!

Dig Deeper DIAMOND - 750+ items of new content including; new plants, new creatures, new metals, new woods, new gems, new stones, new crafts and much, much more.

The13thRonin

  • Bay Watcher
  • Profession: Handsome Rogue
    • View Profile
Re: Creating an EXE from the source?
« Reply #3 on: May 02, 2010, 05:57:33 am »

I think it was a corrupted download, re-trying now with new files.
Logged
I'm Digging Deeper... AGAIN... You Should Too!

Dig Deeper DIAMOND - 750+ items of new content including; new plants, new creatures, new metals, new woods, new gems, new stones, new crafts and much, much more.

Zeta

  • Bay Watcher
  • Insane guy with a fox civilization
    • View Profile
    • Kitsune Zeta's Domain
Re: Creating an EXE from the source?
« Reply #4 on: May 02, 2010, 10:12:16 am »

No, it looks (to me) that you forgot to balance your parentheses in pool.cpp (check line 13) and also attempted to have two different "case 1s" within the same switch (in recruit.cpp).
Logged

The13thRonin

  • Bay Watcher
  • Profession: Handsome Rogue
    • View Profile
Re: Creating an EXE from the source?
« Reply #5 on: May 02, 2010, 10:16:17 am »

No, it looks (to me) that you forgot to balance your parentheses in pool.cpp (check line 13) and also attempted to have two different "case 1s" within the same switch (in recruit.cpp).

I didn't touch the pool file, it was a corrupt download.
Logged
I'm Digging Deeper... AGAIN... You Should Too!

Dig Deeper DIAMOND - 750+ items of new content including; new plants, new creatures, new metals, new woods, new gems, new stones, new crafts and much, much more.

Innominate

  • Bay Watcher
    • View Profile
Re: Creating an EXE from the source?
« Reply #6 on: May 03, 2010, 12:22:06 am »

I don't know whether it was a corrupted download, but pool.cpp revision 417 appears to be totally wrong. Lines 9 to 13:
Code: [Select]
void dispersal_ok(Creature* cr)
{
    for(int i=0; i<
    cr.subordinates
}
In fact, I can't make heads or tails of the code. It appears to declare pool as a class and then use it as a vector (as it is defined in externs.h). I'm thinking that it is indeed corrupted, but that it is the svn itself that is corrupted. The entire pool class seems like it shouldn't be there.
Logged

Jonathan S. Fox

  • Bay Watcher
    • View Profile
    • http://www.jonathansfox.com/
Re: Creating an EXE from the source?
« Reply #7 on: May 03, 2010, 11:49:00 am »

pool.cpp is an incomplete file. It is not part of the game, and should not be compiling. Remove it from the project and try again.
Logged