PDA

View Full Version : Accessing the OJP Source (Pre-SVN Posts)


razorace
12-16-2003, 07:37 AM
Ok everything should be cleaned up now.

Everything has been placed in the appropiate folders, except for the Basic/Enhanced source files. For them, they are both stored in the /Basic folder with all the files branched in two branches.

MAIN (HEAD) is the primary branch of the project (the trunk). This stores all the files for the Enhanced version of the project.

OJP_BASIC is the secondary branch for storing all the Basic distro's files.

I've set things up this way so it will be as easy as possible to merge code additions tfrom Basic into Enhanced.

Be sure to keep your branches straight when doing changes since a screw up can create a lot of extra work as you can see from some of the revision logs. :)

In addition, I've put tags (PRE_REORGANIZATION_2 and POST_REORGANIZATION_2) to make it easier to find the file versions from before and after the lastest reorganization. However, all I did was delete everything from the Enhanced folders and made sure all that stuff was in the new branched structure.

razorace
12-22-2003, 08:46 AM
There's now a new branch specifically for the saber system I'm working on. This is so people can play with/test the system before we put it in the game proper.

Teancum
12-24-2003, 09:46 AM
I signed up and tried to join the project, but I kept getting errors that would not let me join. Has the account/pass changed?

razorace
12-24-2003, 10:11 AM
Try "openjedisource" instead of "opensourcejedi" for the password. I can never remember what it is suppose to be. :)

Teancum
12-25-2003, 06:54 AM
It was 'openjedisource'. Question, though: How do I actually get the source? I went to get the MP icon, and it just took me to some directory. I couldn't find where to d/l it.

Darth Sun
12-25-2003, 12:34 PM
I stumbled upon this same problem as well.

Also, when downloading the source code, it refused my username (even though I joined the OJP repository) so I was "forced" to download the source code using the ojp/ojp read-only account you created.

Teancum
12-25-2003, 08:06 PM
Originally posted by Darth Sun
Also, when downloading the source code, it refused my username (even though I joined the OJP repository) so I was "forced" to download the source code using the ojp/ojp read-only account you created.

Me too

razorace
12-25-2003, 09:50 PM
Please describe what you did and what sort of error you're getting.

Darth Sun
12-25-2003, 11:20 PM
When I try to download the code in the download page it asks for the login (which is normal), yet once the login is entered it refuses and refuses till it goes to a 401 error page saying I have no access to the content I'm trying to download.

If I use the ojp/ojp login it allows me to download the code though.

razorace
12-26-2003, 03:48 AM
hmmm, ok. Please email the freepository.com support email. It's probably something they did.

Teancum
12-26-2003, 09:28 AM
I have the source now, but why do all of the files have a ",v" after the extension? I tried merely removing the ,v but then Windows says it's an invalid file.

razorace
12-26-2003, 09:36 AM
I'm guessing you downloaded the source tarballs instead of the actual files. I'm not sure how you're suppose to get the files from that....

keshire
12-26-2003, 09:46 AM
The raw CVS is like a mobile repository. Use that. set it up as a new module. With out Razor setting up write access though all you can do is donwload it. You can't upload. I need to get ahold of some people on my side to give me a few permissions. They've been blocking ports like crazy. Pretty soon They'll get to the ports JKA uses.

razorace
12-26-2003, 09:54 AM
Yeah, I just checked things and it looks like the "pure" source option of the download tarballs is busted. It only seems to get the stuff from the main directory only. I'm trying the raw type right now.

Either way, I recommend that everyone just get direct access, it's WAY easier to deal with once everything is setup.

Kenshire, please get on your IM and msg me if you can. I think I've figured out where the saber is being told to face the owner all the time while you're trying to stick it.

NickR
12-27-2003, 12:07 AM
Razor knows I've had problems with direct CVS access using TortoiseCVS. And according to the owner of freepository, it's probably because he recently disabled direct access to new account members. I might be wrong about the exact nature of this, but that's what I believe to be the problem. It could also just be a port problem though.

razorace
12-27-2003, 05:14 AM
NickR, They're talking about something. :) But the information is appreciated.

