Win32 Server Question

Speak about everything in regards to Crossfire.

Moderator: Board moderators

Post Reply
Guest

Win32 Server Question

Post by Guest »

I'm not sure if this is the right forum for this question or not, but...Can some one provide a quick explanation of where to find and how to download the source and .dsp files for the Win32 Server? I know how to use Visual Studio, but I've never even heard of CVS, and haven't found any of the documentation/explanations online to be terribly useful.
Leaf
Forum Aficionado
Posts: 1994
Joined: Tue Apr 29, 2003 5:55 pm
Location: Minnesota, USA
Contact:

Post by Leaf »

Source files for the servers is here:

http://sourceforge.net/project/showfile ... _id=233717

Select which file format you want to download the source code in (.tar.gz or tar.bz2), then select the closes/fastest download mirror. You will be prompted for all of this - follow the instructions as they appear.

* Note1: You'll need Winzip, ZipGenius, UltimateZip or equivalent to unzip the files.
* Note2: Make SURE that this tool will NOT convert Unix newline to Windows, else it will NOT work.
* Note3: This link is to the server source code that is ~6 months old

Not sure what dsp files are, so I can't answer that for you.

I'm not familiar with any CVS applications (or clients, utlities, etc.) under Windows, so I can't offer any suggestions for that either.

Basically CVS allows multiple people to to contribute code to a project with minimal fear of overwriting anothers work - if they do, you can easily roll back the code set to an earlier date. It also allows people to download ("checkout") the latest code and modify or use it with relative ease. CVS does have a learning curve to it because of it's command syntax is very specific.

Many people would agree that there are newer and better applications(?) that offer the same benefits of CVS but are significantly easier to use and manage - but this is a side tangent. ;)
Guest

Post by Guest »

UPDATE: I just found something, let me change the question slightly. How do I download this directory onto my computer?

http://cvs.sourceforge.net/viewcvs.py/c ... e/#dirlist
Leaf
Forum Aficionado
Posts: 1994
Joined: Tue Apr 29, 2003 5:55 pm
Location: Minnesota, USA
Contact:

Post by Leaf »

What you see there, is everything - cf and gtk clients, map editor, server, docs, arch files, map sets, etc.

To download that, click on the individual file links found on the sourceforge project page:

http://sourceforge.net/projects/crossfire/

Or, the nightly backup:

http://cvs.sourceforge.net/cvstarballs/ ... ot.tar.bz2
Casper
Senior member
Posts: 288
Joined: Fri Aug 06, 2004 7:17 pm
Location: UK/Ukraine

Post by Casper »

You seem to want to do a CVS fetch of the latest souce code.

1. Install CVS

I use the port of CVS that comes as part of Cygwin. Cygwin is a collection of UNIX tools for Windows. Download http://www.cygwin.com/setup.exe , run it, and follow instructions. When you get prompted about package selection make sure cvs under development is selected. proceed with the install.

2. Set it up for day-to-day use (optional)

If you prefer using windows cmd propmt to bash you should add cygwin\sbin, cygwin\bin, cygwin\usr\bin, and cygwin\usr\local\bin to your windows PATH. That is done by right clicking on my computer, properties, click on advanced tab, click on environment variables buton. You will see a window listing al the environment variables with a nice GUI to edit them.
For the changes to take effect you will probably need to restart Windows, or at least to log off and back on.

If you prefer bash to cmd it may be a god idea to do the opposite. \WINDOWS\System32 is a good directory to add to path. One way of adding things to your bash path is to modify your .bashrc file in your home directory. An example of a line you may want to add to the top of .bashrc file is
PATH=$PATH:/cygdrive/c/WINOWS/System32
For the changes to take effect you will probably need to restart bash, or at least to tell it to reload .bashrc.

3. Read the man pages (optional)

At command prompt enter man cvs. You will see a man page (manual page) for CVS. Reading through it will help you understand the sort of things CVS can do. In most cases it will not be much use teaching you how to use it though...

4. Enter the following magic lines into command prompt:

cvs -d:pserver:anonymous@cvs.sourceforge.net:/cvsroot/crossfire login

cvs -z3 -d:pserver:anonymous@cvs.sourceforge.net:/cvsroot/crossfire co modulename

Where modulename is a CVS module (like server will fetch the server, client will fetch the client, and bigworld-maps will fetch the maps to your working directory)

First line authenticates you to the server as anonimous, and the second line gets the files from the server.

5. Either try compling the files yourself, or if you fail seek help here or on the IRC channel, irc.freenode.net, channel #crossfire. It is not a very high trafic channel, so you may have to wait a little to be answered. There is a Windows readme distributed with the source code, that may contain useful information.

Good luck!
Ryo
Forum Fanatic
Posts: 752
Joined: Mon May 19, 2003 9:16 pm
Location: Paris, France

Post by Ryo »

Casper wrote:cvs -z3 -d:pserver:anonymous@cvs.sourceforge.net:/cvsroot/crossfire co modulename
Actually, the line must be:
cvs --lf -z3 -d:pserver:anonymous@cvs.sourceforge.net:/cvsroot/crossfire co modulename

If no --lf you'll have nice bugs:)

That said, I'd suggest using Tortoise CVS, much more simpler.

Grab it from http://www.tortoisecvs.org/ (website) and http://prdownloads.sourceforge.net/tort ... -1.8.1.exe (direct link)

Install (need to be administrator), reboot (prolly required).

Then open Windows Explorer, go to directory where you want to have the sources. Right click in the folder, you should see an option 'CVS checkout', select it.

(don't enter the 'quotes' ;p)

Enter ':pserver:anonymous@cvs.sourceforge.net:/cvsroot/crossfire' on the CVSROOT field (top), fill in the 'Module' line (with as Casper said 'server' for server, 'client' for client, and so on).

Click the 'Options' tab, CHECK 'Unix line endings' (bottom). This is REQUIRED :).

Then click 'ok'.

(did i say to make sure the 'Unix line endings' option is cheched ? ;p)

You should see many lines line :
U Changelog
U configure
and so on.

If no error message, you then got sources :)

Now the .dsp and .dsw files are in
* for client, gtk/win32/
* for server, server/make_win32/

To compile client, GTK development libraries are required.
For server plugins (not server itself), Python is required.

Don't hesitate to come to IRC to ask for help :)
Post Reply