Jump to content
XCOMUFO & Xenocide

PRG-Sourceforge Cvs Problem


red knight

Recommended Posts

Hi all, i had try to import an initial sketch of the xenocide source (without graphics stuff, just the core classes) and WinCVS keep refusing my SSH key (dont know why)... It said: " warning: unrecongnized response: " and then my login information (all this during import, cause you dont login before use ssh).. I can access the shell and i dont have problems with it...

 

So i will add here the source...

 

Greetings

Red Knight

 

PD: I will add too the Doxygen Doc of the 3D Engine for you to see and the WinToolkit (the one that handle buttons and stuff) with sources included...

 

PD2: Micah dont kill me, it is just 1MB... :D

Xenocide.zip

Link to comment
Share on other sites

Guest Guest_Gangsta_Why don't I ju

out of curiosity what are those pragma's for? Borland or windows stuff?

 

#pragma hdrstop

#pragma package(smart_init)

 

also

 

#include <./datastore/personnel.h>

 

do you use the ./ to look in the local directory. I'm pretty sure in linux this will turn out to be the same thing as #include since the . is a hard link back to the same directory or the global include directory.

Link to comment
Share on other sites

out of curiosity what are those pragma's for?  Borland or windows stuff?

 

#pragma hdrstop

#pragma package(smart_init)

 

also

 

#include <./datastore/personnel.h>

 

do you use the ./ to look in the local directory.  I'm pretty sure in linux this will turn out to be the same thing as #include <datastore/personnel.h> since the . is a hard link back to the same directory or the global include directory.

You can completly ignore the pragma stuff... (it is Borland stuff)

 

About using <./....> i use that because you only have to put the xenocide/includes directory in the path... it could be changed anyway it is just cosmetic...

 

Grettings

Red Knight

Link to comment
Share on other sites

doesn't borland have something where you can do -Iinclude/ to put the include/ directory in the current path into the global include? That's how gcc does it. BTW, you got a very nice coding style :) and I'm happy to be able to work with you. When I first joined the project I was afraid I would have to adopt a style I wouldn't like since in a project everybody has to code the same style. I also see that you like to optimize your methods with register variables which I like to do myself. :) Think that is underused by programmers these days. You know in some of your methods you could optimize them better too. I noticed in some parts of the code the variable that got used more was like the i counter variable that you declaired in the for statement. I suggest, in places where i gets used more than the second register variable you declaired that you move the declaration out of the for statement and to the beginning of the method. Also I think in non library code that you can use 3 register variables for the X86 platform.. you might want to use more than that because many CPUs have more register than the x86 series does. like the 68k series had 8 data register d0-d7 and 8 address registers a0-a7. :) heh we all would have been better off if IBM would have choose Motorola instead of Intel back in 1979 ;). Anyway there a few style things I want to talk to you about later on. I'm sure the two of us can come up with the perfect coding style for the project by chatting a bit. Oh I'm also going to try to setup CVS on windows today. I noticed that there was a CVS key thing that you can get to when you login to sourceforge? maybe you can use it to check if your key got uploaded there.
Link to comment
Share on other sites

About the include if i had understand well, it is exactly that what borland do so it is better to use the <...> notation because the compiler will look in the directories in the path, instead of using the "..." using relative positioning.. because you can change complete directories (third party or our own libraries) and the program will never notice...

 

About register, if in a glance i see that it could help i used it, but in the first stage i will not worry about optimization... Did you hear the phrase that sais: "Premature optimization is the root of all evil" :devillaugh: After the project is in a usable stage, we can profile it and optimize what it is needed...

 

I had created my SSH pair and uploaded them, but sourceforge keep refusing my key.... after 6 hours... if i couldnt work this out i gonna send a mail to sourceforge support team...

 

Maybe, but all thing would be different if they had realized when they designed the Intel 8086 that RISC arquitecture was far better than CISC <_>

 

Grettings

Red Knight

Link to comment
Share on other sites

I don't optimize early in regular code either. I do do that in library code which I have been working alot on lately. ;) btw it's amazing what kinda speed increase you get when you go through the linux source code and add registers. We wouldn't be so bad off because the Athlon really is a RISC processor with a X86 front end to it. probably would be better if that front end was able to use more registers too.
Link to comment
Share on other sites

#5 Enter '[email protected]' within the Key comment field (specifying your username in lieu of the text 'username').

 

hey Red Knight maybe you messed up here. should be

 

[email protected] that goes into the comment field.

 

I think that might be the easiest place to mess up at with the instructions I thought about putting my email addie for half a second or jms3117 instead of [email protected]. Anyway just finished adding my key and am about to continue to the next step :)

Link to comment
Share on other sites

#5 Enter '[email protected]' within the Key comment field (specifying your username in lieu of the text 'username').

 

hey Red Knight maybe you messed up here.  should be

 

[email protected] that goes into the comment field.

 

I think that might be the easiest place to mess up at with the instructions I thought about putting my email addie for half a second or jms3117 instead of [email protected].  Anyway just finished adding my key and am about to continue to the next step :)

I had wrote [email protected] ... Something else is wrong and i dont know i what. I will send an EMail to the sourceforge support staff...

 

Thanks anyway

Red Knight

Link to comment
Share on other sites

×
×
  • Create New...