Page 1 of 1

someone good with source codes?

Posted: 07.11.2009, 17:30
by dalmatian_fanatic
Hi. Is there anyone here that is good with modifying source codes and applying them to the programs? I have the source code for Rassilion's Globular cluster Generator....in fact i have two copies....one is for the changes id like to have applied to it, and another is the original. The only thing ive changed is what spectral types are produced. I can share the program AND both the modified and the original source codes with anyone who can make the changes i want with it. Wish i knew enough about this kind of stuff to do it myself :oops: Thanks!

Re: someone good with source codes?

Posted: 07.11.2009, 18:02
by dalmatian_fanatic
OOPS i just found out that my codes are actually only txt files that are pretty much useless to someone who has never dealt with programming. :?

Re: someone good with source codes?

Posted: 07.11.2009, 20:04
by dalmatian_fanatic
ok i found a remedy to only having the TXT version of the source codes, i found the real thing, been a long day :oops:

Re: someone good with source codes?

Posted: 07.11.2009, 21:19
by dalmatian_fanatic
anyhow....here is the change i want to have made....


right now the code has the spectral types of stars set up like this:

If specType < 1 And specType > -1 Then s = "Q"
If specType < 2 And specType > 0 Then s = "O"
If specType < 3 And specType > 1 Then s = "B"
If specType < 5 And specType > 2 Then s = "A"
If specType < 20 And specType > 4 Then s = "F"
If specType < 50 And specType > 19 Then s = "G"
If specType < 60 And specType > 49 Then s = "K"
If specType < 75 And specType > 59 Then s = "M"
If specType < 101 And specType > 74 Then s = "R"


I am looking to only change the star classes in this source code so that it is more like this....

If specType < 1 And specType > -1 Then s = "Q"
If specType < 2 And specType > 0 Then s = "O"
If specType < 3 And specType > 1 Then s = "B"
If specType < 5 And specType > 2 Then s = "A"
If specType < 20 And specType > 4 Then s = "B"
If specType < 50 And specType > 19 Then s = "B"
If specType < 60 And specType > 49 Then s = "B"
If specType < 75 And specType > 59 Then s = "O"
If specType < 101 And specType > 74 Then s = "B"


This way the generator will only create hot blue and white star clusters. It will be very useful for creating galaxies where the arms are almost totally blue from these types of stars. I will have a second generator on my system so that i can create the other spectral types of stars also.

Re: someone good with source codes?

Posted: 07.11.2009, 21:48
by John Van Vliet
--- edit ---

Re: someone good with source codes?

Posted: 07.11.2009, 22:07
by dalmatian_fanatic
well i have just been going by what selden was telling me all about

He said that what i would need to do is modify the file called starPrj.VBW and that i would need a program to compile it all together......i have tried using Microsoft Visual Basic program to do this. However i get completely lost when i try to use it, i may be good with creating the stc files and other addons for celestia, but when it comes to these things, im about as dumb as a sack of potatoes. :lol:

Re: someone good with source codes?

Posted: 08.11.2009, 00:09
by John Van Vliet
--- edit ---

Re: someone good with source codes?

Posted: 08.11.2009, 02:00
by chris
john Van Vliet wrote:you might want to do some googling for tutorials on using microsoft's compilers, there gui frontends are hell to learn .I have ,for the most part, given up on using MS software .

Actually, the GUI for MS Visual C++ is very good and quite easy to use. No other IDE that I've used has technology as good as MS's IntelliSense for code completion, and the MS debugger seems quite a bit snappier than others.

--Chris