September 03, 2010, 01:07:55 pm *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
News:
   Home   Help Login Register  
Pages: [1]   Go Down
  Print  
Author Topic: Using Tortoise SVN to check out the FS2_Open code  (Read 11029 times)
0 Members and 1 Guest are viewing this topic.
karajorma
Robin Hood
Administrator
214

Offline Offline

Posts: 23,584



WWW
« on: March 21, 2008, 07:23:06 am »

    Shamelessly stolen from the old "How to use TortoiseCVS" post Big grin

    Here's how you set things up

  • Go to the Tortoise SVN homepage and download the latest version
  • Install it. You'll have to restart your PC afterwards
  • Make a new folder on your HD where you'd like to install the code. You'll need a fair bit of space for the code + the intermediate files created when building it.
  • Press right mouse in the new folder and choose SVN Checkout from the list.
  • An new window will open up. Cut and paste this into the URL of repository box svn://svn.icculus.org/fs2open/trunk/fs2_open
  • By default the HEAD revision will be selected. You probably don't want to change this. Your screen should now look like this
  • Press OK to begin downloading from the repository. The process shouldn't take long if you have a reasonably fast connection.

Logged

Karajorma's Freespace FAQ. It's almost like asking me yourself.

[ Diaspora ] - [ Seeds Of Rebellion ] - [ Mind Games ]
Goober5000
47th Red Shirts, NTF
Administrator
213

Offline Offline

Posts: 15,306



WWW
« Reply #1 on: March 21, 2008, 08:41:38 pm »

We should probably start referring to it as "trunk" now, to distinguish it from "HEAD".  New source control, so new terminology.  Also, we want to prevent people from getting confused and saying, "Wait, didn't you say to never ever ever check out HEAD?"
Logged

Fortunes of War | Ross 128 | Deus Ex Machina / Interlude | Terran-Vasudan War Project | FreeSpace Port | Silent Threat: Reborn | Scroll of Atankharzim

Report SCP bugs with Mantis

"How I wish you could put things like that on your CV though.  'Accidentally fooled Computer Press into thinking Freespace 3 was going to be on the XBox.'  That's very nearly a 'Goob wins the Internet' moment, at the very least a high end-of-level boss." -- Flipside

"I view Python for game usage about the same as going fishing with a stick of dynamite.  It will do the job but it's big, noisy, you'll probably get soaking wet and you've still got to get the damn fish out of the water." -- Taylor
karajorma
Robin Hood
Administrator
214

Offline Offline

Posts: 23,584



WWW
« Reply #2 on: March 22, 2008, 02:04:48 am »

True but the program refers to it as HEAD so at least here that's what I have to call it. Big grin Besides, what used to be called HEAD is currently also in the trunk folder so that's likely to cause some confusion too.
Logged

Karajorma's Freespace FAQ. It's almost like asking me yourself.

[ Diaspora ] - [ Seeds Of Rebellion ] - [ Mind Games ]
ARSPR
Preys On Mantis
29

Offline Offline

Posts: 770


« Reply #3 on: March 22, 2008, 05:28:09 am »

GREAT 

I've updated Wiki but please:
  • Fix the stupid things that I've probably written.
  • Someone has to add the images. I can't do it.
  • Someone has to update the Unix help.
  • When you have finished setting up the repository, I think you should explain how to get:
    • The original FS2 and FRED2 code.
    • The different available unstable and stable branches (with whichever new names they have)
Logged

IF YOU HAVE TROUBLES WITH FS2:
  • Please, please, please, READ and UNDERSTAND the sticky threads in FreeSpace & FreeSpace Open Support board.
    A lot of people are willing to help you, but, as anyone can understand, seeing the very same "issues" repeated again and again can become quite depressing. Please, spend a bit of time trying to solve the issue by yourself.
    (Lobo deserves a monument).
  • Then, if you aren't still able to solve your issue, feel free to ask for help in that same board.
    FYI, most of the troubles are caused by wrong mod installations which lead to either missing data or undesired cross-effects between them. Always follow the mod installation instructions and keep a clean FS2 installation as explained in the sticky threads. Two additional links about how the game handles game data:
  • If you think that you've discovered a bug, mantis it.
    Provide as much info as you can, and try to narrow it down. A lonely "FS2 doesn't work" is not a good report.

Whoever Hanlon was: Never attribute to malice that which can be adequately explained by stupidity.
Albert Einstein: Two things are infinite: the universe and human stupidity; and I'm not sure about the the universe.

Dell Dimension 9200 - Vista 32-bit Ultimate
Core 2 Quad Q6600 @2.4GHz - RAM 2 GB DDR2
nvidia 8800 GTX - Integrated Sigmatel Audio
Goober5000
47th Red Shirts, NTF
Administrator
213

Offline Offline

Posts: 15,306



WWW
« Reply #4 on: March 22, 2008, 11:05:53 am »

