Editing oxp files???

For test results, bug reports, announcements of new builds etc.

Moderators: winston, another_commander, Getafix

Post Reply
User avatar
elite-player
Average
Average
Posts: 9
Joined: Wed Apr 10, 2019 9:12 am

Editing oxp files???

Post by elite-player » Mon Dec 02, 2019 9:01 pm

I like to edit some oxp's. Not so much the actual coding, but just the odd bit of wording that appears on screen. Some oxp's I can edit without any problem and after restarting the game (with shift pressed) the oxp still works OK.
However, sometimes even the smallest change in an oxp file will cause the whole thing to not work or even be recognised by the game.
For example... in the Explorers club oxp I wanted to change something (in bold) in the missiontext.plist file:

"explorers_club_rank_string" = "Systems visited: current chart — [explorers_club_rank_chart], universe — [explorers_club_rank_total]. Rank: [explorers_club_rank_player].";

to

"explorers_club_rank_string" = "Systems visited: Current Sector — [explorers_club_rank_chart], Galaxy — [explorers_club_rank_total]. Rank: [explorers_club_rank_player].";

As you can see I haven't touched any coding itself, only the word/s that appear onscreen.

When I made this change, my log file showed this:

16:46:12.811 [plist.parse.failed]: Failed to parse ../AddOns/Explorers_Club_1.4.4.oxp/Config/missiontext.plist as a property list.
Parse failed at line 1 (char 1) - extra data after parsed string

Does anyone have any idea why I can edit some oxp's, but not others?

Thanks very much.

User avatar
Cody
Sharp Shooter Spam Assassin
Sharp Shooter Spam Assassin
Posts: 13693
Joined: Sat Jul 04, 2009 9:31 pm
Location: Corke's Drift
Contact:

Re: Editing oxp files???

Post by Cody » Mon Dec 02, 2019 9:18 pm

The above changes seem to work fine here, with no errors reported. Which OS (and which text editor) are you using?
Their dreams a tattered sail in the wind

User avatar
elite-player
Average
Average
Posts: 9
Joined: Wed Apr 10, 2019 9:12 am

Re: Editing oxp files???

Post by elite-player » Mon Dec 02, 2019 10:30 pm

I'm using Windows 10 and NotePad.

Like I said, it only seems to be certain oxp's that won't allow me to edit their files and then they always come up with the same error in the log file.

There was also a time when I COULD edit a game save file, then play with it fine. But now if I edit one, it won't show up in the game.
Very strange.

User avatar
Cody
Sharp Shooter Spam Assassin
Sharp Shooter Spam Assassin
Posts: 13693
Joined: Sat Jul 04, 2009 9:31 pm
Location: Corke's Drift
Contact:

Re: Editing oxp files???

Post by Cody » Mon Dec 02, 2019 10:36 pm

I'd recommend Notepad++ rather than Notepad - try that.
Their dreams a tattered sail in the wind

User avatar
elite-player
Average
Average
Posts: 9
Joined: Wed Apr 10, 2019 9:12 am

Re: Editing oxp files???

Post by elite-player » Mon Dec 02, 2019 10:39 pm

NotePad still let's me edit some oxp files, so it does work. But I'll try ++.

Thanks.

User avatar
Cody
Sharp Shooter Spam Assassin
Sharp Shooter Spam Assassin
Posts: 13693
Joined: Sat Jul 04, 2009 9:31 pm
Location: Corke's Drift
Contact:

Re: Editing oxp files???

Post by Cody » Mon Dec 02, 2019 11:02 pm

Notepad has a long history of screwing with Oolite files! If you're going to tinker, avoid it.
Their dreams a tattered sail in the wind

User avatar
elite-player
Average
Average
Posts: 9
Joined: Wed Apr 10, 2019 9:12 am

Re: Editing oxp files???

Post by elite-player » Tue Dec 03, 2019 9:20 am

Notepad++ seems to work.

So I can only assume that Notepad must be adding something to certain files which the game does not like.

Thank you.

User avatar
Cody
Sharp Shooter Spam Assassin
Sharp Shooter Spam Assassin
Posts: 13693
Joined: Sat Jul 04, 2009 9:31 pm
Location: Corke's Drift
Contact:

Re: Editing oxp files???

Post by Cody » Tue Dec 03, 2019 11:49 pm

elite-player wrote:
Tue Dec 03, 2019 9:20 am
So I can only assume that Notepad must be adding something to certain files which the game does not like.
Yep! I'm sure I read they'd improved Notepad for WX, but it's still up to its old tricks.
Their dreams a tattered sail in the wind

Post Reply