Where is the missing ";"?

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

Moderators: winston, another_commander

Post Reply
User avatar
Lestradae
---- E L I T E ----
---- E L I T E ----
Posts: 3095
Joined: Tue Apr 17, 2007 10:30 pm
Location: Vienna, Austria

Where is the missing ";"?

Post by Lestradae »

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.
User avatar
Capt. Murphy
Commodore
Commodore
Posts: 1127
Joined: Fri Feb 25, 2011 8:46 am
Location: UK South Coast.

Re: Where is the missing ";"?

Post by Capt. Murphy »

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.
[EliteWiki] Capt. Murphy's OXPs
External JavaScript resources - W3Schools & Mozilla Developer Network
Win 7 64bit, Intel Core i5 with HD3000 (driver rev. 8.15.10.2696 - March 2012), Oolite 1.76.1
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:

Re: Where is the missing ";"?

Post by Commander McLane »

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.
User avatar
Eric Walch
Slightly Grand Rear Admiral
Slightly Grand Rear Admiral
Posts: 5536
Joined: Sat Jun 16, 2007 3:48 pm
Location: Netherlands

Re: Where is the missing ";"?

Post by Eric Walch »

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"
};
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:

Re: Where is the missing ";"?

Post by Commander McLane »

Good find! :D I had overlooked that one. :roll:
User avatar
JensAyton
Grand Admiral Emeritus
Grand Admiral Emeritus
Posts: 6657
Joined: Sat Apr 02, 2005 2:43 pm
Location: Sweden
Contact:

Re: Where is the missing ";"?

Post by JensAyton »

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.
User avatar
Lestradae
---- E L I T E ----
---- E L I T E ----
Posts: 3095
Joined: Tue Apr 17, 2007 10:30 pm
Location: Vienna, Austria

Re: Where is the missing ";"?

Post by Lestradae »

Thanks guys - your suggestions helped me find & repair the problem! :D

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
Post Reply