*** Sgeo <Sgeo!~Sgeo@user/sgeo> has quit IRC (*.net *.split) | 00:00 | |
Optic_Delusion | What's the procedure for saving the console to a text file? I did this a long time ago, but now can't remember. | 01:27 |
---|---|---|
*** blast007[m] <blast007[m]!~blast007m@2001:470:69fc:105::7ec> has joined #bzflag | 01:27 | |
the_map | Optic_Delusion: /savemsgs ? | 02:09 |
the_map | https://wiki.bzflag.org/Slash_Commands | 02:09 |
the_map | > Saves the chat console to config directory/msglog.txt. Use "/savemsgs -s" to strip coloring data. | 02:09 |
*** Erroneous <Erroneous!~DTRemenak@2603-8001-3700-003f-9ca3-b955-530f-8f95.res6.spectrum.com> has joined #bzflag | 02:11 | |
the_map | I feel like there was a command to save the entire console output, but I can't remember or find it either | 02:12 |
*** DTRemenak <DTRemenak!~DTRemenak@2603-8001-3700-003f-19f6-a671-bb21-5d1b.res6.spectrum.com> has quit IRC (Ping timeout: 245 seconds) | 02:14 | |
*** Erroneous is now known as DTRemenak | 02:14 | |
*** _I_Died_Once <_I_Died_Once!~I_Died_On@c-73-184-170-223.hsd1.ga.comcast.net> has joined #bzflag | 02:29 | |
*** I_Died_Once <I_Died_Once!~I_Died_On@c-73-184-170-223.hsd1.ga.comcast.net> has quit IRC (Ping timeout: 246 seconds) | 02:32 | |
*** Sgeo <Sgeo!~Sgeo@user/sgeo> has joined #bzflag | 02:52 | |
Optic_Delusion | the_map Thank you. I remember now... open bzflag thru a terminal, using /savemsgs /path/to/file.txt .... do that every time and your console is saved every time | 03:29 |
Optic_Delusion | even if BZFlag crashes, you'll have everything up to that point... but probably not that last critical msg. | 03:30 |
*** Agatha_ is now known as Agatha | 04:18 | |
*** _I_Died_Once <_I_Died_Once!~I_Died_On@c-73-184-170-223.hsd1.ga.comcast.net> has quit IRC (Ping timeout: 245 seconds) | 06:00 | |
*** Sgeo <Sgeo!~Sgeo@user/sgeo> has quit IRC (Read error: Connection reset by peer) | 08:20 | |
*** blast007[m] <blast007[m]!~blast007m@2001:470:69fc:105::7ec> has quit IRC (Quit: You have been kicked for being idle) | 09:00 | |
the_map | Optic_Delusion: in that case perhaps running `bzflag -e` to echo everything to a console, and pipe that to a file? | 10:17 |
*** blast007[m] <blast007[m]!~blast007m@2001:470:69fc:105::7ec> has joined #bzflag | 10:17 | |
the_map | did that for a while, and would have the file date / timestamp itself | 10:17 |
the_map | -ea if you want to preserve colors | 10:18 |
*** _I_Died_Once <_I_Died_Once!~I_Died_On@c-73-184-170-223.hsd1.ga.comcast.net> has joined #bzflag | 12:16 | |
*** _I_Died_Once <_I_Died_Once!~I_Died_On@c-73-184-170-223.hsd1.ga.comcast.net> has quit IRC (Ping timeout: 265 seconds) | 14:48 | |
*** blast007[m] <blast007[m]!~blast007m@2001:470:69fc:105::7ec> has quit IRC (Quit: You have been kicked for being idle) | 16:00 | |
*** _I_Died_Once <_I_Died_Once!~I_Died_On@c-73-184-170-223.hsd1.ga.comcast.net> has joined #bzflag | 16:51 | |
SpringTank | bflag doesn't appear to look for sound in the cache directory, it only looks in the data directory. I'm search for the code that handles this but I'm not having any luck. Anyone know where it is? | 17:08 |
*** blast007[m] <blast007[m]!~blast007m@2001:470:69fc:105::7ec> has joined #bzflag | 17:08 | |
SpringTank | hey blast | 17:09 |
SpringTank | bflag doesn't appear to look for sound in the cache directory, it only looks in the data directory. I'm search for the code that handles this but I'm not having any luck. Anyone know where it is? | 17:09 |
SpringTank | hmm, i think i found it | 17:21 |
*** BulletCatcher <BulletCatcher!~bc@user/bulletcatcher> has quit IRC (Remote host closed the connection) | 17:33 | |
blast007 | yeah, our directory/file handling is a bit weird | 17:38 |
blast007 | if you're trying to fetch custom sounds from a web server, I don't know if those actually write to the cache directory. Looks like it tries to write to the data directory, which is most often not writable by the user. | 17:39 |
SpringTank | right | 17:42 |
SpringTank | i found a way around that, sorta | 17:42 |
SpringTank | bzflag doesn't care what type of file you put for images in your map file and will happily download .wav files to the cache | 17:42 |
SpringTank | now just trying to find a way to point it there when reading the sound files | 17:42 |
blast007 | lol.. | 17:43 |
SpringTank | the proper way would be to have the sound files listed in the map file similar to textures | 17:43 |
SpringTank | and then go from there | 17:43 |
SpringTank | now... | 17:43 |
SpringTank | if I do a direct path to the cache, it will read the sound file just fine! | 17:43 |
SpringTank | and it works! | 17:43 |
SpringTank | but not everyone has the same path to the cache obviously | 17:44 |
SpringTank | i can't remember if there is a way to make it do relative paths... | 17:44 |
SpringTank | without editing any code | 17:44 |
blast007 | we relative paths won't work either since the game data isn't always in the same relative path to the cache directory | 17:45 |
blast007 | s/we // | 17:45 |
blast007 | there's just not a way to do it for 2.4 | 17:45 |
SpringTank | i see | 17:45 |
blast007 | we can fix it for 2.6 | 17:45 |
SpringTank | please do | 17:46 |
SpringTank | or at least make a patch? | 17:46 |
blast007 | a patch for 2.4? | 17:46 |
SpringTank | yeah | 17:46 |
blast007 | why for 2.4? unless everyone has it it won't do much good | 17:46 |
blast007 | and some clients would crash | 17:47 |
SpringTank | true | 17:47 |
SpringTank | never did figure out why they were crashing | 17:47 |
SpringTank | i susspect it was because it was trying to write to ./data when it couldn't | 17:47 |
SpringTank | although, using bzflag's sounds on servers doesn't crash | 17:48 |
SpringTank | etigah was using them on their server as well | 17:48 |
SpringTank | seemed to work fine | 17:48 |
*** Sgeo <Sgeo!~Sgeo@user/sgeo> has joined #bzflag | 17:52 | |
SpringTank | I made a change and am going to try it later on linux to see if it works. My desktop's audio out got hit by lightning and it's currently my only working linux box. :/ | 17:59 |
SpringTank | so i'm going to have to fix the one on my other laptop. | 17:59 |
SpringTank | IIRC, it's audio didn't work either... | 17:59 |
SpringTank | and I know it's a hardware issue on my desktop because it's duel boot | 17:59 |
SpringTank | if this works, it would be super easy for map makers to replace existing bzflag sounds with their own! | 18:01 |
SpringTank | well, not without some extra bits of code to tell bzflag to use different sounds that is | 18:02 |
SpringTank | I've got some stuff to do, but in the meantime I'll leave my server up for anyone who wants to test this. You will need to edit or replace BzfMedia.cxx | 18:16 |
SpringTank | https://pastebin.com/scjY3mLR | 18:17 |
SpringTank | then on the server, use the command /goomba | 18:17 |
SpringTank | that should be the remote sound | 18:17 |
SpringTank | and /laugh | 18:17 |
SpringTank | should be bzflag's flaglost sound | 18:17 |
SpringTank | It's hacky the way I implemented it, but it's a proof of concept. | 18:18 |
*** BulletCatcher <BulletCatcher!~bc@user/bulletcatcher> has joined #bzflag | 18:43 | |
*** Harlin <Harlin!~DonQixote@c-24-128-8-53.hsd1.co.comcast.net> has quit IRC (Ping timeout: 264 seconds) | 20:11 |
Generated by irclog2html.py 2.17.3.dev0 by Marius Gedminas - find it at https://mg.pov.lt/irclog2html/!