Home » MODDING HQ 1.13 » v1.13 General Development Talk » Source code SVN access
Source code SVN access[message #57280] Wed, 30 August 2006 07:42 Go to next message
lalienxx is currently offline lalienxx

 
Messages:86
Registered:February 2006
EDIT: Latest link is: https://ja2svn.dyndns.org/source/ja2/trunk/GameSource/ja2_v1.13/Build


Read only acces to source code SVN server is free for everyone. Just enter (//81.169.133.124/source/ja2/trunk/GameSource/ja2_v1.13/Build/) [OLD Link is deprecated] in the SVN client and you are ready to go.

[Updated on: Sat, 07 July 2012 10:05] by Moderator

Report message to a moderator

Corporal 1st Class

Re: Source code SVN access[message #57281] Wed, 30 August 2006 08:15 Go to previous messageGo to next message
AndroidXP is currently offline AndroidXP

 
Messages:32
Registered:July 2003
Location: Austria
Finally it's posted in an easy to find place Smile

Had to search quite a while before I stumbled over that link. Btw, I think "source/ja2/trunk/GameSource/ja2_v1.13/Build/" is the one most people would want. AFAIK the rest is just for messing around?

Report message to a moderator

Private 1st Class
Re: Source code SVN access[message #57282] Sat, 02 September 2006 03:11 Go to previous messageGo to next message
Nonomori is currently offline Nonomori

 
Messages:6
Registered:August 2006
Location: Cleveland, OH
Thanks for posting this! Is there any chance we can get it stickied?

Report message to a moderator

Private
Re: Source code SVN access[message #57283] Sat, 02 September 2006 11:50 Go to previous messageGo to next message
Kaiden is currently offline Kaiden

 
Messages:504
Registered:September 2003
Wish Granted! *poof*

Report message to a moderator

First Sergeant

Re: Source code SVN access[message #57284] Sat, 02 September 2006 19:57 Go to previous messageGo to next message
lalienxx is currently offline lalienxx

 
Messages:86
Registered:February 2006
No Message Body

Report message to a moderator

Corporal 1st Class

Re: Source code SVN access[message #130037] Sat, 17 February 2007 16:04 Go to previous messageGo to next message
public1983 is currently offline public1983

 
Messages:125
Registered:February 2006

Is there any way to download the full project code of the actual version of 1.13 somewhere? I would like to build an exe for testing purposes.

Report message to a moderator

Sergeant
Re: Source code SVN access[message #130041] Sat, 17 February 2007 17:02 Go to previous messageGo to next message
Kaiden is currently offline Kaiden

 
Messages:504
Registered:September 2003
Absolutely, it's linked in the first post of this thread...


It's almost as if you didn't read the topic or the OP and somehow managed to actually post your question in the very thread that answers it by pure blind luck or something. Smile
[/moderator] b

Report message to a moderator

First Sergeant

Re: Source code SVN access[message #130056] Sat, 17 February 2007 19:47 Go to previous messageGo to next message
public1983 is currently offline public1983

 
Messages:125
Registered:February 2006

I know the link above. I know it is a lot of links, so the source code is circa 600 clicks away from my harddisk. If this is the only way... okay.

[\Edit] Okay, now I know why this thread is called "SVN access". The link is meant to be used with SVN, not manually. Again, I have learned something. If my posts are spam to this thread you can delete them, but maybe they keep others from asking the same stupid questions. :angel: Thank you, Malboro Man, too. [\Edit]

[Updated on: Sat, 17 February 2007 20:55] by Moderator

Report message to a moderator

Sergeant
Re: Source code SVN access[message #130060] Sat, 17 February 2007 20:18 Go to previous messageGo to next message
Marlboro Man

 
Messages:1159
Registered:October 2005
Location: USA
Here you go Sunshine. After you download it, just delete the hidden .svn folders, and you should be ready to go.

http://www.badongo.com/file/2257775

Report message to a moderator

Sergeant Major

Re: Source code SVN access[message #131487] Sat, 03 March 2007 01:26 Go to previous messageGo to next message
Kaiden is currently offline Kaiden

 
Messages:504
Registered:September 2003
@Sunshine, My bad. I assumed since you were going to do a build for testing purposes, that you were familiar with SVN, and your question was just to find the location of the link, which was most definitely in the first post.

Report message to a moderator

First Sergeant

Re: Source code SVN access[message #169080] Sun, 30 December 2007 21:38 Go to previous messageGo to next message
zed is currently offline zed

 
Messages:42
Registered:November 2006
hi,
i'm trying to get the map editor source code and couldn't see it in the above link.
do you have any other link?

Report message to a moderator

Corporal
Re: Source code SVN access[message #169154] Mon, 31 December 2007 17:00 Go to previous messageGo to next message
lalienxx is currently offline lalienxx

 
Messages:86
Registered:February 2006
zed
hi,
i'm trying to get the map editor source code and couldn't see it in the above link.
do you have any other link?


Map editor code is a part of the game source code. To compile the editor you must uncomment the mapeditor define.

Report message to a moderator

Corporal 1st Class

Re: Source code SVN access[message #169166] Mon, 31 December 2007 19:35 Go to previous messageGo to next message
zed is currently offline zed

 
Messages:42
Registered:November 2006
ok will try

Report message to a moderator

Corporal
Re: Source code SVN access[message #169398] Thu, 03 January 2008 12:48 Go to previous messageGo to next message
Ar1z is currently offline Ar1z

 
Messages:33
Registered:January 2008
Location: Greece
Hello,

Which compiler do you use to compile the source code? Is it possible to use any version of msvc? Or a free c++ compiler?

I'm not much of a programmer nowadays I used to program dos programs but I've seen the source code and I could do some changes I like...
http://www.ja-galaxy-forum.com/board/ubbthreads.php?ubb=showflat&Number=121036&page=1&fpart=3
http://www.ja-galaxy-forum.com/board/ubbthreads.php?ubb=showflat&Number=169390&page=1#Post169390

btw the command -NODD what exactly does it do? My guess is it disables directdraw, and uses gdi? I started a game viewed the first screen started new game and CTD Smile

Report message to a moderator

Private 1st Class
Re: Source code SVN access[message #169412] Thu, 03 January 2008 13:45 Go to previous messageGo to next message
wanne (aka RoWa21) is currently offline wanne (aka RoWa21)

 
Messages:1961
Registered:October 2005
Location: Austria
Just download Visual Studio 2005 Express Editon from the internet. It is free.
It is the suggested Development Platform for the 1.13 source code.

Report message to a moderator

Sergeant Major

Re: Source code SVN access[message #169416] Thu, 03 January 2008 14:00 Go to previous messageGo to next message
Ar1z is currently offline Ar1z

 
Messages:33
Registered:January 2008
Location: Greece
RoWa21
Just download Visual Studio 2005 Express Editon from the internet. It is free.
It is the suggested Development Platform for the 1.13 source code.


Thanks! Microsoft made it a little difficult to find previous versions...

here's a direct link if anyone else is interested

http://go.microsoft.com/fwlink/?linkid=51410

Report message to a moderator

Private 1st Class
Re: Source code SVN access[message #169491] Thu, 03 January 2008 23:28 Go to previous messageGo to next message
zed is currently offline zed

 
Messages:42
Registered:November 2006
hi again,
found the JA2EDITOR define and uncommented it but still when i'm running the compiled version from within the IDE i get the game and not the editor.
i want to do some learning of the graphics and the editor i think is the perfect option to understand the graphic engine of the game

Report message to a moderator

Corporal
Re: Source code SVN access[message #169493] Thu, 03 January 2008 23:51 Go to previous messageGo to next message
Velsku is currently offline Velsku

 
Messages:17
Registered:November 2007
Location: Finland
Run it with the –EDITORAUTO option. Read the editor manual. http://www.badongo.com/file/2783637

Report message to a moderator

Private
Re: Source code SVN access[message #169526] Fri, 04 January 2008 11:28 Go to previous messageGo to next message
Ar1z is currently offline Ar1z

 
Messages:33
Registered:January 2008
Location: Greece
Hello again,

I tried to build the project but it fails because of a missing windows.h . I searched my disk for this file but couldn't find one... I installed msvc 2005 (just GUI and .NET). After the build failed I also downloaded and installed msvc 2005 sp1 but same problem. Any suggestions? Thanks!

Update:

I think I found the problem... $#%#$ M$ >)
http://forums.microsoft.com/MSDN/ShowPost.aspx?PostID=7004&SiteID=1

"quick" solution:
http://www.codeproject.com/KB/applications/FreeVS2005Win32.aspx

also you'll need to find afxres.h somehow... somewhere...

ok solution for afxres.h here:
http://forums.microsoft.com/MSDN/ShowPost.aspx?PostID=362656&SiteID=1

[Updated on: Fri, 04 January 2008 15:01] by Moderator

Report message to a moderator

Private 1st Class
Re: Source code SVN access[message #198834] Fri, 10 October 2008 21:34 Go to previous messageGo to next message
Headrock

 
Messages:1760
Registered:March 2006
Location: Jerusalem
Hmmmm... I haven't installed this s*** in two years. Could anyone give me a hand with this?

A) Is VC++S 2008 good enough? Should I get any SDKs or something, or will I be able to compile properly? Would I be better off downloading 2005?

B) Any settings that need to be changed?

C) Any project settings that need to be changed?

D) OMG it's compiling so slow. Is there any way to speed it up?

Report message to a moderator

Sergeant Major

Re: Source code SVN access[message #198854] Sat, 11 October 2008 00:37 Go to previous messageGo to next message
Headrock

 
Messages:1760
Registered:March 2006
Location: Jerusalem
I ran into a problem while compiling.

Using the 2322 source code (no edits), I get this:

Quote:

msvcprtd.lib(MSVCP80D.dll) : error LNK2005: "void __cdecl std::_Debug_message(unsigned short const *,unsigned short const *,unsigned int)" (?_Debug_message@std@@YAXPBG0I@Z) already defined in libcpmtd.lib(stdthrow.obj)


Followed by a ton of other errors of similar nature, then starting a zillion other types of errors.

I'm guessing that VC++ is setup badly... but how do I set it correctly?

[Updated on: Tue, 16 June 2009 19:32] by Moderator

Report message to a moderator

Sergeant Major

Re: Source code SVN access[message #215769] Thu, 07 May 2009 17:21 Go to previous messageGo to next message
Sandro is currently offline Sandro

 
Messages:420
Registered:November 2008
Location: Mars
Headrock
Hmmmm... I haven't installed this s*** in two years. Could anyone give me a hand with this?

A) Is VC++S 2008 good enough? Should I get any SDKs or something, or will I be able to compile properly? Would I be better off downloading 2005?

B) Any settings that need to be changed?

C) Any project settings that need to be changed?

D) OMG it's compiling so slow. Is there any way to speed it up?

I wonder if you could post here the answers you found?

Report message to a moderator

Master Sergeant

Re: Source code SVN access[message #215770] Thu, 07 May 2009 17:24 Go to previous messageGo to next message
Headrock

 
Messages:1760
Registered:March 2006
Location: Jerusalem
HA, I failed miserably. I might try again today though, been meaning to all week. It might've had something to do with the project file conversion. JA2 1.13 comes with projects already set for VS2008, so it might be easier now...

Report message to a moderator

Sergeant Major

Re: Source code SVN access[message #215773] Thu, 07 May 2009 18:11 Go to previous messageGo to next message
Sandro is currently offline Sandro

 
Messages:420
Registered:November 2008
Location: Mars
I am just installing MS VC++ 2008 now. Looked through the source code and have many things in mind that might be nice. Hope I can make the compiling to work, last I tried, a year ago, I failed and lost the motivation.

Report message to a moderator

Master Sergeant

Re: Source code SVN access[message #215821] Fri, 08 May 2009 00:29 Go to previous messageGo to next message
Headrock

 
Messages:1760
Registered:March 2006
Location: Jerusalem
Instructions to install VC++ 2008 Express Edition for JA2 Code-work

1) Download installer from here:

http://go.microsoft.com/?linkid=9658666

At this URL, choose "download now" and select Visual C++ 2008 Express Edition in the language you prefer. The download is only a couple of megabytes.

2) Install VC++ 2008. This is an on-line installation, so the program will need to download around 90MB of data from microsoft.

3) During installation you'll be asked whether you want to also install Silverlight and SQL Express - you don't need either of these to compile the code.

4) When installation is complete, go to your the folder where you saved the JA2 Source Code you wish to compile.

5) Open the "res" folder, where you'll find a file called JA2.rc

6) Edit this file with NOTEPAD. One of the first lines will say:

#include "afxres.h"


Change it to:

#include "windows.h"


Save the file.

7) Start VC++ 2008. You'll be asked to register the program, which means creating a Microsoft Live account. You will receive the registration code on-screen - copy that into the blank field on the VC++ 2008 registration window. You can forgo registration for up to 30 days. I'm not sure what happens afterwards. Registration is free though.

Cool Load up the file called "JA2_VC2008.vcproj" which is in your main source code folder.

9) Compile the code!

10) Whenever you update your version of the code, you will probably need to edit JA2.rc again, doing the same thing in step #6, otherwise the code won't compile.

-------------------

Thanks go to BirdFlu, SpaceViking, Jones and RoWa21 for these instructions!

Report message to a moderator

Sergeant Major

Re: Source code SVN access[message #215826] Fri, 08 May 2009 00:52 Go to previous messageGo to next message
SpaceViking is currently offline SpaceViking

 
Messages:751
Registered:January 2004
Location: Rochester, Minnesota, USA
Step 1 shouldn't be needed. I had both 2005 and 2008 on one computer for quite some time.

Report message to a moderator

First Sergeant

Re: Source code SVN access[message #215829] Fri, 08 May 2009 01:01 Go to previous messageGo to next message
Headrock

 
Messages:1760
Registered:March 2006
Location: Jerusalem
Removed.

Report message to a moderator

Sergeant Major

Re: Source code SVN access[message #215836] Fri, 08 May 2009 01:35 Go to previous messageGo to next message
BirdFlu is currently offline BirdFlu

 
Messages:438
Registered:September 2007
Location: Lampukistan
For point 6). I think it should be tested with all configurations (VS 2005|2008, Debug|Release) and then checked in into the repository.

Report message to a moderator

Master Sergeant
Re: Source code SVN access[message #215926] Fri, 08 May 2009 15:44 Go to previous messageGo to next message
wanne (aka RoWa21) is currently offline wanne (aka RoWa21)

 
Messages:1961
Registered:October 2005
Location: Austria
I will test and if it works fine I will make the change to the svn source

Report message to a moderator

Sergeant Major

Re: Source code SVN access[message #233396] Thu, 17 September 2009 16:52 Go to previous messageGo to next message
rasz is currently offline rasz

 
Messages:38
Registered:August 2006
If you dont like downloading gigabytes of crap and messing with your windows install you could just google for MSVC2008Express.rar . Its a 100MB VC++ 2008 portable, torrent is on TPB.

Report message to a moderator

Private 1st Class
Re: Source code SVN access[message #233404] Thu, 17 September 2009 18:02 Go to previous messageGo to next message
Headrock

 
Messages:1760
Registered:March 2006
Location: Jerusalem
What's the advantage? I don't recall VC2008 taking that long to download nor a lot of space. I might be wrong though...

Report message to a moderator

Sergeant Major

Re: Source code SVN access[message #233492] Fri, 18 September 2009 22:37 Go to previous messageGo to next message
rasz is currently offline rasz

 
Messages:38
Registered:August 2006
Well, I tried to install working VC environment for two years now on my XP Lite. It would not work at all (No .NET, lack of some services), want few GB of additional crap (installing services I dont want), or just make my system crawl and die. I hate M$ and all the cruft they push when all I want is C compiler. With this MSVC2008Express.rar I was compiling JA2 code after 10 minutes from starting torrent. It just worked, I was pretty amazed. As simple as 'apt-get install gcc'.
Only drawback is its a portable app so its working in some kind of sandbox = cant set project target on another HDD volume. I just made a bat file that copies .exe over.

Report message to a moderator

Private 1st Class
Re: Source code SVN access[message #237911] Tue, 17 November 2009 13:54 Go to previous messageGo to next message
virus_found is currently offline virus_found

 
Messages:7
Registered:February 2008
Location: Moscow

I see a Makefile in the source code repo. Will it be built with gcc on Linux? Will it run on Linux after that? Smile

[Updated on: Sun, 06 December 2009 19:06] by Moderator

Report message to a moderator

Private
Re: Source code SVN access[message #239931] Sun, 13 December 2009 00:37 Go to previous messageGo to next message
Luftzig is currently offline Luftzig

 
Messages:18
Registered:November 2007
@virus_found
Apparently, no. If I'll be granted with infinite time or the intelligence to pass all my exams without studying, I might try to port it, as was done by someone a year or two ago.

Report message to a moderator

Private
Re: Source code SVN access[message #241617] Mon, 11 January 2010 17:12 Go to previous messageGo to next message
virus_found is currently offline virus_found

 
Messages:7
Registered:February 2008
Location: Moscow

Ok, I see. Now I'll have to cross-compile it. Will mingw32 compile it on Linux (for Win32)? Has someone tried that?

Report message to a moderator

Private
Re: Source code SVN access[message #242942] Sun, 31 January 2010 15:33 Go to previous messageGo to next message
Faithless is currently offline Faithless

 
Messages:439
Registered:October 2009
Location: The safe end of the barre...
Edit: No need to waste your guys time reading the questions, fixed it =)
Found the exe, I'll just assume this should work if I put that into the newest 1.13 SVN folder.
now.... to find a way to change the output folder ...


// still here for reference
Ok two questions;
Once I built the whole thing, I tried to look for an executable file, but found none. (there's only .obj files and the likes.)
Is this normal and if so, how would you execute this compiled code?

Secondly I did try to "debug" once compiled, but it's missing the smackw32.dll.
I sort of expected this to be compiled with the code.
Now I guess I should put the compiled code into a fresh JA2 install, but I have no idea what files to copy =(.


Right, it's probably worth mentioning that I followed the steps in Headrock's post.
And yes that also means I'm using microsofties visual C++ 2008

[Updated on: Sun, 31 January 2010 16:37] by Moderator

Report message to a moderator

Master Sergeant
Re: Source code SVN access[message #252353] Thu, 27 May 2010 00:36 Go to previous messageGo to next message
P.Val is currently offline P.Val

 
Messages:72
Registered:May 2010
Strange, but I cannot check out with TortoiseSVN ("could not connect to server"), while I can access the folder with my browser. Must the problem surely be at my end, or are there some restrictions based on something I don't know?
By the way, how should we compile, build and test it? I can see a makefile but I don't recognize what program under Windows can use it (I used makefiles only under Linux).

EDIT: Sorry, it was my fault, bad proxy settings. Got it built and running, yay Very Happy

[Updated on: Thu, 27 May 2010 01:56] by Moderator

Report message to a moderator

Corporal
Re: Source code SVN access[message #252383] Thu, 27 May 2010 13:51 Go to previous messageGo to next message
usrbid is currently offline usrbid

 
Messages:1506
Registered:December 2008
Yep, you can read files with your browser, I do it all the time. Or you can do a full SVN checkout. Checking in is a different issue.

Report message to a moderator

Sergeant Major

Re: Source code SVN access[message #254668] Wed, 23 June 2010 16:07 Go to previous messageGo to next message
silversurfer

 
Messages:2793
Registered:May 2009
I downloaded the source code last evening and tried to compile it in Visual C++ 2010. While trying to compile the laptop project I got several error messages for different modules all about the same problem.

The message was:
1>  personnel.cpp
1>e:\ja2 source\laptop\personnel.cpp(2200): error C2668: 'abs': Mehrdeutiger Aufruf einer 

Report message to a moderator

Lieutenant
Re: Source code SVN access[message #254669] Wed, 23 June 2010 16:32 Go to previous messageGo to previous message
Faithless is currently offline Faithless

 
Messages:439
Registered:October 2009
Location: The safe end of the barre...
Mhh, if I understand correctly then casting the ABS argument to INT16 would be strange.

This list:
Quote:
1> d:\tools\visual studio\vc\include\math.h(547): kann 'long double abs(long double)' sein
1> d:\tools\visual studio\vc\include\math.h(499): oder "float abs(float)"
1> d:\tools\visual studio\vc\include\math.h(495): oder "double abs(double)"
1> d:\tools\visual studio\vc\include\stdlib.h(471): oder "__int64 abs(__int64)"
1> d:\tools\visual studio\vc\include\stdlib.h(467): oder "long abs(long)"
1> d:\tools\visual studio\vc\include\stdlib.h(362): oder "int abs(int)"

Does not contain any ABS function with an INT16 (short).

I'm surprised it would even compile without errors if there is no such function though, could be the compiler just doesn't list it as another ambigious function, though.
If there is indeed a function abs(short) then your solution seems fine to me.
Perhaps it would be better to cast it to an int, then cast the return value to whatever sCenX is?

Report message to a moderator

Master Sergeant
Previous Topic: Removing the initial "Ira takes you out of rebel hideout" script
Next Topic: *Random generated Portraits* Updated Generator
Goto Forum:
  


Current Time: Fri Mar 29 07:33:45 GMT+2 2024

Total time taken to generate the page: 0.02169 seconds