#exult@irc.freenode.net logs for 22 Oct 2002 (GMT)

Archive Today Yesterday Tomorrow
Exult homepage


[00:00:02] <artaxerxes> x and y are the reference in your 192x192 bitmap
[00:00:38] <SB-X> hmm, is modulus operator %?
[00:00:42] <artaxerxes> yup
[00:00:47] <artaxerxes> and div is /
[00:01:34] <artaxerxes> and you write the chunk number is a little endian fashion (I think) at u7map[offset] and u7map[offset +1]
[00:01:41] <artaxerxes> (since a chunk takes 2 bytes)
[00:01:53] <artaxerxes> (most significant byte last)
[00:02:15] <artaxerxes> and u7map is a 192x192x2 array of char
[00:02:45] <artaxerxes> (which is the size of the map is bytes)
[00:02:48] <SB-X> how long did it take to figure that out?
[00:03:02] <artaxerxes> I just read what's in exult/docs/*.txt
[00:03:09] <artaxerxes> ;)
[00:03:21] <SB-X> why isnt it 192x192 array of short?
[00:03:38] <artaxerxes> whatever
[00:04:04] <SB-X> oh
[00:04:10] <SB-X> i thought that would be different
[00:04:12] <artaxerxes> is a short as big as 2 chars ?
[00:04:21] <SB-X> yeah thats what i meant
[00:04:33] <SB-X> short int
[00:04:42] <artaxerxes> again, whatever works
[00:04:59] <SB-X> you would know since you made the program, i had no idea how to do it :)
[00:04:59] <artaxerxes> anyways... I've got to go
[00:05:03] <SB-X> ok
[00:05:10] <artaxerxes> see ya soon!
[00:05:13] <SB-X> bye
[00:05:22] --- artaxerxes is now known as artaxerxes|zombi
[00:05:44] * SB-X twiddles his thumbs. "Ho hum."
[00:24:06] <SB-X> goodbye for now
[00:24:07] <-- SB-X has left IRC ("X-Chat [1.6.4]")
[01:20:21] <-- Fingolfin has left IRC ("42")
[04:53:41] --> Colourless has joined #Exult
[04:53:41] --- ChanServ gives channel operator status to Colourless
[05:09:29] <-- Colourless has left IRC ("casts invisibility")
[06:45:47] --- Darke|afk is now known as Darke
[08:23:38] --> Kirben2 has joined #exult
[08:24:11] <-- Kirben has left IRC (Read error: 104 (Connection reset by peer))
[09:49:15] --> Dominus has joined #exult
[09:49:51] --- ChanServ gives channel operator status to Dominus
[09:50:00] <Dominus> Khi all
[09:50:06] <Dominus> hi all, I mean :-)
[09:50:48] <Dominus> Kirben2: http://reconstruction.voyd.net/ now has a copy of the Dragon Engine (but I think you wanted to contact the author directly ages ago about some xu4 stuff)
[09:51:49] <Dominus> Any idea how to disable this "execbox" thing in Exult Studio?
[09:52:45] <Dominus> I mean to get it to compile again...
[09:55:34] <Kirben2> Only a binary download though.
[09:55:43] <Kirben2> checking to see if I can get it to compile...
[09:56:07] <Dominus> thanks
[10:14:49] <Kirben2> no luck
[10:15:09] <Dominus> :-(
[10:34:49] --> Fingolfin has joined #exult
[10:35:03] <Fingolfin> hiya
[10:35:05] --- ChanServ gives channel operator status to Fingolfin
[10:35:10] <Kirben2> Hi Fingolfin
[10:35:17] --- Kirben2 is now known as Kirben
[10:35:34] <Dominus> hi Fingolfin
[10:37:39] <Dominus> Fingolfin: if you have time left some other time, I need help with getting images into our templates...
[10:38:16] <Fingolfin> webpage you mean?
[10:38:19] * Fingolfin checks out the webpage
[10:38:38] <Dominus> actually I meant putting images into the FAQ/docs
[10:39:11] <Dominus> xsl/xml stuff
[10:39:41] <Fingolfin> artaxerxes|zombi: when you upload stuff to the web space, make sure to run the update.sh script, to fix the access permissions
[10:39:48] <Fingolfin> ok
[10:40:52] * Fingolfin would do everything different anyway if he was to write the web page again new =) (from a coding POV; I think a new design for the exult web page wouldn't hurt either, but that's another topic)
[10:40:56] <Fingolfin> so what do you want exactly, Dominus?
[10:43:00] <Dominus> what I need is a way to get <img target="picture.gif">title</img> to look like <img alt="title" src="picture.gif">
[10:43:59] <Dominus> to get converted to <img alt="title" src="picture.gif"/> I mean
[10:53:03] <Dominus> ah, got it halfway working myself
[10:54:39] <Dominus> I got it to at least display the image now.
[10:55:02] <Fingolfin> well
[10:55:25] <Dominus> I don'T know how it is for you but for me it is really hard getting into it after not looking at xml/xsl fro some weeks
[10:55:39] <Fingolfin> why target= and not src= :-) you might want to use a higher semantic, too, BTW, e.g. for putting a caption on your image etc.
[10:55:42] <Fingolfin> hehe
[11:03:32] <Dominus> ok, I have now in the xsl:
[11:03:34] <Dominus> <xsl:template match="img">
[11:03:34] <Dominus> <img>
[11:03:34] <Dominus> <xsl:attribute name="alt">
[11:03:34] <Dominus> <xsl:value-of select="@alt"/>
[11:03:34] <Dominus> </xsl:attribute>
[11:03:35] <Dominus> <xsl:attribute name="src">
[11:03:36] <Dominus> <xsl:value-of select="@src"/>
[11:03:38] <Dominus> </xsl:attribute>
[11:03:41] <Dominus> </img>
[11:03:43] <Dominus> </xsl:template>
[11:04:07] <Dominus> and in the xml I just write it as it is supposed to look, eg :<img alt="logo" src="images/exult_logo.gif"/>
[11:04:52] <Dominus> and this can be extended to height and width as well
[11:05:22] <Dominus> acceptable?
[11:05:28] <Fingolfin> well you can have it much easier
[11:06:13] <Dominus> Please tell me (like to slap my forehead, saying "doh") :-)
[11:07:48] <Fingolfin> if you want to copy all attributes anyway ("dumb" conversion), use xsl:copy
[11:08:03] <Fingolfin> like in this one, I think:
[11:08:04] <Fingolfin> <xsl:template match="ul|ol|li|strong|q|br">
[11:08:04] <Fingolfin> <xsl:copy>
[11:08:04] <Fingolfin> <xsl:apply-templates select="@*|node()"/>
[11:08:04] <Fingolfin> </xsl:copy>
[11:08:04] <Fingolfin> </xsl:template>
[11:08:41] * Dominus ahhhhs
[11:12:36] <Dominus> that works perfectly
[11:12:43] * Dominus slaps his forehead
[11:44:24] <Dominus> Fingolfin: need some more help, when I thought your easier way worked it was just working because I was still using my copy that used my way. When I try yours with the xsl looking like:
[11:44:35] <Dominus> <xsl:template match="img">
[11:44:35] <Dominus> <xsl:copy>
[11:44:35] <Dominus> <xsl:apply-templates select="@*|node()"/>
[11:44:35] <Dominus> </xsl:copy>
[11:44:35] <Dominus> </xsl:template>
[11:44:52] <Dominus> I get for the input from above a conversion to:
[11:45:06] <Dominus> <img>logoimages/exult_logo.gif</img>
[11:45:36] <Dominus> input in xml was : <img alt="logo" src="images/exult_logo.gif"/>
[11:45:57] <Dominus> why does it strip the parts?
[11:46:25] <Fingolfin> because it doesn't copy the attribues right now
[11:47:07] <Dominus> what to write to make it copy them?
[11:49:30] <Fingolfin> sec
[11:51:23] <Fingolfin> the problem is the <xsl:apply-templates select="@*|node()"/> I think... we don't have templates for "src" for example. Instead, select or copy must be used...#
[11:56:18] <Fingolfin> <xsl:template match="img">
[11:56:18] <Fingolfin> <xsl:copy>
[11:56:18] <Fingolfin> <xsl:for-each select="@*|node()">
[11:56:19] <Fingolfin> <xsl:copy/>
[11:56:19] <Fingolfin> </xsl:for-each>
[11:56:19] <Fingolfin> </xsl:copy>
[11:56:21] <Fingolfin> </xsl:template>
[11:56:47] <Fingolfin> BTW, libxslt / xsltproc is much much faster than any java xsl processor I have seen. takes only a split second to launch, translate, finish
[11:58:14] <Dominus> thanks that worked
[11:59:00] <Dominus> I haven't looked at alternatives for the java processor lately as the ones that were availlable for windows sometimes produced strange stuff
[12:00:10] <Dominus> But thanks a lot for helping me out. I now have to go and drive my gf's daughter to Ballett
[12:00:13] <Dominus> :-)
[12:00:39] <Dominus> see you later (probably)
[12:01:05] <Dominus> bye
[12:01:08] <-- Dominus has left IRC ("enough for now")
[12:20:09] --> Colourless has joined #Exult
[12:20:09] --- ChanServ gives channel operator status to Colourless
[12:20:43] <Darke> Hi!
[12:20:50] <Colourless> hi!
[12:23:29] <Fingolfin> hI!
[12:31:45] <Kirben> Colourless: any chance you could get exult studio compiling again ?
[12:32:11] <Colourless> yeah i've got to look at that
[12:34:08] <Colourless> i kind of need to know exactly what things i need to even attempt to do it though (i.e. what ver of gcc, mingw all the libs and stuff)
[12:34:09] <-- Kirben has left IRC (Read error: 104 (Connection reset by peer))
[12:34:10] --> Kirben has joined #exult
[13:03:25] --- artaxerxes|zombi is now known as artaxerxes
[13:03:34] <artaxerxes> yo
[13:04:27] <Darke> Hi.
[13:04:48] <Colourless> hi
[13:07:21] <-- Darke has left IRC (Remote closed the connection)
[13:09:26] --> Darke has joined #exult
[13:09:26] --- ChanServ gives channel operator status to Darke
[13:09:43] * Darke blinkityblinks and wonders what hit him?
[13:09:57] <Colourless> a bomb?
[13:10:58] <Darke> I don't think so. X just seemed to fold in on itself and I was suddenly starting rather confusingly at a console prompt. *grin*
[13:16:51] <artaxerxes> regarding Fingolfin's comments: yeah sorry I realise I did not run update.sh when I loaded the picture.
[13:21:26] <artaxerxes> ok, the permissions are fixed
[14:16:26] --- Darke is now known as Darke|afk
[15:24:59] <-- Fingolfin has left IRC ("42")
[15:41:33] <-- Colourless has left IRC (brunner.openprojects.net irc.openprojects.net)
[15:41:33] <-- Darke|afk has left IRC (brunner.openprojects.net irc.openprojects.net)
[15:41:33] <-- artaxerxes has left IRC (brunner.openprojects.net irc.openprojects.net)
[15:41:33] <-- Kirben has left IRC (brunner.openprojects.net irc.openprojects.net)
[15:41:33] <-- GNUChild has left IRC (brunner.openprojects.net irc.openprojects.net)
[15:42:00] --> Darke|afk has joined #exult
[15:42:00] --> Kirben has joined #exult
[15:42:00] --> Colourless has joined #exult
[15:42:00] --> GNUChild has joined #exult
[15:42:00] --> artaxerxes has joined #exult
[15:50:08] --> wjp has joined #exult
[15:50:08] --- ChanServ gives channel operator status to wjp
[15:50:10] <wjp> hi
[15:50:17] <Colourless> hi
[16:34:44] <-- Kirben has left IRC (Read error: 104 (Connection reset by peer))
[16:46:17] <artaxerxes> hi
[19:18:47] <-- Colourless has left IRC ("casts invisibility")
[20:26:56] <artaxerxes> boy I'm having fun making tiles!
[20:27:20] <artaxerxes> I've got a grass chunk and a cobble-stone chunk
[20:29:50] --> Dominus has joined #exult
[20:30:26] --- ChanServ gives channel operator status to Dominus
[20:30:59] <Dominus> hi all
[20:31:03] <artaxerxes> hi
[20:31:55] <Dominus> I'll try to merge Curiosis' exult studio docs with the one I wrote.
[20:32:49] <artaxerxes> col
[20:32:51] <artaxerxes> cool
[20:32:52] <artaxerxes> I've got a grass chunk and a cobble-stone chunk
[20:32:56] <artaxerxes> boy I'm having fun making tiles!
[20:33:26] <Dominus> he he
[20:33:53] <Dominus> I think that it would probably useful to have your chunkcreator in Exult's CVS
[20:34:55] <artaxerxes> I don't think we could mix exult and the gimp into all. I love the idea of convergence but that's pushing too far! :)
[20:35:07] <artaxerxes> s/all/one
[20:35:58] <Dominus> ? I thought your program was just converting images to chunks
[20:36:06] <Dominus> and had nothing to do with Gimp
[20:36:27] <artaxerxes> the making of tiles is with the gimp.
[20:36:38] <artaxerxes> (and thus of chunks)
[20:37:00] <artaxerxes> the tool I made converts a 192x192x8 BMP into a u7map
[20:37:11] <Dominus> ah
[20:37:16] <Dominus> that'S what I meant
[20:37:19] <artaxerxes> :)
[20:37:30] <Dominus> that would proabably be useful to have in cvs
[20:37:36] <artaxerxes> no kidding ?
[20:37:50] <artaxerxes> would you call that an exult tool ?
[20:38:28] <Dominus> your post to the ml was so out of context I only understood what it was about after I read the Forum and the exultlog :-)
[20:38:35] <Dominus> yes an exult tool
[20:38:50] <artaxerxes> you're right... I chose the wrong email to reply to! I realised only once I posted it!
[20:39:09] <Dominus> ah
[20:40:40] <artaxerxes> actually tile making is very fun
[20:40:53] <Dominus> :-)
[20:41:02] <artaxerxes> it's going to be shapes making that will be a pain
[20:41:16] <Dominus> I'd like to see some of them once you have something to look at :-)
[20:45:01] <artaxerxes> Oh, there is still some work to do.
[20:45:30] <artaxerxes> Curiousis has made a good doc.
[20:45:50] <Dominus> yes
[20:46:54] <Dominus> I think, merged with the stuff I wrote (meaning when we wrote the same I'm going to take his version) it will be quite powerful
[21:13:55] <artaxerxes> how far have you progressed?
[21:14:31] <Dominus> not far yet, just started half an hour ago :-)
[21:41:37] <wjp> hi Dominus
[21:41:52] <wjp> and bye again; I should be going :-)
[21:41:53] <wjp> night
[21:42:04] <-- wjp has left IRC ("Zzzz...")
[21:42:05] * Dominus doesn't even look at the clock. This came sooooooooooooooooooooooooo late :-)
[21:42:24] <Dominus> he he he