Re: building from source..?
I imagine its your cvs tool. I just use the Cygwin command line one.
CVS stores files in a certain format, but you can configure it to convert EOL chars as it extracts.
The MSVC editor does a nice job of screwing up EOL chars too, so I get a mixmatch sometimes.
I would guess that you have extra chars after the '\' in that file. The slash is a continuation character, which means to glue the next line to the current line as if they were all on one line. However, if there are *any* chars AFTER the slash, then it is not a continuation char, and the compiler will just treat that as the end of the line.
Make sure there are no chars after every single continuation character.
You can browse the source here: http://seq.cvs.sourceforge.net/seq/myseq/server/ .
There are a few old files left around but they are not used in the build. However they are around in case someone wanted to build the old original server, which doesn't even work anymore. As I have stated numerous times in other posts, all my changes are checked in. No need to get all nervous on me, I don't play that way nor do I like it when others play that way. The code is checked in *before* I even make the release, let alone push it out to SF for distribution.
You also want to make sure you pick a correct release tag. The current HEAD is equal to 1.20, but if you wanted to look at the way the code looked for 1.19.1, you can select that tag instead.
Re: building from source..?
Here is my compiler output by placing one single space after the first continuation character in the code you have shown:
Code:
Compiling...
Spawn.cpp
c:\seq.work\myseq\server\Common.h(45) : error C2447: '{' : missing function header (old-style formal list?)
NetworkServer.cpp
c:\seq.work\myseq\server\Common.h(45) : error C2447: '{' : missing function header (old-style formal list?)
MySEQ.server.cpp
c:\seq.work\myseq\server\Common.h(45) : error C2447: '{' : missing function header (old-style formal list?)
.\MySEQ.server.cpp(34) : error C2017: illegal escape sequence
Here is the current compiler output that I see:
Code:
------ Build started: Project: MySEQ.server, Configuration: Release Win32 ------
Compiling...
stdafx.cpp
Compiling...
Spawn.cpp
NetworkServer.cpp
MySEQ.server.cpp
MemReader.cpp
Item.cpp
IniReader.cpp
Debugger.cpp
Linking...
Generating code
Finished generating code
Embedding manifest...
Build log was saved at "file://c:\seq.work\myseq\server\Release\BuildLog.htm"
MySEQ.server - 0 error(s), 0 warning(s)
========== Build: 1 succeeded, 0 failed, 0 up-to-date, 0 skipped =========
If you are having trouble with EOL chars, you can use the Cygwin tool, dos2unix. Just cd into the myseq/server folder and run 'dos2unix *.cpp *.h"'.
Re: building from source..?
Thank you, hit it right on the spot.
Sorry for posting in wrong forum.
Deleted old files and set my cvs tool to grab the correct HEAD and saving it it unix right of the bat did the trick. (overlooked that tab when first grabbing it ;( )
-------
Bobster
-- aspiring wannabe --
Re: building from source..?
I just realized I could highlight your pasted code with my mouse and see the extra spaces. If you do that above, you had one extra space after the first slash, and two after the third slash. The other slashes looked ok.
Re: building from source..?
The code used in orig post comes from the seq cvs rep. I copy/pasted it into the post, then formatted it manually to appear like original. When I dl'd it, and converted files to Win /clr files, the blank spaces don't appear, and the code is unusable. . (Tortoise cvs grabber)
Oh, after I got the whole eol thing sorted out, I edited the client to not use radar/MQconsole, and slimmed down the spawn list. Went from 214k .exe. to 184k .exe, but mem use only went down from 21k to 19k.
Not alot, I know, and the spawn list is buggy. (invis = type(player/npc), type = description, runspeed=visible status (hidden/visible), but shows only the stuff I need atm.
I'll try to do some work on the spawn list view/ timer view and see if I can get the list properties to be selectable.
being able to build it myself hepled alot =)
________________
Bobster
-- Aspiring wannabe --
Re: building from source..?
If you want to work on the client, I suggest pulling and updating the 1.20 tag. 1.20 is totally different from 1.19. If you want to continue on the 1.19 line instead, I cannot stop you, but I don't plan on doing anymore work down the 1.19 line.