According to the admin (https://www.freepository.com/forum/viewtopic.php?t=106), there's a problem with the tarball system at the moment. He's working on a fix.

NickR
12-27-2003, 06:16 PM
Sorry, didn't really read through all the posts. I now realise you guys are talking about joining the project via the website. I joined and I had no problems, except for getting remote access with TortoiseCVS so I can download and upload files without having to use the freepository web interface.

toolman639
12-28-2003, 01:30 PM
Hey when will the fix for the vehicle limit be out and what will the limit be.

razorace
12-28-2003, 07:46 PM
Originally posted by toolman639
Hey when will the fix for the vehicle limit be out and what will the limit be.

Wrong thread. The correct thread for this is here (http://www.lucasforums.com/showthread.php?s=&threadid=119505).

I'm not sure when we will have our next public release but I know the vehicle limit will be 64 different types of models (with 128 vehicles allowed ingame at once).

razorace
01-25-2004, 09:54 AM
Good news.

I've figured out a much easier way to get things set up for a direct access so it shouldn't take too long if anyone is interested.

razorace
02-23-2004, 09:12 AM
Some reminders for those that are actively committing changes to the repository:

- Always document your changes. Internal changes can be explained with the CVS comment but the external stuff needs to be documented at all times. If people don't know about the change, it's useless to everyone.

- If you're adding or changing something to both Enhanced and Basic (basically everything in Basic), add your modifications, commit to the Basic branch (OJP_BASIC), and then merge to the Enhanced (HEAD) branch. See below for new files note.

- For new files, please clear them with me first. After that, add a basejka version of the file to the HEAD branch (if a basejka version exists). Lastly, add/commit the modified version to each branch where it is needed. These steps ensure an easier to understand/use revision history so please try to follow them.

Thanks,
Razor Ace

razorace
02-24-2004, 04:42 AM
The SaberSys branch has been merged into the Enhanced branch so the SaberSys branch is no longer in use.

razorace
03-28-2004, 06:31 AM
1. The password at the beginning of the thread was bad. It has now been fixed. Sorry about that.

2. We're probably going to create a temp branch for the AotC folks to get their code merged and ready before we merge to main. I'll keep everyone posted.

razorace
05-19-2004, 10:48 PM
Ok, the AotC TC branch isn't going to happen but I finally came up with tutorial on how to direct access the CVS repository.

================================================== ========
Tutorial - Getting Direct Access to the OJP CVS Repository
================================================== ========
Note: This tutorial is only for Windows OSes.

1. Go to https://www.freepository.com/ and sign up for an account. Do NOT use spaces in your username.

2. go to http://www.tortoisecvs.org/ and download the tortoiseCVS program. You can use a stable or beta

version, whatever works best for you.

3. Install tortoiseCVS. You might have to reset your computer to get all the Windows Explorer extensions

to work.

4. Log onto freepository with your new account.

5. Click on "join a freepository".

6. Sign up for the OJP repository
freepository name = OpenJediProject
freepository pass-code = openjedisource

7. Using the pulldown tab on the left, select OpenJediProject

8. Click on Secure ID entries. This will send you an email.

9. Check your email for that email. The email will have something like
:sserver:razorace@freepository.com:3025/mnt/usbhd/fp/fp1/222yx9P6fFHQYOpenJediProject
This is your CVSROOT. You'll need this later.
Note: if you don't get the email, you can still get your CVSROOT by clicking on the Secure ID

entries button again.

10. Here comes the fun part. You need now need to log your tortoiseCVS into the repository so that the

program will know what your password is. Download this file...
http://ojp.jediknight.net/files/CVS1.zip

11. Unzip CVS1.zip to where ever you installed tortoiseCVS.

12. Open up login.bat with a text editor.

13. You now need to modify your CVSROOT by adding a ";version=1" next to the ":sserver"
This...
:sserver:razorace@freepository.com:3025/mnt/usbhd/fp/fp1/222yx9P6fFHQYOpenJediProject
would become this...
:sserver;version=1:razorace@freepository.com:3664/mnt/usbhd/fp/fp1/222yx9P6fFHQYOpenJediProject

But remember that you need to use your own original CVSROOT, not the one used here.

14. Replace the example CVSROOT with your CVSROOT in the login.bat.
set

CVSROOT=:sserver;version=1:razorace@freepository.c om:3664/mnt/usbhd/fp/fp1/222yx9P6fFHQYOpenJediProject
will be
set CVSROOT=<yourCVSROOTHERE>

15. Save the file and then run it. I recommend that you run it from the command prompt so that you'll see

everything that goes on.

16. The program will prompt you for your password (use your freepository account password, not the one used

for the repository as a whole). If it worked, your .cvspass file in your tortiose directory will have some

stuff in it (use a text editor). Otherwise, you have a problem. You can't use backspace or delete while

typing in your password or it will not work. Be careful.

At this point the program should spend a long time downloading the repository to your system.

Brad Oliver
06-04-2004, 07:20 PM
I just built a Mac SDK for Jedi Academy. In the grand scheme of things, that was childs play compared to trying to download the OJP source. :)

Here's what I've done so far. Maybe someone can help get me the rest of the way.

1. I registered at freepository.com, signed on, saw stuff.

2. I downloaded and compiled the cvs 1.11 with sserver support that is required by freepository.

3. I renamed my cvs to cvs111 to avoid a conflict with the pre-existing cvs (1.10) provided by OSX and installed it into ~/bin/

4. I grabbed the cert.pem file from freepository.com, renamed it to .cvsSSLkeys and put it in my home directory.

5. I logged in with "cvs111 -L login" and was able to get the status of the repository. That is, it told me no modules had been checked out. :)

6. I then tried "cvs111 -L checkout OJP" and was greeted with a "connection refused" message.

7. I tried to login again, and got a "connection refused"

8. Now I can no longer telnet to freepository.com or ping it, as mentioned in the freepository.com troubleshooting notes.

So after all this, I suspect the server went down right when I was getting ready to get down to business, but that seems like really strange timing.

Can anyone else currently log in?I can't grab the "full source" tarballs from freepository.com - they returned essentially empty .tar files with some readmes and some guy's resume. I also can't use the GUI CVS client for OSX, since the cvs required by freepository is a special build.

