Page 1 of 1

Settextcolor

Posted: 11.03.2010, 05:52
by thefallenghost
I am having issues with the celestia:settextcolor(r, g, b) function. Celestia returns this error when I run my script: Attempt to call method 'settextcolor' (a nil value). The same happens with gettextcolor. Help!
This is the end of the script:

Code: Select all

--starcount = celestia:getstarcount()
celestia:settextcolor(1,0,1)
obs = celestia:getobserver()
hd47536 = celestia:find("HD 47536")
obs:gotodistance(hd47536, 4, 5) --travel to within 4 km of HD 47536
sol = celestia:find("Sol")
obs = celestia:getobserver()
obs:track(sol)
obs:follow(sol)
wait (7.0)
celestia:setfaintestvisible(25)
celestia:setstardistancelimit(800)
celestia:hidelabel("stars","galaxies","nebulae","globulars")
celestia:setstarstyle("disc")
celestia:print("On voit en ce moment environ 67 000 etoiles.", 10.0)
wait (10.0)

Re: Settextcolor

Posted: 11.03.2010, 08:19
by Vincent
These are new methods which will be available in Celestia 1.6.1.
Meanwhile, you can compile the 1.6.1 SVN development version
or get a Win32 pre-compiled package (revision 4996) from:
http://gvince.perso.sfr.fr/celestia/dev ... 61_SVN.zip

Re: Settextcolor

Posted: 11.03.2010, 17:55
by thefallenghost
Thanks!