Re: [nbos] [AS] Using Astroscript to update surface map.Alan Bartholet Thu Jan 21st, 2010
The offender appears to be a file called <Bodies
UABI>.planetview.png in the SurfaceMaps folder. I couldn't figure out
how to fix this with the API but by deleting it manually you are able
to get the proper surface map to load.
oldSurfaceMap = AstroDirectory() & "Textures\SurfaceMaps\" &
EditingBody.IDString & ".planetview.png"
Set fso = CreateObject("Scripting.FileSystemObject")
If fso.FileExists(oldSurfaceMap) Then
sector.SetPreviewImage EditingBody, newSurfaceMap
On Thu, Jan 21, 2010 at 12:30 PM, Alan Bartholet
> Hello Brad,
> There is an undocumented Property called IDString that will return
> you the UABI. As for the texture issues I've did a little poking
> around and it seems to be specific to the Gas Giant bodies cause it
> works fine for Terrestrial bodies. I'll poke around at it a little
> Best Regards,
> Alan Bartholet
> On Thu, Jan 21, 2010 at 11:00 AM, Shade Tree <shadetreeii-at-hotmail.com> wrote:
>> If anyone has seen on the NBOS forums I'm writing a program to generate
>> "better" Gas Giant textures.
>> ( http://www.nbos.com/forums/viewtopic.php?f=7&t=140&p=406#p406 for info )
>> I've got a beta of the program ready and am working on the astroscript to
>> integrate it into AS. Everything seems to work fine except when I tell AS
>> the new png file to use by setting the body.PreviewImageFile property it
>> will put the information in the correct place but will not update the body
>> with the new image. I can't find anything to force this update. Even
>> saving and reloading the sector will not update the view. You need to
>> manually go into the bodies properties and select the same image it already
>> has there to force the update.
>> Any help would be appreciated. Using v2.01e though the problem exists in
>> 2.01b as well.
>> Hotmail: Trusted email with powerful SPAM protection. Sign up now.
>> Nbossoftware mailing list
Nbossoftware mailing list