Is there an easier way to grab the source that I'm missing?

razorace
06-04-2004, 08:00 PM
Yeah, I know what you mean. The setup is terrible but it's the only place that has a hosting deal that allows for our type of project.

Anyway, the server seems to be up for me. This seems to happen a lot with new accounts. Personally, I think he's overly paranoid. Using weird security proticals only makes it hard for us to access the repository.

I beleive there's a way to grap the raw data and then create a local mirror of the repository but I've never tried it. Keshire is the one to ask about that.

keshire
06-05-2004, 06:17 AM
Ya you can grab the actual module and set up a local "sand box" type deal with it.

No fuss no muss. But as far as uploading your changes you'd have to lobby Razor to give you the web access to freeRepository.

first Download the raw CVS format (this includes all the ,v files).

then make a new module.

:local:C:\Location_Of_Raw_CVS\

what it should do is make a new module but import it from it from the raw cvs making it act like it was from the actual freeRepository server. From there you can checkout the module from this local version.

And here is the output.

C:\cvs.exe -q import -m OJP tcvs-vendor tcvs-release CVSROOT=:local:C:\OJPSDK

No conflicts created by this import

Success, CVS operation completed

C:\cvs.exe -q checkout -d jkasdk OJP
CVSROOT=:local:C:\OJPSDK

razorace
06-07-2004, 02:23 AM
Oh yeah, Brad, it sounds like it's probably something on freepository's end, I suggest you email the support email address for freepository (support@freepository.com, I think) about it. This seems to be a common issue with new accounts.

GangsterAngel
06-07-2004, 03:31 AM
This is ****in me off , i have the ,v files how do i use them ,, and where is TortoiseCVS

keshire
06-07-2004, 03:46 AM
TortoiseCVS (http://www.tortoisecvs.org/)

install it. Reboot.

unzip the OJP and cvsroot to where ever you want the source files.

right click| CVS| make new module

set protocol to locally mounted folder

set repository folder to directory where the CVSROOT is

click fetch list

set module to OJP

click OK

it will set up a sand box that works exactly like the server version.

read the tortoise instructions on how to do anythign else. You also need to know how to compile code as that is what it is.

GangsterAngel
06-07-2004, 04:30 AM
http://www.arc.ufgclans.net/untitled.JPG

keshire
06-07-2004, 04:40 AM
go back a directory and try again.

I'll post a screen shot here in a little bit.

*edit*
http://mediaservice.photoisland.com/auction/Jun/2004667072833225699549.jpg
*edit*

GangsterAngel
06-07-2004, 04:55 AM
that image is 2 blury , u in 800 & 600 or somthin ?

keshire
06-07-2004, 04:58 AM
when you do the fetch list it pulls all the module names from the cvsroot folder.

OJPS is not one of them. Your trying to do this inside the OJP folder it looks like.

use the openjediproject-raw-cvs folder as the local directory. DO THE FETCH LIST! "SELECT" OJP! hit ok.

GangsterAngel
06-07-2004, 05:24 AM
i have stuff like
\jka-universalSource\OpenJediProject-raw-cvs\Basic\source\cgame
but no .dsw ?

keshire
06-07-2004, 05:30 AM
First, you hit new post instead of reply. You can tell when it tells you it can't post without a subject.

Second, that would be because its .NET project files. Use Google to search for prjconverter.exe. After that direct all your questions to the coding forum.

GangsterAngel
06-07-2004, 05:38 AM
Some files are still ,v files ??!?

jka-universalSource\OpenJediProject-raw-cvs\OpenJediProject-raw-cvs\OJP\Basic\source\game

keshire
06-07-2004, 05:41 AM
ignore them or delete them. You have everything you need to modify or compile the source.

keshire
06-07-2004, 05:43 AM
Read the tortoise tuitorials on how to access different branches. Any questions that should be directed to the tortoise people :).

jbminn
06-10-2004, 10:21 PM
Originally posted by razorace
Yeah, I know what you mean. The setup is terrible but it's the only place that has a hosting deal that allows for our type of project.

Anyway, the server seems to be up for me. This seems to happen a lot with new accounts. Personally, I think he's overly paranoid. Using weird security proticals only makes it hard for us to access the repository.

I beleive there's a way to grap the raw data and then create a local mirror of the repository but I've never tried it. Keshire is the one to ask about that.
Terrible? Paranoid?

That's a bit harsh, razor ace. I consider myself very security-conscious, and am proud of the contribution freepository made or continues to make to thousands of projects across the globe since it went live in 1999.

Script kiddies try to crack freepository over a 1000 times per day. The security measures in place on the site protect your code from them.

Sserver is actually quite mainstream these days. The sserver connect method is now included by default in CVSNT, which is the binary used by TortoiseCVS. That's why you can now use TortoiseCVS to connect directly to your freepository.

When I began designing the secure remote command line interface to freepository, I wanted to use ssh. But that simply _couldn't_ work in the silo'ed fashion necessitated by the many thousands of repositories on the freepository server. Fortunately, Corey Minyard had recently released his sserver reference implementation. This was exactly what freepository needed: a secure pserver-like protocol.