True but the program refers to it as HEAD so at least here that's what I have to call it. Big grin Besides, what used to be called HEAD is currently also in the trunk folder so that's likely to cause some confusion too.
Actually, HEAD is the very most recent revision, regardless of branch.  I think I confused some terms when I set up the original 3.6.9 arrangement.
Logged

Fortunes of War | Ross 128 | Deus Ex Machina / Interlude | Terran-Vasudan War Project | FreeSpace Port | Silent Threat: Reborn | Scroll of Atankharzim

Report SCP bugs with Mantis

"How I wish you could put things like that on your CV though.  'Accidentally fooled Computer Press into thinking Freespace 3 was going to be on the XBox.'  That's very nearly a 'Goob wins the Internet' moment, at the very least a high end-of-level boss." -- Flipside

"I view Python for game usage about the same as going fishing with a stick of dynamite.  It will do the job but it's big, noisy, you'll probably get soaking wet and you've still got to get the damn fish out of the water." -- Taylor
Kopachris
27

Offline Offline

Posts: 156


« Reply #5 on: March 29, 2008, 11:36:54 pm »

What differences are there between svc and ftp, and what are the advantages of using one over the other?
Logged

... ich bin in einem dusenjet ins jahr 53 vor chr ... ich lande im antiken Rom ... einige gladiatoren spielen scrabble ... ich rieche PIZZA ...
PSPO
2117
karajorma
Robin Hood
Administrator
214

Offline Offline

Posts: 23,584



WWW
« Reply #6 on: March 30, 2008, 01:18:09 pm »

If I've been working on a piece of code and another programmer also has SVN will merge both pieces of code together and (generally) allow me to update my code with everyone else's fairly painlessly.

Now imagine trying to do that from an FTP? First I'd have to figure out which pieces of code are new, then I'd have to manually compare them against my own files if I'd altered the same one, then I'd have to merge in any changes by hand.


That's not the only difference but that one alone makes it worth it. FTP is great if you have files that only one person changes. Otherwise you need some kind of versioning to make sure new stuff isn't overwritten by old stuff.
Logged

Karajorma's Freespace FAQ. It's almost like asking me yourself.

[ Diaspora ] - [ Seeds Of Rebellion ] - [ Mind Games ]
Kopachris
27

Offline Offline

Posts: 156


« Reply #7 on: March 30, 2008, 01:43:45 pm »

If I've been working on a piece of code and another programmer also has SVN will merge both pieces of code together and (generally) allow me to update my code with everyone else's fairly painlessly.

Now imagine trying to do that from an FTP? First I'd have to figure out which pieces of code are new, then I'd have to manually compare them against my own files if I'd altered the same one, then I'd have to merge in any changes by hand.


That's not the only difference but that one alone makes it worth it. FTP is great if you have files that only one person changes. Otherwise you need some kind of versioning to make sure new stuff isn't overwritten by old stuff.

Thank you.
Logged

... ich bin in einem dusenjet ins jahr 53 vor chr ... ich lande im antiken Rom ... einige gladiatoren spielen scrabble ... ich rieche PIZZA ...
PSPO
2117
colecampbell666
I See Dead Pictures
212

Offline Offline

Posts: 4,728

Out for summer.


WWW
« Reply #8 on: April 27, 2008, 12:49:42 pm »

Now how do I use the code I now have. Do I need a compiler or something?
Logged

Shade
210

Offline Offline

Posts: 1,969


« Reply #9 on: April 27, 2008, 12:57:05 pm »

Yes and no. You need a compiler to make you own builds, but to simply fiddle with the code, all you really need is a text editor and some understanding of c/c++. Using an IDE or a programming-oriented editor (like emacs), when messing with the code makes things much easier though, so getting something like Visual Studio Express set up on your system will be worth the effort if you intend to get serious about it.

And once you've made some changes and want to post a patch, winmerge is a good choice for making it.
Logged

Report FS_Open bugs with Mantis  |  Find the latest FS_Open builds Here  |  Interested in FRED? Check out the Wiki's FRED Portal | Diaspora: Website / Forums
"Oooooooooooooooooooooooooooooooooooooooh ****ing great. 2200 references to entry->index and no idea which is the one that ****ed up" - Karajorma
"We are all agreed that your theory is crazy. The question that divides us is whether it is crazy enough to have a chance of being correct." - Niels Bohr
<Cobra|> You play this mission too intelligently.
colecampbell666
I See Dead Pictures
212

Offline Offline

Posts: 4,728

Out for summer.


WWW
« Reply #10 on: April 27, 2008, 01:02:58 pm »

No, I just want to make an .EXE or whatever. And on a side note, is C to advanced a code to start out with?
Logged

Shade
210

Offline Offline

Posts: 1,969


« Reply #11 on: April 27, 2008, 01:17:02 pm »

