someone good with source codes?

Post requests, images, descriptions and reports about work in progress here.
Topic author
dalmatian_fanatic
Posts: 39
Joined: 13.09.2006
With us: 18 years 2 months
Location: personal

someone good with source codes?

Post #1by dalmatian_fanatic » 07.11.2009, 17:30

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!

Topic author
dalmatian_fanatic
Posts: 39
Joined: 13.09.2006
With us: 18 years 2 months
Location: personal

Re: someone good with source codes?

Post #2by dalmatian_fanatic » 07.11.2009, 18:02

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. :?

Topic author
dalmatian_fanatic
Posts: 39
Joined: 13.09.2006
With us: 18 years 2 months
Location: personal

Re: someone good with source codes?

Post #3by dalmatian_fanatic » 07.11.2009, 20:04

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:

Topic author
dalmatian_fanatic
Posts: 39
Joined: 13.09.2006
With us: 18 years 2 months
Location: personal

Re: someone good with source codes?

Post #4by dalmatian_fanatic » 07.11.2009, 21:19

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.

Avatar
John Van Vliet
Posts: 2944
Joined: 28.08.2002
With us: 22 years 2 months

Re: someone good with source codes?

Post #5by John Van Vliet » 07.11.2009, 21:48

--- edit ---
Last edited by John Van Vliet on 20.10.2013, 08:42, edited 1 time in total.

Topic author
dalmatian_fanatic
Posts: 39
Joined: 13.09.2006
With us: 18 years 2 months
Location: personal

Re: someone good with source codes?

Post #6by dalmatian_fanatic » 07.11.2009, 22:07

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:

Avatar
John Van Vliet
Posts: 2944
Joined: 28.08.2002
With us: 22 years 2 months

Re: someone good with source codes?

Post #7by John Van Vliet » 08.11.2009, 00:09

--- edit ---
Last edited by John Van Vliet on 20.10.2013, 08:41, edited 1 time in total.

chris
Site Admin
Posts: 4211
Joined: 28.01.2002
With us: 22 years 9 months
Location: Seattle, Washington, USA

Re: someone good with source codes?

Post #8by chris » 08.11.2009, 02:00

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


Return to “Add-on development”