I began using sserver when almost no one had heard of it. Today, sserver (natively or via plugin) is available in virtually every mainstream cvs cleint.

razorace
06-11-2004, 02:07 AM
It wasn't my intention to offend. Beyond the initial hassle of getting thru the security, the service is great.

Unfortunately, that initial hassle is pretty combersome. It seems like every single time someone tries to get their system set up for a direct connection something goes wrong. Weither this is due to human error or the security measures, I can't say, but either way, it really makes it hard to get new people to use the repository.

Anyway, you're right. My comment was overly harsh and I applogize.

jbminn
06-11-2004, 08:48 AM
Originally posted by razorace
It wasn't my intention to offend. Beyond the initial hassle of getting thru the security, the service is great.

Unfortunately, that initial hassle is pretty combersome. It seems like every single time someone tries to get their system set up for a direct connection something goes wrong. Weither this is due to human error or the security measures, I can't say, but either way, it really makes it hard to get new people to use the repository.

Anyway, you're right. My comment was overly harsh and I applogize.
I was more suprised than offended.

Are the problems experienced similar? The instructions I have posted on the site now cover Eclipse, NetBeans, TortoiseCVS, cvsnt and precompiled sserver clients for Linux and Windows.

If there is a common area where everyone experiences trouble, that would be helpful to know.

jbminn

razorace
06-11-2004, 02:51 PM
The tortoiseCVS tutorial on the site uses the batch file method that's overly complicated and causes errors even when it works. The method I described on the first page of this thread tells you how to do it without resorting to that.

Secondly, I beleive the common problem area is during the log in and checkout process. I think the common error is a "connection refused". I've had multiple people get stuck at that point and have directed all of them to email you to see what the problem is. This happens even when I am able to connect to the repository so I suspect it has something to do with newly secured IDs.

I think the biggie is that newbies can't really handle the complicated process of either getting a direct connection or creating a local copy. In most cases, people just want to have a copy of the source but can't do so since trying to download the pure source only gives you the stuff in the root folder.

Brad Oliver
09-04-2004, 05:11 AM
Originally posted by jbminn
If there is a common area where everyone experiences trouble, that would be helpful to know.

In my experience, I had to compile my own cvs client, since the version that ships with OSX (1.10) doesn't contain sserver support. I can e-mail you the binary if you wish to host it on freepository.com

Beyond that, I had the mysterious "connection refused" message, which was only cleared up after e-mailing you. Dunno what I did wrong, or why it needed fixing at that point.

Brad Oliver
09-04-2004, 06:06 AM
Originally posted by razorace
Some reminders for those that are actively committing changes to the repository:

I have the Mac version building now. The changes needed are very minor - mainly path delimiter changes like #include "..\blah" to #include "../blah" and removing some type redefinitions.

How do I go about getting these changes back into the repository?

Also, when I did my checkout earlier today, I got a source tree that had both "Basic" and "Enhanced" directories, but only the Basic tree had any source files in it. What should I be pulling down and building against?

razorace
09-04-2004, 11:31 AM
1. Do the changes still allow for it to compile on PCs and linux? If not, we're going to add some #if statements to get it to do so.

How about you contact me over email or an IM service and send me a copy of the code for me to test? Or have you already done so?

Anyway, once we've figured it out, I'll give you write access to commit the changes.

2. Anyway the repository is set up with both the Basic and Enhanced source codes as branched in the same /basic directory. The HEAD branch is Enhanced while the OJP_BASIC leads to Basic.

I did this so that it's much easier to merge Basic changes into the Enhanced code. It's probably the wrong way to do it but I'm a pretty big CVS newbie.

Brad Oliver
09-04-2004, 07:54 PM
Originally posted by razorace
1. Do the changes still allow for it to compile on PCs and linux? If not, we're going to add some #if statements to get it to do so.

They are all separated with #if MAC_PORT/#else/#endif. However, a lot of them can be applied safely to all ports, since they are syntax cleanup fixes that won't affect compilation on the other platforms. It should be clearer when you get the code.

How about you contact me over email or an IM service and send me a copy of the code for me to test? Or have you already done so?

I'll do so tomorrow or Monday and we'll take it from there.

razorace
09-04-2004, 08:15 PM
Ok, great.

razorace
09-07-2004, 07:49 PM
Ok, I've updated the tutorial and the cvs1.zip. This new process has actually worked for some people so I suggest anyone that is still interested give it a try.

CortoCG
08-08-2005, 07:25 PM
The process worked out the first time to me. Very straightforward. Thanks.

razorace
09-11-2005, 01:53 AM
Alrightly, I've just done a massive revision to the tutorial to reflect the changes in newer TortoiseCVS versions. The great thing about it is that you no longer have to use the command line or my hackish cvs zips anymore! Yeah!

razorace
09-15-2005, 11:51 PM
Ooops, I forgot to mention that you need to set the module field in the checkout menu to be a period (IE "."). I've updated the tutorial to show this.

