#bitfighter IRC Log

Index Search ←Prev date Next date→

IRC Log for 2013-06-07

Timestamps are in GMT/BST.

00:02:33bobdaduck Quit (Remote host closed the connection)
00:25:44raptorhey sam686, my fix for that CPU spike bug made it into SDL hg: http://hg.libsdl.org/SDL/rev/737cc5bad795
00:25:57raptoralso, bitfighter is mentioned in a commit message
00:26:00raptorwe're famous!
00:27:02sam686 Quit (Ping timeout: 245 seconds)
01:16:26raptorwell, I found what's causing the resize issue
01:16:30raptoron windows
01:17:05raptorwhen going from fullscreen to windowed mode, we set the window size again, like 800x600
01:18:15raptorthis triggers an SDL event, SDL_WINDOWEVENT_RESIZED, which makes sense
01:21:04raptorhowever, what doesn't make sense is that in that event, the new size is different than what was set
01:21:39raptorit's like the width, height get corrupted somewhere in SDL between the posting of the event and the reading of it...
01:47:04watusimoto1hi
01:47:15raptorhello
01:47:20raptoroh my goodness it's late
01:47:21watusimoto1more sdl bugs??
01:47:26watusimoto1yes, it is!
01:47:31raptori got a patch in!
01:47:36watusimoto1excellent!!
01:47:37raptorand I'm working on another..
01:47:57watusimoto1we'd be totally screwed without you, raptor!
01:48:02raptorha
01:48:38watusimoto1what time is it there?
01:48:46raptor1:48
01:48:54raptorI'm practicing for when the new kid comes... :)
01:49:02watusimoto1good plan!
01:49:05raptorok not really
01:49:23watusimoto1I'm usually up until 2 as well, so I know how it feels... the next morning
01:49:30watusimoto1like... now
01:49:34raptorblech
01:50:26kaengood news! I have to be at work in three hours.
01:50:33raptorhi kaen!
01:50:35raptorwait
01:50:36watusimoto1awesome!
01:50:36kaenso I'm really going to bed now, but congrats on the patch, raptor
01:50:46raptorman
01:50:47watusimoto1good night kaen
01:50:52raptornight!
01:51:02raptoruhh... not for me though.. have to write a bug report
01:51:33watusimoto1and look! all our chat messages from the whole night are here in the window of my "suspended" computer
01:51:40raptorhahaha
01:52:03watusimoto1it doesn't even make pretenses anymore... not even asking me for a password in the morning
01:52:15Flynnn Quit (Quit: Leaving)
01:52:20raptordid the computer feel warm when opening the lid? that's usually a giveaway
01:52:49watusimoto1I'll check that... the power light is off when I leave in the evening
01:53:00raptoroh..
01:53:05watusimoto1maybe it has wake on lan?
01:53:07raptormaybe something is making it comeback on?
01:53:08raptoryes that
01:53:15raptora tricky NIC
01:53:34watusimoto1well, I'll install the new mint in a week or so and then I'll try to fix it
01:53:59raptorafter you fix the sound drivers... and the graphics drivers... oh, and recompile the kernel
01:54:13watusimoto1sounds like my life with gentoo
01:54:24watusimoto1a new reality show coming soon on AMC
01:55:22raptorhow to install Linux? spanning 13 episodes!
01:55:55watusimoto1maybe with hacker girls dressed in bikinis and swearing a lot
01:56:01watusimoto1#$%^&* this driver!
01:57:49watusimoto1or better, two teams racing to be the first to a working machine, perhaps each voting one member off the team each week
02:03:44raptoroh my.. my almost 2 year old just cried out and I found him sleeping on the floor 5 feet from his bed
02:03:54watusimoto1ha!
02:04:22raptori don't even get how that could happen, unless he's a sleep climber
02:04:23watusimoto1it's only been in the last couple of years I could share a bed with my kids... they do eventually settle down but it takes a while
02:04:47watusimoto1roll of the bed and just keep rolling
02:08:48raptorit has 10in guard rails!
02:09:20watusimoto1no prison cell can hold me! I'm the Eagle! Son of Raptor!
02:09:27raptorhaha
02:15:15raptorbug submitted: http://bugzilla.libsdl.org/show_bug.cgi?id=1899
02:18:28raptorok, i should really go to bed now..
02:18:31raptorgood night!
02:20:19watusimoto1night!
02:22:51raptor Quit ()
09:20:13bobdaduck has joined
09:55:23Watusimoto has joined
10:17:28Nothing_Much has joined
10:29:04raptor has joined
10:29:04ChanServ sets mode +o raptor
10:33:24raptorgood day!
10:34:32bobdaduckGDAY
10:52:06Nothing_Much Quit (Ping timeout: 248 seconds)
10:56:22watusimoto1 Quit (Quit: Leaving.)
11:05:28Nothing_Much has joined
11:17:16Watusimoto Quit (Ping timeout: 245 seconds)
12:22:37raptortriple-decker PBH sandwiches are tasty
12:28:11bobdaduckSo is cookies and cream pie day.
12:42:38Nothing_Much Quit (Remote host closed the connection)
12:52:44Watusimoto has joined
12:55:50bobdaduck Quit (Ping timeout: 248 seconds)
13:02:28bobdaduck has joined
13:12:13raptorbobdaduck: are you hosting your thingy today?
13:12:26bobdaduckI am.
13:12:27bobdaduck6 our time
13:12:37raptoroh goodie
13:13:20bobdaduckI almost wonder if I should have like kaen or someone try to host for me because the network factor
13:13:34raptorjust don't host over wireless
13:13:51raptorbut if someone else does, then you can restart/fix stuff as fast
13:13:55raptor*can't
13:35:40bobdaduckOh I always host over wireless
13:35:45bobdaduckDoes it affect that much?
13:35:48raptorYES
13:35:49raptorlike
13:35:54raptoreverything affects it
13:36:06raptoryour neighbors wireless introduces interference
13:36:18raptoryour neighbors baby monitor introduces interference
13:36:31raptorand your microwave (sometimes)
13:36:41bobdaducklol
13:37:03raptoralso, other people using the wireless at the same time will fight for bandwidth
13:37:04bobdaduckI would think those would be minimal though
13:37:08raptorno
13:37:10raptorthey're not!
13:37:54raptorthe home consumer wireless spectrum most common on routers is so saturated now, that it is impossible to have a constant signal
13:38:35raptorand other weird things happen
13:38:41raptorlike data collisions are crazy
13:38:44raptorand cause lag
13:39:22raptorrepeat after me: "never play a game over wireless and expect stable gameplay"
13:39:29bobdaduckrofl
13:43:27raptornetwork on wireless is similar to when there's an ice cream part but there's only one scoop
13:43:32raptor*party
13:43:44raptorand everyone wants icecream now
13:44:12bobdaduckso whys different with wired?
13:44:30raptorbecause there is relatively little interference on wired
13:45:04bobdaduckbut isn't everyone still trying for a scoop of the ice cream?
13:45:28raptoryes, but wired guarantees delivery
13:45:57raptorit's not trying to sniff anything it can out of the air
13:46:00raptorand make sense of it
13:46:18bobdaduckhm.
13:46:37raptorit's like using a hose to get water 100ft away
13:46:52raptorwireless would be trying to throw the water with a bucket
13:47:24raptorexcept there are lots of other people with buckets, too
13:47:37raptorbut the location that needs teh water only wants it from you
13:47:44bobdaducklol these analogies
13:47:55bobdaduckare amazing
13:48:19raptori'm making them up as i go..
13:49:56bobdaduckyeah they're amazing
14:00:32bobdaduckOkay well
14:00:36bobdaduckthat's all very good to know
14:00:42bobdaduck...because I always use wireless.
14:08:19raptorwell, now you know to use a cable for hosting your game
14:09:23bobdaduckyeah
14:09:29bobdaduckor playing heavy games in general
14:11:25bobdaduckSo if I have a function applyEffects() that I call in ontick
14:11:37bobdaduckthat will add to the memory usage
14:12:00raptoris that a question?
14:12:30bobdaduckif I do an if statement so that apply affects doesn't get called until a certain point in the game, will that cut down on the memory usage by a statistically significant margin?
14:14:28raptorwell that is good practice anywyas
14:14:33bobdaduckif (gametime == 15 minutes) for example
14:14:41raptorbut it depends on what is actually in applyEffects()
14:14:54raptorin general, do as little processing as needed
14:15:20bobdaduckI'm only concerned about major cuts at the moment
14:15:30raptorwhich is good
14:15:41raptortake care of the low-hanging fruit
14:15:46bobdaduckZoneswords is obviously the big one, because there's essentially another four ontick functions for every player in the game
14:15:55bobdaduckbut that's indespensable
14:18:24bobdaduckSo, memory optimizing my code... any ideas?
14:18:53raptorhmmm
14:19:21raptoryou've already taken care of the .new() objects right?
14:19:40bobdaduckyeah
14:21:08bobdaduckto whatever extent I'm able without doing something stupid like when a player changes off a range class store the arrow somewhere outside the level and then giving it to someone else if they have ranger
14:21:25raptorhaha
14:21:33raptoryeah, that's drastic
14:21:48raptorreusing arrows int he general sense is good enough
14:22:07raptorwell, want to send my your levelgen? I can take a quick look to see if anything is blatant
14:22:11raptor*me
14:24:24bobdaducknah
14:25:07bobdaduckthere's still some secrets and cheat codes lingering in the code and CAN'T HAVE YOU KNOWING THEM FOR THE PARTY
14:25:16raptorhaha, ok
14:25:48raptorthere are other little memory tricks
14:26:23raptorlike in a for loop
14:26:51raptordon't put a 'local someVar = someTable[i]'
14:27:11Nothing_Much has joined
14:27:12raptorinstead put the 'local someVar = nil' outside the loop
14:27:21raptorand in the loop do someVar = someTable[i]
14:27:32raptorso you reuse the someVar and just have it point to different data
14:27:43bobdaduckthat'd be pretty minimal...
14:27:49raptorbut that might not matter much
14:27:56bobdaduckyeah
14:29:19raptorthis has some very good Lua-specific techniques: http://www.lua.org/gems/sample.pdf
14:29:38raptorbut really the memory problems might be more bitfighter-related
14:30:22raptorwhoa.. there's some ones in there i didn't know made that big of a difference
14:39:59raptorhave you thought about logging peoples levels/gold everyonce in a while, that way if it crashes, they can have it back through some cheats of yours?
14:48:36bobdaduckWhy would I do that
14:49:19bobdaduckSort of. Not in case of crashes. I do currently log people's stats every once in a while, so that people can get awards if I feel like doing that
14:49:55bobdaduckcheats to give stuff back... Ehhh.
14:50:06raptori know you ahve cheats..
14:50:10raptori know it!
14:50:54bobdaducklol
14:51:04bobdaduckWell I mean obviously I could do it
14:51:36raptorhey Watusimoto, have you ever considered using LuaJIT (http://luajit.org)
14:51:36bobdaduckIt would probably even be easy using your string arg parser
14:52:44bobdaduckHave you ever considered using Piet?
14:52:58raptorno
14:53:03bobdaduckWhy not?
14:53:37raptorimagine trying to debug that?
14:53:46bobdaducklol
14:56:12raptorhmmm... LuaJIT might not be perfectly portable..
14:56:59bobdaduckyeah
14:57:13bobdaduck'cause I do a lot of my lua scripting from my phone so
14:57:25bobdaduckportability is important
14:57:33bobdaduckI'M SO DELIBERATELY OBTUSE
15:02:02BFBuildBot Quit (Ping timeout: 245 seconds)
15:03:05bobdaduckbuildbot nooooooo
15:03:33raptoractually... LuaJIT might be portable enough for us... and it would be 10 times faster at running Lua..
15:03:53bobdaduckwhat would this mean for me?
15:04:07raptornothing right now
15:04:17raptorbut may allow for much more cpu intensive scripts
15:04:22raptorif we implemented it
15:04:32raptorwe could have 1000 s_bots!
15:04:38raptormaybe..
15:05:12bobdaduckrofl
15:05:41Watusimotohi
15:05:51Watusimotofell asleep there a bit
15:05:51raptorhi
15:05:59Nothing_Much Quit (Remote host closed the connection)
15:06:04Watusimotolua jit?
15:06:09Watusimotonever seriously considered it
15:06:23raptorit supports ppc and arm now
15:06:43raptorand the benchmarks for the 2.0 release are amazing on x86-based architectures...
15:06:50Nothing_Much has joined
15:06:52bobdaduckgame request: In HTF, allow modifying of how much time it takes to score a point (like in rabbit.)
15:07:29raptoradd that here please: http://code.google.com/p/bitfighter/issues/entry
15:11:22Watusimotoit looks fast...
15:11:41Watusimotothe only reason not to do it would be incerased complexity
15:11:52Watusimotoand perhaps more difficult debugging?
15:11:57raptoryeah i agree...
15:11:57Watusimoto(of scripts)
15:12:07raptoroh and porting lua-vec to it..
15:12:21raptordebugging?
15:12:24Watusimotomaybe we wouldn't need lua vec?
15:12:32raptorwe can't even seriously debug Lua now..
15:12:39Watusimotowe don't do much debugging of scripts now, but ...
15:12:50Watusimotoluavec is an issue
15:13:09WatusimotoI'm going to bed
15:13:11Watusimotoblech
15:13:16raptornight
15:13:22Watusimotothis is my payback for a late night last night
15:13:39Watusimotostaying up doesn't give me time, it only shoves it around ane makes me grumpy
15:13:41raptorfalling asleep too easily..
15:13:45raptorha
15:13:57raptori keep telling myself that, too; but somehow I don't learn
15:13:57Watusimotowell... good night!@
15:14:03raptornight
15:14:57raptorwe wouldn't need lua-vec with luajit
15:16:13fordcars has joined
15:16:23fordcarsbob, an alien-like gun
15:16:47fordcarsbobdaduck !!!!!!
15:16:54fordcarsI gotta weapon
15:17:01fordcarsif you have time
15:17:38bobdaduckwhat
15:17:39bobdaduckoh
15:17:40bobdaduckooh
15:17:54bobdaduckokay do you have a picture for me fordcars? something I can model it off of?
15:18:06fordcars:P
15:18:37fordcarswell maybe it wouyld shoot a ball of bouncers or something, not too much though
15:18:46Watusimoto Quit (Ping timeout: 248 seconds)
15:18:57raptorheading out..
15:18:58raptorlater!
15:19:14fordcarslater
15:19:15bobdaduckI can't shoot bouncers
15:19:18fordcars@
15:19:20bobdaduckeverything needs to be done with goalzones
15:19:21fordcars:(
15:19:24raptor Quit ()
15:19:28fordcarsok euhhhhh
15:20:24fordcarsmaybe it could shoot ships (goalzone) just to mess with peoples heads lol
15:21:08bobdaducklol that's tough but I bet I can do it
15:21:17fordcarskaen, http://pastie.org/8020832
15:21:19fordcarslol
15:21:42fordcarskaen that code is supposed to change the module, but doesn't. Any thoughts?
15:22:04fordcarsbob, I am reeeealy close to finishing that bot, it'll be ready for tonight :)
15:22:52bobdaduckOh we won't need it tonight
15:22:58fordcars:PPPPPPP
15:23:03bobdaduckWe'll have plenty of people
15:23:10fordcarsyeah you bet!
15:23:12bobdaduckits for times when there's *not* plenty of people, y'know?
15:23:35fordcarsI hope your cpu won't fry to fast
15:23:53fordcars:P
15:24:35bobdaduckcan you get me a picture or something of an alien gun thing you want?
15:25:35fordcarsmeh I don't mind
15:25:51fordcarswell don't make it an alien gun
15:26:04fordcarsmake it the object on your right :)
15:26:18fordcarsseriously, whatever it is
15:29:58kaenfordcars, that doesn't throw any errors?
15:30:01kaenalso good day all
15:30:12fordcarshi! no, absolutely nothing
15:31:03kaenthat looks right to me
15:31:23kaenmaybe loadouts don't actually work in 018a.
15:31:36fordcarsand the globalMsg works
15:31:44fordcarsman I hope they do
15:35:07koda has joined
15:35:44kaenumm. have you tried using setCurrLoadout ?
15:36:20Tttt7858 has joined
15:36:34Tttt7858hi
15:36:35kaenI don't know what the difference between that and setReqLoadout is...
15:36:36kaenhi
15:36:57Tttt7858 Quit (Client Quit)
15:37:02kaenbye...
15:44:17fordcarshmm still deosn't work...
16:09:58fordcarslater guys
16:14:22fordcars Quit (Ping timeout: 250 seconds)
16:18:42Ttttt7858 has joined
16:20:17Ttttt7858hi
16:21:32bobdaducksup
16:21:36bobdaduckyou coming to the party tonight?
16:22:18Ttttt7858yes
16:22:26Ttttt785830 minutes right
16:25:14Ttttt7858ello?
16:26:38bobdaduckno
16:26:41bobdaduckhour and a half
16:27:05bobdaduckwell its 4:30 where I am and the party is at 6 where I am. ...So translate that for yourself xD
16:27:25bobdaduckThere's a handy countdown timer at the top of this thread: http://www.bitfighter.org/forums/viewtopic.php?f=20&p=20058&sid=c1b20021e26f061cc8a3ea991a7161d9#p20058
16:31:23Ttttt7858it's 5:31 where i am
16:36:53Ttttt7858 Quit (Quit: Page closed)
16:41:00kaenwell bobdaduck I'd love to host DnD for you... but my vps has magically disappeared off the internet for the third time this week.
16:41:08bobdaducklol
16:41:21kaenthere is some lol
16:41:22bobdaduckThat's okay we should be fine
16:41:27kaenbut mostly RRRRRRRRRAAAAAAAAAAAAAAAAAAAGGGGGGGGGGGGEEEEEEEEEEEEEEEEEEEEEEEEEE
16:41:39bobdaduckxD
16:46:19BFBuildBot has joined
16:46:24kaenfinally...
16:47:21kaenit's back bobdaduck. pm me.
16:47:29bobdaduckNah its fine
16:47:44bobdaduckraptor had a good point about being able to fix things and react to crashes better
17:02:22bobdaduck Quit (Remote host closed the connection)
17:17:00raptor has joined
17:17:00ChanServ sets mode +o raptor
17:17:21raptor has left
17:21:36bobdaduck has joined
17:51:46tttt7858 has joined
17:55:20raptor has joined
17:55:20ChanServ sets mode +o raptor
17:55:25raptorhowdy
17:56:25kaen Quit (Remote host closed the connection)
17:59:31kaen has joined
18:02:59tttt7858Boba
18:03:10raptorgive him time to fix it..
18:04:46raptorbobdaduck: there may be 2 IP addresses, it would be easiest to turn off the wireless to make sure you get the correct one
18:06:31bobdaduck Quit (Ping timeout: 264 seconds)
18:11:15bobdaduck has joined
18:12:01bobdaduck Quit (Read error: Connection reset by peer)
18:33:37bobdaduck has joined
18:34:46koda Quit (Quit: koda)
18:41:29fordcars has joined
18:43:11tttt7858 Quit (Quit: Page closed)
18:51:44bobdaduck Quit (Remote host closed the connection)
19:45:05Nothing_Much Quit (Read error: Connection reset by peer)
20:12:10BFLogBot Commit: 0b6f80d288c4 | Author: buckyballreaction | Message: Make it so bots appear almost instantly after level starts when bot balancing is on
20:13:57raptorwe were down to 9 bugs.. then i found one :(
21:16:54fordcarsnice!
21:17:03fordcarscommit!
21:21:35fordcars Quit (Ping timeout: 250 seconds)
22:20:00fordcars has joined
22:32:23kaenlooking at the usage graphs for my server, bob's abomination spiked to 600MB and then got killed by the container
22:33:01kaenand the bandwidth spiked at about 250kbps
22:35:05kaenand peaked at 80% usage of a 3.4Ghz
22:35:07kaencore
22:37:02kaenperhaps interestingly, the memory peaks repeated with a noticeable rhythm, with a period of about 15 minutes
22:48:47Nothing_Much has joined
22:51:31fordcarsbtw the level change password could of been more original than "bob" ;)
23:21:24raptorhi
23:21:52raptorkaen: wow
23:22:01kaenhello
23:22:18kaenthere was... only one level on the server.
23:22:19raptorwhat would you think about LuaJIT ?
23:22:26kaenlemme check it out
23:22:33raptorluajit.org
23:22:41raptortake a look at the benchmarks compared to normal Lua
23:22:47kaenI honestly expected the lua interpreter to be JIT
23:23:22kaenwow!
23:24:28kaen"The FFI library allows calling external C functions and using C data structures from pure Lua code."
23:25:04kaenit says you can avoid writing the lua bindings... but that's a bit off topic here.
23:25:27raptorinteresting..
23:26:18kaen"LuaJIT is API-compatible with Lua 5.1. If you've already embedded Lua into your application, you probably don't need to do anything to switch to LuaJIT, except link with a different library:"
23:26:20kaenI'm sold.
23:26:58raptori wonder about debugging - although we can't even do that with normal Lua..
23:29:57raptorfrom lua-vec homepage: https://code.google.com/p/lua-vec/wiki/Benchmarks
23:30:10raptorsays luajit way back when was already faster than lua-vec
23:30:20raptorwe wouldn't need to maintain our branch..
23:37:40raptoralthough, we want to move to Lua 5.2 right?
23:44:27kaenumm, what was the motivation for that again?
23:44:37raptori don't remember
23:44:53raptorbut I'm thinking I would prefer 5.1 with LuaJIT..
23:44:53kaenin my memory it was sort of a list-ditch effort at fixing the luaW leak
23:44:57raptoryeah..
23:45:19raptorhttps://code.google.com/p/bitfighter/issues/detail?id=134
23:45:21kaen maybe with that FFI stuff we could ditch luaW too
23:45:55raptorhmm... I haven't looked at LuaW upstream in a while..
23:46:13kaenso, reasons to update to 5.2:
23:46:20kaen1. it has a higher version number
23:46:41raptorsold!
23:46:48kaenthat's all I've got.
23:46:49raptor(to not use it)
23:46:53raptorhaha
23:46:55kaenheh
23:47:06raptoroh, it has bitwise operations and a goto statement, i think
23:47:18kaenah good
23:47:27kaenbecause the lua code we have isn't indecipherable enough...
23:47:33raptorhaha
23:47:35raptoryeah..
23:47:39kaenI'm against.
23:48:12kaenbut luajit sounds like a really good deal
23:48:28kaenand I'm kind of excited at the prospect of dropping luaw
23:48:55kaenit's good, but if we can use something built into the lua implementation, that sounds loads better.
23:49:06raptorhmm...
23:49:30raptorluaW is heavy
23:49:49kaenoops, scratch that stuff about ffi
23:49:55kaenit's strictly for C apparently.
23:50:19raptorso no inheritance
23:51:03kaenoh, wait....
23:51:24kaenat a minimum it supports classes: http://lua-users.org/lists/lua-l/2011-07/msg00496.html
23:51:35kaenthe tutorial only gives examples for C though.
23:52:36kaenoh, they did that with extern C decs
23:52:37kaengross
23:52:42raptoryuk
23:53:08kaenokay, well anyway the speed gain is great and it sounds painless to drop in
23:54:16raptori added a response on that issue
23:57:15raptorwhat do you think the 'interpreter' choice on the LuaJIT benchmarks page means?

Index Search ←Prev date Next date→

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