Page 1 of 3

Help asked for Famous planets oxp

Posted: Sun Jun 01, 2008 12:42 am
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)

Posted: Sun Jun 01, 2008 3:02 pm
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 ?

Posted: Sun Jun 01, 2008 4:18 pm
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

Posted: Sun Jun 01, 2008 9:31 pm
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)

Posted: Mon Jun 02, 2008 7:25 am
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.

Posted: Tue Jun 03, 2008 5:35 pm
by pagroove
Hi CaptKev I will look into it this week. No haste a.t.m. 8)

Posted: Thu Jun 05, 2008 12:20 am
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]

Posted: Thu Jun 05, 2008 9:05 am
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?

Posted: Thu Jun 05, 2008 9:18 am
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:

Posted: Thu Jun 05, 2008 10:18 am
by CaptKev
Thanks, Commander McLane.

Posted: Thu Jun 05, 2008 9:05 pm
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

Posted: Fri Jun 06, 2008 9:44 am
by CaptKev
All done, cheques can be made payable to... :wink:

Posted: Fri Jun 06, 2008 7:30 pm
by pagroove
mmmm... :D :D
What about some free planets for you 8)

Posted: Fri Jun 06, 2008 7:40 pm
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

Posted: Fri Jun 06, 2008 8:45 pm
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.