razorace
10-30-2005, 02:34 PM
I've created a new branch (SPNAVCODEPORT) off OJP_BASIC to contain the SP Nav port code until I can get it to a working state. This code currently doesn't not properly compile or run but all the declarations/defines should be right. I'm currently in the process of filling out all the undefined functions/classes that make this all work.

dannyboy233
01-02-2006, 06:53 AM
Razor, Is the Source that has holstered weapons in it available yet? I was wondering because i kinda wanted to take..you know, a nosy round in it;)

razorace
01-02-2006, 04:48 PM
Yep, its in all the branches now. Just search for "VisualWeapons" in the files to find it.

dannyboy233
01-02-2006, 05:10 PM
Cheers, thanks a bunch. Ill have a poke round later.

Grey Raven
02-22-2006, 09:20 PM
First time in this forum; forgive the very assinine question.

I was trying to use that TortoiseCVS program to download the repository, followed the instructions to the letter, however when the login.bat program prompts me for my password, it won't allow me to enter anything. It then tells me that I've entered an empty password, and the operation fails. Is there anything I can do about this?

razorace
02-22-2006, 10:20 PM
The login.bat method is no longer nessicary under the newer version of the tutorial. All you have to do is do a CVS Checkout and input your modified CVSRoot.

ensiform
03-11-2006, 03:24 AM
just a suggestion but uhm i think it would make it easier if you converted to svn instead of cvs and its like 100x better, many many projects are making the change.

razorace
03-11-2006, 04:22 AM
What's the advantage? I'm pretty happy with CVS as is.

ensiform
03-11-2006, 01:03 PM
ive never ever really gotten cvs to work without downloading the tarballs. svn works perfectly for a few projects im linked to.

here's a q3 project that moved to svn and everyone seems happy that it did:

http://www.quakesrc.org/forums/viewtopic.php?t=6212

razorace
03-11-2006, 10:52 PM
I think that's more of an issue with the tarball generator and the way we have our branched set up. I beleive Keshire was able to tarball it without issues.

ensiform
03-12-2006, 12:59 AM
i dunno svn just seems easier at least on my end.

razorace
03-12-2006, 04:13 AM
Well, you could just get a direct CVS connection to the repository. That does make things a lot easier.

ensiform
03-12-2006, 04:29 PM
rofl but making cvs work is too much compared to just doing svn co svn://......... foldername

razorace
03-12-2006, 07:01 PM
...As opposed to completely starting over the repository?

Grey Raven
04-04-2006, 06:27 PM
I'm not very internet savvy, and until I found this site had never heard of "CVS" before.

I've still been having alot of trouble trying to get the CVS to work properly (everytime I tried to install Tortoise, the program would be gone after reboot). Just today I decided to bite the bullet and download each file from the repository manually :headbump . About halfway through cgame, which I started with, I noticed something at the top left of the screen, something about "downloading OJP tarballs". I didn't know what that meant, but I was bored as hell and figured I'd find out. Lo, and behold, I found something wonderful - Freepository.com has a tar file containing EVERY single file in the OJP repository :emodanc: . Just download it, open it with WinZip, and extract. Yahoo!

