#bitfighter IRC Log

Index Search ←Prev date Next date→

IRC Log for 2014-08-17

Timestamps are in GMT/BST.

00:42:50Flynnn Quit (Quit: This computer has gone to sleep)
00:44:55Flynnn has joined
00:45:17raptor Quit ()
00:57:25Flynnn Quit (Quit: This computer has gone to sleep)
00:57:58Flynnn has joined
02:04:00Invisible has joined
03:13:45Invisible Quit (Ping timeout: 260 seconds)
03:17:58Flynnn Quit (Quit: This computer has gone to sleep)
03:18:46Flynnn has joined
04:14:33Watusimoto has joined
04:17:32Flynnn Quit (Quit: This computer has gone to sleep)
04:19:31Platskies has joined
04:21:06Platskies Quit (Client Quit)
04:25:42Akien has joined
04:45:56Watusimoto Quit (Ping timeout: 260 seconds)
05:16:52Invisible has joined
06:48:13Watusimoto has joined
07:01:49Invisible Quit (Quit: Invisible)
09:08:05raptor has joined
09:08:05ChanServ sets mode +o
09:08:17raptormornin'
09:17:53Nothing_MuchMornin' raptor
09:25:31raptorhi
09:57:16raptorWatusimoto: I could also expand idea in GameSettings to have a getSetting<F32>(indexType) - then we'd just have that one method with the setting key
10:03:11raptorthat's probably a good idea anyways to reduce the length of the settings call
10:32:20Akien Quit (Remote host closed the connection)
10:41:58Nothing_Much Quit (Read error: Connection reset by peer)
10:49:55BFLogBot Commit: 47881984b9 | Author: buckyballreaction | Message: Create a getSetting() method to reduce verbosity
10:49:56BFLogBot Commit: 60d3edf4a4 | Author: buckyballreaction | Message: User our new getSetting/setSetting methods everywhere that has been migrated to the new system
11:47:04Nothing_Much has joined
11:56:25Nothing_Much Quit (Quit: Konversation terminated!)
11:58:05Nothing_Much has joined
11:59:11raptor Quit ()
12:49:07Watusimoto Quit (Ping timeout: 255 seconds)
12:51:12Watusimoto has joined
13:08:41fordcars_us has joined
13:09:05fordcars_usGuess where I am?
13:10:11fordcars_usMaine, Us hehe
13:10:31fordcars_usComing back home tomorrow
13:14:54fordcars_us Quit (Ping timeout: 246 seconds)
14:04:14Invisible has joined
14:17:26Watusimoto Quit (Ping timeout: 250 seconds)
14:18:05Invisible Quit (Ping timeout: 260 seconds)
14:48:42Watusimoto has joined
16:40:57raptor has joined
16:40:57ChanServ sets mode +o
16:42:38raptorhello again!
16:53:45Watusimotohi
16:54:07raptorhi
16:54:41raptorI've run into another issue with the settings: if something isn't an INI option, where should it be stored?
16:54:48raptorfor example: oldDisplayMode
16:55:13raptorit's derived from the displayMode (which is in the INI), but only used internally to the game
17:01:16raptorwould we want to store these derived/internal settings with the ones from the INI on the same object (mSettings)?
17:01:38raptoror maybe just on the GameSettings object...
17:01:42Watusimotowell... things can be complicated
17:01:55raptorif on mSettings, would the be part of the SETTINGS_TABLE ?
17:02:03Watusimotowe also need to store two states of many settings -- that which should be written to the INI, and that which we are using in game
17:02:23Watusimotothey are not always the same, if, for example, someone overrides a setting on the cmd line
17:02:38raptorhmmm
17:02:40raptorinteresting
17:02:45raptori hadn't considered that
17:03:06Watusimotoand you don;t want to write the override to the INI file, even though that is the active value for the game
17:03:06raptorand I tied together the INI and Settings objects last night with that new setSetting() template
17:03:18Watusimotothat looks ok
17:03:32Watusimotojust so long as we don;t use it when dealing with cmd line overrides
17:03:57raptorbut don't we write out all Settings to the INI at the game close anyways?
17:04:19Watusimotoyes -- but if someone specifies an override on the cmd line, we don't want to save that setting to the INI
17:04:44Watusimotoso we have to keep track of the "working value" and the "saving value"
17:04:55Watusimotousually they'll be the same, but not always
17:04:59raptorok, that makes sense
17:05:14raptorbut maybe I bulldozed through that exception with my latest commit...
17:05:59raptordid you intend the mSettings object to be the working copy (even though it is found on an object named 'IniSettings') ?
17:06:08Watusimotoyes, I think so
17:06:12raptorok
17:06:30raptorso what if...
17:06:43Watusimotoyou can be sure by looking at where the cmd line settings are merged with the INI settings
17:07:03raptorwhat if i start the game with a command line option, like -displaymode, but then change the mode in-game which calls a working and saving copy update?
17:07:07WatusimotoI think the IniSettings are what we want to be written
17:07:16Watusimotoand the mSettings are what we want to use
17:07:42Watusimotoif you change something in-game like that, I think we want to save your change to the INI, regardless of what you did on the cmdline
17:07:45raptorI've been modifying code under the impression that mSettings is the working copy from which everything is set/get
17:08:49raptorthe 'iniFile' object is what is actually written-to-disk and so that is the saving copy
17:08:59Watusimotoso one simplification is that while we may start off with several settings that differ (ini vs. cmd line override), there will never be more than we start with... that is, if anything changes in-game, we want to save that to the ini
17:09:07Watusimotoyes
17:09:13raptorok
17:09:49raptormaybe I should modify my setSetting() method to take a boolean that turns on/off the ini write
17:09:58raptorsorry, ini object write
17:10:02raptor(not write-to-disk)
17:10:26Watusimotoyou could -- but that would only be used when merging cmd line and ini... thereafter write would always be true
17:10:38Watusimotoso it might be clearer to treat that as a special case
17:11:00raptorok, then maybe for cmd line stuff i just call the internal mSettings object directly
17:11:06Watusimotoyes
17:11:09WatusimotoI think that would be fine
17:11:17raptorcall setVal<DataType>() on it and leave it at that
17:12:44WatusimotoI think there must be a clean architectural solution to this issue, but I haven't found it
17:13:05WatusimotoI've started 3 or 4 times to propose a solution (in the last couple of minutes), but keep deleting it because it isn't very clear
17:13:57WatusimotoI learned somethign about bikes today, btw... there was a time when bikes had two speeds -- you used one while pedaling forwards, and the other by pedaling backwards.
17:15:31raptorhaha, oh yeah
17:15:56Watusimotocrazy complex chain paths on those
17:16:19Watusimotonot to distract from the issue at hand, just thought I'd mention it
17:17:24Watusimotohere's a modern version
17:18:30raptorfound this: http://www.frankb.us/gears/
17:19:59raptorpretty nifty, actually
17:20:11raptorsometime I think I'd like to do mechanical engineering...
17:20:54raptorhalf the magic is in the rear axle
17:34:45raptorhuh - ok, so a 'directive' isn't a setting option
17:46:01Nothing_Much Quit (Quit: Konversation terminated!)
17:47:48Nothing_Much has joined
17:58:48WatusimotoI'm not sure what you meant by that last remark
18:01:24raptorthere are two categories of command line options, directives and params
18:02:18WatusimotoI suppose there are, yes... it's been years since i looked at that stuff!
18:02:23raptorwhich sent me down the wrong path for a little while... but a directive is something like -help or -rules that will not actually start the game
18:02:37raptora param is something that actually sets a setting
18:02:39Watusimotoyes, kind of non-game functionality
18:02:41Watusimotoyes
18:02:45raptoryes
18:02:54raptori'm adding a little doc as I figure this out...
18:08:22Watusimotoexcellent
18:08:32Watusimotofeel free to rename things or whatever to make stuff clearer
18:21:04raptortaking off... night!
18:21:09raptori am doing so
18:27:18raptor Quit ()
18:27:23BFLogBot Commit: 2ff603cc95 | Author: buckyballreaction | Message: Minor clean-up
18:27:24BFLogBot Commit: 7d1f4d6a75 | Author: buckyballreaction | Message: Clarification regarding parsing and usage of command-line parameters
19:03:01Watusimoto Quit (Ping timeout: 272 seconds)
21:55:47raptor has joined
21:55:47ChanServ sets mode +o
23:49:26raptormy new favorite method I just found: GameSettings::saveMasterAddressListInIniUnlessItCameFromCmdLine()
23:55:04BFLogBot Commit: faaf0d616f | Author: buckyballreaction | Message: Migrate another set of settings to the new system
23:56:49raptor Quit ()

Index Search ←Prev date Next date→

These logs were automatically created by BFLogBot on irc.freenode.net.