#nuvie@irc.freenode.net logs for 6 Mar 2005 (GMT)

Archive Today Yesterday Tomorrow
Nuvie homepage

[00:00:22] <sbx> I set the month to 0 in U6 and it created an eclipse. :)
[00:00:30] <Yuv422> cool
[00:00:32] <Yuv422> righto
[00:01:08] <Yuv422> #define NUVIE_DIR_N 0
[00:01:15] <sbx> that should give a clue to their calculation
[00:01:22] <sbx> yeah thats fine
[00:01:36] <sbx> match them to actor directions, then you can redefine the actor directions to match those
[00:01:44] <sbx> #define ACTOR_DIR_N NUVIE_DIR_N
[00:02:23] <sbx> that is, start with N S E W
[00:02:43] <Yuv422> that's a good idea
[00:03:16] <sbx> :)
[00:03:37] <sbx> get_random_dir();
[00:03:46] <sbx> get_dir_name();
[00:03:59] <sbx> other possible functions that would use directions names
[00:04:27] <sbx> there is already a get_direction_name() that uses rel_x,rel_y
[00:07:26] <Yuv422> we should probably get rid of ACTOR_DIR_x defines
[00:07:41] <Yuv422> and just use the new NUVIE_DIR_x stuff
[00:07:41] <sbx> that's a good idea
[00:07:47] <Yuv422> I'll fix that up
[00:11:25] <sbx> brb
[00:11:29] <-- sbx has left IRC ("BRB")
[00:20:09] --> pF-SBX has joined #nuvie
[00:20:18] --- pF-SBX is now known as sbx
[00:21:30] <Yuv422> wb sbx
[00:21:33] <sbx> ty
[00:21:35] <sbx> im getting the same false mouseclicks in XP :\
[00:21:49] <Yuv422> hmm
[00:21:53] <Yuv422> sticky mouse?
[00:22:59] <sbx> i pulled on the right mouse button and it hasnt happened again, yet
[00:23:30] * Yuv422 only has one mouse button
[00:23:37] <sbx> hehe
[00:23:42] <Yuv422> actually the whole mouse is a button. ;)
[00:23:56] <sbx> interesting
[00:23:58] <sbx> have a mousewheel?
[00:24:04] <Yuv422> nope
[00:24:46] <sbx> i guess that feature request to make the mouse scroll with the mousewheel doesnt apply to you then
[00:25:00] <Yuv422> true.
[00:25:09] <sbx> make the msgscroll scroll*
[00:25:19] <Yuv422> hehe
[00:26:15] <sbx> does the numpad work to input numbers for you?
[00:26:23] <sbx> in the teleport menu, for example
[00:27:16] <Yuv422> let me check
[00:27:58] <sbx> in u6 alt-215 makes NPCs teleport to their work location
[00:30:28] <Yuv422> yes it does
[00:30:42] <Yuv422> but my numpad is only a num pad
[00:30:49] <Yuv422> I don't have a numlock key
[00:30:55] <sbx> ok
[00:30:57] <sbx> doesn't work in windows
[00:33:47] <sbx> nope, wasnt my mouse causing the fake rightclicks
[00:34:00] <sbx> and I get fake alt keys
[00:34:08] <sbx> and my mouse gets trapped in some windows
[00:34:11] <sbx> wth
[00:34:22] <sbx> no idea what causes it
[00:35:10] <sbx> maybe somethings overheating
[00:35:26] <Yuv422> what's your cpu temp?
[00:36:38] * sbx doesn't know how to check.
[00:37:32] <Yuv422> soo close on the wall bug
[00:37:42] <sbx> :)
[00:37:42] <sbx> but?
[00:37:54] <Yuv422> just one tile misbehaving now
[00:45:21] <Yuv422> hmm fixing this last tile might break support for cook fires
[00:45:29] <Yuv422> I'll have to think about this some more
[00:47:27] <sbx> :\
[00:48:44] <sbx> http://members.cox.net/~sbx/u6-mousehole.png
[00:48:49] <sbx> http://members.cox.net/~sbx/nuvie-mousehole.png
[00:49:25] <Yuv422> yeah I'll have a go at fixing that one
[00:49:27] <Yuv422> :)
[00:50:16] <sbx> :) ok
[00:52:52] <Yuv422> going afk for a bit
[00:53:12] <sbx> ok
[00:53:55] <sbx> wondered why my LAN connection wasnt working, the cable was just loose :)
[00:55:19] <sbx> that may have affected the ps/2 inputs
[01:44:15] <Yuv422> I'm going out for a bit
[01:44:20] <Yuv422> be back later
[01:44:22] <Yuv422> cya
[01:44:25] <-- Yuv422 has left IRC ()
[03:33:09] --> trand has joined #nuvie
[04:25:53] --> sbx|afk has joined #nuvie
[04:26:21] <-- sbx|afk has left IRC (Client Quit)
[04:33:12] --> EsBee-Eks has joined #nuvie
[04:44:05] <-- sbx has left IRC (Read error: 110 (Connection timed out))
[05:06:00] <-- EsBee-Eks has left IRC ("casts gate travel")
[05:07:55] <-- trand has left IRC (Remote closed the connection)
[09:28:13] --> trand has joined #nuvie
[10:11:23] --> Yuv422 has joined #nuvie
[10:47:31] --> Fl00der has joined #nuvie
[10:49:10] <Yuv422> hi Fl00der
[10:49:44] <wjp> packaging: I was thinking of putting a config file in /usr/share/nuvie pointing to /usr/share/nuvie as the datadir and /usr/share/nuvie/ultima6 as the U6 dir
[10:50:40] <Fl00der> morning
[10:50:41] <Yuv422> sounds good
[10:50:44] <wjp> that way installation instructions on fedora are simply: install Nuvie RPM and put U6 in /usr/share/nuvie/ultima6
[10:52:05] <Yuv422> :)
[10:53:47] <wjp> does nuvie handle not being able to write to the config file properly?
[10:54:12] <Yuv422> nuvie doesn't write to the config file yet
[10:56:07] <wjp> ah, I see nuvie is using pentagram's old conf tree
[10:56:21] <wjp> the one that can use multiple config files
[10:56:32] <Yuv422> hehe yeah
[10:56:53] <Yuv422> the config tree when in quite early in nuvie's development
[10:57:02] <wjp> so a readonly file isn't a problem as long as there is a writable one as well
[10:57:14] <Yuv422> when/went
[10:57:26] <Yuv422> yes
[10:57:31] <wjp> the pentagram conf tree has been entirely rewritten since, by the way
[10:57:46] <Yuv422> cool
[10:57:59] <wjp> it now uses files resembling windows .ini files
[10:58:16] <Yuv422> I'll have to have a look
[11:02:26] <wjp> we had a fairly lengthy discussion about xml vs. ini at the time
[11:02:56] <Yuv422> why did you decide ini?
[11:03:00] <wjp> we settled on .ini mainly because it's easier to edit, and harder to screw up when editing
[11:03:08] <Yuv422> ah k
[11:03:15] <Yuv422> that makes sense
[11:03:42] <wjp> some users had some trouble understanding the xml format :-)
[11:04:13] <wjp> exhibit number one: http://exult.sourceforge.net/forum/read.php?f=1&i=22811&t=22811
[11:05:13] <Yuv422> I like this bit
[11:05:17] <Yuv422> The sample config file looks like
[11:05:17] <Yuv422> it was meant to be read by a robot
[11:05:28] <wjp> that's because it was :-)
[11:05:35] <Yuv422> hehe yes. :)
[11:07:20] <Yuv422> I wonder if Cindy was able to get the config file working?
[11:07:38] <wjp> no idea
[11:08:11] <wjp> the strange part is that windows users shouldn't have to set up the paths manually since the installer takes care of that
[11:09:01] <wjp> the current conf code in pentagram resembles scummvm's in quite a few ways
[11:09:19] <wjp> there are global settings and game settings; the game settings override globals settings
[11:09:38] <wjp> and the global settings in turn override default settings
[11:11:15] <Yuv422> I can see that having multiple config files in nuvie might be a bit tricky
[11:11:35] <wjp> in which way?
[11:22:36] <Yuv422> maybe I'm wrong but it doesn't look like it would support reading from multiple files
[11:24:15] <wjp> take a look at Configuration::readConfigFile and Configuration::value
[11:24:23] <wjp> they iterate over a list of trees
[11:24:31] <Yuv422> ah k
[11:25:24] <Yuv422> neat
[11:27:11] <wjp> does nuvie have an icon?
[11:33:08] <wjp> or maybe a better question is, could you convert the icons in the .icns file to a format I can read? :-)
[11:38:06] <wjp> ah, found a converter; pretty ankh :-)
[11:38:37] <-- Fl00der has left IRC ()
[11:50:37] <Yuv422> yeah that icon was created by servus. :)
[11:51:46] <wjp> where should I put the various required files in CVS? (nuvie.spec.in, nuvie.desktop, nuvie.png, maybe a template config file)
[11:58:03] <wjp> I'd also like to change the default savedir to ~/.nuvie
[12:02:06] <Yuv422> hmm
[12:02:25] <Yuv422> we could have a builds directory
[12:02:33] <Yuv422> then a fedora subdirectory
[12:02:40] <Yuv422> or a linux directory
[12:02:58] <Yuv422> the default save dir sounds ok
[12:05:25] <Yuv422> we might need to create the directory if it doesn't exist
[12:06:50] <wjp> yes, I just added that code for linux
[12:06:59] <Yuv422> cool
[12:25:49] <wjp> hm, lots of headers missing from nuvie_SOURCES
[12:25:59] <Yuv422> eep
[12:26:06] <wjp> I'm slowly adding them now :-)
[12:37:29] <wjp> heh, and just when I think I have them all it turns out there's a header named .inl instead of .h :-)
[12:39:04] <Yuv422> hehe
[12:39:53] <Yuv422> do you think a switch is better than a long if else chain?
[12:40:13] <wjp> sometimes
[12:41:15] <Yuv422> how about performance?
[12:41:37] <Yuv422> with no fall through
[12:42:58] <wjp> I assume switch would be faster
[12:43:12] <wjp> (since you're giving the compiler more structural information)
[12:43:42] <wjp> ok, the dist tarball built succesfuly
[12:43:46] <wjp> s/ul/ull/
[12:43:52] <Yuv422> cool
[12:44:19] <wjp> now building an rpm... (hopefully)
[12:47:22] <wjp> ok, done
[12:47:35] <Yuv422> :)
[12:48:23] <wjp> time to commit all this, I guess
[12:48:32] <wjp> builds/linux was ok, right?
[12:48:41] <Yuv422> yes
[12:48:45] <Yuv422> that's fine
[12:54:23] <wjp> ok, that should do it
[12:54:37] <Yuv422> thanks wjp. :)
[12:54:54] <wjp> note that I haven't actually _tested_ the rpm yet ;-)
[12:55:20] <Yuv422> hehe. I'm sure it will work.
[12:55:36] <Yuv422> did you want to put a test up on the website
[12:55:43] <Yuv422> in the snapshots dir
[12:56:02] <wjp> I'll first test it myself
[12:56:10] <Yuv422> righto
[12:56:13] <wjp> after lunch :-)
[12:56:13] <wjp> bbl
[12:58:21] <-- Kirben has left IRC ("System Meltdown")
[13:12:18] <Yuv422> ok I've committed my changes into cvs.
[13:12:32] <Yuv422> sherry walks through mouseholes correctly now
[13:12:40] <Yuv422> the save order should be descending now
[13:13:03] <Yuv422> and I've fixed up the direction defines
[13:20:47] <wjp> sounds good
[13:21:24] <Yuv422> :)
[13:21:27] <Yuv422> time for bed
[13:21:31] <Yuv422> cya
[13:21:40] <-- Yuv422 has left IRC ("ZZzz")
[16:05:42] <-- trand has left IRC ("Leaving")
[18:53:47] --> sbx has joined #nuvie
[18:58:29] <sbx> i hope we get a version number
[19:03:02] <sbx> actually I don't really care
[20:42:55] <-- sbx has left IRC ("brb")
[20:51:00] --> sbx has joined #nuvie
[21:16:04] --> luteijn has joined #nuvie
[21:16:36] <luteijn> wrote some stuff about how numpad works for me on forum
[21:17:29] <wjp> hm, can somebody refresh my memory? how exactly did levelling and/or training work in U6?
[21:17:56] <luteijn> see http://luteijn.xs4all.nl/html/u6o/
[21:18:12] <luteijn> at the bottom..
[21:18:15] <wjp> ah, meditating?
[21:18:19] <wjp> thanks
[21:19:45] <luteijn> to meditate, talk to the shrine (not the forcefield, moonstone initially on top of it)
[21:32:04] <sbx> hi luteijn
[21:32:19] <sbx> numpad works for you?
[21:32:29] <sbx> it works for me too :)
[21:34:43] <luteijn> only works in windows, where appearantly sdl gives different numbers back to the application?
[21:35:07] <luteijn> can't compile for windows, so didn't make a hacked version to print out the keys received
[21:35:15] <sbx> it only works for me in linux
[21:35:48] <sbx> I knew it was a bad idea to try and manipulate keysym numbers directly, instead of using the defines.
[21:36:00] <luteijn> in linux only works if numlock on (at least with the setup I used to test it.)
[21:36:06] <sbx> but I didn't know if it was that or unhandled unicode causing the problem
[21:36:14] <sbx> that's understandable
[21:36:42] <sbx> yuv422 only has one mouse button as well :)
[21:37:54] <luteijn> I wonder if the vnc-client I used has any influence on the results. I should try it out on the console of a linux machine too.
[21:38:26] <sbx> The state of numlock when popping up the menu won't have any effect on number input after that.
[21:38:54] <luteijn> I just put that in for completeness sake :)
[21:39:19] <luteijn> it's obvious what is happening when you see the numbers SDL is passing back.
[21:39:25] <sbx> ok thanks
[21:39:36] <sbx> I'll just change it to use defines (and no range).
[21:40:00] <sbx> I already have changes to enable Alt-X, Ctrl-Q, Ctrl-S, and Ctrl-L.
[21:40:17] <sbx> I don't know if SDLK_KP0-SDLK_0 is safe either.
[21:41:00] <luteijn> wel l it would work for that particular case, but you have no guarantee that those keys are going to stay in the convenient order..
[21:42:19] <sbx> I was sacrificing solid code to get as-short-as-possible code.
[21:42:37] <luteijn> regarding magic. I haven't done much for quite some time already. but what I have is at http://luteijn.xs4all.nl/html/nuvie/
[21:42:53] <sbx> Yep I looked at it and downloaded the snapshot. The magic processor is really cool.
[21:43:01] <sbx> What is NSL format?
[21:43:06] <luteijn> it probably needs reimplementing though.
[21:44:00] <luteijn> hmm what is the context for that?
[21:44:13] <sbx> the magic script
[21:44:16] <sbx> spells.nsl
[21:44:35] <luteijn> oh I think it means Nuvie Spell List
[21:44:47] <sbx> ah, k
[21:44:58] <sbx> The reference to a vim syntax file made me think it was a standard. :)
[21:45:20] <luteijn> I made the vim syntax file :)
[21:45:39] --> Fl00der has joined #nuvie
[21:45:46] <sbx> I see.
[21:46:02] <sbx> I wonder if this script processor can be used for usecode.
[21:46:20] <luteijn> probably.
[21:47:04] <luteijn> the idea is similar; just like the conversation processor..
[21:47:50] <sbx> GalleonDragon should have let you write his conversation format then.
[21:48:25] <luteijn> I did make a vim syntax file for his format.
[21:48:46] <luteijn> http://luteijn.xs4all.nl/html/u6o/downloads/
[21:50:21] <sbx> some nice colorized scripts
[21:50:44] <sbx> what's the conversion process
[21:50:59] <sbx> does he dump all the conversations to text and copy them to the new format?
[21:51:02] <luteijn> I think only 99.NPC is 'finished' although they never got round to adding it. Also can't test properly because I don't have the interpreter for it.
[21:51:16] <luteijn> yes that's about the process
[21:51:28] <luteijn> but he's not using most of what you've deduced
[21:51:32] <luteijn> which is a shame
[21:52:04] <sbx> well, I did suggest he make a converter but he already had many of them done by then
[21:52:09] <luteijn> so they just have a lot textstrings that they piec e back together so it works as close to original as possible
[21:52:34] <luteijn> he has some basic automatic conversion for simple keyword responses
[21:52:43] <luteijn> so that's why most npcs do atleast something
[21:52:53] <sbx> It doesn't need to use the exact decoded scripts, but as a reference they are helpful. I would prefer U6O use a window for talkint to NPCs.
[21:52:53] <luteijn> although sometimes it's not the right thing :)
[21:53:09] <luteijn> t I would prefer that too.
[21:53:41] <sbx> so the keywords change the state of the conversation
[21:53:57] <sbx> which is a new topic
[21:54:41] <sbx> extra portraits? :)
[21:55:14] <luteijn> yes, I got bored to looking at the same people so proposed to add new portraits for hirelings
[21:55:35] <luteijn> I'm not a great artist, but some of them actually came outnice.
[21:56:09] <sbx> yeah, i'll upload my custom avatar & armor sprites...
[21:57:12] <luteijn> That would also be helpfull, I already have 2 hirelings with the same sprite, and end up healing the wrong person
[21:58:05] <sbx> it's basically just hair recolorings like yours... and most of them are in xcf format
[21:59:22] <luteijn> I think I shouldn;t have been using paint to redo the pictures, but replace pixels using a script..
[21:59:55] <sbx> Have you done any high-res graphics for ka1dosh?
[22:00:48] <luteijn> nope. I would want to make a editor first, I think. Paint just is too hard to use.
[22:01:49] <luteijn> at least, if you don't first have all the pictures cut into separate sprites.
[22:01:52] <sbx> He has an editor for it.
[22:02:19] <sbx> my new graphics are not in individual sprites btw
[22:02:22] <luteijn> any progress with the moon and sun display?
[22:02:45] <sbx> Yeah, I think the phase is accurate but the orbit isn't yet.
[22:02:56] <sbx> by orbit I mean position on the display
[22:03:14] <luteijn> Time to start counting pixels :(
[22:03:14] <sbx> http://members.cox.net/~sbx/u6npccustom
[22:03:22] <sbx> hehe
[22:03:31] <sbx> the pixel positions I have defined are accurate
[22:03:53] <sbx> the moon just doesnt go to the correct one yet
[22:04:00] <luteijn> You don't have permission to access /~sbx/u6npccustom/ on this server.
[22:04:35] <sbx> oops
[22:04:47] <sbx> that server doesn't let you browse directories... but I have another
[22:06:47] <luteijn> http://luteijn.xs4all.nl/html/u6o/downloads/extra_portraits/make_index.pl
[22:07:14] <luteijn> probably handy to create a quick index of directories like that..
[22:07:28] <sbx> wow :0
[22:07:32] <sbx> :)*
[22:07:38] <sbx> thanks for that
[22:08:03] <sbx> when I made an index of sheetmusic in the past, I had to do it manually
[22:08:28] <sbx> no actually what I did was use Links to connect to the ftp server and get a file list, then output it as html
[22:08:34] <sbx> Lynx*
[22:08:46] <sbx> this looks faster
[22:08:53] <luteijn> that's what I used for the indexpage of the portraits. I would just have it run with something like 'while (sleep 10) do create_index done &
[22:09:35] <sbx> http://www.primefaction.com/~sb-x/u6npccustom/
[22:09:37] <luteijn> and whenever I put a new file there, it would regenerate the index, so I could see the result. (my linux box that is serving those pages is not at my desk, and hjas no console)
[22:09:56] <sbx> it regenerates automatically?
[22:10:01] <sbx> oh I see
[22:10:03] <sbx> every 10 seconds
[22:10:08] <sbx> ok
[22:10:20] <luteijn> even had check if anyhting's actually changed...
[22:10:30] <luteijn> although you could just rip that out..
[22:11:12] <sbx> the XCF files you see there are unfinished
[22:11:23] <luteijn> which program generates those?
[22:12:11] <sbx> the gimp
[22:13:54] <sbx> http://www.primefaction.com/~sb-x/u6npccustom/duprenoshield-standing.png
[22:14:22] <sbx> just 15 frames to finish on that :)
[22:14:51] <luteijn> try putting this "http://www.primefaction.com/~sb-x/u6npccustom/
[22:15:02] <luteijn> okay, mispaste
[22:15:09] <luteijn> http://luteijn.xs4all.nl/html/u6o/downloads/extra_portraits/img-index.html
[22:15:32] <luteijn> that file in your u6npccustom directory
[22:16:17] <sbx> alright
[22:16:23] <sbx> I hope you didn't get a permission error again.
[22:17:04] <luteijn> the primefaction one works, but the index is rather bland, so I use s// on it to change A HREF into IMG SRC
[22:17:37] <luteijn> so if you put that img-index file in the direcotry, you'd get an autopreview
[22:17:41] <sbx> http://www.primefaction.com/~sb-x/u6npccustom/img-index.html
[22:17:57] <sbx> that really spruces it up
[22:18:03] <luteijn> pity ie doesn't handle xcf
[22:18:22] <sbx> servus has automatic image preview on his server
[22:20:06] <luteijn> ok, it's time for bed.. See you later.
[22:20:19] <sbx> alright cya
[22:20:39] <-- luteijn has left IRC ("[BX] Khaled uses BitchX. CTCP TROUT THIS, BITCH!")
[22:21:03] <sbx> aww I forgot to ctcp trout him
[23:00:28] --> Kirben has joined #nuvie
[23:23:19] <-- Kirben has left IRC (leguin.freenode.net irc.freenode.net)
[23:23:19] <-- laxdragon has left IRC (leguin.freenode.net irc.freenode.net)
[23:36:58] --> laxdragon has joined #nuvie