The latest version of WinZip can be found here. (http://www.winzip.com/downwzeval.htm)

ZerooftheFour
05-19-2006, 01:06 AM
nvm, i got it to work...

JRHockney*
05-29-2006, 05:09 AM
Alright, I didn't follow the directions completely, but I have the code downloaded so I can at least view it and compare it with base (which is all I should be doing considering my sad knowledge of C).

I was wondering: does anyone know where I can find the most of the changes made to the saber combat for Enhanced? I compared the code with base code for hours and only found a few irrelavate things that were different, so can anyone tell me the line and file/class (or whatever those things are called in C Example: bg_saber or w_saber ) of where much of the changes are made. I would most like to see the code for the attackfake btw.

razorace
05-31-2006, 09:28 PM
most of it is in bg_saber and w_saber, but it's thruout the code. The key is to look for the "[SaberSys]" tags that I've used to mark all those changes.

JRHockney*
06-01-2006, 02:29 AM
most of it is in bg_saber and w_saber, but it's thruout the code. The key is to look for the "[SaberSys]" tags that I've used to mark all those changes.

Cool, I'll check it out. Great to have you back!!

JRHockney*
06-01-2006, 04:29 AM
Weird, I couldn't find any of those tags. I even ran a search on the code for them for both bg_saber and w_saber. I guess I'm just going to have to look for the changes the hard way. :(

Sushi_CW
06-01-2006, 10:28 PM
Question: What all is required to successfully compile and run the OJP source? I'm thinking of getting in on some code changes myself (I do program, as it happens) but I'd like to know what infrastructure I'll need. Razor, what compiler do you use? Do you use any sort of project file or makefile? If I download the source, is it ready to compile or do I have to tweak some stuff first? And if I do need to tweak...what? :)

razorace
06-03-2006, 01:08 AM
Question: What all is required to successfully compile and run the OJP source? I'm thinking of getting in on some code changes myself (I do program, as it happens) but I'd like to know what infrastructure I'll need. Razor, what compiler do you use? Do you use any sort of project file or makefile? If I download the source, is it ready to compile or do I have to tweak some stuff first? And if I do need to tweak...what? :)
All the project files (for Visual Studios 2003) are on the repository where they should be. All you gotta do is get the files off the repository and compile them with VS 2003. You can technically compile the code with any compiler that can output .dlls but you'd have to figure out all the project file stuff on your own.

razorace
06-03-2006, 01:11 AM
Weird, I couldn't find any of those tags. I even ran a search on the code for them for both bg_saber and w_saber. I guess I'm just going to have to look for the changes the hard way. :(
How did you get the files?

JRHockney*
06-03-2006, 04:55 AM
How did you get the files?

If I remember right, I just downloaded the whole thing and used microsoft visual C++ v8 to look at them. I had no intention of modifying anything yet, so I did it the easy way.

Vruki Salet
06-03-2006, 11:46 AM
You must have the wrong code JR. Or maybe you're doing a search using regular expressions, without realizing it, and not escaping the '[' ?

razorace
06-03-2006, 01:09 PM
simply searching for "SaberSys" (without the qoutes) should get you everything you need. Maybe you're not searching in the correct area,which I either set to the entire solution or the root directory of all the source code files.

Sushi_CW
06-10-2006, 05:12 PM
Meh. I can't get the direct access working (like everyone else :)). I get as far as trying to log in, but it rejects my password. It might have something to do with the SSL certificate (if I don't include the .cvsSSLkeys file, I get the same error) but I took care to download the most recent version from Freepository's site. Any ideas?

razorace
06-10-2006, 05:31 PM
hmmm, what's the actual error message?

As for getting help on weird problems, the best way is to email the freepository admin. He's great about helping fix problems just like this. :)

Sushi_CW
06-10-2006, 06:30 PM
Here's the connection log from my last attempt:

In C:\Documents and Settings\Chris\My Documents\Visual Studio 2005\Projects\OJP: "C:\Program Files\TortoiseCVS\cvs.exe" "-q" "checkout" "-P" "."
CVSROOT=:sserver;version=1:sushi@freepository.com: 3025/fp1/222yx9P6fFHQYOpenJediProject

Empty password used - try 'cvs login' with a real password
cvs [checkout aborted]: authorization failed: server freepository.com rejected access to /fp1/222yx9P6fFHQYOpenJediProject for user sushi

Error, CVS operation failed

In : "C:\Program Files\TortoiseCVS\cvs.exe" "-q" "login"
CVSROOT=:sserver;version=1:sushi@freepository.com: 3025/fp1/222yx9P6fFHQYOpenJediProject

Logging in to :sserver:sushi@freepository.com:3025:/fp1/222yx9P6fFHQYOpenJediProject
cvs [login aborted]: authorization failed: server freepository.com rejected access to /fp1/222yx9P6fFHQYOpenJediProject for user sushi

Error, CVS operation failed

In : "C:\Program Files\TortoiseCVS\cvs.exe" "-q" "login"
CVSROOT=:sserver;version=1:sushi@freepository.com: 3025/fp1/222yx9P6fFHQYOpenJediProject

Logging in to :sserver:sushi@freepository.com:3025:/fp1/222yx9P6fFHQYOpenJediProject
CVS Password: cvs [login aborted]: received interrupt signal

CVS operation aborted by user request

Error, one of the CVS operations failed


Using connection string:

:sserver;version=1:sushi@freepository.com:3025/fp1/222yx9P6fFHQYOpenJediProject


I'll refrain from posting the SSL key here. :)

If nobody has any ideas, I'll contact the admin when I have time.

razorace
06-10-2006, 08:50 PM
ok, when it give the empty password error, you have to wait for it to give you the opertunity to enter a password., it will pop up automatically. OR did you already do that?

razorace
06-10-2006, 09:06 PM
Added a tutorial on commiting things to the repository and a description of all the repository branches.

Sushi_CW
06-11-2006, 12:02 AM
Yes, forgot to mention that... it prompts for my password, I enter it, then gives me that error, then prompts for my password, I enter it, gives error...etc.

razorace
06-11-2006, 12:37 AM
hmmm, sounds like a password problem. Talk to the repository admin. :)

Sushi_CW
06-13-2006, 09:31 PM
Good news... I finally got it working.

It turns out I WAS using the wrong connection string. I'd selected the first one listed for "WinCVS and TortoiseSVN," not the second one designated for Freepositories created before 2006. My bad... :)

razorace
06-13-2006, 09:41 PM
I'm glad you got it working. :)

Sushi_CW
06-13-2006, 09:49 PM
So am I. Next question: why didn't my checkout grab everything? When I go into my freshly checked out folder, there is no "Enhanced" directory. There's "Basic" and "Betaserver" and "Vehicles" but no "Enhanced." The odd thing is, when I checked out (and updated after just to be sure) it listed files in that directory. Where did they go?

razorace
06-13-2006, 10:39 PM
The Enhanced code is in the Basic folder under another branch. I believe there's a tutorial on the code set up at the beginning of this thread.

Sushi_CW
06-13-2006, 10:52 PM
OK, if I've understood correctly, the Enhanced code is in OJPBasic/Source. Thanks Razor!

razorace
06-13-2006, 11:34 PM
yeah, but Basic and Enhanced are in the same folder. Fortunately, the default branch is Enhanced. :)

alexx860
06-17-2006, 02:08 PM
Can't get direct access with TortoiseCVS. I followed all the steps but when I do check-out it always ask me my password (the one I use for login to freepository) :
In D:\JA Coding\OJP CVS: "C:\Program Files\TortoiseCVS\cvs.exe" "-q" "checkout" "."
CVSROOT=:sserver;version=1:alexx860@freepository.c om:3025/fp1/222yx9P6fFHQYOpenJediProject

cvs.exe checkout: Empty password used - try 'cvs login' with a real password

cvs.exe [checkout aborted]: authorization failed: server freepository.com rejected access to /fp1/222yx9P6fFHQYOpenJediProject for user alexx860

Error, CVS operation failed

In : "C:\Program Files\TortoiseCVS\cvs.exe" "-q" "login"
CVSROOT=:sserver;version=1:alexx860@freepository.c om:3025/fp1/222yx9P6fFHQYOpenJediProject

Logging in to :sserver:alexx860@freepository.com:3025:/fp1/222yx9P6fFHQYOpenJediProject
cvs.exe [login aborted]: authorization failed: server freepository.com rejected access to /fp1/222yx9P6fFHQYOpenJediProject for user alexx860

Error, CVS operation failed

In : "C:\Program Files\TortoiseCVS\cvs.exe" "-q" "login"
CVSROOT=:sserver;version=1:alexx860@freepository.c om:3025/fp1/222yx9P6fFHQYOpenJediProject

Logging in to :sserver:alexx860@freepository.com:3025:/fp1/222yx9P6fFHQYOpenJediProject

Error, CVS operation failed

Error, one of the CVS operations failed

razorace
06-17-2006, 03:09 PM
TortoiseCVS will ask for your password if you wait. If it doesn't do it after a few moments, you're probably not using a new enough version of TortoiseCVS.

Sushi_CW
06-17-2006, 03:30 PM
That's almost exactly the problem I was having...for me, it turned out I wasn't using the right CVSRoot string. I needed to use the LAST one listed on the freepository page.

Also, if you've changed your Freepository password since getting the CVSRoot string, you need to enter your OLD password when you try to check out. Tricky. :)

alexx860
06-17-2006, 04:03 PM
Oh yes thanks, it works :) You must use the 4th CVSROOT in "Secure ID entries" :
4. Legacy freepositories (created prior to Jan-2006) and CVSNT-based client (WinCVS and TortoiseCVS):
I was using the second ;)

