#pentagram@irc.freenode.net logs for 14 Mar 2003 (GMT)

Archive Today Yesterday Tomorrow
Pentagram homepage


[00:32:13] --> Servus has joined #pentagram
[00:58:56] <-- Dark-Star has left IRC ()
[01:32:54] --> Kirben has joined #pentagram
[01:32:54] --- ChanServ gives channel operator status to Kirben
[09:49:52] --> exultbot has joined #pentagram
[09:49:52] --- Topic for #pentagram is: Missing: topic of #pentagram. If you have any information regarding the topic, please inform an op ASAP
[09:49:52] --- Topic for #pentagram set by wjp at Sun Jan 26 14:47:58 2003
[09:50:34] --> wjp has joined #pentagram
[09:50:34] --- ChanServ gives channel operator status to wjp
[10:01:38] --> Dark-Star has joined #pentagram
[12:21:50] <-- Servus has left IRC ()
[12:29:40] <-- DarkeZzz has left IRC (Read error: 104 (Connection reset by peer))
[12:29:56] --> DarkeZzz has joined #pentagram
[13:57:17] --> Colourless has joined #Pentagram
[13:57:17] --- ChanServ gives channel operator status to Colourless
[13:57:42] <wjp> hi Ryan
[13:57:47] <Colourless> hi
[14:05:28] <wjp> feel like some more random pentagram discussion? :-)
[14:05:51] <wjp> animated objects, specifically :-)
[14:06:02] <Colourless> and?
[14:06:07] <Colourless> you have an issue with them?
[14:06:20] <wjp> more of a question of how to handle them
[14:06:32] <wjp> I think the 'old' viewer makes every object a process, right?
[14:06:46] <Colourless> and that is the wrong way of doing it let me tell you :-)
[14:06:52] <wjp> exactly :-)
[14:07:23] <wjp> a) have a special AnimatedObject class. (but then what about subclasses of Object)
[14:07:29] <Colourless> the proper way of doing it is to update the objects when they are on screen and are added to the display list
[14:07:33] <Colourless> no no no
[14:07:43] <wjp> b) ...
[14:07:59] <Colourless> that screws with being able to change the an object shape
[14:08:21] <wjp> your solution sounds good
[14:09:08] <wjp> so each object would have an animate() function that's called when adding it to the display list?
[14:09:25] <wjp> are all animations simple frame changes, btw?
[14:09:29] <Colourless> it would only get called if the object has an animation set in typeflags
[14:09:41] <Colourless> no you are not so lucky :-)
[14:09:47] <Colourless> some animation call usecode functions
[14:09:57] <Colourless> some have 'random' timings
[14:10:21] <wjp> no palette rotations anymore I hope? :-)
[14:10:46] <Colourless> nope :-)
[14:10:49] <Colourless> palette is static
[14:11:19] <Colourless> MapItem::Process has the details of how the animating works
[14:11:30] <Colourless> type '5' will call a usecode function
[14:11:33] * wjp nods
[14:11:42] <wjp> I was just looking at that
[14:12:16] <wjp> was that the 'timer' usecode event?
[14:12:22] <wjp> or can it just call any usecode function?
[14:12:33] <Colourless> no, there is a specific function to call
[14:12:48] <Colourless> Type 5:
[14:12:49] <Colourless> Animated by Usecode Event 0x2
[14:13:02] <wjp> k
[14:13:15] <wjp> I hope those functions don't have any side effects
[14:13:27] <wjp> otherwise we might have to call them when the items are off-screen too
[14:13:47] <Colourless> yes, that might be a problem
[14:14:29] <wjp> any idea if there are animations that should be synched with eachother?
[14:14:32] <Colourless> on screen for animation checking should probably include more than just the size of the screen
[14:14:37] <wjp> (like beaches, sawmill in U7)
[14:15:15] <wjp> I can't really remember any
[14:15:23] <Colourless> i'm not entirely sure how waterfalls worked
[14:15:32] <Colourless> they might be entirely usecode controlled
[14:19:36] <-- DarkeZzz has left IRC (Read error: 104 (Connection reset by peer))
[14:19:57] --> DarkeZzz has joined #pentagram
[14:36:13] <wjp> brb
[14:36:27] <Colourless> k
[14:41:09] <-- Kirben has left IRC (Read error: 110 (Connection timed out))
[14:54:21] <wjp> b
[14:54:28] <Colourless> wb :-)
[14:54:33] <wjp> thx :-)
[15:08:11] <wjp> I think I'll go start my weekend early; don't feel like staying here another hour :-)
[15:08:17] <Colourless> :-)
[15:08:18] <Colourless> cya
[15:08:36] <-- wjp has left IRC ("bbl")
[15:28:27] --> wjp has joined #pentagram
[15:28:27] --- ChanServ gives channel operator status to wjp
[15:31:32] <wjp> back, obviously :-)
[15:32:20] <Colourless> :-)
[15:32:22] <Colourless> wb again
[15:38:24] <wjp> ok, pentagram coding time... :-)
[15:38:53] <wjp> fleshing out the Map/ActiveMap class, more world loading and maybe intrinsics
[17:45:35] * DarkeZzz fehs and hates being unemployed, he's just spent the last four hours writing up a selection criteria for a job rather then doing something *productive*! The icky bit is that he's only half finished. *sigh*
[17:46:10] <wjp> :/
[17:46:22] <Colourless> yes, the hours between midnight and 4 am is the time to do that sort of thing :-)
[17:46:42] <Colourless> just committed something rather useless in 'old' :-)
[17:46:57] <Colourless> useless but interesting i might add
[17:47:32] <DarkeZzz> Admittely I've got my flatmate's old selection criteria's to flog sentences from, I'm just currently splitting each entry into relevant sections from jobs I've done on my resume and chucking a couple of line description of what I want to go here. *grin*
[17:48:01] * DarkeZzz earperks. Might one detail what 'useless' feature you've added to old, so I don't need to be distracted from my pointless task by something interesting? *grin*
[17:48:14] <wjp> mushrooms, eh? :-)
[17:48:31] <DarkeZzz> (midnight-4am) Unfortunatly this is the 'active' time of my current sleep-schedule, so that's why I'm doing it now. *grin*
[17:48:47] <Colourless> yes mushrooms :-)
[17:49:16] <Colourless> i don't think what I've done is entirely correct, but it's close enough as far as I'm concerned
[17:49:35] * DarkeZzz ponders hallucinogenic mushrooms and selection critera writing. Makes sense, my selection criteria will sound more normal after partaking of such I suppose.
[17:49:46] <wjp> as long as it looks 'psychedelic' enough I'm happy :-)
[17:49:57] <Colourless> well, try it out if you want to see :-)
[17:49:59] <wjp> (or whatever the word is)
[17:50:06] <wjp> it just finished building :-)
[17:50:10] <Colourless> that is the correct word :-)
[17:50:30] <wjp> of course, it would help if mapdisp actually displayed anything
[17:51:27] <Colourless> :-)
[17:51:42] <wjp> I just see background, atm
[17:51:55] <Colourless> what map num you on?
[17:52:09] <wjp> 40
[17:52:55] <Colourless> well, i didn't change anything that would make any difference to displaying
[17:53:21] <wjp> it worked last weekend, though
[17:53:29] <wjp> hmm.. I'll just go try a clean build
[17:53:55] <Colourless> did it like rebuild almost every file?
[17:53:59] <wjp> yes
[17:54:48] <wjp> shpdisp doesn't do anything either
[17:55:09] --- Dark-Star is now known as Dark-Star|away
[17:55:25] <wjp> didn't shpdisp display a (broken) palette in the top-left corner?
[17:55:30] <wjp> that's gone now, too
[17:56:04] <Colourless> hasn't done that for ages
[17:56:21] <wjp> not correctly, no :-)
[17:56:33] <Colourless> i couldn't be bothered rewriting that code to properly display on a 16/32 bit surface
[17:56:40] <Colourless> so it's commented out or something
[17:56:52] <wjp> not in shpdisp
[17:57:26] <wjp> I think it showed mostly gray values in the top left last week
[17:57:41] <Colourless> hmm
[17:57:42] <Colourless> if (!screen->opengl && screen->bytes_per_pixel == 1)
[17:58:00] <wjp> but the if's in an #ifdef WANT_OPENGL
[17:58:19] <Colourless> it shouldn't display anything if your sdl is working correctly. the bytes_per_pixel should always be 2 or 4
[17:58:30] <Colourless> oh yeah
[17:58:38] <Colourless> it shouldn't be like that :-)
[17:58:44] <wjp> I don't WANT_OPENGL here, I think
[17:58:48] <wjp> :-)
[17:59:52] <Colourless> so you are getting nothing displayed at all?
[17:59:57] <wjp> just the background
[18:00:20] <Colourless> are you sure you haven't done something to your u8shapes.flx
[18:00:27] * wjp hits self
[18:00:32] <wjp> that's quite possible, yes :-)
[18:01:17] <wjp> right.. much better now
[18:01:32] * wjp hits self again
[18:02:23] * DarkeZzz paws wjp a patented Wjp Pecussion Device(tm) to hit himself with.
[18:02:32] <wjp> thanks
[18:02:42] <Colourless> hehe
[18:02:43] * wjp pushes the Big Red Button(tm) on the WJP Percussion Device(tm)
[18:02:57] <wjp> *ouch*
[18:03:42] <DarkeZzz> See! Much more efficent!
[18:10:52] <wjp> anyway, mushroom mode looks nice :-)
[18:11:03] <Colourless> :-)
[18:17:59] <wjp> quick vote: ActiveMap or CurrentMap? :-)
[18:18:08] <Colourless> CurrentMap
[18:18:55] * wjp wonders if it should be a subclass of Map
[18:19:00] <wjp> probably not
[18:19:17] <wjp> or maybe a private subclass
[18:19:41] <Colourless> hmm, no i wouldn't think that is really a good idea
[18:19:56] <wjp> but keeping a Map* is probably better
[18:19:56] <Colourless> the generic map class would be static
[18:20:05] <Colourless> while the ActiveMap class is dynamic
[18:21:21] <wjp> a std::list costs between 30 and 40 bytes of memory here, btw
[18:21:36] <Colourless> yeah i saw
[18:21:43] <Colourless> i guess that would be about right
[18:22:20] <wjp> so, acceptable to have 128x128 lists? :-)
[18:23:43] <Colourless> yes...
[18:24:24] <wjp> bbl, dinner
[18:32:22] <Colourless> wjp, thinking about the glob item issue, i think that the only workable solution is to create a temporary item when ever usecode get executed for a globitem. the temp item, like all other temp items, would then be discarded on map change
[19:12:19] * wjp nods
[19:12:55] <wjp> would it be feasible to somehow 'remember' the temp items so that an item will only be created once for each, um, item?
[19:13:09] <Colourless> yes
[19:13:20] <Colourless> attach each temp item to the globeggs
[19:13:28] * wjp nods
[19:16:59] <Colourless> i 'really' should have gone a while ago :-)
[19:17:01] <Colourless> cya
[19:17:03] <-- Colourless has left IRC ("casts invisibility")
[19:40:53] <-- wjp has left IRC (sterling.freenode.net irc.freenode.net)
[19:41:17] --> wjp has joined #pentagram
[20:37:32] --> Dominus has joined #pentagram
[20:55:56] <Dominus> just had to try but Pentagram doesn't compile for me...
[20:56:49] <Dominus> world/ItemFactory.cpp:26:19: Actor.h: No such file or directory
[20:56:50] <Dominus> world/ItemFactory.cpp:27:23: MainActor.h: No such file or directory
[20:56:50] <Dominus> world/ItemFactory.cpp: In static member function `static Actor*
[20:56:53] <Dominus> and so on
[20:57:47] <Dominus> but as there is not much to see anyway not really a problem :-)
[20:57:56] <Dominus> now let's compile mapdisp...
[20:58:35] <Dominus> wanna see some mushroom (though that ati in that function let's me suspect it won't work on my voodoo...)
[21:01:26] <wjp> mushroom is in old
[21:01:56] <wjp> Actor.h, MainActor.h are in world/actors. That may need to be added to the include path somewhere
[21:02:07] <wjp> mushroom effect will work if you don't use opengl mode
[21:03:16] <Dominus> right, forgot
[21:03:25] <Dominus> brb
[21:04:44] <Dominus> ah, could have been that i forgot to update paths as well at some point
[21:05:22] <Dominus> actually i have the files there...
[21:06:28] <Dominus> b
[21:06:32] <Dominus> btw :-)
[21:08:53] <Dominus> mushroom mode is nice :-)
[21:09:48] <Dominus> does Cless now have an ATI graphics card or what?
[21:10:10] <wjp> it does looks like it, yes
[21:10:15] <wjp> s/ks/k/
[21:10:23] <wjp> but I don't know
[21:10:53] <Dominus> damn that would mean it is time for me to upgrade as well
[21:11:29] <Dominus> :-)
[21:21:26] --> exultbot has joined #pentagram
[21:21:26] --- Topic for #pentagram is: Missing: topic of #pentagram. If you have any information regarding the topic, please inform an op ASAP
[21:21:26] --- Topic for #pentagram set by wjp at Sun Jan 26 14:47:58 2003
[21:21:46] <Dominus> ?version
[21:21:52] <wjp> yeah, right :-)
[21:21:54] <Dominus> good boy
[21:22:01] * Dominus pats exultbot
[21:22:07] <wjp> there _has_ been a lot of cvs activity lately, but not _that_ much :-)
[21:25:34] --> exultbot has joined #pentagram
[21:25:34] --- Topic for #pentagram is: Missing: topic of #pentagram. If you have any information regarding the topic, please inform an op ASAP
[21:25:34] --- Topic for #pentagram set by wjp at Sun Jan 26 14:47:58 2003
[21:46:10] <-- Dominus has left IRC ("enough for now")
[23:14:19] <-- wjp has left IRC ("Zzzz...")