Which tool for tweaking OXZ files for iMac?

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

Moderators: another_commander, winston

User avatar
Cody
Sharp Shooter Spam Assassin
Sharp Shooter Spam Assassin
Posts: 16057
Joined: Sat Jul 04, 2009 9:31 pm
Location: The Lizard's Claw
Contact:

Re: Which tool for tweaking OXZ files for iMac?

Post by Cody »

This forum has a long history of thread derailment, RGVV. Be thankful there are no jelly babies!
I would advise stilts for the quagmires, and camels for the snowy hills
And any survivors, their debts I will certainly pay. There's always a way!
User avatar
RGVV
Competent
Competent
Posts: 54
Joined: Sun Jan 03, 2021 2:18 pm
Location: Nunsexmonkrock

Re: Which tool for tweaking OXZ files for iMac?

Post by RGVV »

Ah! Thread hijacking is a feature and not a bug here - I see. 8)
I was born in Xixax (oh la la la dee)/On my mama's farm/My father was a junkie/Und wir war'n sehr arm/My brother was a soldier (ooh)/By the war in Vietnam (shoot)/My uncle is a spy/In the Soviet Union
User avatar
RGVV
Competent
Competent
Posts: 54
Joined: Sun Jan 03, 2021 2:18 pm
Location: Nunsexmonkrock

Re: Which tool for tweaking OXZ files for iMac?

Post by RGVV »

Doesn't the Mac Notebook work all right? What is the advantage of Textastic? And have you yet managed to rezip any of your tweaked OXZ's?
I had Textastic laying around here, didn't try Mac Notebook, also because I thought it might save hidden characters too, like Windows Notepad does. Yes, I've managed to rezip the tweaked OXZ's, just for test purposes. Textastic shows tab indents, for example, and allows you to keep multiple files open in tabs, which is very convenient.

I'm trying to figure out how to make a start-up expansion pack with the Copperhead Mk. II and 1,000 credits at Lave station. Have been busy this afternoon with reading the Elite Wiki on how to compile expansion packs in general. I maybe unique that I'm somebody who first RTFM. :D
I was born in Xixax (oh la la la dee)/On my mama's farm/My father was a junkie/Und wir war'n sehr arm/My brother was a soldier (ooh)/By the war in Vietnam (shoot)/My uncle is a spy/In the Soviet Union
User avatar
LittleBear
---- E L I T E ----
---- E L I T E ----
Posts: 2862
Joined: Tue Apr 04, 2006 7:02 pm
Location: On a survey mission for GalCop. Ship: Cobra Corvette: Hidden Dragon Rated: Deadly.

Re: Which tool for tweaking OXZ files for iMac?

Post by LittleBear »

Not sure about the Mac Version of Notepad, but the first rule of OXPing on a PC is Thou Shalt Not Use Notpad.

The windows version of Note Pad completley mangels the file format and often means Oolite won't read a file saved in notepad.

Anything where you have the option to turn on line numbers and see the code in Java format (this makes it way easier to read) should be fine though.
OXPS : The Assassins Guild, Asteroid Storm, The Bank of the Black Monks, Random Hits, The Galactic Almanac, Renegade Pirates can be downloaded from the Elite Wiki here.
User avatar
maik
Wiki Wizard
Wiki Wizard
Posts: 2020
Joined: Wed Mar 10, 2010 12:30 pm
Location: Ljubljana, Slovenia (mainly industrial, feudal, TL12)

Re: Which tool for tweaking OXZ files for iMac?

Post by maik »

The "Mac version" of Windows Notepad is actually TextEdit, not "Notebook". As far as I'm aware it does not mangle file formats though, so in that sense I would not call it a Mac version of Windows Notepad :wink:
User avatar
Cholmondely
Archivist
Archivist
Posts: 4983
Joined: Tue Jul 07, 2020 11:00 am
Location: The Delightful Domains of His Most Britannic Majesty (industrial? agricultural? mainly anything?)
Contact:

Re: Which tool for tweaking OXZ files for iMac?

Post by Cholmondely »

LittleBear wrote: Mon Jan 11, 2021 5:49 pm
Not sure about the Mac Version of Notepad, but the first rule of OXPing on a PC is Thou Shalt Not Use Notepad.

The windows version of Note Pad completely mangles the file format and often means Oolite won't read a file saved in notepad.

Anything where you have the option to turn on line numbers and see the code in Java format (this makes it way easier to read) should be fine though.
As Maik noted, I've used the Macintosh's TextEdit to tweak a handful of .oxp's without any side-effects (so far!). But no line numbers or any other flourishes. I did have a hunt around to find something a bit more baroque, but failed dismally. I'll have to have a peek at yours!

NB: these are the hijacking jellybabies, if you want a laugh...

Edited to add: TextEdit does smuggle in invisible code. See Stranger's post below for solutions.
Last edited by Cholmondely on Wed Apr 06, 2022 7:46 am, edited 2 times in total.
Comments wanted:
Missing OXPs? What do you think is missing?
Lore: The economics of ship building How many built for Aronar?
Lore: The Space Traders Flight Training Manual: Cowell & MgRath Do you agree with Redspear?
User avatar
RGVV
Competent
Competent
Posts: 54
Joined: Sun Jan 03, 2021 2:18 pm
Location: Nunsexmonkrock

Re: Which tool for tweaking OXZ files for iMac?

Post by RGVV »

Textastic has line numbers too.
I was born in Xixax (oh la la la dee)/On my mama's farm/My father was a junkie/Und wir war'n sehr arm/My brother was a soldier (ooh)/By the war in Vietnam (shoot)/My uncle is a spy/In the Soviet Union
User avatar
maik
Wiki Wizard
Wiki Wizard
Posts: 2020
Joined: Wed Mar 10, 2010 12:30 pm
Location: Ljubljana, Slovenia (mainly industrial, feudal, TL12)