razorace
06-17-2006, 05:05 PM
Oh, ok. That's new. I guess jbminn changed things around.

JRHockney*
07-02-2006, 03:35 PM
I have a coding question for anyone who can help. Just for fun, I located the code for the double DP damage when hitting a runing person. If I wanted to make a patch for 0.0.9d to add that in, how would go about doing that. This fix wont be necessary for very long obviously, but if I knew such a thing, I think it would help me greatly in learning how to code. Can anybody give me a detailed description of how to do it (without too much computer jargon, because Im kind of stupid when it comes to that stuff! LOL)? I may also try changing the lunge damage as well since it appears to be apart of the same code block.

Vruki Salet
07-02-2006, 03:46 PM
Lol you want to make it damage X 2000 against runners, don't you? I know it!

razorace
07-02-2006, 04:19 PM
Just recompile the game .dll and then package it up in a .pk3.

JRHockney*
07-02-2006, 05:21 PM
Lol you want to make it damage X 2000 against runners, don't you? I know it!

No I was actually hoping for X 4000. LOL! No but seriously, version 0.0.9d doesnt have any running penalties. I was hoping to add the X 2 DP penalties for running back in and lower the lunge DP damage possibly even back to normal hit damage. Heck, because we found out that running is still a bit too powerful for this mod, I might even make the running damage X 2.5 until we can come up with something else. That should make it penalized just enough so only the best runners can do well.

Just recompile the game .dll and then package it up in a .pk3.

Well, I'm not entirely sure how to do that, but I could probably figure it out (I think the directions are with the code development pack anyways). Do you have the most recent code that includes the mishap meter at the repository, btw? If not, Do I have to recompile and put in the whole thing or can I just pick out running code somehow? If the code I have is old and I put the whole w_saber cv file in, wont that disable some of the new code or something? Like I said, I am stupid at this. Help me oh great Jedi Guardian of the Newbie Questions (bows down)

razorace
07-03-2006, 12:42 PM
mmm, I think most of the lastest code is already on the repository, including the run penalties. Let me check into that.

As for compiling, you should probably be able to use the included instructions, but I haven't looked at them in ages.

JRHockney*
07-04-2006, 04:20 AM
OK, I think I found the old "make a mod" directions, but I dont know what many of the directions mean. how do I do the following:

2. Set the "game" project as the active project.

8. Set your configuration to Final and perform a "Build Solution" command to build a DLL for the game.

1. compile the dll as noted above
This produces a 'jampgamex86.dll' in the codemp\Final\ path.

3. Zip 'jampgamex86.dll' to TestMod.pk3

