Page 4 of 6

Re: Book II Character / Map Editor

Posted: August 4th, 2012, 7:43 am
by Kreador Freeaxe
The editor is used on the save files, not the config file.

Re: Book II Character / Map Editor

Posted: April 8th, 2013, 9:01 am
by Venezia Istanbul
So, has anyone managed to get this program to work on a Mac?
I've tried all day yesterday, but due to my technological impairment I had little to no results.

Is there a way to edit a savegame anyway, in an easier way maybe, without resorting to downloading two other programs? (one of the which would end up costing me more than the game itself)

I really really really don't want to restart.
Thank you!

Re: Book II Character / Map Editor

Posted: April 9th, 2013, 7:58 pm
by SpottedShroom
I did get it working on a Mac without too much trouble, but then I'm a UNIX geek. Now I'm working on bundling it as a real OS X app - just double-click and go. I ran into some complications, but I'm still cautiously optimistic. Stay tuned.

Re: Book II Character / Map Editor

Posted: April 9th, 2013, 8:23 pm
by IJBall
SpottedShroom wrote:I did get it working on a Mac without too much trouble, but then I'm a UNIX geek. Now I'm working on bundling it as a real OS X app - just double-click and go. I ran into some complications, but I'm still cautiously optimistic. Stay tuned.
Awesome news, SS. If you get that to work, Mac users such as myself will be forever in your debt. :)

(P.S. If you haven't already, you might also want to take a look under the hood of Goblin Hacker, the Mac-specific Book I character editor that someone else came up with... Maybe it'll give you some ideas?...)

Re: Book II Character / Map Editor

Posted: April 11th, 2013, 3:09 am
by Venezia Istanbul
SpottedShroom wrote:I did get it working on a Mac without too much trouble, but then I'm a UNIX geek. Now I'm working on bundling it as a real OS X app - just double-click and go. I ran into some complications, but I'm still cautiously optimistic. Stay tuned.
Yes!
Thank you!
Can I help with something?

Re: Book II Character / Map Editor

Posted: April 11th, 2013, 3:32 pm
by SpottedShroom
Yes, if you'd like to rewrite install_name_tool so that it's capable of rewriting an executable's entire Mach O header so that I can relocate libraries inside a .app bundle, that would be wonderful ;)

Getting the editor to run is a matter of installing a few Python libraries, which are mostly a challenge for non-UNIX types. Making a stand-alone OS X app involves relocating all of the necessary libraries, and their dependencies, and THEIR dependencies, etc. into the .app directory itself. There are programs that do this, like py2app, but they run into a weird limitation. Each OS X binary contains absolute references to the location of its dependencies. To make it work in a .app bundle, those have to be rewritten to be relative to the .app directory itself. There are tools like install_name_tool that let you do that, but the new path has to be the same size or smaller than the old one. So if you have pygtk installed in /opt/gtk, there's not enough room to replace that with "@executable_path" which is what's called for.

Confused yet? I know I am. Anyway, I'm trying to work around the problem by compiling pygtk and all its dependencies with a special flag that makes the linker leave extra space in the Mach O header If that doesn't work, the backup plan may be to build apps that don't contain the pygtk module and direct people to install that separately instead. It turns out that's pretty easy to do even for non-techincal people - see http://macpkg.sourceforge.net/

Re: Book II Character / Map Editor

Posted: April 11th, 2013, 8:44 pm
by SpottedShroom
Progress! I now have both character editors running as (I think) stand-alone apps. Unfortunately, the map editors are NOT working, and I presume that's what everybody really wants anyway. I'm having some weird problem where the app loads the system libraries instead of its local ones, which is leading to a crash.

Does anyone want to test the character editors or are you going to hold out for the map editors?

Re: Book II Character / Map Editor

Posted: April 12th, 2013, 3:50 am
by Venezia Istanbul
I was thinking more of a coffee, or put on some music, haha!
I will test the character editor if you want to, in the map one I'm really not interested yet.

Re: Book II Character / Map Editor

Posted: April 12th, 2013, 12:33 pm
by IJBall
SpottedShroom wrote:Does anyone want to test the character editors or are you going to hold out for the map editors?
So, is the "character editor" basically akin to a Book II version of Goblin Hacker?...

(I'd volunteer to test, but this isn't the time of year for me to be able to devote a lot of time to something like this - get back to me in late-May, and I can spend as much time on stuff like this as you want!... :wink: )

P.S. I think your "backup plan", to put together a map-editor installer that doesn't contain the pygtk module (and then directing people to install that separately) is a perfectly acceptable solution, if you can't figure out a way to install the whole thing all at-once.

Re: Book II Character / Map Editor

Posted: April 12th, 2013, 10:58 pm
by Lord_P
IJBall wrote:So, is the "character editor" basically akin to a Book II version of Goblin Hacker?...
There is also a Book I version of the savefile editor. And correct me if I'm mistaken, Goblin Hacker can only edit character files?

Re: Book II Character / Map Editor

Posted: April 13th, 2013, 12:15 pm
by IJBall
Lord_P wrote:
IJBall wrote:So, is the "character editor" basically akin to a Book II version of Goblin Hacker?...
There is also a Book I version of the savefile editor. And correct me if I'm mistaken, Goblin Hacker can only edit character files?
Yep - Goblin Hacker was just a character editor for Book I. So it sounds like what [edit: SpottedShroom has] been able to achieve, so far, is a Book I/II version of something akin to Goblin Hacker.

Re: Book II Character / Map Editor

Posted: April 13th, 2013, 12:53 pm
by Venezia Istanbul
IJBall wrote:
Lord_P wrote:
IJBall wrote:So, is the "character editor" basically akin to a Book II version of Goblin Hacker?...
There is also a Book I version of the savefile editor. And correct me if I'm mistaken, Goblin Hacker can only edit character files?
Yep - Goblin Hacker was just a character editor for Book I. So it sounds like what you've been able to achieve, so far, is a Book I/II version of something akin to Goblin Hacker.
Which, in all honesty, was pretty much all you needed to correct misplaced points and such.

Re: Book II Character / Map Editor

Posted: April 13th, 2013, 11:07 pm
by Lord_P
But the difference is that xolotl's editor also comes with a map editor (huzzah!). I don't know about the difference in functionality between the character editor and Goblin Hacker.

Re: Book II Character / Map Editor

Posted: April 13th, 2013, 11:18 pm
by IJBall
Lord_P wrote:But the difference is that xolotl's editor also comes with a map editor (huzzah!). I don't know about the difference in functionality between the character editor and Goblin Hacker.
Correct. But, so far, SpottedShroom has only been able to easily assemble an installer for the character editor portion of xolotl's editor for the Mac. The installer for the map editor portion of xolotl's editor has been more difficult to achieve...

Re: Book II Character / Map Editor

Posted: April 25th, 2013, 2:18 pm
by SpottedShroom
Okay, I think I finally have fully functioning stand-alone OS X app builds of all four utilities. Please grab a copy and try them out! Warning - the download is 76 megabytes, and unpacked they're almost 200.

Get it here.