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?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).
UNEXPECTED CHARACTER WANTED '=' HELP!!!!
Moderators: winston, another_commander
Re: UNEXPECTED CHARACTER WANTED '=' HELP!!!!
Re: UNEXPECTED CHARACTER WANTED '=' HELP!!!!
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.
My OXPs via Boxspace or from my Wiki pages .
Thargoid TV
Dropbox Referral Link
Thargoid TV
Dropbox Referral Link
Re: UNEXPECTED CHARACTER WANTED '=' HELP!!!!
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
Debian 6 : Ubuntu 12.04
NVidia 6200 : Radeon/AMD thang
Abit AN7 : Packard Bell TJ74
Re: UNEXPECTED CHARACTER WANTED '=' HELP!!!!
I don't see a choice for plist, but it does have JavaScript, and a bunch of others.
- Gimbal Locke
- ---- E L I T E ----
- Posts: 293
- Joined: Sun Jan 08, 2012 11:32 pm
- Location: Brussels
- Contact:
Re: UNEXPECTED CHARACTER WANTED '=' HELP!!!!
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.
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.
Re: UNEXPECTED CHARACTER WANTED '=' HELP!!!!
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.
- fronclynne
- Deadly
- Posts: 149
- Joined: Sun Mar 01, 2009 5:36 am
- Location: ::1
Re: UNEXPECTED CHARACTER WANTED '=' HELP!!!!
ed(1)?mandoman wrote:Evidently, I've been using the best, most recommended Text Editor out there.
Re: UNEXPECTED CHARACTER WANTED '=' HELP!!!!
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.
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.
- SandJ
- ---- 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!!!!
Well, who else would it be?mandoman wrote:The GREAT news is that I figured out the problem, and as usual it was one I created.
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
Dropbox referral link 2GB of free space online + 500 Mb for the referral: good for securing work-in-progress.
Dropbox referral link 2GB of free space online + 500 Mb for the referral: good for securing work-in-progress.