Help asked for Famous planets oxp

Discussion and information relevant to creating special missions, new ships, skins etc.

Moderators: winston, another_commander

User avatar
pagroove
---- E L I T E ----
---- E L I T E ----
Posts: 3035
Joined: Wed Feb 21, 2007 11:52 pm
Location: On a famous planet

Help asked for Famous planets oxp

Post by pagroove »

Code: Select all

this.famousPlanet = function()
{
	if (this.system_info[galaxyNumber * 256 + system.ID] != 0) {
		system.mainPlanet.setTexture('famous_planet' + this.system_info[galaxyNumber * 256 + system.ID] + '.png');
	}

this.famousPlanet = function()
{
	if (this.system_info[galaxyNumber * 256 + 130] != 0) {
		system.mainPlanet.setTexture('famous_planet1' + this.system_info[galaxyNumber * 256 + system.ID] + '.png');
	}

@CaptKev or others

Captkev provided me with this code (see above). He wrote (in the screenshots tread) that if I want to have a texture for Zaonce I have to change the number in the array element to 130. I don't know what this exactly means. Above is the code for Lave and then for Zaonce. In the current state this is not working. Which numbers do I have to change? to make it work?

The texture is called Famous_planet1.png (also mentioned in the screenshots tread)
For P.A. Groove's music check
https://soundcloud.com/p-a-groove
Famous Planets v 2.7. (for Povray)
Image
https://bb.oolite.space/viewtopic.php?f=4&t=13709
User avatar
LittleBear
---- E L I T E ----
---- E L I T E ----
Posts: 2876
Joined: Tue Apr 04, 2006 7:02 pm
Location: On a survey mission for GalCop. Ship: Cobra Corvette: Hidden Dragon Rated: Deadly.

Post by LittleBear »

Give it a go with "Famous_planet1" rather than "famous_planet1". I don't know, but the script may be case-sensitive.

Should the second function by planetNumber rather than galaxyNumber ?
OXPS : The Assassins Guild, Asteroid Storm, The Bank of the Black Monks, Random Hits, The Galactic Almanac, Renegade Pirates can be downloaded from the Elite Wiki here.
User avatar
CaptKev
---- E L I T E ----
---- E L I T E ----
Posts: 519
Joined: Fri Jan 26, 2007 3:21 pm
Location: Shropshire, UK

Post by CaptKev »

Sorry pagroove, it's just me being as clear as mud again.

locate the system_info array at the top of the code, above the array you should see a comment line with numbers from 001 to 256.
Go to 130 in the comment line then in the line immediately below (with all the zero's in it) change the 0, to a 2,.
Then just name your texture famous_planet2.png.

Image

Good luck! :D
Download Fighter HUD, Stingray and System Redux from the EliteWiki
User avatar
pagroove
---- E L I T E ----
---- E L I T E ----
Posts: 3035
Joined: Wed Feb 21, 2007 11:52 pm
Location: On a famous planet

Post by pagroove »

Getting there but it still isn't working. The Array element is now 2 (is is 0X2) ? or even 2 X2 ? . I think I get that part (finally).

But do I also have to make a new entry for the this.famousPlanet=funciton or should this work without making ANY chances but only the number to the config file?

Have faith. We're getting closer to a new OXP/

8)
For P.A. Groove's music check
https://soundcloud.com/p-a-groove
Famous Planets v 2.7. (for Povray)
Image
https://bb.oolite.space/viewtopic.php?f=4&t=13709
User avatar
CaptKev
---- E L I T E ----
---- E L I T E ----
Posts: 519
Joined: Fri Jan 26, 2007 3:21 pm
Location: Shropshire, UK

Post by CaptKev »

Just the digit two followed by a comma will be fine, 0x just means the number is in hexadecimal notation.

No change to the code is required it's all done by the array.

If you still can't get it to work, send it to me and I'll make the required change for you.
Download Fighter HUD, Stingray and System Redux from the EliteWiki
User avatar
pagroove
---- E L I T E ----
---- E L I T E ----
Posts: 3035
Joined: Wed Feb 21, 2007 11:52 pm
Location: On a famous planet

Post by pagroove »

Hi CaptKev I will look into it this week. No haste a.t.m. 8)
For P.A. Groove's music check
https://soundcloud.com/p-a-groove
Famous Planets v 2.7. (for Povray)
Image
https://bb.oolite.space/viewtopic.php?f=4&t=13709
User avatar
pagroove
---- E L I T E ----
---- E L I T E ----
Posts: 3035
Joined: Wed Feb 21, 2007 11:52 pm
Location: On a famous planet

Post by pagroove »

Hi Capt Kev,

I did try it and changed the o,o to 0,2 in the Array element (at the place where Zaonce 130 is and then in the section with all the 0,0 ) and changing nothing else to the code. I added in the texture directory a .png called Famous_planet2.png. Atm it's just a copy of my lave texture which works.

I can't get it to work. Shall I send the config file to you as a reference. Maybe you can explain me what I'm doing wrong.

I would like you to ask if you can enable the following unique planet textures for me:

This is what I want for texture pack 1 Galaxy one

Planet Status

Lave Completed
Reorte 0%
Tionsla 0%
Tianve 0%
Teraed 0%
Leesti 0%
Isinor 0%
Diso 0%
Taranis 0%

This OXP will be an add-on for System Redux
See it as a sort of System Redux optional booster pack. And therefore any one is free to draw textures for the above planets under the conditon that it reflects the WIKI info or other fan fiction or at least the description in the planet screen.


[/s]
For P.A. Groove's music check
https://soundcloud.com/p-a-groove
Famous Planets v 2.7. (for Povray)
Image
https://bb.oolite.space/viewtopic.php?f=4&t=13709
User avatar
CaptKev
---- E L I T E ----
---- E L I T E ----
Posts: 519
Joined: Fri Jan 26, 2007 3:21 pm
Location: Shropshire, UK

Post by CaptKev »

Fine, send the Script.js to me. What galaxy is Tionsla in?

Your list doesn't include Zaonce, do you still want it as your second planet?
Download Fighter HUD, Stingray and System Redux from the EliteWiki
User avatar
Commander McLane
---- E L I T E ----
---- E L I T E ----
Posts: 9520
Joined: Thu Dec 14, 2006 9:08 am
Location: a Hacker Outpost in a moderately remote area
Contact:

Post by Commander McLane »

All the mentioned planets (Tionisla as well) are in Galaxy 1. (Tionsla is just a typo.)

Seems there is no fame to gain elsewhere... :shock:
User avatar
CaptKev
---- E L I T E ----
---- E L I T E ----
Posts: 519
Joined: Fri Jan 26, 2007 3:21 pm
Location: Shropshire, UK

Post by CaptKev »

Thanks, Commander McLane.
Download Fighter HUD, Stingray and System Redux from the EliteWiki
User avatar
pagroove
---- E L I T E ----
---- E L I T E ----
Posts: 3035
Joined: Wed Feb 21, 2007 11:52 pm
Location: On a famous planet

Post by pagroove »

Hi CaptKev,

I sent you the E-mail with the script.
Yes I would like to add Zaonce as planet 2 :D

Thnx in advance,

Greetings,
P.A. Groove
For P.A. Groove's music check
https://soundcloud.com/p-a-groove
Famous Planets v 2.7. (for Povray)
Image
https://bb.oolite.space/viewtopic.php?f=4&t=13709
User avatar
CaptKev
---- E L I T E ----
---- E L I T E ----
Posts: 519
Joined: Fri Jan 26, 2007 3:21 pm
Location: Shropshire, UK

Post by CaptKev »

All done, cheques can be made payable to... :wink:
Download Fighter HUD, Stingray and System Redux from the EliteWiki
User avatar
pagroove
---- E L I T E ----
---- E L I T E ----
Posts: 3035
Joined: Wed Feb 21, 2007 11:52 pm
Location: On a famous planet

Post by pagroove »

mmmm... :D :D
What about some free planets for you 8)
For P.A. Groove's music check
https://soundcloud.com/p-a-groove
Famous Planets v 2.7. (for Povray)
Image
https://bb.oolite.space/viewtopic.php?f=4&t=13709
User avatar
pagroove
---- E L I T E ----
---- E L I T E ----
Posts: 3035
Joined: Wed Feb 21, 2007 11:52 pm
Location: On a famous planet

Post by pagroove »

Ok so next I have a question:

Are there any OXP authors which have a planet OXP (Tionsla, Tianve) who DO mind that I texture the planet? Otherwise I test it with these OXP and if it's working (as is the case with the Lave OXP) I release the main planets in this OXP.

First I'm gonna do Zaonce
For P.A. Groove's music check
https://soundcloud.com/p-a-groove
Famous Planets v 2.7. (for Povray)
Image
https://bb.oolite.space/viewtopic.php?f=4&t=13709
User avatar
CaptKev
---- E L I T E ----
---- E L I T E ----
Posts: 519
Joined: Fri Jan 26, 2007 3:21 pm
Location: Shropshire, UK

Post by CaptKev »

pagroove wrote:
mmmm... :D :D
What about some free planets for you 8)
Make it two planets and a moon and you've got yourself a deal.
Download Fighter HUD, Stingray and System Redux from the EliteWiki
Post Reply