IRC logs for #opendune on OFTC at 2010-11-30
⏴ go to previous day
11:41:02 <Xaroth|Work> planetmaker: if the ottdcoop serverpatch uses the 'normal' console echo stuff for the DoCommand you can technically route it through to an admin port client
11:41:32 <Xaroth|Work> which, in turn, allows you to parse it and do whatever you want with it
11:41:42 <planetmaker> I know that the current employed solution and the admin console solution are completely different
11:42:17 <Xaroth|Work> {'origin': 'console', 'cached_len': 27, 'message': '\xe2\x80\x8e[All] : Mooo'}
11:42:17 <planetmaker> I think there's not (yet) complete support for logging everything.
11:42:31 <planetmaker> in the admin console. But...
11:42:58 <planetmaker> ... having something which logs what is available in a somewhat raw form would already help a lot
11:43:20 <planetmaker> and... adding raw command output along with the clientID is at least allowed to be added ;-)
11:45:44 <planetmaker> (on the openttd side I mean)
11:45:49 <Xaroth|Work> well look at it this way, if the patch you guys use can send ADMIN_PACKET_SERVER_CONSOLE packets to the admin port (where enabled, ofcourse), with origin set to clientID and message set to the DoCommand info, you can easily use the admin port to log/filter/whatever
11:46:25 <planetmaker> the patch currently doesn't. But... yes, we should prod SmatZ to modify it accordingly ;-)
11:46:57 <planetmaker> maybe some beer helps persuading him :-P
11:47:00 <Xaroth|Work> I'll commit my changes tonight, making libottdadmin usable again :P
11:47:19 <Xaroth|Work> I made a 'feature' on it, the DebugFeature, which just dumps packets as they are sent/received
11:47:24 <Xaroth|Work> so I can test stuff
11:47:40 <Xaroth|Work> makes it easy to check whether or not things are workign as intended
11:58:39 <Xaroth|Work> wokring on a ChatFeature now, making easy functions for various stuff
11:58:49 <Xaroth|Work> quite easy to work with, the admin port
15:28:34 <DorpsGek> SVN: glx (r1175) -Add: C-ified Driver_Sound_Play()
15:44:06 *** alexistexas has joined #openDune
16:41:15 <DorpsGek> SVN: glx (r1176) -Add: C-ified Driver_Music_Play()
16:41:50 <glx> driver.c and sound.c need to be re-thinked ;)
16:45:49 <Xaroth|Work> you're a maniak, glx :P
16:46:11 <Xaroth|Work> in the good sense, ofcourse
16:52:01 <Xaroth|Work> planetmaker: I blame you for giving me wild ideas, tbqfh :P
16:53:10 <Xaroth|Work> you can easily use the admin port to administer 1 (or more) servers, in which you just pipe (by lack of better wording) stuff like chat etc into a database
16:53:20 <Xaroth|Work> with a nice frontend so that people can view it semi-live
16:53:37 <planetmaker> <Xaroth|Work> planetmaker: I blame you for giving me wild ideas, tbqfh :P <-- I can live with that
16:54:18 <planetmaker> Xaroth|Work, but yes, exactly that is also the idea of the admin port. Yes, it's possible. Yes it might even be desirable
16:55:05 <planetmaker> Like currently it needs quite some hacks around in order to have non-ssh people restart the server.
16:55:15 <Xaroth|Work> I wouldn't mind having some console(read: rcon) commands to hide UI sections (like the chat box and build icons)
16:55:17 <planetmaker> That might become substantially nicer
16:55:23 <Xaroth|Work> that would make making screenshots SO much nicer
16:55:47 <planetmaker> uhm. You can hide the signs
16:55:52 <planetmaker> not sure about the chatbox
16:55:55 <Xaroth|Work> but i want chat gone
16:55:58 <Xaroth|Work> and the build icons
16:56:04 <Xaroth|Work> i want the playfield, and JUST the playfield :P
16:56:05 <planetmaker> what is "build icons"?
16:56:32 <planetmaker> try the giant screenshot :-P
16:56:41 <Xaroth|Work> yes.. maybe not :P
16:56:44 <planetmaker> or the "middle" one. Don't know how exactly it's called
16:56:45 <Xaroth|Work> those are a bit TOO big
16:57:33 <Xaroth|Work> I'll make some suggestions when I'm home
16:58:29 <Xaroth|Work> the real fun part comes
16:58:36 <Xaroth|Work> where you can almost make screenshots on-demand
16:58:45 <Xaroth|Work> like, having a screenshot minimap-style
16:58:56 <Xaroth|Work> and where you click you can see the 'last' known screenshot of that location
16:59:21 <planetmaker> <Xaroth|Work> where you can almost make screenshots on-demand <-- we have that for ap+ :-P
16:59:31 <planetmaker> But having that in the new one: very nice :-)
16:59:58 <planetmaker> type !screen in any of our two servers channels and you'll see
17:00:32 <planetmaker> it's updated every X minutes
17:01:14 <Xaroth|Work> yeh, all that.. perhaps newgrf probably, can be done through admin port
17:02:17 <Xaroth|Work> the list of loaded newgrfs
17:02:21 <Xaroth|Work> not seen that in the packet info yet
17:02:27 <Xaroth|Work> but you can query that differently
17:02:30 <Xaroth|Work> (not really ideal tho)
17:03:12 <Xaroth|Work> fun bit is, with the auto polling on date info
17:03:15 <Xaroth|Work> you could 'time' stuff :P
17:03:19 <Xaroth|Work> like a welcome message every 'year'
17:03:36 <Xaroth|Work> rather than every <X> real time
17:03:50 <Xaroth|Work> no spam when nobody's playing , etc :)
22:34:29 <Xaroth> ok, making ottd patches is annoying
22:34:37 <Xaroth> dont' get fuck all of the code
22:34:40 <Xaroth> so not going to bother :P
continue to next day ⏵