#bitfighter IRC Log

Index Search ←Prev date Next date→

IRC Log for 2011-06-01

Timestamps are in GMT/BST.

00:28:00raptor has joined
00:28:00ChanServ sets mode +o raptor
00:29:00raptordown came the rain and washed the spider out..
00:40:00raptor Quit (Remote host closed the connection)
01:30:00watusimoto Quit (Ping timeout: 240 seconds)
02:23:00watusimoto has joined
02:35:00watusimoto Quit (Ping timeout: 252 seconds)
03:48:00watusimoto has joined
04:17:00raptor has joined
04:17:00ChanServ sets mode +o raptor
04:25:00[1]watusimoto has joined
04:27:00watusimoto Quit (Ping timeout: 276 seconds)
04:27:00[1]watusimoto is now known as watusimoto
04:36:00[1]watusimoto has joined
04:37:00raptorwell, i can't seem to upgrade my windows 7 system to SP1 because I have linux on the same machine and the service pack fails with a partition warning
04:37:00raptorhow goofy is that
04:38:00sam686maybe your virtual machine are buggy?
04:38:00sam686if you are using it..
04:38:00raptorthis is actually a dool boot machine
04:38:00raptori boot into windows 7
04:38:00sam686ok..
04:38:00raptorno VMs involved
04:38:00raptoroh well
04:39:00watusimoto Quit (Ping timeout: 258 seconds)
04:39:00[1]watusimoto is now known as watusimoto
04:41:00raptornothing like good old Mozart to get me into the mood to code...
04:59:00[1]sam686 has joined
05:01:00sam686 Quit (Ping timeout: 258 seconds)
05:01:00[1]sam686 is now known as sam686
05:07:00raptorwatusimoto: i got linux to compile again
05:09:00raptorwow, no walls when hosting in-game..
05:09:00raptorUnknown object type "BarrierMaker" in level "ctf1.level"
05:09:00raptorhaha
05:11:00watusimotoyup
05:11:00watusimotoI'm getting that too
05:12:00raptorlooks like it's because BarrierMaker is the only object not named the same as the class..
05:12:00raptorcool
05:12:00watusimotoI'm checking in another big batch of fun
05:12:00raptorwell, i kind of want to check in my linux fixes...
05:13:00watusimotowon't fix anything, but does remove reliance on mGameObjects and gBotNavZones
05:13:00raptorcool
05:13:00watusimotonow those two lists are maintained by the database
05:13:00watusimotothere is a similar list in the editor (mEditorObjects?) that can be handled the same way
05:13:00watusimotothat will clarify ownership as we migrate to shared_ptr
05:14:00watusimotoshould I hold off checking in until you do your linux stuff
05:14:00watusimoto?
05:15:00raptorno... i ran into problems
05:15:00raptorusing shared_ptr instead of pointainer opened pandora's box
05:15:00raptoragain
05:16:00raptorit's these two mehtods: EditorObject::addToDock EditorObject::addToEditor
05:16:00watusimotodid you first go back to Vector?
05:16:00raptorbecause they act on themselves (the EditorObject) with 'this'
05:16:00watusimotook; what did you make into a shared_ptr?
05:16:00raptorproblem is that sometimes EditorObject is a pointer*, othertimes it's a shared_ptr
05:17:00raptoranything with pointainers
05:17:00watusimotomy current thought is that it should be a shared_ptr in the database, but outside should just be a pointer
05:17:00sam686try this.getPointer() oe this->getPointer() or similar?
05:17:00watusimotomost functions go to the database, grab some pointers, do some stuff, then move on
05:18:00watusimotothose pointers become stale when the function exits, and we don't try to use them again
05:18:00watusimotowe don't need smart pointers for that use case
05:18:00raptorsam686: that is not the problem: the problem is that sometimes that function is called on the object when it's a pointer, othertimes when it's a shared_ptr
05:19:00watusimotook mDockItems should be a shared_ptr
05:19:00raptoryep
05:19:00raptorVector<boost::shared_ptr<EditorObject> > mDockItems;
05:19:00watusimotomItems is going away; don't worry about that one
05:19:00raptorand Vector<boost::shared_ptr<EditorObject> > mItems;
05:19:00raptoroh ok
05:20:00watusimotothat can just be Vector<EditorObject *>
05:20:00raptorwhich one?
05:20:00raptoroh, mDockItems?
05:20:00watusimotoItems
05:21:00watusimotomItems
05:21:00raptorok
05:21:00watusimotothen that will be refactored out
05:21:00watusimotoso it's only a stopgap to get rid of pointainer
05:21:00watusimotoand mLevelGenItems shoudl eb a shared_ptr as well, but that one is probably easy
05:22:00watusimotoIn fact, you can get rid of mItems right now if you want
05:22:00raptorthere's 281 references in UIEditor..
05:22:00watusimotomany of them will be in the same function
05:23:00watusimotowell, no matter; I can do it in an hour
05:23:00raptorcan you push what you have?
05:23:00watusimotoyes
05:24:00watusimotopushed
05:25:00raptorok, here goes my rebase...
05:25:00watusimotomItems is going to be mroe complex
05:25:00watusimotothan I thought
05:26:00raptoroh yeah
05:26:00raptorthat's why i was hesitant..
05:26:00watusimotobecause of undo/redo
05:27:00raptorwow, rebased cleanly..
05:27:00BitfighterLogBot - Commit 5c98f1f44ac2 | Author: watusim...@bitfighter.org | Log: Remove some of the object lists; rely on database more
05:29:00raptoraddToDock still fails because of using shared_ptr and 'this'
05:34:00watusimotoyou sent me a link earlier today that explained how to deal with that, no?
05:35:00watusimotolet hdr = msgHdrs.queryElementAt(index, Ci.nsIMsgDBHdr);
05:35:00watusimoto hdr.subject = "[Hello, world] " + hdr.subject;
05:35:00watusimotooops bad paste
05:35:00raptoryeah, it uses shared_from_this()
05:35:00watusimotogEditorUserInterface.mDockItems.push_back(this);
05:35:00raptorthat's the problem line, yep
05:36:00raptori'd have to include the boost header enabled_shared_from_this.hpp
05:36:00watusimotoin this case, you could create a function in gEUI that takes a regular pointer, wraps it in a shared_ptr, then adds it to mDockItems
05:36:00watusimotoit doesn't need to be a shared ptr until it gets added to mDockItems
05:37:00watusimotoin fact, that would be better, because mDockItems should really be private
05:37:00watusimotoso...
05:37:00raptori'm not following very well..
05:37:00watusimotogEUI.addToDock(this);
05:37:00watusimotovoid addToDock(EditorObject *obj){
05:37:00raptorso alter the method sig
05:38:00watusimotomDockItems.push_back(shared_ptr(obj))
05:38:00watusimoto}
05:38:00watusimotoor somethiung
05:38:00watusimotothen make mDockItems private
05:40:00raptorso move the addToDock method elsewhere?
05:40:00raptorto UIEditor
05:40:00raptorthat would work, i think
05:41:00watusimotoah, not necessarily... you would leave that in place, but instead of accessing mDockItems directly, you'd use this new method to add it to mDockItems
05:42:00watusimotovoid EditorObject::addToDock(Game *game, const Point &point)
05:42:00watusimoto{
05:42:00watusimoto mGame = game;
05:42:00watusimoto mDockItem = true;
05:42:00watusimoto
05:42:00watusimoto unselectVerts();
05:42:00watusimoto gEditorUserInterface.addToDock(this);
05:42:00watusimoto}
05:42:00raptorah ok
05:42:00raptorthen you'd put that new method in UIEditor.cpp
05:43:00watusimotoyes
05:43:00watusimotothen no more "this" problem
05:44:00raptorthere is already this method: EditorUserInterface::addDockObject
05:46:00watusimotobut that calls addToDock()
05:46:00watusimotoon the object
05:46:00raptorha!
05:46:00raptorok
05:46:00raptori think i almost got it..
05:46:00watusimotothink of the new function as a putter for managing mDockItems
05:46:00watusimotoor rather managing access to what should be a private member
05:47:00watusimotothough
05:48:00raptorgood that part is solved
05:48:00watusimotoI don't like that it relies on a global variable (gEUI), especially when it's called from EUI itself...
05:48:00raptorok, a bit more clean-up needed, then i can check in the pointainer removal..
05:48:00watusimotook
05:58:00raptorso close...
05:58:00raptormLoadTarget
06:00:00raptorswitches between mItems which is EditorObject* and mLevelGenItems which is shared_ptr<EditorObject>
06:09:00raptorit compiles!
06:09:00raptorhave you gotten far with your changes?
06:10:00watusimotono; was working on soemthing else... did get rid of a few instances of mItems though
06:11:00watusimotodo you want me to press ahead with that?
06:11:00raptorhmmm, is it worth it to check in then?
06:11:00watusimotoI could...
06:11:00watusimotoor you could
06:11:00raptori kinda want to but there are still errors of course..
06:11:00watusimotoI see
06:12:00watusimotowhat do you mean by mLoadTarget "switches"?
06:12:00raptori fixed that
06:12:00raptorit was a pointer to a vector
06:12:00watusimotoah
06:12:00raptorbut one object was a vector of shared_ptr, the other was *
06:14:00raptoroh man, it crashes everywhere when accessing the grid database..
06:14:00watusimotoremoving mItems will actually be big
06:14:00raptorthat's weird
06:14:00watusimotowhat sort of crash?
06:14:00raptorProgram received signal SIGSEGV, Segmentation fault.
06:14:00raptor0x000000000045de0a in std::vector<Zap::DatabaseObject*, std::allocator<Zap::DatabaseObject*> >::size (this=0x8a0) at /usr/include/c++/4.5/bits/stl_vector.h:534
06:14:00raptor534 { return size_type(this->_M_impl._M_finish - this->_M_impl._M_start); }
06:14:00raptor(gdb) bt
06:14:00raptor#0 0x000000000045de0a in std::vector<Zap::DatabaseObject*, std::allocator<Zap::DatabaseObject*> >::size (this=0x8a0) at /usr/include/c++/4.5/bits/stl_vector.h:534
06:15:00raptor#1 0x000000000045d242 in TNL::Vector<Zap::DatabaseObject*>::size (this=0x8a0) at ../tnl/tnlVector.h:251
06:15:00raptor#2 0x00000000004fe304 in Zap::GridDatabase::getObjectCount (this=0x898) at gridDB.h:133
06:15:00raptor#3 0x00000000005efdd3 in Zap::BotNavMeshZone::BotNavMeshZone (this=0xe84df0, __in_chrg=<value optimized out>, __vtt_parm=<value optimized out>) at BotNavMeshZone.cpp:70
06:15:00raptor#4 0x00000000005f1ddc in Zap::BotNavMeshZone::buildBotMeshZones (game=0xe87210) at BotNavMeshZone.cpp:584
06:15:00raptor#5 0x00000000004f8cf4 in Zap::ServerGame::cycleLevel (this=0xe87210, nextLevel=0) at game.cpp:994
06:15:00raptorlooks completely unrelated to my editor changes
06:18:00watusimotoit may be
06:18:00raptorhappens when I host a game
06:18:00raptorin or out of the editor
06:19:00raptori had to end up making mItems a Vector<shared_ptr<EditorObject> > for now
06:19:00raptori would like to check in what I have before you get too deep with mItems removal
06:19:00raptorbut this crash occured..
06:28:00raptorok
06:28:00raptori'm going to check in
06:28:00raptorbecause I can't see how my changes are tied to the crash yet
06:28:00raptorand if you're removing mItems, then it would be good for these changes to get in sooner rather than later
06:30:00raptorok pushed
06:31:00raptori need to get to bed, good night
06:32:00BitfighterLogBot - Commit 11e94522bc33 | Author: buckyballreaction | Log: Compiles in Linux! But crashes still.. - remove Pointainer - fix lots of minor compiler warnings/linker errors - add a couple methods addToDock() and addToEditor() to play nicely with shared_ptr
06:33:00watusimotonight
06:34:00raptor Quit (Remote host closed the connection)
08:17:00kodax has joined
08:43:00BitfighterLogBot - Commit e463f6c38010 | Author: watusim...@bitfighter.org | Log: 1) Fix spurious warnings in editor 2) All editor drawing done from database rather than mItems 3) removed mItems from some functions
08:43:00BitfighterLogBot - Commit 285ffc214a27 | Author: watusim...@bitfighter.org | Log: Merge
08:43:00BitfighterLogBot - Commit a0cbbd980145 | Author: watusim...@bitfighter.org | Log: Don't like all the required boost:: prefixes
09:03:00watusimoto Quit (Ping timeout: 276 seconds)
09:04:00kodax Quit (Remote host closed the connection)
11:44:00kodax has joined
13:22:00kodax Quit (Remote host closed the connection)
14:08:00raptor has joined
14:08:00ChanServ sets mode +o raptor
14:18:00BitfighterLogBot - Commit d43aa6e10265 | Author: buckyballreaction | Log: Don't need boost:: prefix if I actually use the proper #include
14:42:00kodax has joined
14:51:00kodax Quit (Remote host closed the connection)
15:12:00watusimoto has joined
15:43:00kodax has joined
16:25:00karamazovapywatusimoto: what do you think of the star-rating mod posted on the forums?
16:27:00raptori like it
16:27:00raptorbut i haven't found a way to install plugins directly through the admin interface
16:27:00karamazovapyexactly
16:27:00karamazovapywatusimoto is the one who needs to do it
16:32:00kodax Quit (Quit: Sto andando via)
16:34:00raptor Quit (Remote host closed the connection)
16:45:00watusimotoI like it all except for that last part
16:50:00karamazovapy...that you need to install it?
16:56:00raptor has joined
16:56:00ChanServ sets mode +o raptor
16:57:00raptorthat watusimoto can't just let a lacky like us do it... :)
17:03:00watusimotoI wish I could!
17:03:00watusimotoreally really do!!!!!
17:05:00sam686maybe until bitfighter.org moves to different server?
17:06:00ShadowXLoner has joined
17:08:00karamazovapymaybe I can install it...I'm reading
17:10:00watusimotoexcept if you need to modify the any of the files outside the interface, you're stuck
17:11:00karamazovapyI'll do a quick read through and we'll see
17:14:00karamazovapygod, this is arduous
17:15:00karamazovapyFiles to edit
17:15:00karamazovapysearch.php,
17:15:00karamazovapyviewforum.php,
17:15:00karamazovapyviewtopic.php,
17:15:00karamazovapyadm/style/acp_forums.html,
17:15:00karamazovapyincludes/constants.php,
17:15:00karamazovapyincludes/acp/acp_forums.php,
17:15:00karamazovapyincludes/acp/acp_styles.php,
17:15:00karamazovapylanguage/en/acp/styles.php,
17:15:00karamazovapystyles/prosilver/imageset/imageset.cfg,
17:16:00karamazovapystyles/prosilver/template/search_results.html,
17:16:00karamazovapystyles/prosilver/template/viewforum_body.html,
17:16:00karamazovapystyles/prosilver/template/viewtopic_body.html
17:16:00karamazovapyIncluded files
17:16:00karamazovapyroot/language/en/acp/permissions_evaluation.php,
17:16:00karamazovapyroot/language/en/mods/evaluation.php,
17:16:00karamazovapyroot/mods/includes/acp/acp_forums.php,
17:16:00karamazovapyroot/mods/includes/acp/acp_styles.php,
17:16:00karamazovapyroot/mods/search.php,
17:16:00karamazovapyroot/mods/viewforum.php,
17:16:00raptorcrazy
17:16:00karamazovapyroot/mods/viewtopic.php,
17:16:00karamazovapyroot/install/install_evaluation_mod.php,
17:16:00karamazovapyroot/install/uninstall_evaluation_mod.php,
17:16:00karamazovapyroot/styles/prosilver/template/evaluation.html,
17:16:00karamazovapyroot/styles/prosilver/imageset/evaluation_dark.gif,
17:16:00karamazovapyroot/styles/prosilver/imageset/evaluation_half.gif,
17:16:00karamazovapyroot/styles/prosilver/imageset/evaluation_light.gif
17:16:00karamazovapyit could be worse
17:16:00karamazovapythey say it's supposed to take ~23 minutes
17:16:00watusimotoright, so we're screwed
17:16:00watusimotoor rather I am because I have to do it
17:17:00ShadowXLonerAnd this is to do what?
17:17:00watusimotoscrewed might be too strong a word
17:17:00sam686too many files to edit, i bet it only works in one or 2 versions to phpbb, will it work on a version of phpbb that bitfighter.org is running?
17:17:00karamazovapyit's the forum mod that allows star-rating posts
17:17:00ShadowXLonerOh, the like/dislike forum feature. I see.
17:17:00karamazovapyyeah
17:18:00karamazovapythis is why it hasn't happened yet - not because people dislike the idea
17:19:00ShadowXLonerBut rather, because the coding behind it is rather dense.
17:19:00sam686it could make updating phpbb harder with mods..
17:19:00karamazovapywell the adds aren't hard
17:19:00karamazovapythe xml file they give to walk through the install makes it really easy
17:20:00karamazovapyhey wat - if you send me copies of those files, I can do the mod and send them back to you
17:26:00watusimotook, but later; I'm heading out really soon
17:26:00raptorthe games doesn't crash for me anymore, and walls show up in-game again
17:27:00raptoreditor segfault!
17:27:00raptorcool
17:28:00karamazovapycoolcoolcool.
17:31:00raptorohhh... it's dying on trying to load walls, hehe
17:31:00raptoroh good, i don't think i introduced that bug..
17:48:00watusimoto Quit (Ping timeout: 240 seconds)
18:01:00ShadowXLoner Quit (Quit: ShadowXLoner)
21:00:00watusimoto has joined
21:46:00raptor Quit (Remote host closed the connection)
23:45:00raptor has joined
23:45:00ChanServ sets mode +o raptor

Index Search ←Prev date Next date→

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