Question: After I create a new jampgames86.dll, can I just replace one of them in my existing Enhanced folder to make it work or will a pk3 of this override the existing ones? If I have to replace one, which one? Hopefully this will be the end of my questions on this, but this literal mod creating stuff is very new to me when it comes to code.

Oh yeah, and HAPPY 4TH OF JULY EVERYBODY!!!!!

razorace
07-04-2006, 01:39 PM
The new pk3 will override the old one as long as it's in lower alphabetical order. For example, the ojp_enhanceddlls_009.pk3 would be overridden by ojp_enhanceddlls_009a.pk3

JRHockney*
07-05-2006, 07:51 PM
Well Razor, I think I just figured out what the problem is about why I cant compile or build a dll: Apparently Visual C++ Express doesnt have that capability! :( (Unless I'm missing something that is). Ha, no wonder its free. THats what I get for being an amature coder. Does anybody know of a cheap or free way to compile and create dlls so I can patch the Enhanced code?

JRHockney*
07-07-2006, 11:34 AM
Does anybody know how to use Dev-C++ to create DLL code patches or changes that work on JKA?

Dev-C++ allows the creation of DLL's but you have label the project in the beginning as a DLL. I tried creating a DLL project and then copying and pasting my new code, but it wont compile right because many of the other files in the Enhanced code are referenced and I get a zillion errors when I try. Does this mean I have to import every other file into this project before it will compile? If so, is there a way I can just drag the entire folder of all of them into the project without manually dragging each file?

Any help I could get in this would be greatly appreciated. I'd really like to start to do my own tweaking of Enhanced so I can help balance things out that need balancing out. I cant afford a real version of visual C++ right now so I'm stuck with trying to figure out Dev-C++ (which is a free download btw).

razorace
07-07-2006, 01:59 PM
Have you tried compiling it without making any changes? That might be easier to figure out.

Sushi_CW
07-10-2006, 12:35 PM
Actually, Visual C++ Express DOES work. I was able to get OJP Enhanced to compile using it. However, you need to make sure that you have the very latest version of the Microsoft Platform SDK in order to get everything to work right (Microsoft® Windows Server 2003 R2 Platform SDK - March 2006 Edition).

Link to the platform SDK web install:
http://www.microsoft.com/downloads/details.aspx?FamilyId=0BAF2B35-C656-4969-ACE8-E4C0C0716ADB&displaylang=en

Note that I wasn't able to get the web install working myself: it would always fail about 2/3 of the way through. What I ended up doing was downloading the SDK as an ISO image and installing from that.

Also, don't forget to change the include paths in your Visual C++ settings to include the platform SDK.

ensiform
07-12-2006, 12:26 AM
just so you know razor...

I have found a cvs2svn utility and its by the guys who made tortoise cvs/svn.

http://cvs2svn.tigris.org/

Sushi_CW
07-12-2006, 01:42 AM
Just my 2 cents... I use subversion with TortoiseSVN at work and like it a whole lot better than CVS.

ensiform
07-12-2006, 01:30 PM
as do i, razor is just affraid to lose all of his precious cvs data, which the web version doesnt even show anyway until you start digging in. the log is broken for web.

I personally have my mod setup at opensvn with trac and it runs very nicely.

I started ojp there but havent really done anything as i don't think i can run a python script on it. and plus i cba to run python on my comp.

cvs really stinks especially from a client's pov. svn is much much nicer and and has support for 3rd party diff/merge apps or you can use the built-in one, which is plenty good. and btw razor, svn does have branch support.

razorace
07-12-2006, 02:34 PM
We will see, I'll check it out. :)

razorace
10-02-2006, 12:30 AM
Apprenently freepository has changed the access privilagies for new users. Right now, you can't get direct access to the OJP repository if you're a new user. :(

I'm looking in to solutions and am considering switching to Subversion.

razorace
10-04-2006, 06:02 AM
The new SVN repository is up. I'm still in the process of getting all the files transfered from the CVS repository but the important files are in place.

The repository is located @ https://opensvn.csie.org/ojp/. I've allowed anonymous checkout so people can start using it immediate.

Plus, as an added feature, we now also have a fancy bug/enhancements/etc tracker @ https://opensvn.csie.org/traccgi/ojp/wiki. You're welcome to submit things to the tracker.

This new setup is MUCH easier to understand and use. I haven't done any tutorials yet but some of you might be able to figure out TortoiseSVN (tortoisesvn.tigris.org).

Also, a special thanks to Ensiform for hassling me to make the change. :)

UPDATE: Finished the port of all the files from the CVS repository. WOoh!
Well, that's not entirely true. I've not ported the older, unused branches. If anyone needs them, I can port them over.

Sushi_CW
10-05-2006, 12:18 AM
Here's a quick tutorial:

1. Download and install TortoiseSVN.
2. Go to where you want to checkout the repository, right click, select "SVN Checkout", then input the URL https://opensvn.csie.org/ojp .
3. Hit checkout, accept the security certificate, and wait.

This is so much easier. Thanks Razor!

darthgrizavy
12-10-2006, 04:01 PM
I had to use the force but I finally got it to download, nice.