#bitfighter IRC Log

Index Search ←Prev date Next date→

IRC Log for 2013-04-14

Timestamps are in GMT/BST.

00:00:00fordcarsexacltly why
00:00:04fordcars:)
00:00:34fordcarsyeah, but I thought arc plugin was already in there, guess not
00:00:39Watusimotosam686: I added that ini plugin reproduction bug to the running buglist
00:00:49Watusimotofordcars: it's there by default, unless you deleted it
00:01:00sam686my page 5 on 019 looks like this: http://sam6.25u.com/upload/screenshot_103.png
00:01:07Watusimotothis is the line
00:01:07WatusimotoPlugin1=Ctrl+;|draw_arcs.lua|Make curves!
00:01:16fordcarsI don't have, weird
00:01:23Watusimotosam686: same here
00:01:27fordcarssam: what the
00:01:35fordcarsheh
00:01:40Watusimotothat line gets reproduced in the INI every time you close the game
00:01:54sam686018a is missing page 5 in editor help, while un-released 019 have it..
00:02:28raptorthat's because the final editor page is *only* generated if there are plugins detected (which maybe should be changed)
00:02:42fordcarsheh, I never had it there since 018a I think
00:02:57raptorI tried to fix it to make sure the plugin was added in the INI - but maybe there's a bug adding it lots
00:03:14Watusimotolots and lots!
00:04:24fordcarshttp://bitfighter.org/wiki/index.php/Creating_plugins -- this is really ugly
00:09:43Watusimotoraptor: are you working on permission stuff?
00:09:47raptoryes
00:09:49raptorvery deep
00:09:51raptorugly stuff
00:09:58raptorcombining logic everywhere
00:10:08Watusimotoindeed
00:10:15WatusimotoI made one minor change you should know about
00:10:24raptormerge worked...
00:10:28raptoryes?
00:10:38WatusimotoI moved this
00:10:39Watusimoto getClientInfo()->setIsAdmin(true); // Set isAdmin on server
00:10:39Watusimoto getClientInfo()->setIsLevelChanger(true); // Set isLevelChanger on server
00:10:54Watusimotofrom clientgame to gameconnection
00:11:04Watusimotono big deal, but it might merge funny
00:11:07raptorok, that shouldn't affect me...
00:11:11Watusimotook
00:11:16raptoryeah merge worked ok
00:11:22raptornothing compiles... but it merged :)
00:11:22WatusimotoI'll check in soon and you can merge again
00:11:27Watusimoto:-)
00:12:04raptordinner!
00:12:37fordcarslater!
00:38:13raptorback to breakage!
00:42:18BFLogBot Commit: 1a2777a7ccee | Author: watusimoto | Message: Move functionlaity from ClientGame to GameConnection. Also removed dynamic_cast.
00:42:20BFLogBot Commit: 80af88bca260 | Author: watusimoto | Message: Disentangle logic of joining a local game and joining a remote game. This also gets rid of the final gServerGame in ClientGame, making the two classes independent, as they should be
00:42:21BFLogBot Commit: f2f0303f0638 | Author: watusimoto | Message: Fix typo
00:46:00BFLogBot Commit: 4446a8fad017 | Author: watusimoto | Message: Whitespace
00:46:01BFLogBot Commit: 52cff0065b8b | Author: watusimoto | Message: Minor cleanup
00:46:23WatusimotoMy work is done. Good night!
00:46:30raptornight!
00:46:34raptor(merge success)
00:46:50Watusimotoyay!!
00:50:46fordcarsnight!
00:51:02fordcarswow, I am actually coding an editor plugin
00:51:26fordcarsit was the only Lua API Bitfighter thing I didn't try yet
00:51:37raptoroh good! I forgot to mention that this help section exists, too: http://bitfighter.org/luadocs/index.html#programming_plugins
00:52:15fordcarsoh thanks!
00:53:18fordcars trying to figure out how getArgsMenu() works
00:54:05raptorit basically just builds up a menu
00:54:18fordcarsin a table?
00:54:54raptoryes
00:55:08fordcarsok, I stink at tables
00:57:31fordcarsok I think I figured it out
00:58:05raptoryou can see other menuitem types with the draw_arcs plugin
00:58:14raptorlook at the c++ code to see what the constructor takes
00:59:06Watusimoto Quit (Ping timeout: 245 seconds)
00:59:36fordcarsheh, I don't have it on my windows
01:00:00raptorhere: https://code.google.com/p/bitfighter/source/browse/resource/editor_plugins/draw_arcs.lua
01:00:21fordcarsoh, lua code
01:00:32fordcarsyeah I have that
01:29:01fordcarsraptor: in levelcode, are teleport delays in miliseconds?
01:29:25fordcarsand what is the default delay?
01:45:34raptorprobably in milliseconds
01:46:03raptordefault is like 2 seconds? not sure...
01:47:17fordcarsok, thanks
01:47:49raptorhonestly I don't even know if the delay works with teleporters in levelcode
01:49:00kaenit does
01:49:39kaenand it's in seconds
01:49:48raptorthanks kaen
01:54:40fordcarsseconds? Oh thanks!
01:54:59fordcarsarghhhhhhh no logs for plugins, this is gonna take a while
01:56:59kaen:/
01:57:04kaenit's fixed if you build from latest
01:57:29fordcarsha ok, but I don't have mercurial/python on this computer :/
01:58:16fordcarscan I use cntr-d for a plugin?
01:58:23raptoryou can use anything you want
01:58:42raptorbut you have to buld the string like so: 'Ctrl+d'
01:59:23fordcarswell this should work then
01:59:41fordcarsbut it doesn't. Do I need anything in main() just to run the plugin?
02:00:45raptormain() gets run when you select 'run' from the menu
02:00:50raptorso there you do your logic
02:01:11fordcarsoh, then why isn't thus working!
02:01:30fordcarswhoa, *this
02:02:07fordcarsoh I know
02:02:15fordcarsoutdated wiki ._.
02:02:40fordcars _
02:02:45fordcars:P
02:05:30fordcarsupdating wiki, once again
02:05:42raptorwait!
02:05:51raptoruse the luadocs where possible: http://bitfighter.org/luadocs/index.html
02:06:05raptorthe wiki Lua stuff will probably go permanently away
02:06:27raptormost stuff is in the luadocs now, except for a few things like even descriptions
02:08:52fordcarsok :P
02:10:08raptorthat was harrowing... combining RPC
02:11:51fordcarsoh man, it still doesn't work
02:29:32fordcarsyay, it works!
02:29:35raptorkaen: have you ever gotten a 'level change password denied' message?
02:29:57raptori mean - there is code to get that error, but it looks like if you enter the wrong password, you just get 'incorrect password'
02:29:57fordcarsyou can use anything you want -- no you can't
02:30:17raptorfor any permission level..
02:31:16raptorsam686: you around?
02:36:19sam686hi
02:36:23raptorhi
02:36:31sam686just got back from eating..
02:36:35raptoryum!
02:36:43raptorso.. I'm refactoring all the permissions
02:36:55raptorand I came across this method: ClientGame::gotLevelChangePermissionsReply
02:37:14raptorthe problem is - I don't see how 'levelPassFailureMsg' is ever triggered
02:37:47sam686entering wrong password when you don't have level change permission?
02:37:53raptordo you know if the failure messages are every triggered
02:37:58raptorwhen that happens
02:38:12raptoryou just get the 'invalid password' message
02:38:13sam686oh except, its because the levelchange and admin password menu is merged into one..
02:38:15raptorsee: ClientGame::gotWrongPassword()
02:38:27raptorohhhhh
02:38:29raptorok
02:38:36raptoryeah, they used to be separate, right?
02:38:44sam686yes
02:39:41sam686I guess it is now just a gotWrongPassword() if the password is wrong..
02:40:16raptorok, since it's all merged, i'll remove the failure messages
02:40:23raptorthanks for the history!
02:59:14Platskies has joined
03:05:07raptoroh my goodness our headers are out of control
03:18:44kaenyes
03:19:37raptorI.. I don't even know what to do...
03:19:50raptorbreak every enum into it's own header?
03:20:00kaenhave I told you how to eat an elephant yet?
03:20:06kaenone bite at a time.
03:20:11raptorhahahaha
03:21:19fordcars*one bit at a time
03:21:29fordcarsok sorry that was just stupid of me
03:22:44raptorfordcars: that was horrible... just... horrible
03:22:52fordcars:3
03:23:18raptoryou ahve to wait until past midnight to pull out the puns
03:23:32fordcarsoh ok
03:24:11kaenI think that's a good rule of thumb
03:24:18kaenpuns are usually funny to me by then.
03:25:45kaenraptor my suspicion is that there are a few prime candidates for splitting up into separate files
03:25:54raptoryeah...
03:26:06raptoronce upon a time, Point, Color, Rect were all the same class
03:26:13kaenD:
03:26:30raptorI may have told you that - but that split reduced compile time by like 20%
03:26:49raptoroh and all the implementations where in the .h
03:27:02raptorthat's probably where the real speed up came from..
03:27:04kaenI don't even have sufficient knowledge of emoticons to reproduce the face I made just now.
03:27:17raptorhaha
03:28:23raptorhttps://code.google.com/p/bitfighter/source/detail?r=c9fb94f56b38
03:29:19Platskies Quit (Remote host closed the connection)
03:29:20raptoroh, and the new class were committed right afterwards...
03:29:36raptoranyways hsitory - but what is good practice for keeping headers clean?
03:29:49raptoralways use Forward decs?
03:30:01raptorand keep things nicely split?
03:30:23kaenyes
03:30:44kaenthat's actually a really good summary
03:31:02kaencheck this out: http://pastie.org/7494217
03:31:16kaenit's the number of classes each header file defines
03:31:25kaenoh wait
03:31:34kaenhold on let me exclude forward decs
03:32:53kaenhttp://pastie.org/7494228
03:32:57raptoryou use use: gcc -w -H
03:33:02raptoragainst a file
03:34:52fordcarsoh, plugins do show up in logs
03:41:19kaenraptor, that's a cool command!
03:41:26kaenI did moveObject for fun
03:41:28raptorit spams your screen!
03:49:53fordcarswhat's the number for a neutral turret in level code again?
03:50:15raptorteam number?
03:52:18sam686number -1 is neutral for most of C++. but LUA mostly have it as 0=neutral
03:52:58fordcarsok thanks
03:53:00sam686-1 = neutral for level code too
04:07:44raptorit compiled!
04:08:23raptorquestion
04:08:36raptorif you guys host a game, then do 'quit game'
04:08:50raptordoes it pause?
04:08:59raptorfor like 1 or 2 seconds
04:09:08raptorused to immediately exit to menu
04:10:14raptorit spike the CPU..
04:17:41fordcarsnope
04:17:55raptorsorry, I mean with the latest code
04:18:11fordcarsoh sorry
04:18:45raptoralso
04:19:40raptorif you (sam686 or kaen) start a dedicated server, then try connecting to it from a client - do you get forced to enter a password and/or get invalid packet error?
04:25:37raptorsomething has gone horribly horribly wrong...
04:25:45raptor does a full recompile
04:28:21sam686works fine for me..
04:29:21raptorsam686: can you connect to mine? 69...
04:30:18raptorI got invalid packet when connecting to yours sam686
04:30:54raptorand a segfault on the server...
04:30:57sam686oh it will error cause I kindof changed the un-pushed protocol (simply changing MAX_POLY_POINTS to 64 breaks existing net..
04:31:04raptorwatusimoto, what did you DO??
04:31:38sam686compiling as MAX_POLY_POINTS=32 for now..
04:32:34raptorcrashes and weird behavior everywhere
04:32:46raptorthis has got to be due to the gServerGame refactor
04:33:03sam686ok running my server, can you try connecting?
04:33:07raptorsure
04:34:24raptordid i crash it?
04:34:25sam686well my server crash..
04:34:29raptorhooray!
04:34:34raptorthen i'm not going crazy
04:36:36raptorman... and I'm even close to checking in the new permissions system, but I can't test due to all the weird anomalies
04:36:41sam686the main problem is, a dedicated server on a non-dedicated build, tried to run FontManager::getStringLength with a NULL font..
04:36:54raptorha
04:37:21sam686its from a TextItem, not SlipZone...
04:37:33raptorah
04:38:03raptorok, well, I'm going to revert to before watusimoto did weird gServerGame things - in fact, I remember this happening last time he tried to rip it ou
04:38:06raptort*out
04:43:14sam686I guess I wasn't on the latest comment, but at my latest sam8641 commit..
04:43:52raptor!bot
04:43:52BFLogBotI'm a real boy!
05:00:37fordcarshehe I finished my plugin
05:01:05fordcarsplugins are actually quite neat and very underestimated
05:16:18raptorok, packet problems were my fault - i had multiple versions of servers running
05:20:02raptoryay permission refactor complete!
05:20:14raptornow to make the adjustments for kicking admins!
06:08:08raptorok good night!
06:08:21BFLogBot Commit: 0d50626072bf | Author: buckyballreaction | Message: Refactor our client permission system into tiered roles. Also add the 'Owner' role. Owners will have complete control of a server, even over admins
06:08:22BFLogBot Commit: 20259e03be55 | Author: buckyballreaction | Message: Allow entering password in game menu unless you have the Owner role
06:08:24BFLogBot Commit: 9317b49991ce | Author: buckyballreaction | Message: Owner can kick/ban/mute admins
06:08:36raptor Quit ()
06:14:01bobdaduck has joined
06:24:27fordcarslater guys
06:25:26bobdaduckNice plugin, btw'
06:25:30bobdaduckand seeya
06:28:45fordcars Quit (Ping timeout: 245 seconds)
06:57:51bobdaduck Quit (Remote host closed the connection)
07:29:44bobdaduck has joined
07:40:14bobdaduck Quit (Remote host closed the connection)
07:48:32BFLogBot Commit: e02e5fa58989 | Author: sam8641 | Message: Reduce bandwidth usage by not using c2sResendItemStatus, instead client's object soon goes back to previous position if no updates received.
07:48:34BFLogBot Commit: e6ce831d683b | Author: sam8641 | Message: Fix TextItem crash running bitfighter -dedicated, assuming Text always fit inside both vertex as it is on editor and most levels.
07:48:35BFLogBot Commit: 4abc2aab51b3 | Author: sam8641 | Message: Increased number of vertex of PolyWall and zones to 64. Note, bigger may cause packet too big to send.
07:48:45sam686 has left
09:52:34Watusimoto has joined
10:32:44LordDVG has joined
11:53:32Watusimoto Quit (Ping timeout: 258 seconds)
12:08:39Platskies has joined
13:59:04raptor has joined
13:59:04ChanServ sets mode +o raptor
14:01:21raptorbad fordcars bad!
14:02:40kaenwell, at least it doesn't have circles...
14:02:50raptorgood morning!
14:02:54kaengood morning
14:03:46raptorthis means, of course, we need to break editor plugins before next release
14:04:19raptor:)
14:06:09kaen:)
14:57:03Watusimoto has joined
14:58:19Platskies Quit (Remote host closed the connection)
15:03:07BFLogBot Commit: 2b516bf47b47 | Author: buckyballreaction | Message: Too much casting
15:05:29raptor Quit ()
15:18:47fordcars has joined
15:24:29BFLogBot Commit: db99fc2447d1 | Author: watusimoto | Message: We already have a ServerGame here locally... use that instead of gServerGame
15:24:30BFLogBot Commit: bcad28a4fc4e | Author: watusimoto | Message: Remove traces of gServerGame from ServerGame class, by removing debugging code
15:24:32BFLogBot Commit: 5b221bf7df35 | Author: watusimoto | Message: Merge
15:24:33BFLogBot Commit: 909517282b35 | Author: watusimoto | Message: Remove another reference to gServerGame
15:24:35BFLogBot Commit: 9d1857f731f0 | Author: watusimoto | Message: Fix almost certain bug
15:24:37BFLogBot Commit: 49c8ca2448d9 | Author: watusimoto | Message: Merge
15:25:11Watusimoto Quit (Remote host closed the connection)
15:42:41bobdaduck has joined
16:39:05Darrel has joined
16:42:01bobdaduckOkay I know I'm pretty crazy but
16:42:09bobdaduckAn onTurretEnteredZone event would be pretty nice.
16:43:29bobdaduckOr perhaps a generalized onObjectEnteredZone?
16:45:43fordcarsbobzy...
16:46:15fordcarsyeah that would be neat
16:47:10fordcarswell can you just get the location of the object onTick and see if it is in the coords of the zone
16:50:16bobdaduckThat's so clunky though
16:51:33kaenwell, in the normal game mechanics, a turret doesn't enter a zone
16:52:05kaenso checking for it in on tick semantically represents what you're doing accurately
16:52:43bobdaduckOkay but this level has upwards of a hundred turrets
16:53:20bobdaduckChecking for each one manually is clunky.
16:56:39LordDVG Quit (Remote host closed the connection)
16:58:33kaenadd them to a table and iterate through them :X
16:58:47kaenor pick an ID range and iterate through that
16:59:04bobdaduckIDing a hundred turrets is clunky also.
16:59:38bobdaduckGood idea though, if the level wasn't so massive
17:03:43sam686 has joined
17:03:45ChanServ sets mode +v sam686
17:05:21bobdaduckGoodmorning, gentlesam.
18:16:28bobdaduck Quit (Remote host closed the connection)
18:22:43raptor has joined
18:22:44ChanServ sets mode +o raptor
18:27:43fordcarshi
18:27:52raptorhi
18:27:58sam686hi
18:30:47raptorfixing bugs with the permissions systems...
18:55:35sam686my levelgen blizzard is broken, and it is because that levelgen does setLoc(number, number) but doesn't work that way anymore on 018a..
18:59:41raptoryeah you need to use point.new(number, number)
19:01:39sam686http://sam6.25u.com/bitfighter/levels2/sam686_blizzard.level http://sam6.25u.com/bitfighter/levels2/sam686_blizzard.levelgen
19:01:45sam686I also have textitem:setGeom(point.new(-175, 190), point.new(-50, 190))
19:01:59sam686seems a bit unclean then the original textitem:setGeom(-175, 190, -50, 190)
19:02:29raptoryes - but it was a consious choice by watusimoto to be consistent
19:40:00raptorquestion
19:40:20raptorshould only the 'owner' permission level be allowed to change the admin password? or should other admins still be able to?
19:40:48kaendefinitely only the owner
20:00:25fordcarsoh
20:00:41fordcarsbitfighter.org down fyi
20:14:08koda has joined
20:31:56bobdaduck_m has joined
20:32:17bobdaduck_m is still making bambi eyes at raptor
20:36:00fordcarsnow I'm done my freaking plugin
20:44:31bobdaduck_mBambi eyes don't seem to be very effective...
20:44:34fordcars Quit (Ping timeout: 245 seconds)
20:51:19raptorhi
20:51:26raptorsiesta over!
20:53:03bobdaduck_mNot to like, be constantly pestering you or anything. Its just I finished the actual level code and am kind of stuck until the levelgen is fixed xD
20:53:18Darrel Quit (Quit: Closed IRC client)
20:53:50raptorhi
20:54:07raptori'm almost done with my owner changes, then can give you more attention :)
20:54:39bobdaduck_mCan you have it done in like, two hours when I get home? xD
20:54:57raptoruhh... maybe, probably, no?
20:55:47bobdaduck_m pouts
20:57:30bobdaduck_m Quit ()
21:03:33LordDVG has joined
21:05:12bobdaduck_m has joined
21:07:12bobdaduck_m Quit (Client Quit)
21:21:27BFLogBot Commit: 52333b295cf3 | Author: buckyballreaction | Message: Fix setting new permissions role in some cases. Also reorder most of the client-side role-setting logic to be a little more friendly
21:21:28BFLogBot Commit: 218d1f39f433 | Author: buckyballreaction | Message: If owner changes the admin password, all admins lose permissions
21:21:30BFLogBot Commit: 6834f62293b3 | Author: buckyballreaction | Message: Only owner can change admin password
21:21:31BFLogBot Commit: e3c71b2f174c | Author: buckyballreaction | Message: Fix kicking of owners
21:21:32raptorthere!
21:21:53raptorOK, please hammer on the permission system if you guys ever get a chance... I think it's pretty much done
21:27:03the-quartz has joined
21:27:18the-quartzhey raptor
21:27:39raptorhi
21:28:36the-quartzguess what.
21:29:26raptorthe sky is really clear, but due to the increased scattering of different wavelengths of light it appears blue?
21:29:34the-quartz:O
21:31:21the-quartzCan't argue with that.
21:31:28raptorother than that I don't know...
21:32:17the-quartzNEW.
21:32:18the-quartzMAP.
21:32:19the-quartzLULZ
21:34:59raptoran unveiling?
21:35:09the-quartzHell yeah.
21:35:12the-quartzCome see
21:35:14the-quartza soccer map
21:35:16raptorok
21:35:17the-quartzthat is hopefully worth a damn
21:35:35raptorin lobby
21:43:32the-quartz Quit (Quit: Page closed)
22:11:11Watusimoto has joined
22:19:23raptorfound a bug... fixing
22:20:19BFLogBot Commit: 2cb39c7c0b3f | Author: buckyballreaction | Message: Make sure owner privileges are given (if we have them) upon connecting to a server
22:21:18raptorwould anyone think I should add a /setownerpassword command?
22:21:24raptoror just leave it in the INI
22:21:43raptorhosting from the menu gives you ownership automatically..
22:21:57raptormaybe not needed?
22:25:28bobdaduck has joined
22:26:18bobdaduckOkay I'm back
22:26:25bobdaduck /bambi
22:30:29WatusimotoI think you should add it??
22:31:24Watusimoto Quit (Read error: Connection reset by peer)
22:31:50Watusimoto has joined
22:32:00Watusimotobut then I've been working on taxes and I am totally fried
22:36:43raptorbobdaduck: i'm looking at your request
22:36:45sam686LUAI_GCPAUSE = 105 and LUAI_GCMUL = 0 seem to really stop the LUA from freezing every few seconds when doing /addbot 100 on a big level..
22:36:49bobdaduckwhoo!
22:37:00raptorbut you should know that it's complex...
22:37:49raptorWatusimoto: taxes!
22:37:59bobdaduckI know its complex xD
22:38:02raptorand are you referring to my question about /setownerpassword ?
22:38:07Watusimotoyes
22:38:07bobdaduckThat's why I asked for your help
22:55:57sam686oh and I found engineer drains energy for nothing bug, easily seen in level: http://sam6.25u.com/upload/text1304/130414_17-04-58.txt
23:02:11raptorwrote it down...
23:10:16Ray_ has joined
23:10:32Ray_hey
23:10:47raptorhi
23:11:09Ray_since when does bitfighter exist?
23:11:59raptora few years, maybe 4 or 5?
23:12:06raptorWatusimoto would know more precisely
23:12:57Ray_but wasn't it made from the game ZAP, of instantaction?
23:13:20raptorI think it was forked from the open source Zap! code base, which was before instant action
23:19:09Ray_ Quit (Ping timeout: 245 seconds)
23:29:17raptorbye Ray_! Hope you spread the word about how awesome we are!
23:42:39koda Quit (Quit: koda)

Index Search ←Prev date Next date→

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