#bitfighter IRC Log

Index Search ←Prev date Next date→

IRC Log for 2011-10-18

Timestamps are in GMT/BST.

00:07:00raptor has joined
00:07:00ChanServ sets mode +o raptor
00:24:00Zoomber has joined
00:24:00ChanServ sets mode +v Zoomber
00:24:00Zoomberhi raptor
00:28:00raptorhullo
00:28:00Zoomberraptor: I thought of a way around the stats.php script
00:29:00Zoomberlet me show you what i want to achieve
00:29:00Zoomberhttp://armagetronad.net/servers.php
00:29:00Zoomberi could try creating a script that parses whatever the table is when it "fetches" it from this website into my own page
00:30:00raptoryes
00:30:00Zoomberis that plausible?
00:30:00raptordo you have database access?
00:30:00Zoomberto that server?
00:30:00Zoomberno, but
00:31:00Zoomberif you view page source, you can see the table it gives you
00:31:00raptorah... you want to 'screen scrape'
00:31:00raptoryes, screen scraping is very plausible
00:31:00Zoomberis it possible for me to make a script, that basically fetches that table i recieve when i load the script
00:31:00Zoomberand parse it in
00:31:00raptoroh yes
00:31:00raptorin fact a lot of the internet is run in that way
00:31:00sam686that online server list is somewhat similar to our bitfighter server list. http://bitfighter.org/bitfighterStatus.json (it is just in a json format)
00:34:00raptorzoomber i recommend using wget and pipe it to an xml parser
00:34:00Zoombera script that does the 'wget' command and pipes it to an xml parser?
00:35:00Zoomberok
00:35:00raptorhttp://xmlstar.sourceforge.net/
00:35:00raptorthat is one of the best
00:35:00raptorgood read: http://www.ibm.com/developerworks/library/x-starlet/index.html
00:37:00raptorxml starlet is probably a standard package on most distributions
00:37:00Zoomberok
00:38:00Zoomberdoing a yum install
00:39:00raptoryou'll have to do a lot of trial and error - there is a learning curve
00:39:00raptorbut there is decent documentation on the homepage
00:39:00Zoomberaf
00:39:00Zoomberthis will succkkkkkkkkkkkkkkkkkk
00:39:00raptorscreen scraping always does.. :)
00:39:00Zoomberok first things first
00:40:00Zoomberdoes this app both make and take?
00:40:00raptorbut it's what the world does because it doesn't have direct database access
00:40:00raptorwhat does that mean?
00:40:00Zoomberjust, does it do both taking information from the <html> table AND create the temp xml file?
00:40:00raptorit can transform, if that's what you mean
00:40:00Zoomberor just write / overwrite to a file
00:40:00raptoryes, it can
00:41:00Zoomberlooks like i had the package already
00:41:00Zoomberso i can just create an xml file before hand
00:41:00Zoomberand do, "ed" once i get my info?
00:42:00raptoryou mean insert, after the fact?
00:43:00Zoombered to edit my xml file
00:43:00Zoomberthats blank
00:43:00Zoomberor maybe rm the old file, create a new file, and then edit it in
00:43:00raptoryou can transform on-the-fly
00:43:00Zoombertr?
00:44:00raptorit'll probably be a combination of 'sel' and 'tr'
00:44:00raptordo you know how to use pipes?
00:44:00raptorliek this: ls | less
00:44:00Zoomberummm
00:44:00Zoomberyou connect them together
00:44:00Zoomberand water flows through?
00:44:00raptorpipe the output of one command into the input of another?
00:45:00Zoomber: )
00:46:00raptorhttp://tldp.org/LDP/abs/html/io-redirection.html
00:46:00raptoryou should keep this reference: http://tldp.org/LDP/abs/html/index.html
00:46:00raptoreverything you need to know about using commandline in linux
00:46:00raptorsorry, gotta go...
00:47:00raptor Quit (Remote host closed the connection)
00:49:00Zoombercan i use file_get_contents?
00:49:00Zoomberaww
00:52:00koda Quit (Quit: koda)
01:17:00Zoomber_ has joined
01:17:00Zoomber Quit (Read error: Connection reset by peer)
01:17:00ChanServ sets mode +v Zoomber_
01:17:00Zoomber_ is now known as Zoomber
02:23:00Zoomber Quit (Read error: Connection reset by peer)
02:23:00Zoomber_ has joined
02:23:00ChanServ sets mode +v Zoomber_
03:36:00Zoomber_ Quit (Quit: Zoomber_)
04:56:00Flynnn Quit (Quit: This computer has gone to sleep)
05:04:00Flynnn has joined
05:21:00Flynnn Quit (Quit: Leaving)
06:25:00koda has joined
06:39:00koda Quit (Quit: koda)
06:51:00Flynnn has joined
07:31:00kodax has joined
07:48:00sam686 Quit (Ping timeout: 258 seconds)
07:48:00sam686 has joined
07:48:00ChanServ sets mode +v sam686
09:33:00Flynnn Quit (Quit: This computer has gone to sleep)
11:43:00LordDVG has joined
13:30:00raptor has joined
13:30:00ChanServ sets mode +o raptor
14:03:00watusimoto has joined
14:03:00ChanServ sets mode +o watusimoto
14:03:00watusimotohi
14:03:00raptorbuenos
14:04:00watusimotobom dia
14:04:00watusimotoguten tag
14:05:00watusimotobin jour
14:05:00watusimotobon jour, that is
14:05:00raptorhowdy?
14:05:00raptorthat's a different language, right?
14:05:00watusimotoohio goziymas
14:05:00watusimotoyes
14:05:00watusimotoPortugese, German, French, Japanese
14:05:00raptortexan
14:05:00watusimotosalam alikum
14:06:00watusimotoArabic
14:06:00watusimotoor Marhaba if you prefer a less religious greeting
14:06:00raptormy wife said the latter
14:08:00raptori'm afraid to say i've started research into several google code cases - but each one i start i promptly end up unconscious
14:10:00raptorbut i did find the issue with your editor fullscreen bug when opening an attribute menu
14:10:00watusimotoI saw your email
14:10:00watusimotoI'll look into it tonight, if I can fix my double-delete issue
14:11:00raptordouble delete?
14:11:00watusimotosomehow menuItems are being deleted twice, I think
14:11:00watusimotoonce via an unknown mechansim, then again via boost smart ptrs
14:12:00watusimotolearning git here at work
14:12:00raptorcool
14:12:00watusimotoyes; but now I have my fingers in too many systems
14:12:00watusimotosvn; git; Hg
14:12:00raptorhaha
14:13:00raptorwell, we could convert our repo to git - i think google code supports git now; although, i don't think git is windows friendly still...
14:15:00watusimotowell, let's talk about that after the release
14:16:00watusimotoI'm trying to focus
14:16:00watusimoto:-)
14:16:00raptorrelease!!
14:16:00raptorrelease release release
14:22:00raptorif you tell me how to duplicate your menuitem problem, i can try and diagnose
14:23:00watusimoto Quit (Ping timeout: 258 seconds)
14:24:00raptor Quit (Remote host closed the connection)
15:31:00watusimoto has joined
15:31:00ChanServ sets mode +o watusimoto
15:53:00raptor has joined
15:53:00ChanServ sets mode +o raptor
15:54:00raptorhello again
15:56:00karamazovapyLittle_Apple has posted a video of himself on youtube
15:56:00raptorhAHA, i saw
15:56:00karamazovapyand my understanding of our community increases 75%
15:56:00raptoreverything m akes so much sense now
15:57:00karamazovapyyeah
15:57:00karamazovapyit's one thing to know they're kids and another to see them on youtube
15:58:00raptorreal life changes everything...
16:06:00watusimoto Quit (Ping timeout: 256 seconds)
16:06:00raptorwhat was going on?
16:08:00LordDVG Quit (Remote host closed the connection)
16:46:00kodax Quit (Remote host closed the connection)
17:17:00Kumul has joined
18:05:00Flynnn has joined
18:06:00Kumulare there instructions somewhere on building with freebsd?
18:13:00sam686i don't have instruction on freebsd or know nothing much about freebsd right now..
18:14:00sam686maybe raptor might know a little more about freebsd or maybe not...
18:18:00Kumuli followed the instructions and got to compile a bit, errors on udp.cpp tho, no ipx or something
18:19:00sam686you can try adding a line #define NO_IPX_SUPPORT if that is a problem..
18:44:00sam686 Quit (Ping timeout: 258 seconds)
18:45:00sam686 has joined
18:45:00ChanServ sets mode +v sam686
18:48:00watusimoto has joined
18:48:00watusimotohave internet at home!!
18:48:00Kumulerror on SOCKADDR now, dont worry, i guess ill have to leave this for later
19:46:00koda has joined
19:48:00karamazovapyhurray!
19:48:00Flynnn Quit (Quit: This computer has gone to sleep)
19:52:00watusimotohurray internet or hurray sockaddr error?
20:00:00raptorhello!
20:00:00raptori'm back
20:01:00raptoroooo, a newcomer - hello karamazovapy
20:01:00raptoroops
20:01:00raptorhello Kumul
20:11:00raptorkaramazovapy or watusimoto, what do you think about sky_lark's suggestions about rabbit points? (fewer per kill; more for holding the flag)
20:12:00sam686Currently, levels in rabbit have options to adjust number of points per minute gained from holding rabbit flag. Try setting it to 99 points per minute.
20:12:00raptoroh really?
20:12:00sam686yes
20:12:00raptorok, cool
20:12:00raptori guess i've never made a rabbit level...
20:13:00raptorin that case - it's probably a case of poor level choices...
20:14:00watusimotoI think we shoudl normalize all rabbit scoring personally... I see no benefit to having different rates of score for different rabbit games
20:14:00watusimotoand yes, hi Kamul
20:14:00watusimotoKumul
20:14:00watusimotosorry!
20:14:00raptorsooo.... 2 points a kill, and a point every 5 seconds?
20:14:00raptor(just throwing out random numbers...)
20:15:00sam686i might think about zero points per kill (especially team rabbit)
20:16:00karamazovapyI think score rate is useful
20:16:00karamazovapyin my circular maze rabbit, I set the score rate really low so you have to kill other players to win
20:16:00raptorah, you think *setting* the rate is useful
20:16:00karamazovapyI think being able to set the score rate is useful, yes
20:17:00karamazovapyit allows you to weight the game toward fighting or fleeing
20:17:00watusimotoanyone here good with templates in c++?
20:18:00karamazovapyyou could create a de facto king-of-the-hill gametype by setting the score rate at 0 per minute
20:18:00sam686i kind of understand more with C++ templates now...
20:18:00karamazovapyit'd work even better if the rabbit's team could have its own turrets and forcefields
20:18:00watusimotook, sam, can I define a template that only applies to a certain class and its subclasses?
20:18:00watusimotoi.e.
20:19:00watusimotoinstead of this: template <typename T> class Lunar
20:19:00watusimotosomething like this:
20:19:00watusimototemplate <typename T(LuaObject)> class Lunar
20:19:00watusimotoI just invented that syntax
20:19:00raptorhttp://www.cprogramming.com/tutorial/template_specialization.html
20:19:00watusimotoI basically want T to know it's a LuaObject or better
20:20:00sam686i will need to look at class Luner...
20:21:00watusimotoWhat I'm trying to do is this:
20:21:00watusimotowhen we create a new object from Lua using class:new(), lua will garbage collect that object
20:22:00watusimotoI want to be able to tell Lua not to do this in certain cases (usually we want it, occasionally we don't)
20:22:00watusimotoWhen Lunar creates an object, this line gets run:
20:22:00watusimotopush(L, obj, true); // gc_T will delete this object
20:22:00watusimotothe true tells lua to collect the object
20:22:00watusimotoso I need to, sometimes, pass in a false
20:22:00watusimotofor the moment, I can determine this class-by-class
20:23:00watusimotoI have been trying variants on this:
20:23:00watusimotopush(L, obj, (LuaObject *>(obj)->shouldCollect()); // gc_T will delete this object
20:23:00watusimotowhere shouldCollect() returns a bool
20:23:00watusimotoit's implemented in LuaObject, and overridden in selected child classes
20:24:00watusimotoI see a syntax error in what I just pasted, but you get the idea
20:24:00watusimoto@k I agree that team turrets make sense in team rabbit
20:25:00watusimotocompiling this now, but I know it will fail:
20:25:00watusimotopush(L, obj, ((LuaObject *)(obj))->shouldCollect());
20:25:00karamazovapyif I remember, they don't really function right now
20:26:00karamazovapybut in my head they should stick with the flag (or non-flag) side, not an individual player
20:26:00sam686so, trying to make it so Lunar requires having T a LuaObject?
20:27:00watusimotoall objects that Lunar will work with are LuaObjects
20:28:00watusimotoor one of many subclasses
20:28:00watusimotothis is already true
20:28:00sam686could always stick in a TNLAssert(dynamic_cast<LuaObject *>(obj), "Not a LuaObject");
20:29:00sam686in constructor possibly..
20:29:00watusimotoyes, but the problem is I can't call a LuaObject method because lunar thinks that a T could be an int, or a Color, or anything
20:29:00sam686then dynamic_cast fails to NULL if T is not right
20:29:00watusimotoyes, but I can't even compile
20:30:00sam686include "tnlAssert.h"?
20:34:00watusimotono, the problem is that I can't call any LuaObject methods from inside the templated functions
20:34:00raptor Quit (Remote host closed the connection)
20:34:00watusimotobecause Lunar doesn't understand that all Ts are subclasses of LuaObject
20:35:00sam686include "luaObject.h"?
20:39:00sam686i actually don't know, other then there may be something that just do Lunar<class that is not part of LuaObject>
20:39:00watusimotoMost likely I am thinking about this the wrong way
20:40:00sam686as Luner<class T> and T is GoalZone, then it should have already included GoalZone and LuaObject, i think..
20:48:00watusimotoyes... but I don't know how to call a function on LuaObject (or GoalZone) from within Lunar. T could be anything, even Color. Color has no shouldCollect() function
20:48:00watusimotoso it won't compile
20:49:00watusimotoeven though LuaObject does, and in practice, Lunar is only used with LuaObjects
21:07:00Flynnn has joined
21:08:00sam686LUA source looks very complicated to me, i don't know nothing much about the use of Lunar...
21:12:00watusimotoTheoretically, you can understand lunar without dissecting lua source
21:12:00watusimotobut I'll admit that this is all very complex
21:13:00watusimotoand unfortunately, it won't work with Lua 5.2
22:06:00raptor has joined
22:06:00ChanServ sets mode +o raptor
22:06:00raptoroh hey, everyone is still here
22:15:00watusimotopush(L, obj, T::shouldCollect());
22:15:00watusimotocompiles
22:15:00watusimotobut shouldCollect() needs to be static...
22:15:00watusimotoso I can't override it
22:17:00watusimotobut it's a step forward at least
22:17:00raptoronward!
22:25:00raptorwatusimoto: there is some stuttering green text at the bottom of the options menu as well as the editor settings menu
22:25:00raptordo you know what that is?
22:25:00koda Quit (Quit: koda)
22:26:00koda has joined
22:29:00sam686luaLevelGenerator.cpp line 74, and luaObject.cpp line 367, both have same function name but may have something different. static ToggleMenuItem *getMenuItem(lua_State *L, S32 index)
22:32:00sam686//zap/luaObject.cpp(368) : error C2084: function 'Zap::ToggleMenuItem *Zap::getMenuItem(lua_State *,TNL::S32)' already has a body
22:32:00sam686ua_State *,TNL::S32)' already has a body (i only run into that problem due to using a method (include a bunch of .cpp files in build1.cpp) that speed up compiling)
22:34:00raptorwatusimoto: are there lua 5.2 advantages that you see as a benefit to moving as soon as it's out?
22:37:00sam686i get a "6J" text at the bottom only when selecting "JOIN LAN / INTERNET GAME"
22:37:00raptoryes
22:38:00raptori get really crazy values sometimes
22:38:00raptorgo throught the 'game parameters' menu
22:39:00sam686here a screenshot with "6J" green text. http://208.107.52.15/bitfighter/green_text_junk.png
22:39:00raptorhaha, yep
22:40:00sam686other times, i get x#`# 0! @"@
22:40:00raptorhaha,
22:41:00sam686and, http://208.107.52.15/bitfighter/green_text_junk1.png it says "voice chat volume"?
22:42:00raptorhaha
22:42:00raptorgood, then i'm definitely not the only one...
22:55:00Flynnn Quit (Quit: This computer has gone to sleep)
22:56:00Flynnn has joined
22:57:00watusimoto@raptor> do you know what that is? yes
22:57:00watusimotoa bug
22:57:00raptorhi
22:57:00watusimotoit's on my list
22:57:00watusimotoprobably a string instead of a string.c_str()
22:57:00watusimotoprobably my fault
22:57:00raptorhow? those cases never compile for me
22:58:00raptorand this compiled cleanly
22:58:00watusimotothen a dud pointer
22:58:00watusimotobut... holy crap
22:58:00watusimotoI *can* override static functions
22:59:00raptorof course! this is not java... :)
22:59:00raptorthis is dirty, dirty C
22:59:00sam686i do no think you can do virtual static function inside class
23:02:00watusimotoI didn't.
23:02:00koda Quit (Quit: k thx bai)
23:02:00watusimotoBut, frankly, I'm still checking if this works
23:02:00koda has joined
23:10:00watusimotoShould collect for class Zap::CounterMenuItem? no
23:10:00watusimotoShould collect for class Zap::CounterMenuItem? no
23:10:00watusimotoShould collect for class Zap::LuaPoint? yes
23:10:00watusimotoShould collect for class Zap::LuaPoint? yes
23:10:00watusimotothose are the correct answers
23:10:00watusimotothe crashing is gone
23:10:00watusimotoneither class has shouldCollect() defined on them, but their parent classes do
23:10:00watusimotoI really don't understand how/why this is working... but it is
23:11:00watusimotoso my problem is solved
23:11:00raptorhopefully it'll compile on linux :)
23:11:00watusimototime for a nip of brandy, then off to bed
23:11:00raptorgood night
23:13:00watusimotowell, I really should clean up a little and check in!
23:14:00watusimotomight be worth glancing at http://www.lua.org/pil/25.html
23:14:00raptorreal quick - can you explain what mDraggingDockItem means?
23:14:00raptorin UIEditor
23:15:00watusimotonothing too heavy, just the idea that we can perhaps use Lua to define our levels, given that our xml talks seem to have faltered
23:15:00watusimotojust htinking...
23:15:00watusimotomDraggingDockItems means (I think) that you are currently dragging an item that came from the dock
23:15:00watusimotorather than from the editor itself
23:15:00raptorah, ok, that makes sense
23:15:00watusimotoso it's an insert that looks like a drag
23:15:00watusimotoand needs to be handled specially
23:17:00raptorsome of this editor code is event-driven
23:17:00raptormixing me up a bit
23:29:00raptor Quit (Remote host closed the connection)
23:31:00raptor has joined
23:31:00ChanServ sets mode +o raptor
23:38:00watusimotociao
23:38:00raptornight
23:38:00BFLogBot - Commit b28aa9757e42 | Author: watusim...@bitfighter.org | Log: Change to Lunar to give classes some control over who manages garbage collection when script creates using obj:new()
23:38:00BFLogBot - Commit b0505b1e95e0 | Author: watusim...@bitfighter.org | Log: Fixed memory leak with plugin menus... finally. Small leak, big effort.
23:43:00watusimoto Quit (Ping timeout: 248 seconds)

Index Search ←Prev date Next date→

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