Re: Which tool for tweaking OXZ files for iMac?

Post by maik »

In case you are interested in a free alternative: Visual Studio Code is available for MacOS, and surprisingly (it is from Microsoft, no less) small and fast as well.
User avatar
Disembodied
Jedi Spam Assassin
Jedi Spam Assassin
Posts: 6879
Joined: Thu Jul 12, 2007 10:54 pm
Location: Carter's Snort

Re: Which tool for tweaking OXZ files for iMac?

Post by Disembodied »

Xcode comes with all sorts of bells and whistles for editing .plists, and is free on the Apple app store.
User avatar
stranger
---- E L I T E ----
---- E L I T E ----
Posts: 351
Joined: Thu Apr 05, 2018 5:31 am
Location: Vladivostok, Russia

Re: Which tool for tweaking OXZ files for iMac?

Post by stranger »

TextEdit has two output formats - RTF (by default) and plain text. Switch to plain text to edit code - it will be new default settings for all files opened by TextEdit. Plain text has no any hidden characters and safe to modify code. TextEdit is a good simple general-purpose editor, but it has no line numbers and color-coding.
I'm using Dashcode to maintain my projects. It has line numbers and color coding. Dashcode was developed to create dashboard widgets and web applications, but it is pretty fine to edit JavaScript and property lists. Maybe it lacks functionality to develop and manage large integrated projects, but it is fine for me. And it is free.
There are also other free code editors for Mac, like Brackets. You don't need AppleID to get Brackets. It has line numbers and color coding too.
Sometimes I'm also using PlistEdit Pro to convert tabulated text onto plist format.
Old, but still essential utility - ZipCleaner. It removes Mac resource files from packed archives. Use it to prepare to upload OXZs from Mac.
The last, but not the least - I have both Oolite versions, game and development. You can safely run both versions from one drive - it will share Managed AddOns folder, but has unique AddOns folders. Development versions has very useful debugging tools. Place your experimental packages onto AddOns folder of Oolite development version, test and edit it without any harm for your game (you just need separate save files to test your wild ideas).
User avatar
Cholmondely
Archivist
Archivist
Posts: 4983
Joined: Tue Jul 07, 2020 11:00 am
Location: The Delightful Domains of His Most Britannic Majesty (industrial? agricultural? mainly anything?)
Contact:

Re: Which tool for tweaking OXZ files for iMac?

Post by Cholmondely »

maik wrote: Mon Jan 11, 2021 6:26 pm
In case you are interested in a free alternative: Visual Studio Code is available for MacOS, and surprisingly (it is from Microsoft, no less) small and fast as well.
Just stumbled across this one (don't understand how I failed to notice it here). It seems to have syntax editors for javascript & .plists (optional)

Can anybody tell me anything about it (especially since Maik currently seems to reside in the oesophagal tube of the Witchspace Lobster...)? It also seems to be available for Windows & Unix.

I've found that the current Script Editor which came with my AppleMac is not terribly useful. SubEthaEdit is better, but the syntax correction is somewhat ckronquey. And, without an e-mail, most of the others seem unobtainable.
Comments wanted:
Missing OXPs? What do you think is missing?
Lore: The economics of ship building How many built for Aronar?
Lore: The Space Traders Flight Training Manual: Cowell & MgRath Do you agree with Redspear?
User avatar
phkb
Impressively Grand Sub-Admiral
Impressively Grand Sub-Admiral
Posts: 4632
Joined: Tue Jan 21, 2014 10:37 pm
Location: Writing more OXPs, because the world needs more OXPs.

Re: Which tool for tweaking OXZ files for iMac?

Post by phkb »

Cholmondely wrote: Wed May 11, 2022 5:39 pm
Can anybody tell me anything about it (especially since Maik currently seems to reside in the oesophagal tube of the Witchspace Lobster...)? It also seems to be available for Windows & Unix.
Visual Studio Code is the editor I use for OXP and core Oolite development. I find it extremely useful and functional but also very lightweight. In my setup, I've added some automation scripts to some keyboard shortcuts that help with the process of working on multiple versions of Oolite. And for clarity, I'm on Windows.
User avatar
phkb
Impressively Grand Sub-Admiral
Impressively Grand Sub-Admiral
Posts: 4632
Joined: Tue Jan 21, 2014 10:37 pm
Location: Writing more OXPs, because the world needs more OXPs.

Re: Which tool for tweaking OXZ files for iMac?

Post by phkb »

It's probably worth adding that I don't edit OXZ files directly - I unzip them to an OXP folder before doing anything to them, and I do that manually. I haven't yet put a script together for auto-OXZ-ifying an OXP, but it would probably be possible. Because I have a back-catalog of both formats (OXZ and an zipped OXP) that need slightly different processes, I've found it simpler to do it manually as well.
User avatar
montana05
---- E L I T E ----
---- E L I T E ----
Posts: 1166
Joined: Mon May 30, 2016 3:54 am
Location: lurking in The Devils Triangle (G1)

Re: Which tool for tweaking OXZ files for iMac?

Post by montana05 »

Cholmondely wrote: Wed May 11, 2022 5:39 pm
Can anybody tell me anything about it (especially since Maik currently seems to reside in the oesophagal tube of the Witchspace Lobster...)? It also seems to be available for Windows & Unix.
Totally agreed with phkb, this editor is pretty useful for Oolite tweaking. Furthermore, several expansions are available to make your life easier. Same as phkb I unzip all packages first before modifying them.
Scars remind us where we've been. They don't have to dictate where we're going.
Post Reply