A few case sensitive tweaks (blame Linux...)

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

Moderators: winston, another_commander

User avatar
Mauiby de Fug
---- E L I T E ----
---- E L I T E ----
Posts: 847
Joined: Tue Sep 07, 2010 2:23 pm

A few case sensitive tweaks (blame Linux...)

Post by Mauiby de Fug »

I've spent a fair amount of time looking at my log file recently, and finally decided to clear up a few of the trivial errors that were around...

DeepSpace ships (using the non-override config version)
[files.notFound]: ----- WARNING: Could not find texture file "Qbomb_DS.png".
Solution: rename Qbomb.png to QBomb.png in the shipdata.plist, line 2268
[files.notFound]: ----- WARNING: Could not find texture file "Gecko_DS.png".
Solution: rename file from gecko_DS.png to Gecko_DS.png[/quote]

Saleza Aeronautics v2.2
[ai.load.failed.unknownAI]: Can't switch AI for <ShipEntity 0xa249aeb8>{"Saiph Interceptor"} to "SaiphAI.plist" - could not load file.
Solution: rename SaiphAI.plist to saiphAI.plist in the shipdata.plist, line 292

SuperCobra 1.4.1
[script.load.notFound]: ***** Could not find a script file named supercobra.js.
Solution: renamed superCobra.js to supercobra.js

isisinterstellar.oxp

I was wondering why I hadn't seen any Vampire Mk 1s flying about. I had a look inside and the folders weren't named properly.
Solution: rename config to Config, models to Models, and textures to Textures

A few of Killer Wolf's other ships kept on giving a "cannot find route1PatrolAI.plist" error.
Solution: edit the shipdata.plist in the following opxs:
werewolf.oxp - line 7
vamp3a.oxp - lines 9, 169, 320
diamondback.oxp - lines 7, 127

Not exactly massive problems, and very easy for someone to fix to on their own computer, but I thought I'd point them out! Ideally I'd find the proper thread for each of these, but as I've just realised that it's half 6 in the morning and I haven't gone to sleep yet, I don't quite have the energy to go searching through the forums...


Something perhaps someone can help me with - where can I get hold of the Neolite ships? None of the links on the wiki page seem to be working (Core, Companion and Wolfies) and I'd very much like to add them to my Ooniverse!


Thanks for all the great work you guys put in! 'Tis a fantastic game, and I regularly get rather carried away! I've seen the sunrise rather more often than I should have recently...
User avatar
Killer Wolf
---- E L I T E ----
---- E L I T E ----
Posts: 2278
Joined: Tue Jan 02, 2007 12:38 pm

Post by Killer Wolf »

That's odd, is that purely a Linux thing then, cos i've not had probs. In fact, the route AI name was cut/pasted from another OXP way back when when i was first learning OXPing, so that OXP will not be working for you either (sorry, too far back to recall which one, now!)

cheers anyway, i'll amend my typos when i get a bit of spare time.
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: A few case sensitive tweaks (blame Linux...)

Post by Eric Walch »

Mauiby de Fug wrote:
I've spent a fair amount of time looking at my log file recently, and finally decided to clear up a few of the trivial errors that were around...
SuperCobra 1.4.1
[script.load.notFound]: ***** Could not find a script file named supercobra.js.
Solution: renamed superCobra.js to supercobra.js
Thanks for spotting this. I just uploaded a corrected version as 1.4.2. I also raised the minimum Oolite to 1.74.
It will still work with older Oolite version, but than the ship-script is not used. (Like it did with Linux users till now)
User avatar
Mauiby de Fug
---- E L I T E ----
---- E L I T E ----
Posts: 847
Joined: Tue Sep 07, 2010 2:23 pm

Post by Mauiby de Fug »

No problem!

These things weren't dramatic, life changing errors - I only noticed them because I was nosing around in my log file (with the exception of the missing Vampires)!

@KW - Yeah, I assumed it was a copy/paste thing! As I said, due to the vastness of the Ooniverse, most of this wasn't immediately obvious. My guess is that this would explain why I once saw a GalCop Vampire (a Dominatrix, I think?) launch itself from a main station, fail to change course, and blow itself up by crashing straight into the buoy! Quick question: occasionally I see some Diamondbacks, and possibly some Dominatrixes, flying about, but they don't appear on the scanner, and I can't get a target lock. I can, however, fire upon them, and they can fire upon me. Is this a glitch, or is this what a cloaked ship looks like? I assumed that a cloak would mean that they weren't visible either...
User avatar
Killer Wolf
---- E L I T E ----
---- E L I T E ----
Posts: 2278
Joined: Tue Jan 02, 2007 12:38 pm

Post by Killer Wolf »

The crashing into buoys was (i think) explained by someone somewhere, i think it might have had to do w/ speed? ie, she moved to fast and hit the buoy before the "pause" bit of the AI ended and the new state was selected? or am i talking crap? :-D There are MkI cop Vamps and Dominatrix cop Vamps, i'm assuming you saw the bigger, faster Dom.
The other thing is a feature or the ship being fitted w/ a Military Jammer, which negates a scanner stalk. you can, as you noticed, fire on them but given their armament this isn't generally advisable ;-)
Some of them have cloaking devices too - if one is active, you'll see the ship flicker rapidly, rather than vanish from sight completely.
User avatar
McDjanoff
Competent
Competent
Posts: 33
Joined: Fri Apr 16, 2010 11:13 am
Location: Space Bars or somewhere in space

Post by McDjanoff »

