Jump to content


Photo

PRG-Sourceforge Cvs Problem


  • Please log in to reply
12 replies to this topic

#1 red knight

red knight

    Xenocide Project Leader

  • Xenocide Inactive
  • 3,310 posts

Posted 16 November 2002 - 12:41 PM

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

Attached Files


Sourceforge Nick: flois - Federico Andres Lois
Visit my blog at: flois.blogspot.com

Posted Image

Pookie cover me, I am going in.

#2 red knight

red knight

    Xenocide Project Leader

  • Xenocide Inactive
  • 3,310 posts

Posted 16 November 2002 - 12:43 PM

The Engine docs

Attached Files


Sourceforge Nick: flois - Federico Andres Lois
Visit my blog at: flois.blogspot.com

Posted Image

Pookie cover me, I am going in.

#3 red knight

red knight

    Xenocide Project Leader

  • Xenocide Inactive
  • 3,310 posts

Posted 16 November 2002 - 12:45 PM

The WinToolkit

PD: If anybody can upload to SourceForge the code let me know how you did it... :D

Attached Files


Sourceforge Nick: flois - Federico Andres Lois
Visit my blog at: flois.blogspot.com

Posted Image

Pookie cover me, I am going in.

#4 Guest_Guest_Gangsta_Why don't I ju_*

Guest_Guest_Gangsta_Why don't I ju_*
  • Guests

Posted 16 November 2002 - 04:01 PM

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.

#5 gangsta

gangsta

    Colonel

  • Forum Members
  • PipPipPipPipPip
  • 2,203 posts

Posted 16 November 2002 - 04:04 PM

Ugh :) the HTML ate up my include path but ya can see it ya ya quote and read whats in the quote box. I dunno the html code to print a greater and less than symbol :)

btw I'll look at the code in linux later on and see what I can get to compile.
Posted Image

#6 Guest_Guest_*

Guest_Guest_*
  • Guests

Posted 16 November 2002 - 06:42 PM

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

#7 gangsta

gangsta

    Colonel

  • Forum Members
  • PipPipPipPipPip
  • 2,203 posts

Posted 17 November 2002 - 12:28 PM

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.
Posted Image

#8 gangsta

gangsta

    Colonel

  • Forum Members
  • PipPipPipPipPip
  • 2,203 posts

Posted 17 November 2002 - 12:32 PM

oops in the above I mean SSH key.
Posted Image

#9 red knight

red knight

    Xenocide Project Leader

  • Xenocide Inactive
  • 3,310 posts

Posted 17 November 2002 - 12:45 PM

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
Sourceforge Nick: flois - Federico Andres Lois
Visit my blog at: flois.blogspot.com

Posted Image

Pookie cover me, I am going in.

#10 gangsta

gangsta

    Colonel

  • Forum Members
  • PipPipPipPipPip
  • 2,203 posts

Posted 17 November 2002 - 12:57 PM

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.
Posted Image

#11 gangsta

gangsta

    Colonel

  • Forum Members
  • PipPipPipPipPip
  • 2,203 posts

Posted 17 November 2002 - 09:20 PM

#5 Enter 'username@users.sourceforge.net' within the Key comment field (specifying your username in lieu of the text 'username').

hey Red Knight maybe you messed up here. should be

flois@users.sourceforge.net 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 gangsta187@user.sourceforge.net. Anyway just finished adding my key and am about to continue to the next step :)
Posted Image

#12 red knight

red knight

    Xenocide Project Leader

  • Xenocide Inactive
  • 3,310 posts

Posted 18 November 2002 - 06:03 PM

#5 Enter 'username@users.sourceforge.net' within the Key comment field (specifying your username in lieu of the text 'username').

hey Red Knight maybe you messed up here.  should be

flois@users.sourceforge.net 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 gangsta187@user.sourceforge.net.  Anyway just finished adding my key and am about to continue to the next step :)

I had wrote flois@users.sourceforge.net ... Something else is wrong and i dont know i what. I will send an EMail to the sourceforge support staff...

Thanks anyway
Red Knight
Sourceforge Nick: flois - Federico Andres Lois
Visit my blog at: flois.blogspot.com

Posted Image

Pookie cover me, I am going in.

#13 gangsta

gangsta

    Colonel

  • Forum Members
  • PipPipPipPipPip
  • 2,203 posts

Posted 18 November 2002 - 09:03 PM

I think I've gotten to that part too. The documents are out of sync with the current software that's for sure. anyway I will play with it somemore but if you get it working before then let me know :)
Posted Image