Discussion and information relevant to creating special missions, new ships, skins etc.
Moderators: winston , another_commander
Lestradae
---- E L I T E ----
Posts: 3095 Joined: Tue Apr 17, 2007 10:30 pm
Location: Vienna, Austria
Post
by Lestradae » Thu May 12, 2011 5:16 am
Perhaps someone sees with one look what I fail to see ...
My check program tells me in here:
Code: Select all
{
"small-turret" =
{
ai_type = "nullAI.plist";
laser_color = "cyanColor";
model = "small-turret.dat";
materials =
{
"enginsnguns.png" =
{
diffuse_map = "enginesnguns.png";
specular_map = {name = "enginsnguns.png"};
};
};
name = "Ball Turret";
roles = "small-ballturret";
setup_actions =
(
"initialiseTurret",
);
smooth = 1;
thrust = 1;
weapon_energy = 15;
};
}
... there is a ";" missing somewhere.
And I can't see it. Everything is opened and closed again as it should, isn't it?
It drives me nuts, must be in front of my eyes ...
Thanks for help anyone.
Capt. Murphy
Commodore
Posts: 1127 Joined: Fri Feb 25, 2011 8:46 am
Location: UK South Coast.
Post
by Capt. Murphy » Thu May 12, 2011 5:23 am
Looks OK at first glance.
I think you can lose the comma after "initialiseTurret"
. Not sure if that is what is making it not work.
Last edited by
Capt. Murphy on Thu May 12, 2011 6:22 am, edited 2 times in total.
Commander McLane
---- 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 » Thu May 12, 2011 5:26 am
Capt. Murphy wrote: Looks OK at first glance.
I think you can lose the comma after "initialiseTurret",
. Not sure if that is what is making not work.
Looks like it. You
must lose it.
Eric Walch
Slightly Grand Rear Admiral
Posts: 5536 Joined: Sat Jun 16, 2007 3:48 pm
Location: Netherlands
Post
by Eric Walch » Thu May 12, 2011 7:28 am
Lestradae wrote: ... there is a ";" missing somewhere.
Concentrate on the following code for your search:
Code: Select all
specular_map = {name = "enginsnguns.png"};
It probably becomes more clear when you write it out as:
Code: Select all
specular_map = {
name = "enginsnguns.png"
};
Commander McLane
---- 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 » Thu May 12, 2011 7:34 am
Good find!
I had overlooked that one.
JensAyton
Grand Admiral Emeritus
Posts: 6657 Joined: Sat Apr 02, 2005 2:43 pm
Location: Sweden
Contact:
Post
by JensAyton » Thu May 12, 2011 1:52 pm
The comma is still a problem; it will be accepted on Mac OS X 10.5 and later, but not other platforms or 10.4.
Lestradae
---- E L I T E ----
Posts: 3095 Joined: Tue Apr 17, 2007 10:30 pm
Location: Vienna, Austria
Post
by Lestradae » Fri May 13, 2011 7:53 am
Thanks guys - your suggestions helped me find & repair the problem!
It now looks like
Code: Select all
specular_map = {
name = "enginsnguns.png";
};
... and like
Code: Select all
setup_actions =
(
"initialiseTurret"
);
... and that works.
I
think these code pieces are from one of Griff's oxps - Griff, you might want to look that up these are the newest versions of the oxps I am working on ...
Cheers
L