To make an exe then, yes, you do need a compiler. The one included with visual studio express will do it, though you won't be able to compile FRED with it, as will gcc if you're running linux.

C is sort of an intermediary language, making it a bit more complex than a true high level language, but I wouldn't call it too advanced. I know several people whose first true programming language was C. If you know any Java, that might even make it easier to get started, as the syntax is similar in many ways. Perhaps the big thing about C is that it lets you make mistakes - You are given power to do stuff, but with that, you are also given the power to mess things up horribly.
Logged

Report FS_Open bugs with Mantis  |  Find the latest FS_Open builds Here  |  Interested in FRED? Check out the Wiki's FRED Portal | Diaspora: Website / Forums
"Oooooooooooooooooooooooooooooooooooooooh ****ing great. 2200 references to entry->index and no idea which is the one that ****ed up" - Karajorma
"We are all agreed that your theory is crazy. The question that divides us is whether it is crazy enough to have a chance of being correct." - Niels Bohr
<Cobra|> You play this mission too intelligently.
colecampbell666
I See Dead Pictures
212

Offline Offline

Posts: 4,728

Out for summer.


WWW
« Reply #12 on: April 27, 2008, 02:13:04 pm »

So how would I go about doing this?
Logged

Wanderer
Wiki Warrior
211

Offline Offline

Posts: 3,273

Mostly harmless


« Reply #13 on: April 28, 2008, 05:00:08 am »

Umh?

Go to MS Express Edition page and download the whole lot in a DVD install or do one of web installs. After you finish the installation and having downloaded the FS Open sourcecode from SVN start the C++ express edition, go to 'file > open > project or solution'. Go to the directory where you placed the fs open sourcecode and select 'projects > MSVC_2005 > Freespace2.sln'. Wait a bit for it load properly. And assuming you had everything setup already all you need to do now is to select either debug or release option from the top menu and then select from the top bar 'build -> build solution'.

Or did you mean something else?
Logged
colecampbell666
I See Dead Pictures
212

Offline Offline

Posts: 4,728

Out for summer.


WWW
« Reply #14 on: April 28, 2008, 12:49:41 pm »

No, that's what I want. To make an .EXE.
Logged

Wanderer
Wiki Warrior
211

Offline Offline

Posts: 3,273

Mostly harmless


« Reply #15 on: April 28, 2008, 03:24:20 pm »

Well the procedure i described should have produced an .exe file.. To projects/msvc_2005/debug (or release) directory...
Logged
colecampbell666
I See Dead Pictures
212

Offline Offline

Posts: 4,728

Out for summer.


WWW
« Reply #16 on: April 30, 2008, 08:30:15 am »

It had to convert it, and said "Some Warnings". Is that OK?
Logged

Shade
210

Offline Offline

Posts: 1,969


« Reply #17 on: April 30, 2008, 08:53:23 am »

Warnings are ok (I've never been able to compile with less than 3 warnings, myself, except by turning them off), errors are not. Basically, as long as it produces an exe, you're in business.
Logged

Report FS_Open bugs with Mantis  |  Find the latest FS_Open builds Here  |  Interested in FRED? Check out the Wiki's FRED Portal | Diaspora: Website / Forums
"Oooooooooooooooooooooooooooooooooooooooh ****ing great. 2200 references to entry->index and no idea which is the one that ****ed up" - Karajorma
"We are all agreed that your theory is crazy. The question that divides us is whether it is crazy enough to have a chance of being correct." - Niels Bohr
<Cobra|> You play this mission too intelligently.
chief1983
Still lacks a custom title
Moderator
212

Online Online

Posts: 5,224

Uh, what?


WWW
« Reply #18 on: May 05, 2008, 02:11:11 am »

Btw, without a full copy of Visual C++, you won't be able to compile FRED.  It requires the MFC (Microsoft Foundation Classes), which the Express editions do not come with.  Neither do the additional SDKs.  So, just for compiling FSO, you only need VC++ Express 2008.  You should be able to convert the VS2005 project in place and compile with no additional changes necessary.  I copy the 2005 project folder to a new one so it doesn't interfere with Tortoise every time I want to update the local code base.
Logged

Fate of the Galaxy - Now Hiring!  Apply within | Diaspora | SCP Home | Collada Importer for PCS2
Karajorma's 'How to report bugs' | Mantis
#scp-swc | #diaspora | #SCP | #hard-light on EsperNet
Ha!  Got all the important stuff within the frame - eat it

Nuclear1:  Jesus Christ zack you're a little too hamyurger for HLP right now...
iamzack:  i dont have hamynerge i just want ptatoc hips D:
redsniper:  Platonic hips?!
iamzack:  lays
Pages: [1]   Go Up
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.11 | SMF © 2006-2009, Simple Machines LLC Valid XHTML 1.0! Valid CSS!
Page created in 0.121 seconds with 31 queries.