UNEXPECTED CHARACTER WANTED '=' HELP!!!!

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

Moderators: winston, another_commander

User avatar
mandoman
---- E L I T E ----
---- E L I T E ----
Posts: 1385
Joined: Thu Apr 28, 2011 3:17 pm

Re: UNEXPECTED CHARACTER WANTED '=' HELP!!!!

Post by mandoman »

Thargoid wrote:
This is where a code-optimised file editor (like Notepad++ for Windows or Kate for Linux) come in handy, as they will highlight bracket pairs which makes it easier to spot where one(s) are missing. Either that or just write a lot of OXP code, it makes your eye quite quick to spot such things.

As to the line reported in the error log, that is only as good as the best guess of the compiler. In this case as it's within an array it will blur things slightly - had the missing brace been something like a missing quote mark on a single line then the error would be more accurate (usually).
I have such an editor, and in fact is what I use for anything I write for Oolite. Is there a particular setting I should have it for shipdata.plist/shipyard.plist, etc?
Mandotech Industries Wiki Page.

http://wiki.alioth.net/index.php/User:Mandoman
User avatar
Thargoid
Thargoid
Thargoid
Posts: 5528
Joined: Thu Jun 12, 2008 6:55 pm

Re: UNEXPECTED CHARACTER WANTED '=' HELP!!!!

Post by Thargoid »

It will depend on what the editor has to offer. If it doesn't have a plist-specific mode then try experimenting with ones for the various languages, starting with JS.
Greyth
---- E L I T E ----
---- E L I T E ----
Posts: 286
Joined: Wed Feb 08, 2012 1:57 am

Re: UNEXPECTED CHARACTER WANTED '=' HELP!!!!

Post by Greyth »

Cheers for that... note to self - no more notepad!
Oolite 1.76
Debian 6 : Ubuntu 12.04
NVidia 6200 : Radeon/AMD thang
Abit AN7 : Packard Bell TJ74
User avatar
mandoman
---- E L I T E ----
---- E L I T E ----
Posts: 1385
Joined: Thu Apr 28, 2011 3:17 pm

Re: UNEXPECTED CHARACTER WANTED '=' HELP!!!!

Post by mandoman »

I don't see a choice for plist, but it does have JavaScript, and a bunch of others.
Mandotech Industries Wiki Page.

http://wiki.alioth.net/index.php/User:Mandoman
User avatar
Gimbal Locke
---- E L I T E ----
---- E L I T E ----
Posts: 293
Joined: Sun Jan 08, 2012 11:32 pm
Location: Brussels
Contact:

Re: UNEXPECTED CHARACTER WANTED '=' HELP!!!!

Post by Gimbal Locke »

plist editors: http://en.wikipedia.org/wiki/Property_l ... ting_tools

Perhaps you can create or download a plist syntax definition for your editor of choice. You could start from adapting whatever existing syntax definition which displays plists the best already.

But google the name of your editor + plist + syntax highlighting first, you may be lucky.
User avatar
mandoman
---- E L I T E ----
---- E L I T E ----
Posts: 1385
Joined: Thu Apr 28, 2011 3:17 pm

Re: UNEXPECTED CHARACTER WANTED '=' HELP!!!!

Post by mandoman »

I did that search, and then did an Ubuntu specific search for plist editors. Evidently, I've been using the best, most recommended Text Editor out there. It does look like I can access, or modify anything I put into a Text Editor page, like JavaScript. It's what I have been using all along for writing plists, and it automatically highlights letters, brackets, and numbers where they are suppose to be hi-lighted. I have it set up now to number every line, which is a new one for me. I could always make it go to the line specified by Latest.log using the "Search" option, but now I can just scroll down to the line. Kind of neat stuff. :)
Mandotech Industries Wiki Page.

http://wiki.alioth.net/index.php/User:Mandoman
User avatar
fronclynne
Deadly
Deadly
Posts: 149
Joined: Sun Mar 01, 2009 5:36 am
Location: ::1

Re: UNEXPECTED CHARACTER WANTED '=' HELP!!!!

Post by fronclynne »

mandoman wrote:
Evidently, I've been using the best, most recommended Text Editor out there.
ed(1)?
User avatar
mandoman
---- E L I T E ----
---- E L I T E ----
Posts: 1385
Joined: Thu Apr 28, 2011 3:17 pm

Re: UNEXPECTED CHARACTER WANTED '=' HELP!!!!

Post by mandoman »

I'm not sure. Can't seem to locate a stats section on it, either.

The GREAT news is that I figured out the problem, and as usual it was on I created. I had an extra bracket at the end of the plist. Stupid, but at least I can spawn the ship, now. :D
Mandotech Industries Wiki Page.

http://wiki.alioth.net/index.php/User:Mandoman
User avatar
SandJ
---- E L I T E ----
---- E L I T E ----
Posts: 1048
Joined: Fri Nov 26, 2010 9:08 pm
Location: Help! I'm stranded down here on Earth!

Re: UNEXPECTED CHARACTER WANTED '=' HELP!!!!

Post by SandJ »

mandoman wrote:
The GREAT news is that I figured out the problem, and as usual it was one I created.
Well, who else would it be?

And that is both the frustration and reward of programming.

But it's worth it for that once-in-5-years experience of proving it is a bug in a standard library or a compiler.
Flying a Cobra Mk I Cobbie 3 with nothing but Explorers Club.OXP and a beam laser 4 proper lasers for company :D
Dropbox referral link 2GB of free space online + 500 Mb for the referral: good for securing work-in-progress.
Post Reply