Jump to content
XCOMUFO & Xenocide

PRG- Cvs Pb..


Timil

Recommended Posts

Can someone tell me how to:

Import file (client sided import)

Remove Files/Directory

 

And get the whole thing to be used automaticaly.

 

It seem that CVS is useless in WinCVS (don't work at all, or maybe not at all like how it is explained..)

 

I'm able to put files on the server, but can never take them back nor delete them.. it seem that it's Unix friendly only (and it make me really hateful of sourceforge actually!!)

Link to comment
Share on other sites

Can someone tell me how to:

Import file (client sided import)

Remove Files/Directory

 

And get the whole thing to be used automaticaly.

 

It seem that CVS is useless in WinCVS (don't work at all, or maybe not at all like how it is explained..)

 

I'm able to put files on the server, but can never take them back nor delete them.. it seem that it's Unix friendly only (and it make me really hateful of sourceforge actually!!)

Dont know how to use CVS yet, but read something about doing a module checkout (from the create menu)... you will see a window like the one in the jpg i had posted. Then if you click on the [...] button on the right, the one that has the focus (that damn printscreen took out the mouse pointer)... You have to add a local path somewhere to put the downloaded... Thats what the theory sais...

 

Besides you should be grateful i am still trying to make SSH keys to work...

 

Greetings

Red Knight

checkout.jpg

Link to comment
Share on other sites

My checkout setting:

(all option non-specified are left blank)

 

"Checkout Settings"

- Module name and path: test

- Local folder: H:\

 

"General"

- Authentication: pserver (no setting change)

- path: /cvsroot/xenocide

- host: cvs.xenocide.sourceforge.net

- user name: timil

- CVS root: [email protected]:/cvsroot/xenocide (automaticaly completed)

 

"Global"

left default setting

 

Result command line:

Python 2.2.2 (#37, Oct 14 2002, 17:02:34) [MSC 32 bit (Intel)] on win32

CVSROOT: [email protected]:/cvsroot/xenocide (password authentication)

Filtering 'H:\'...

Filtering 'H:\xenocide'...

cvs checkout -P test (in directory H:\)

cvs server: Updating test

cvs server: Updating test/CVSROOT

U test/CVSROOT/checkoutlist

U test/CVSROOT/commitinfo

U test/CVSROOT/config

U test/CVSROOT/cvswrappers

U test/CVSROOT/editinfo

U test/CVSROOT/loginfo

U test/CVSROOT/modules

U test/CVSROOT/notify

U test/CVSROOT/rcsinfo

U test/CVSROOT/taginfo

U test/CVSROOT/verifymsg

cvs server: Updating test/CVSROOT/Emptydir

cvs [checkout aborted]: could not chdir to test/H:: Invalid argument

 

***** CVS exited normally with code 1 *****

 

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

Side note: It created a test directory on my H: drive this time.. seem strange!

But it's not the real test repository found on the server!

Link to comment
Share on other sites

My checkout setting:

(all option non-specified are left blank)

 

"Checkout Settings"

- Module name and path: test

- Local folder: H:\

 

"General"

- Authentication: pserver (no setting change)

- path: /cvsroot/xenocide

- host: cvs.xenocide.sourceforge.net

- user name: timil

- CVS root: [email protected]:/cvsroot/xenocide (automaticaly completed)

 

"Global"

left default setting

 

Result command line:

Python 2.2.2 (#37, Oct 14 2002, 17:02:34) [MSC 32 bit (Intel)] on win32

CVSROOT: [email protected]:/cvsroot/xenocide (password authentication)

Filtering 'H:\'...

Filtering 'H:\xenocide'...

cvs checkout -P test (in directory H:\)

cvs server: Updating test

cvs server: Updating test/CVSROOT

U test/CVSROOT/checkoutlist

U test/CVSROOT/commitinfo

U test/CVSROOT/config

U test/CVSROOT/cvswrappers

U test/CVSROOT/editinfo

U test/CVSROOT/loginfo

U test/CVSROOT/modules

U test/CVSROOT/notify

U test/CVSROOT/rcsinfo

U test/CVSROOT/taginfo

U test/CVSROOT/verifymsg

cvs server: Updating test/CVSROOT/Emptydir

cvs [checkout aborted]: could not chdir to test/H:: Invalid argument

 

***** CVS exited normally with code 1 *****

 

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

Side note: It created a test directory on my H: drive this time.. seem strange!

But it's not the real test repository found on the server!

The only thing that i really dont understand is how you manage to add things in the Sourceforge Repository using the PServer protocol... PServer protocol is not secure so the sourceforge people dont let you modify the repository if you dont use SSH...

 

I had installed Python and Tcl...

 

Anyway I will try with those setting and tell ya if i discover anything....

 

Greetings

Red Knight

Link to comment
Share on other sites

Timil: With PServer if you want to do something that requires updates you get something like this:

 

cvs init

cvs [server aborted]: "init" requires write access to the repository

 

about the checkout i think the problem was that you had added a directory named H: and for some reason WinCVS interpret it wrong, so it cancel the checkout operation... We should contact the sourceforge crew and tell them to delete the test module....

 

Greetings

Red Knight

Link to comment
Share on other sites

or, It's user friendly for certain values of user :D

 

btw, since I have a long relaxing -mas holiday coming up with nothing to do all day but eat candy and watch TV I thought I'd see if the cvs system considers me friend or foe. Pserver anonymous access seems to be working fine, I can checkout modules and retrieve files but I can't use SSH unless I'm a developer on the project. Would you consider adding me to the sourceforge project? My username on sourceforge is the same as here, MarkusEdholm.

 

/Markus

Link to comment
Share on other sites

Guest Gravity

Hi Guys,

 

I saw your Project on XcomUFO and as I am also a developer on SourceForge, maybe I can help you:

 

do:

 

ssh cvs.xenocide.sourceforge.net ->as the project initiator

press space

 

-- Now you home dir is created --

 

 

cvs -d :pserver:[email protected]:/cvsroot/xenocide login

 

-- Now you're logged in --

 

cvs co test

 

-- Now you got the "test" module on you HD --

Note: On Windowsbased Systems, I also have expirienced problems with Directorynames like ".asdf" or "a:" or "!!!aaa!!!". Under Linux, there is no problem @ all

 

Hope that helped...

 

Stay @ this, X-Com Fans like me are waiting for sth. like this. Especially those who cannot code C(++, #)! You're doin' really great stuff here!

 

:link: :zelda:

Link to comment
Share on other sites

Hey gravity, thanks... based on your post i try to do it completly on the command prompt instead of using WinCVS... it turn out that it had worked excelent... even though pserver do not have write access to the repository your post inspired me... so this is the instructions...

 

First Install SSH and WinCVS....

Do all the variable setting that they tell you to do.

Put CVS and SSH on the path.

 

Then if you want to import (upload a brand new module)... which is not necesary anymore (i have done it)....

 

Go to the dir that you have the files that you want to add as a new module and then execute the next

 

cvs -z3 -d:ext:[email protected]:/cvsroot/xenocide import -m "Some message" xenocide GNU V10

after that without a message write your password and press enter

 

Where you have to change flois for your login name...

The last xenocide for the project name

And GNU and V10 are tags that i dont know what they do

 

To get the code you must do

create the directory where you want to put the code (i had use xenocide.cvs)

 

md xenocide.cvs

cd xenocide.cvs

cvs -z3 -d:ext:[email protected]:/cvsroot/xenocide checkout xenocide

 

this will copy all xenocide module source to your hard disk, later i will investigate how to update files...

 

It will continue....

 

Greetings

Red Knight

Link to comment
Share on other sites

Guest Gravity

Ah, finally I've done something useful! :birthday:

 

The Checkout works perfectly. Note: Instead of "checkout xenocide" you can also write "co xenocide" :)

 

Is there some work a not very good C Programmer can do? I can code a PHP good, but C is just so low-level (you have to declare vars a.s.o.) (that's not bad @ all), it's too complicated for me :)

 

As said, I'd be happy 2 help.

 

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

Make it idiot-proof, and someone will make a better idiot

 

Gravity

Link to comment
Share on other sites

Well :) project is C++.. if you probably know PHP you could learn C++. I don't think one is more complicated than the other. Problem is alot of code out there (especially for c) isn't very clean so it makes it seem like C is harder than it is. Most game code that I've seen though is usually very clean and easy to understand.
Link to comment
Share on other sites

Ok, After 10 litres of coffee, I'm a C++-Junkie, up to classes (which I don't really understand yet (lack of time)), and 38 hours ago, we were released into 2-week-holidays (I love germany and its school sys. :)

Also, I'm 15 and I got LOTS of time right now....

 

So, what's to do?

Link to comment
Share on other sites

:) Well that's the way to go! Also it will help that Red Knight and myself have a very clean coding style (my style is actually very simular to his). The main problem C and C++ have is that they both come with a bad default API. Java is nice and easy to understand because it comes with a nice API. C++ can however be just as nice as Java with the right API and I think we will make sure that the Xenocide API is that nice. :) Anyway if you have any C++ questions you can always send me a PM here or email me at [email protected].
Link to comment
Share on other sites

Well :) project is C++.. if you probably know PHP you could learn C++.  I don't think one is more complicated than the other.  Problem is alot of code out there (especially for c) isn't very clean so it makes it seem like C is harder than it is.  Most game code that I've seen though is usually very clean and easy to understand.

Thats because games are complex on their own, if your code is not clear then your project is doomed, thats why im insisting on define a good code style and then stick to it... Most of the Graphics code is over the average on complexity... the other is AI....

 

Greetings

Red Knight

Link to comment
Share on other sites

×
×
  • Create New...