#bitfighter IRC Log

Index Search ←Prev date Next date→

IRC Log for 2012-04-15

Timestamps are in GMT/BST.

00:23:07raptor Quit ()
00:23:18raptor has joined
00:23:19ChanServ sets mode +o raptor
00:28:58raptori wonder if levelgens work now...
00:30:59sam686 Quit (Ping timeout: 245 seconds)
00:31:31sam686 has joined
00:31:32ChanServ sets mode +v sam686
00:31:47raptorsomehow s_bot can't aim well anymore... - i thought i fixed that...
00:33:30raptorsegfault on levelgens still..
03:09:19sam686 Quit (Ping timeout: 245 seconds)
03:09:37raptor Quit (Ping timeout: 246 seconds)
03:09:43sam686 has joined
03:09:44ChanServ sets mode +v sam686
03:31:27Zoomber_ has joined
03:31:27ChanServ sets mode +v Zoomber_
03:31:28Zoomber Quit (Read error: Connection reset by peer)
03:31:28Zoomber_ is now known as Zoomber
03:35:59Zoomber_ has joined
03:35:59Zoomber Quit (Read error: Connection reset by peer)
03:35:59ChanServ sets mode +v Zoomber_
03:36:00Zoomber_ is now known as Zoomber
03:45:14Frank__ has joined
03:46:13Frank__ Quit (Client Quit)
04:02:25raptor has joined
04:02:25ChanServ sets mode +o raptor
04:05:09sam686 Quit (Ping timeout: 245 seconds)
04:05:50sam686 has joined
04:05:51ChanServ sets mode +v sam686
05:00:09sam686 Quit (Ping timeout: 245 seconds)
05:00:47sam686 has joined
05:00:47ChanServ sets mode +v sam686
06:32:57raptor Quit ()
06:59:44sam686 Quit (Ping timeout: 245 seconds)
07:00:15sam686 has joined
07:00:17ChanServ sets mode +v sam686
07:35:34sam686 Quit (Ping timeout: 245 seconds)
07:36:12sam686 has joined
07:36:13ChanServ sets mode +v sam686
07:57:26Watusimoto has joined
08:06:24sam686 Quit (Ping timeout: 245 seconds)
09:01:07LordDVG has joined
10:16:17watusimoto1 has joined
10:29:56watusimoto1 Quit (Quit: Leaving.)
10:40:36Watusimoto_ has joined
10:41:38Watusimoto Quit (Ping timeout: 276 seconds)
12:32:23Watusimoto has joined
12:35:03Watusimoto_ Quit (Ping timeout: 245 seconds)
13:10:09Watusimoto Quit (Ping timeout: 240 seconds)
13:24:48raptor has joined
13:24:48ChanServ sets mode +o raptor
13:25:28LordDVG Quit (Ping timeout: 272 seconds)
15:45:09raptor Quit ()
16:33:00Watusimoto has joined
16:39:30LordDVG has joined
17:08:31BFLogBot - Commit 381e68a293a9 | Author: watusim...@bitfighter.org | Log: Further cleanup
17:08:33BFLogBot - Commit 3554f409ac47 | Author: watusim...@bitfighter.org | Log: Rename function, pass name in
17:08:34BFLogBot - Commit 1ecbc8e46130 | Author: watusim...@bitfighter.org | Log: Rename function, add comment
17:08:36BFLogBot - Commit ae1866a1cc46 | Author: watusim...@bitfighter.org | Log: Add TODO
17:08:37BFLogBot - Commit fb97d6da9fd4 | Author: watusim...@bitfighter.org | Log: Comment
17:08:39BFLogBot - Commit fca5975fb69d | Author: watusim...@bitfighter.org | Log: Fix warnings
17:08:40BFLogBot - Commit d688509ee4e1 | Author: watusim...@bitfighter.org | Log: Fix warnings
17:08:42BFLogBot - Commit b6d59719fed0 | Author: watusim...@bitfighter.org | Log: Compiled scrips now cached -- makes bot startup faster
17:28:45BFLogBot - Commit dad8acd2d051 | Author: watusim...@bitfighter.org | Log: Change to deque
17:34:23Watusimoto Quit (Ping timeout: 276 seconds)
18:31:55raptor has joined
18:31:55ChanServ sets mode +o raptor
18:57:51Watusimoto has joined
21:29:14raptorhello
21:41:02Watusimotohi
21:41:13Watusimotojust wrapped up my taxes for the evening
21:41:21Watusimotonever ending story
22:02:16kaen has joined
22:08:59LordDVG Quit (Quit: Leaving)
22:17:02sam686 has joined
22:17:03ChanServ sets mode +v sam686
22:17:08Watusimotoraptor: you probably haven't looked at my recent checkins, but we finally have a deque in there!
22:36:47raptorWatusimoto: i have been trying my hardest to understand what you've been doing...
22:36:53raptorand i see the deque!
22:37:14raptordidn't we try and use one before for something, but it crashed all the time?
22:38:50WatusimotoI don't recall. What I'm trying to do is simplify, clarify, and streamline script running
22:39:10raptoradvantage of deque again? faster insertion from either end?
22:39:16raptoror was it removal..
22:39:52Watusimotowell, I'm hoping it's optimized to add at one end and remove at the other
22:40:03Watusimotothat's the way we're using it, at least
22:40:10raptorthat's right
22:40:16Watusimotobut the lists are small
22:40:27Watusimotoright now 2 elements, in future maybe 10 or 15 or so
22:40:27raptoraddition and removal from either end without having to copy the whole array
22:40:39Watusimotoso probably it doesn't really matter
22:41:25Watusimotoyou may have a hard time following things edit-by-edit because I keep shuffling things around
22:41:37Watusimotobut hopefully the whole flow makes more sense now
22:41:58WatusimotoI keep going over it, trying to improve the clarity and such
22:42:09Watusimotobtw, /addbots 100 is very fast now
22:42:15Watusimotoat least compared to the way it was before
22:43:11Watusimotonot that people should be doing that...
22:43:35Watusimotowhat I need to do now is make sure the error handling works well
22:43:42Watusimotobecause I ripped a lot of that out
22:44:50raptorso tell me about the 'bot caching'
22:44:56raptorwhat is it you've actually done
22:46:57Watusimotook, lua_loadfile reads a file and compiles the code (but does not execute it)
22:47:14Watusimotothe compiled chunk gets put on top of the stack, where it can be executed by pcall()
22:47:21Watusimotolua_pcall()
22:47:42Watusimotobut you can also further manipulate it before you run it
22:47:59Watusimoto(it is compiled as if it were a function, which is just a different data type iun Lua)
22:48:29Watusimotoso before we run it, we copy it to the registry table, which is a special table that C++ can use to store stuff
22:48:40Watusimotoso we store the loaded and compiled program
22:49:06Watusimotonext time someone wants to run the same code, we can pull from the registry table rather than load and compile
22:49:13Watusimotothat's essentially it
22:49:59Watusimotoso we have methods loadCompile, which loads and compiles a file
22:50:14Watusimotoand loadCompileSave which runs loadCompile and save the result to the registry
22:51:06WatusimotoloadCompile is just lua_loadfile with some not-quite-working error handling
22:51:15raptorok
22:51:47WatusimotoI find it very helpful to have this open when I'm reading the code
22:51:47Watusimotohttp://www.lua.org/manual/5.1/manual.html#pdf-tostring
22:52:06raptorhow would that affect adding an s_bot with different offense/defense settings?
22:52:16Watusimotoand I'm trying to comment things well, especially what we think is on the lua stack
22:52:35Watusimotono change -- the code is the same regardless, the settings are passed in when we run it
22:52:51Watusimotoso we can still pass in different args to the cached scripts
22:52:59Watusimotocan and do
22:53:16Watusimotowe are only caching what is in the file itself
22:53:38Watusimotoi.e. s_bot.lua
22:56:33raptorexcellent
22:58:28Watusimotothe only hitch is if we're caching, it's harder to tweak bots
22:58:46Watusimotoso I think we shouldn't cache in the editor, and you should be able to disable it for developing
22:59:04Watusimotobut for ordinary use, I think caching will work really well
22:59:17Watusimotoespecially with such a limited number of scripts
23:02:38Watusimotoa question for later is whether to cache levelgens
23:02:55Watusimotoas they are much less performance-sensitive, being only run during level changes
23:03:13Watusimotothough i suppose as long as we only have one bot, we might as well
23:06:17WatusimotoI'm making a big presentation of my project at work in a week. On Thursday, I decided to delete the project and start over. So things are kind of stressful in the office :-)
23:06:50Watusimoto6 months of work need to be rebuilt in a week
23:06:59Watusimotoand it has to be better
23:09:12raptor!!!
23:09:34raptoras in: you *chose* to do 6 months in one week?
23:11:06Watusimotowell, it appeared the easiest course
23:11:37raptori'll have to believe you..
23:11:40Watusimotosometimes it is easier to rebuild than to repair
23:11:42raptoryes
23:11:53Watusimotoas I learned on my house much to my financial detriment
23:12:03raptorblech
23:12:23Watusimototurned out pretty nice, just made me poor
23:14:04raptorwow, bot loading is fast
23:14:32Watusimotoyes
23:14:34Watusimotoafter the first one
23:14:44Watusimotono more disk access, no more compiling
23:14:59raptorgot a segfault on the client when adding 50 bots to a server - server didn't crash though
23:15:12Watusimotohuh
23:15:32raptorhere: http://pastie.org/3795020
23:15:42raptorclient is trying to delete a lua something?
23:16:08Watusimototry again with my latest checkin
23:16:31Watusimotoit's trying to clean up for a script that didn;t get run
23:16:38raptori just did a clean compile from stuff you checked in about 5 hours ago
23:16:50raptoroh, maybe i forgot to copy over new scripts...
23:16:51WatusimotoI checked in about 1 minute ago
23:17:04Watusimotofixed a problem in the same area
23:17:05raptornot on google code yet...
23:17:25Watusimotooops
23:17:36Watusimotook
23:18:00Watusimotowait
23:18:07Watusimotothis happened on the client
23:18:18Watusimotowas that a seperate process from the server?
23:18:25raptoryes, i was running htem separately
23:18:31Watusimotoah, interesting
23:18:37Watusimotook, my fix should probably fix it
23:18:43Watusimotothough accidentally
23:19:29BFLogBot - Commit 148d03838310 | Author: watusim...@bitfighter.org | Log: Fix crash when running robot that doesn't exist
23:20:32raptorlooks like it did
23:20:56raptor and i have 100 bots running at 27MB ram
23:21:03raptoryay!
23:22:13raptorlooks good: http://sam686.maxhushahn.com/upload/11screenshot_3.png
23:22:48Watusimotowow
23:25:23raptori will run valgrind memory check... been a while since i've done that
23:26:20Watusimotook, good
23:26:34WatusimotoI'm going to bed. I'll look for your results tomorrow
23:27:09WatusimotoI think we should cap bots at 64, personally...
23:27:18Watusimotook, later
23:27:24raptornight
23:29:32BFLogBot - Commit cda958e41e6f | Author: watusim...@bitfighter.org | Log: whitespace
23:47:24Watusimoto Quit (Ping timeout: 250 seconds)
23:54:35BFLogBot - Commit 2c2748b6549d | Author: buckyballreaction | Log: Fix segfault on exit if bitfighter -dedicated was specified

Index Search ←Prev date Next date→

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