Killer Wolf wrote:
That's odd, is that purely a Linux thing then, cos i've not had probs. In fact, the route AI name was cut/pasted from another OXP way back when when i was first learning OXPing, so that OXP will not be working for you either (sorry, too far back to recall which one, now!)
Please don't blame Linux, on unices like systems, filenames are case sensitive.

Regards
"In the space bar, the barbarians of all races"
User avatar
fronclynne
Deadly
Deadly
Posts: 149
Joined: Sun Mar 01, 2009 5:36 am
Location: ::1

Post by fronclynne »

McDjanoff wrote:
Killer Wolf wrote:
That's odd, is that purely a Linux thing then, cos i've not had probs. In fact, the route AI name was cut/pasted from another OXP way back when when i was first learning OXPing, so that OXP will not be working for you either (sorry, too far back to recall which one, now!)
Please don't blame Linux, on unices like systems, filenames are case sensitive.

Regards
Indeed, try to tell any physicist that G and g are the same thing.
User avatar
Cmdr James
Commodore
Commodore
Posts: 1357
Joined: Tue Jun 05, 2007 10:43 pm
Location: Berlin

Post by Cmdr James »

Guys, it isnt a good or a bad thing to have a case sensitive filesystem. Windows is case insensitive, most of the rest of the world is case sensitive, big deal, neither is better or worse its just a difference.

Who's fault is this case sensitive problem? It is the fault of whoever wrote or tested the OXP, who didnt know or forgot to check the case when they worked on Windows. Lets not get all excited about pointing the finger and saying my OS is better than yours :p
User avatar
Lone_Wolf
---- E L I T E ----
---- E L I T E ----
Posts: 546
Joined: Wed Aug 08, 2007 10:59 pm
Location: Netherlands

Post by Lone_Wolf »

it's inconsistent behaviour in windows .

according to windows case rules ,

cmDr jamEs
cMdr jAmes
CMdr JAmes
Cmdr James

is not 4 names but 1 .

Seriously, when working with OXPs / JavaScript we are programming.
All programming languages i know are case sensitive.
User avatar
Smivs
Retired Assassin
Retired Assassin
Posts: 8408
Joined: Tue Feb 09, 2010 11:31 am
Location: Lost in space
Contact:

Post by Smivs »

OK so Windows is quirky, we all know that. The point is anyone writing an OXP on a Windows machine needs to know this. As Windows ain't going away anytime soon, we have to live with it, so why not take a practical approach and put a prominent 'Reminder' about this on the Wiki OXP pages somewhere and hope this reduces the number of these bugs.
Commander Smivs, the friendliest Gourd this side of Riedquat.
User avatar
Cmdr James
Commodore
Commodore
Posts: 1357
Joined: Tue Jun 05, 2007 10:43 pm
Location: Berlin

Post by Cmdr James »

Im not sure whats inconsistent about the windows rules, it seems perfectly consistent case insensitive behaviour to me.

And whilst most programming languages are case sensitive, it is not true that file handling is always case sensitive and that is what we are talking about, which is normally delegated to the OS. So it is the programmer who should be aware of the differences, and deal with them.

For the record, I use a mac at home, and Im no windows fanboy. Nor apple fanboy, I think an OS is a runtime for my apps, not a way of life.
User avatar
DaddyHoggy
Intergalactic Spam Assassin
Intergalactic Spam Assassin
Posts: 8515
Joined: Tue Dec 05, 2006 9:43 pm
Location: Newbury, UK
Contact:

Post by DaddyHoggy »

I use both Windows and Linux in equal measure, therefore I've kind of got used to making sure I use all lowercase and underscores (does anybody still use underscores for spaces?)

I still get cocked up by '/' and '\' and get cross with Windows when it doesn't understand what I mean when I type "ls -la".

However what I have discovered using some apps is that they arbitrarily change a perfectly reasonable '.png' extension to '.PNG' and if you don't notice and you're using Windows... (old versions of irfanview for example)
Selezen wrote:
Apparently I was having a DaddyHoggy moment.
Oolite Life is now revealed here
User avatar
Mauiby de Fug
---- E L I T E ----
---- E L I T E ----
Posts: 847
Joined: Tue Sep 07, 2010 2:23 pm

Post by Mauiby de Fug »

fronclynne wrote:
Indeed, try to tell any physicist that G and g are the same thing.
*laughs* Or MV and mV...

I wasn't intending to start an OS war when I wrote the thread subject; I was merely indicating the cause, and why some of these hadn't necessarily been picked up yet.
Personally, I prefer case sensitivity - a file's name should be determined by the characters that form it, and "A" is a different character to "a". Or at least that's how my mind with its preference for order and patterns sees things...
User avatar
Frame
---- E L I T E ----
---- E L I T E ----
Posts: 1477
Joined: Fri Mar 30, 2007 8:32 am
Location: Witchspace

Post by Frame »

reminder to oxp writers

Verify will catch case sensitive issues.

for example in a dos prompt or mac equivalent type

Code: Select all

oolite.exe --verify-oxp DRIVELETTER:/oolite/addons/youroxp.oxp/
where driveletter is the letter of your drive like C: D: E: F: being the most common used... the rest should be self-explanatory

Cheers Frame
Bounty Scanner
Number 935
User avatar
Kaks
Quite Grand Sub-Admiral
Quite Grand Sub-Admiral
Posts: 3009
Joined: Mon Jan 21, 2008 11:41 pm
Location: The Big Smoke

Post by Kaks »

Please ignore drive letters, if you're using a mac or linux system, they're a weird dos/windows thing! :D
Hey, free OXPs: farsun v1.05 & tty v0.5! :0)
Post Reply