#exult@irc.freenode.net logs for 18 May 2009 (GMT)

Archive Today Yesterday Tomorrow
Exult homepage

[00:14:03] --> azeem_ has joined #exult
[00:15:40] <-- azeem has left IRC (Read error: 60 (Operation timed out))
[01:44:06] --> Malignant_Manor has joined #exult
[01:45:02] <Malignant_Manor> Marzo, if you haven't noticed, there is a Keyring/TFL bug on the tracker. http://sourceforge.net/support/tracker.php?aid=2792476
[02:12:36] <-- ParuNexus has left IRC (Read error: 104 (Connection reset by peer))
[02:13:30] --> ParuNexus has joined #exult
[03:48:50] <-- Rottingbeef has left IRC (Read error: 104 (Connection reset by peer))
[03:48:57] --> Rottingbeef has joined #exult
[03:51:48] <-- Marzo_away has left IRC ("Marzo vanishes suddenly.")
[04:26:29] <-- Rottingbeef has left IRC (Read error: 101 (Network is unreachable))
[04:52:24] --> Rottingbeef has joined #exult
[07:38:01] <-- Rottingbeef has left IRC ("I, too, have lost a kingdom.")
[11:52:05] <-- Malignant_Manor has left IRC ("ChatZilla 0.9.84 [Firefox 3.0.10/2009042316]")
[12:06:30] --- azeem_ is now known as azeem
[13:39:53] --> Fingolfin has joined #exult
[13:39:53] --- ChanServ gives channel operator status to Fingolfin
[14:03:39] --> shazza has joined #exult
[14:39:22] <-- Kirben has left IRC (Read error: 60 (Operation timed out))
[15:45:47] --> Rottingbeef has joined #exult
[16:11:20] --> Baastuul_ has joined #exult
[16:11:59] <-- Rottingbeef has left IRC (Nick collision from services.)
[16:12:02] --- Baastuul_ is now known as Rottingbeef
[18:16:29] <-- Fingolfin has left IRC ()
[18:31:27] --> Dominus has joined #exult
[18:31:50] --- ChanServ gives channel operator status to Dominus
[18:32:14] * Dominus nudges colourless towards the mailing list
[18:32:23] <Dominus> hey ho!#
[18:35:29] <wjp> hi Dominik
[18:42:05] <Dominus> hey willem
[18:42:55] <Dominus> I#m still struggling with the documentation... all that aptch/mods business is getting hard to document...
[18:43:03] <Dominus> I hoped for Marzo to be here :)
[18:45:44] <Dominus> a little input from you please :) In the docs, in the example exult.cfg, I plan to make the tags/contents colored, which are not configurable by the in game menus. What color would you suggest?
[18:46:21] <Dominus> (if I can even understand all that xml/xsl/dtd stuff anymore :))
[18:50:52] --> Dark-Star has joined #exult
[19:06:21] <wjp> hm, no obvious colour comes to mind
[19:07:58] <wjp> maybe a dark purple would be sufficiently different without standing out too much?
[19:09:40] <Dominus> #62186f? with the keyboard commands and such in dark red, it might be a good fit
[19:10:47] <wjp> that looks worth a try
[19:11:34] <Dominus> puh, I'm really not into that xsl anymore...
[19:12:24] <Dominus> I'm looking at the <!-- Config Table Templates --> stuff in the html.xsl and don't understand anything anymore :)
[19:24:54] <Dominus> Hmm, the way I am able to do it is by having another configtag thing like configtagc and then have it change the color, but I'm sure it should be possible to declare the color in the xml file and then have the xsl use that color if declared... but I'm too inexperienced :)
[19:25:03] <Dominus> But I'll keep on testing :)
[19:37:10] <wjp> hm
[19:37:46] <wjp> it might be cleanest to add a special named parameter for configtag
[19:43:16] --> Fingolfin has joined #exult
[19:43:16] --- ChanServ gives channel operator status to Fingolfin
[19:52:24] <Dominus> sorry, I'm really not getting it anymore...
[20:19:57] <wjp> hm, I'm too far out of it to really make it work cleanly
[20:20:32] <Dominus> he he, I've been trying to wrap my head around it since I came to the chat myself :)
[20:20:53] <wjp> this seems to do something: http://www.usecode.org/misc/xsl
[20:21:19] <wjp> (note the extremely imaginative name 'bla' I picked for the attribute)
[20:22:08] <wjp> hm, but that only does the text value
[20:22:24] <Dominus> :) and how do i make this attribute in the xml?
[20:22:44] <wjp> <configtag name="..." bla="true">
[20:23:22] <wjp> but to get the tags themselves coloured too will require something else
[20:25:04] <Dominus> hmm, do I need this declared in the dtd file as well? because I can't make it color the text with that
[20:26:05] <Dominus> I have for testing <configtag name="data_path" bla="true"> in the docs.xml and copy pasted your code over that part in the xsl
[20:27:42] <wjp> I have a new attempt at the xsl (reload)
[20:28:02] <wjp> the test was broken I think
[20:28:36] <wjp> hm, you're probably right about having to change the DTD
[20:28:52] <wjp> although it should work without it
[20:29:18] <Dominus> still won't show it different
[20:30:13] <wjp> argh, I'm stupid
[20:30:34] <wjp> the "text-color=#62186f" is not quite a valid style :-)
[20:30:58] <wjp> changing the = to a : should hopefully work
[20:32:29] <wjp> maybe
[20:33:30] <wjp> ah
[20:33:30] <Dominus> it transform it to "tr style="text-color:#62186f"><td style="text-indent:40pt"><data_path> ...." but it won't show in firefox
[20:33:42] <wjp> it's color instead of text-color too
[20:33:53] <wjp> I'm starting to lose my mind it would seem :-)
[20:34:40] <wjp> (and now I actually see it myself too)
[20:34:45] <Dominus> ahhhh
[20:34:47] <Dominus> :)
[20:35:48] <wjp> I missed the <tr> tag of the actual text too (reload)
[20:37:06] <Dominus> nice!
[20:38:36] <Dominus> hmm, interesting, IE 8 renders the html centered
[20:40:07] <wjp> trying to make it work on subtags too...
[20:40:09] <wjp> centered?
[20:40:45] <Dominus> yeah the whole layaout is centered for some reason
[20:40:59] <Dominus> instead of left sided
[20:42:35] <Dominus> the actual documentation on the website is rendered correctly... this strange MS stuff :)
[20:44:45] <Dark-Star> trying to auto-generate some documentation for the config files? or just "pretty-printing" them?
[20:45:53] <Dominus> "just" pretty printing :)
[20:46:08] <Dominus> the centered align is caused by line 108 in html.xsl
[20:50:00] <wjp> ah
[20:51:16] <Dominus> I see no adverse effect in firefox if I take that out. Should I?
[20:52:25] <wjp> why not
[20:52:32] <Dark-Star> anything I could take a look at? I'm curious ;-)
[20:54:55] <Dominus> not really atm :) the idea is in http://exult.sourceforge.net/docs.php#exult_config to color tags that can only be changed manually and not through in game settings gumps. A try to make that part of the documentation a bit more readable :)
[20:55:06] <Dominus> or useful :)
[20:55:35] <Dominus> the way it is now, it is a bit overwhelming, every time I look at it
[20:56:46] <Dominus> and I want to give users the feeling that they NORMALLY don't need to bother much with the cfg. (I still wish we had an ini system like pentagram :))
[20:56:55] <Dark-Star> ok so the row-style parameter is supposed to select between two styles of table-rows?
[20:57:44] <Dark-Star> I'd probably do it with css classes instead of inside the xsl file itself, makes the xsl file more readable ;-)
[20:58:26] <Dominus> instead of bla, I'm going to go with manual, to make more sense if anyone else ever tries his hands at writing the documentation :)
[20:59:03] <Dark-Star> :)
[20:59:42] <Dark-Star> I think editing XML files is always bad for end users, so the best solution would probably be to be able to change everything through ingame gumps...
[21:00:03] <Dark-Star> that's why I normally go with simple INI files too
[21:01:14] <Dominus> yeah, I made a suggestion to implement the scummvm file browser somehow (since that is corss platform it seems). That would make manually editing the xml file even less necessary...
[21:02:45] <Dominus> but that suggestion was well received and never looked at further (at least in the foreground)... but that's just because development really slowed down since the 1.2 release :)
[21:03:00] <Dominus> except for Marzo's stuff of course :)
[21:03:01] <wjp> oh, the <xml:param> </xml:param> should probably be <xml:variable> </xml:variable>
[21:05:08] <Dominus> ok, thx, changed
[21:05:33] <wjp> um, xsl, but you probably figured that out :-)
[21:07:36] <Dark-Star> could I take a look at the full xsl file? the URL that was posted above only shows one xsl:template, not the whole file. Maybe I can help somehow (I did some fancy xsl stuff once or twice)
[21:07:50] <wjp> it's in our svn in the docs/xml dir
[21:13:38] <Dark-Star> wow this stuff hasn't been touched for some time :)
[21:15:57] <Dominus> the xsl stuff was just working fine the way it did, only when I had another idea what to do with it, I ran to willem and max and begged them for help :)
[21:16:26] <Dominus> only the xml stuff has to be touched for actually adding to the docs
[21:17:00] <Dominus> many thanks willem for helping me again :)
[21:17:30] <Dark-Star> I'd do it like this: add an attr to the config tags which says "user_configurable" or nothing. then select this attr and pass it via xsl:with-param to the "configtags" template. In there you can then set the css class based on that param. Then you only need to add some formatting for the classes in the CSS file ;-)
[21:18:32] <wjp> patches are welcome ;-)
[21:18:51] <wjp> I should be going; good night
[21:19:07] <wjp> Dominus: you're welcome; thanks for updating the docs
[21:19:15] <Dominus> good night
[21:19:27] <Dominus> darkstar, which css file? :)
[21:20:07] <Dark-Star> hm, if there is none, there should be one :) makes the xsl files much easier to parse...
[21:21:01] <Dark-Star> but it should work without too
[21:23:12] <Dominus> the reason there is non, is just because the whole system is ancient and also because to keep it simple. if we add a css file, the installer needs to be updated again, to include that file, too. And then the web page would need it too, since the php file is just done very similar, to make it easyily maintained
[21:24:55] <Dominus> probably adding a css file NOW would be making more hassle than it gains. But then again, a patch for the whole system would still be appreciated and those that actually know what they are doing (not me :)) could judge it how it would work out.
[21:27:49] <Dark-Star> yes, I'm hacking a bit on it right now (although I don't claim I know more xml/xsl/.... than you or wjp do ;-)
[21:28:21] <Dominus> and most of the times I don't need to change anymore in the xsl part, since all the hard work is already done :)
[21:29:09] <Dominus> me? xml/xsl? phew... I'm always standing in front of it and don't know what to do.. only after a couple of days, do I understand it again :)
[21:30:30] <Dominus> I'll have to go to sleep as well, I'll be back tomorrow, i think and I'll read the logs :)
[21:33:02] <-- Dominus has left IRC ("oh no! not again")
[21:44:26] <Dark-Star> ok so I'll post something here for you to read tomorrow ...
[21:45:06] <Dark-Star> it now took me 10 minutes to figure out why closing tags were not showing in my simplified copy of the config file and assiciated xsl... note to self: always check the DTD too
[21:45:33] <Dark-Star> but at least I now have a small test case. ugly but ok for working with it
[21:50:32] --> Marzo has joined #exult
[22:00:43] --- Marzo is now known as Marzo_away
[22:01:11] <Dark-Star> @Dominus: ok now I'm probably as far as you were before ... i.e. I have different colors for the config values.
[22:01:18] --- Marzo_away is now known as Marzo
[22:03:17] <Dark-Star> the problem is now that it does only work when set at a leaf, i.e. you can't tag a complete subtree at once. not nice
[22:05:34] <Dark-Star> it would probably be more correct to do it with an additional parameter in the configtag template which tells if the parent is already "disabled" or not... however, it's probably not woth the trouble
[22:09:42] <Dark-Star> xsl is actually pretty cool after you get used to its rather... umm... "peculiar" way of doing things...
[22:16:07] <Dark-Star> whee, gotta go now too... past 12 already. Will be back some time tomorrow evening
[22:16:10] <Dark-Star> 'night
[22:26:33] --- Marzo is now known as Marzo_away
[23:14:18] --- Sevalecan is now known as Sevalebed
[23:17:46] --> Baastuul_ has joined #exult
[23:24:55] <-- Fingolfin has left IRC ()
[23:35:11] <-- Rottingbeef has left IRC (Read error: 110 (Connection timed out))
[23:43:22] --> Malignant_Manor has joined #exult