#xu4@irc.freenode.net logs for 27 Jan 2011 (GMT)

Archive Today Yesterday Tomorrow
xu4 homepage


[04:51:41] <-- Kirben has left IRC ()
[04:53:26] --> Kirben has joined #xu4
[04:53:37] --- ChanServ gives channel operator status to Kirben
[08:03:16] <-- Kirben has left IRC ()
[08:51:03] --> Kirben has joined #xu4
[08:51:03] --- ChanServ gives channel operator status to Kirben
[12:54:59] <-- Kirben has left IRC ()
[15:06:11] --> Dominus has joined #xu4
[22:18:42] --> Kirben has joined #xu4
[22:18:42] --- ChanServ gives channel operator status to Kirben
[22:38:09] <Darrenor64> ... or possibly just something about the locations that translated differently?
[22:38:15] <Darrenor64> file locations.
[22:46:36] <Dominus> hi, probably the latter
[23:11:28] <Dominus> on the way to perhaps making a smaller built. Any reason for not utilising the built in libxml2 of OS X? That one along with zlib can be bound in dynamically
[23:32:48] <Dominus> yes, that works fine, except for the problem with the osx 10.4. Can't find the charset data files. Are these in the u4 zip or provided by xu4?
[23:34:00] <Darrenor64> they're part of the zip
[23:34:01] <Darrenor64> u4.zip
[23:34:50] <Darrenor64> if osx has libxml, and it's compatible i can't think of a reason to not use it. one less hassle.
[23:35:11] <Dominus> (I know it is probably documented..) but what is the line in the config that points to the u4.zip?
[23:35:25] <Darrenor64> config?
[23:35:25] <Dominus> so I can test whether a bundle or zlib problem
[23:35:34] <Dominus> the xu4 config file
[23:36:50] <Darrenor64> i think the search paths are hard coded. but i'll check the config.
[23:37:44] <Darrenor64> string pathname(u4find_path("ultima4-1.01.zip", zip_paths, sizeof(zip_paths) / sizeof(zip_paths[0])));
[23:37:44] <Darrenor64> if (!pathname.empty()) {
[23:37:45] <Darrenor64> add(new U4ZipPackage(pathname, "ultima4/", false));
[23:37:45] <Darrenor64> } else {
[23:37:45] <Darrenor64> pathname = u4find_path("ultima4.zip", zip_paths, sizeof(zip_paths) / sizeof(zip_paths[0]));
[23:37:45] <Darrenor64> if (!pathname.empty()) {
[23:37:46] <Darrenor64> add(new U4ZipPackage(pathname, "ultima4/", false));
[23:37:47] <Darrenor64> }
[23:37:47] <Darrenor64> }
[23:38:14] <Darrenor64> ...
[23:38:15] <Darrenor64> ..
[23:38:15] <Darrenor64> ..
[23:38:16] <Darrenor64> static const char * const paths[] = {
[23:38:16] <Darrenor64> "./",
[23:38:16] <Darrenor64> "./ultima4/",
[23:38:16] <Darrenor64> "/usr/lib/u4/ultima4/",
[23:38:16] <-- Darrenor64 has left IRC (Excess Flood)
[23:38:41] --> Darrenor64 has joined #xu4
[23:38:41] <Darrenor64> hello?
[23:38:50] <Darrenor64> I guess it doesn't like when I paste.
[23:39:02] <wjp> not too much at a time
[23:39:14] <Darrenor64> static const char * const zip_paths[] = {
[23:39:14] <Darrenor64> "./",
[23:39:14] <Darrenor64> "/usr/lib/u4/",
[23:39:14] <Darrenor64> "/usr/local/lib/u4/"
[23:39:21] <wjp> sites like http://paste.lisp.org/ are useful for this
[23:40:04] <Darrenor64> wow, classic.
[23:40:43] <Darrenor64> I don't suppose you'd be in the mood for un-hardcoding u4file.cpp
[23:40:43] <Dominus> does xu4 really have no way to specify the location yourself?
[23:41:04] <Darrenor64> looks like not... at the moment, but I'll keep investigating.
[23:41:25] <Dominus> I'm really not someone who can code, I can tinker with makefiles and configure stuff :)
[23:41:35] <Darrenor64> #ifdef MACOSX
[23:41:35] <Darrenor64> if (f == NULL) {
[23:41:36] <Darrenor64> snprintf(pathname, sizeof(pathname), "%s%s", macOSX_AppBundle_Resource_Path, fname.c_str());
[23:41:36] <Darrenor64> if (verbose)
[23:41:36] <Darrenor64> printf("trying to open %s\n", pathname);
[23:41:36] <Darrenor64> f = fopen(pathname, "rb");
[23:41:37] <Darrenor64> }
[23:41:37] <Darrenor64> #endif
[23:42:08] <Dominus> by the way, the makefile.macosx sets -DMACOSX_USER_FILES_PATH=\"/Library/Application\ Support/xu4\"
[23:42:34] <Dominus> this should really be the default location instead of /libarary/preferences/xu4
[23:42:46] <Dominus> IMO
[23:43:52] <Dominus> we use this (libarary/aplication support" for Exult as well, since the preferences folder is supposed to contain only configs and not stuff that can almost safely be nuked
[23:45:30] <Darrenor64> I'm not 100% familiar with the file locations. What exactly would you recommend I change?
[23:49:11] <Dominus> hmm, interesting, disregard. Seems that it used to be hardcoded to the same location as on unix (~/.xu4) but then changed so the location is passed on by the makefile
[23:49:51] <Dominus> I didn't check this before I just assumed by the old readme.macosx that it would be hardcoded to ~/library/preferences but it isn't
[23:50:14] <Dominus> right now it points at a good location in the makefile.macosx :)
[23:54:19] <Dominus> hmm, it might be that something blocks access on zips on my ppc system