#bitfighter IRC Log

Index Search ←Prev date Next date→

IRC Log for 2013-01-10

Timestamps are in GMT/BST.

00:06:19kaenIs there any way we could widen the code blocks on the forums?
00:06:33kaen80 characters would be ideal
00:07:41raptoroverlap the outside boundary?
00:07:48raptor80 chars.. haha
00:08:29raptorprobably, but might not be able to without changing the width of the post block itself
00:08:58kaenI think you're right
00:09:12raptoroh hey... there's a little thingy you can click
00:09:22raptorright next to your name, to the right is a small button
00:09:27raptorit widens everything..
00:11:42kaenoh wow
00:11:44kaennice
00:46:47Watusimoto Quit (Ping timeout: 248 seconds)
01:04:23raptorheading home!
01:04:26raptor Quit ()
02:25:59bobdaduck has joined
02:40:32kodafk Quit (Read error: Connection reset by peer)
02:47:41raptor has joined
02:47:41ChanServ sets mode +o raptor
03:35:09kaenso this flocking stuff is very promising
03:35:30raptoras in.. you got it working? :)
03:35:34kaenI should have to path about 1% of time
03:35:36kaenwell...
03:35:37kaenno.
03:35:42kaenbut it's on the way
03:36:05kaen1% versus how much I'm pathing right now to follow a player
03:36:20kaen(I've decided pathing only once is too frugal)
03:37:41kaenwith the "flocking" (actually just a naive formation) most of the logic is simple vector arithmetic
03:37:51kaenonly the "leader" has to path
03:38:42kaenformations also take care of another problem, which is that too many swarmers bumping into each other quickly becomes glitchy
03:38:56kaenby having a set formation, they maintain maneuvering space
03:39:02raptoroh so you're doing formations, too...
03:39:05raptorcool
03:39:08kaeninstead
03:39:18kaenI got bored of them coming in a straight line...
03:39:30raptorhaha
03:39:50kaenat first I thought about fuzzy pathing, but they'd still bump a bunch
03:39:55kaenand it would look stupid
03:40:01kaenformations actually solves a lot of problems.
03:58:39raptorformations... sounds like a real-time strategy game!
04:04:10raptorhuh - i don't think i've actually worked with Object-oriented python before (I'm looking into changing this notifier code)
04:08:10raptorkaen: what is a good python IDE?
04:09:08kaenI still use vim for python
04:09:18raptor gasps
04:09:26kaenI actually use vim for most things.
04:09:31kaenthe main exception is c++
04:09:34raptortechnically i'm using a text editor for it now...
04:09:55kaenhave you seen http://stackoverflow.com/questions/81584/what-ide-to-use-for-python ?
04:10:03raptoryeah, been reading that..
04:10:18raptori was more interested in your personal experience
04:10:23raptorif any
04:10:37kaenin my experience vim is fine :)
04:18:57bobdaduck Quit (Quit: Page closed)
04:20:07raptorkaen, sam686, is one of you logging on as 'MasterServerConnection' ?
04:20:26kaennot me. I was just looking at that though.
04:20:48sam686Was trying to find which revision doesn't crash on my levelgen..
04:20:48raptorbeacuse... i was in that code right now, and it spooked me
04:21:04raptorah ok sam686 is the culprit
04:21:37sam686revision 0c699b6956b8 is ok, revisions after that crashes on my levelgen (maybe an error?)
04:24:59amgine1234567890 has joined
04:25:19amgine1234567890can i get a link for the source code
04:25:54raptoramgine1234567890: use mercurial to check out like it says on this page: https://code.google.com/p/bitfighter/source/checkout
04:39:27amgine1234567890silly question what is the main app i click to open mercuial
04:39:54raptordid you download and install mercurial?
04:39:58amgine1234567890yes
04:40:07raptorwas it called TortoiseHG?
04:40:08bobdaduck has joined
04:40:21amgine1234567890no it was marcuial?
04:40:32raptorget tortoiseHG
04:40:38raptorthat is an easier mercurial program
04:40:46amgine1234567890ugh
04:40:50amgine1234567890ok
04:42:53kaentrust me it'll save you a lot of pain amgine1234567890 :)
04:43:24kaenI have successfully implemented follow-the-leader
04:43:27kaentime to sleep.
04:43:33raptornight!
04:44:49amgine1234567890follow the leader?
04:47:18amgine1234567890hmm i ckicked the link from teh google docs page but it bought me staight to hte mercuail downlaod page i dont see tortise hg
04:47:33amgine1234567890ii htink this chat is frozen
04:47:40amgine1234567890 Quit (Quit: Page closed)
04:48:14amgine1234567890 has joined
04:48:35amgine1234567890i clicked the link but it brought up hte mercuail downalods page i dont see tortise hg
04:48:43bobdaduckum.
04:48:49raptorhttp://tortoisehg.bitbucket.org/
04:48:58raptorgoogley is your friend
04:49:16amgine1234567890never mind found it
04:50:02amgine1234567890umm this instalation pacakge is not supoorted by this operator?
04:50:45amgine1234567890never mind
04:53:33amgine1234567890ugh dont have the privialges
04:56:33amgine1234567890hmm wonder if i could chat and sintall it on a blank disk
04:56:38amgine1234567890cehat
04:56:42amgine1234567890cheat
05:00:10amgine1234567890no that wont work i still wouldnt have the rights
05:22:42amgine1234567890well i got to go to sleep maybe tommor thne goodnight
05:22:48amgine1234567890 Quit (Quit: Page closed)
05:40:58Lamp has joined
05:41:03LampHello.
05:41:09raptorhi Lamp
05:41:21Lampraptor Are you a bot?
05:42:09LampYep, he is a bot all right.
05:42:29LampI've had some experience with CentralChat IRC...
05:42:36LampSo I know about bots
05:42:39Lampsorta
05:42:50raptor!bot
05:42:50BFLogBotI'm a real boy!
05:42:59raptori'm a real boy!
05:43:08Lamp....?
05:43:12raptorno, i'm not a bot
05:43:15LampNo, you're a wooden character
05:43:21LampXD
05:43:25raptorha
05:43:25Lampkiddin'
05:43:28raptormarrionette?
05:43:31Lamp?
05:43:40LampRaptor, what are you?
05:43:43raptorthat's a wooden puppet
05:43:46Lampmoderator of this site?
05:43:52raptori am one of the devs for bitfighter
05:44:02Lampoh
05:44:09raptor:)
05:44:13raptorwelcome!
05:44:27LampSo you administer and answer people's questions on this chat?
05:45:37Lamp has left
05:45:37raptorwell, i mostly spend time coding and occasionally respond here
05:45:45raptorbye Lamp
05:46:00raptorthat was... odd
05:46:26Lamp has joined
05:46:46raptorwelcome back - my last text was: i mostly spend time coding and occasionally respond here
05:47:32Lampok
05:47:53LampI don't like IRC. It's complicated...
05:48:06LampWhy'd you use IRC for this site?
05:48:20raptorbecause it's the simplest form of internet chat there is
05:48:41raptorand *any* computer system has a client for it
05:49:36Lampwell i'd rather just use a better chat. Perferably HTML-based
05:49:59raptorIRC can be HTML based
05:50:10LampI said better chat
05:50:36LampIs this CentralChat IRC? looks exactly like it
05:50:49raptoryou're on the freenode network
05:51:09raptorif you want to understand IRC better, look here: https://encrypted.google.com/url?sa=t&rct=j&q=irc&source=web&cd=1&cad=rja&ved=0CDEQFjAA&url=http%3A%2F%2Fen.wikipedia.org%2Fwiki%2FInternet_Relay_Chat&ei=01buUMyTKaqYiQKnHA&usg=AFQjCNG_LNwxiqySe5630dnCjuI2DQjp4w&bvm=bv.1357700187,d.cGE
05:51:11raptoroops
05:51:19raptorthis link: https://en.wikipedia.org/wiki/Internet_Relay_Chat
05:51:34Lampyes I read it already
05:51:46LampI think
05:51:55raptorlots of good reading there - IRC is the most versatile of the chat protocols (probably because it's one of the oldest)
05:52:04Lampanyway nothing much here im gonna go...
05:52:14raptorlaters
05:53:38bobdaduckHow do you make it be like * bobdaduck?
05:53:48raptorsay waht?
05:54:00raptoroh, the /me command: /me is hungry
05:54:04raptor is hungry
05:56:32Lamp Quit (Ping timeout: 245 seconds)
06:01:35bobdaduck is getting owned by the RNG of nethack
06:20:04raptorso the question is: does the new sensor completely nerf cloak?
06:20:44bobdaduckIts enough that cloak is a lot less useful
06:21:07bobdaduckCloak wasn't all that useful in the first place though
06:21:24raptorwho were the big cloak users? shadow?
06:22:06raptorgetting sleepy... need to go to bed - night!
06:23:07bobdaduckThere aren't really any big cloak users
06:23:25raptorso were the sensor changes good, then? sensor is very useful now..
06:23:42raptormaybe even overpowered..
06:25:26bobdaducknah
06:25:37bobdaduckI'd like to see buffs to sensor and cloak
06:25:40bobdaduckand maybe armor
06:25:45raptorbuffs?
06:25:46bobdaduckand then more repairable items
06:25:54bobdaduckLike, make them all stronger.
06:26:48raptorbecause shield is too strong?
06:28:36raptor is getting sleepy
06:28:39raptorok heading to bed..
06:28:41raptornight!
06:37:49bobdaducknight
06:39:37Lamp has joined
06:40:29Lamphttp://bitfighter.org/irclogs/index.php?date=2013-01-10
06:40:44Lampim reading the log
06:41:36Lampi joined right when logbot logged it. :D
06:41:41Lampmy name is in it
06:41:44Lamphmm
06:41:47Lamp is me
06:41:52Lamp is Lamp
06:41:55Lampcool
06:41:57Lamp
06:41:59Lampem/em/e
06:42:00Lampme/
06:42:01Lampme
06:42:03Lamp
06:42:04Lamp
06:42:05Lampe
06:42:08Lamplol
06:42:39Lamp has gotten better at Bitfighter but cannot practice anymore cuz nobody there :(
06:43:00LampLamp
06:43:06Lampbobdaduck
06:43:16Lamp is gonna go now
06:43:22Lamp says bye
06:43:25Lamp Quit (Client Quit)
06:45:55raptor lied and is currently rummaging for food
06:50:08bobdaducksorry what
06:50:10bobdaduckxD
06:50:29raptori'm still awake... posting contest results now...
06:50:34bobdaducklol
06:50:36bobdaduck:(
06:50:47bobdaduckIf I voted for mine I would have won >.<
06:50:57raptorheh
06:50:59bobdaduckOh well
06:51:05raptorvery kind-hearted of you...
06:54:22raptorok, time to give out the badge
06:59:49raptornight again!
06:59:52raptor Quit ()
08:52:41bobdaduck Quit (Quit: Page closed)
09:02:13watusimoto has joined
09:02:13ChanServ sets mode +o watusimoto
10:09:46martin__bede has joined
10:11:18martin__bedehi
10:20:02watusimotohi
11:18:37martin__bedealthough i didn't take the task yet, i tried to parameterize the Spawn item, just to get a feel about how hard it is. i made some changes, using the changeset from my last task and other code as a guide. i got the macros wrong somehow, it complains about 'constructor' not being he member of Zap::Spawn. here's the macro part of my code: http://pastebin.com/U40w21LR
11:19:32martin__bedei guess this has got something to do with spawn not using a combined constructor or the (missing) macros in the header?
11:20:32watusimotoI'll take a look; you should be aware that there were two (I think) bugs in your previous implementation (one of which was because you removed a check that I told you was unnecessary, but it turns out I was wrong :-)). So you should look at the changes I made to your code in testItem to see what more needs to be done.
11:22:34watusimotoyes, ok, I see the problem and am trying to remember the solution!
11:25:40watusimotoThe code looks good -- can you show me your error message?
11:26:51watusimotoBut to your question of "how much harder will this task be" the answer is not much. More objects, same level of complexity.
11:31:10watusimotook; if you comment out the GENERATE_LUA_METHODS_TABLE(Spawn, LUA_METHODS); line, it should compile
11:31:36watusimotoI'm not sure what the ramifications of doing that are yet, but this is probably my problem, not yours
11:33:14watusimoto the GENERATE_LUA_FUNARGS_TABLE macro is what creates the data structure that checkArgList() uses to see if a script provided the correct arguments for the function
11:35:01watusimotoThe GENERATE_LUA_METHODS_TABLE macro turns the same source data into a set of functions that allow various methods to be called on an object
11:35:09watusimotoso, according to the docs,
11:35:11watusimoto// Starting with a definition like the following:
11:35:11watusimoto/*
11:35:11watusimoto #define LUA_METHODS(CLASS, METHOD) \
11:35:11watusimoto METHOD(CLASS, addDest, ARRAYDEF({{ PT, END }}), 1 ) \
11:35:11watusimoto METHOD(CLASS, delDest, ARRAYDEF({{ INT, END }}), 1 ) \
11:35:11watusimoto METHOD(CLASS, clearDests, ARRAYDEF({{ END }}), 1 ) \
11:35:11watusimoto*/
11:35:31watusimotoGENERATE_LUA_METHODS_TABLE will generate
11:35:38watusimoto// Generates something like the following:
11:35:38watusimoto// const luaL_reg Teleporter::luaMethods[] =
11:35:38watusimoto// {
11:35:38watusimoto// { "addDest", luaW_doMethod<Teleporter, &Teleporter::addDest > }
11:35:38watusimoto// { "delDest", luaW_doMethod<Teleporter, &Teleporter::delDest > }
11:35:38watusimoto// { "clearDests", luaW_doMethod<Teleporter, &Teleporter::clearDests > }
11:35:38watusimoto// { NULL, NULL }
11:35:39watusimoto// };
11:36:20watusimotosince there is no method called "constructor", this code will generate an eror
11:37:31watusimotothis is a problem with our macro expansion, and is not something you need to solve. You can comment out the GENERATE_LUA_METHODS_TABLE macro, and I'll try to fix the macro
11:37:51watusimotoconstructor is supposed to be a special placeholder value
11:39:22martin__bedei see, thanks. i was afk for a while, sorry for not posting the error message when you asked for it
11:39:32watusimotono worry, no further need
11:46:33martinb_android has joined
12:35:36LordDVG has joined
12:50:48martinb_android Quit (Ping timeout: 252 seconds)
12:51:02martinb_android has joined
12:59:00martin_bede has joined
13:03:13martin__bede Quit (Ping timeout: 276 seconds)
13:25:12martinb_android Quit (Ping timeout: 255 seconds)
13:27:56martinb_android has joined
13:42:34martin_bedenow i get this: http://pastebin.com/2ryFiaiX i guess this is related to commenting that macro out
13:56:29watusimotoha, yes
13:56:45watusimotook, remove the constructor line from the macro
13:57:16watusimotosorry you're having to deal with this
13:58:50watusimotoI'm still trying to work out the best way to fix it
14:00:25watusimotoFor the moment, you can manually define the lua funargs table like so:
14:00:26watusimoto// Generates something like the following:
14:00:26watusimoto// const LuaFunctionProfile Teleporter::functionArgs[] =
14:00:26watusimoto// {
14:00:26watusimoto// { "addDest", {{ PT, END }}, 1 }
14:00:26watusimoto// { "delDest", {{ INT, END }}, 1 }
14:00:26watusimoto// { "clearDests", {{ END }}, 1 }
14:00:27watusimoto// { NULL, { }, 0 }
14:00:27watusimoto// };
14:00:32watusimoto(w/o the comments, of course)
14:00:42watusimotoand you can remove the GENERATE_LUA_FUNARGS_TABLE call
14:02:32watusimotoI *think* it will look like this:
14:02:33watusimotoconst LuaFunctionProfile Spawn::functionArgs[] =
14:02:33watusimoto{
14:02:33watusimoto { "constructor", {{ END }, { GEOM, END }, { GEOM, TEAM_INDX, END }}, 3 },
14:02:33watusimoto { NULL, { }, 0 }
14:02:33watusimoto};
14:02:41watusimotobut I need to go to ameeting, so back later
15:11:12martin_bedei see you're not afk now, does that mean you're really here or are you still busy?
15:14:30watusimotowell, I am here now
15:15:34watusimotoNote in the code I pasted above, I changed the 2 to a 3 because you are providing 3 elements in that list
15:20:09raptor has joined
15:20:10ChanServ sets mode +o raptor
15:23:09martin_bedethe thing taking the constructor argument is this, actually: METHOD(CLASS, constructor, ARRAYDEF(...))
15:23:22martin_bedeso should i remove this too?
15:25:08YoshiSmb has joined
15:27:44martin_bedekinda stupid question, but you only wrote remove GENERATE_LUA_FUN..., that's why i'm asking
15:28:59watusimotoreally?
15:29:54watusimotoRead this:
15:29:55watusimotohttp://pastebin.com/hwi7XyqD
15:32:43martin_bedemissed that line, sorry.
15:35:32watusimoto???
15:35:51raptor waves hello
15:35:56watusimotohi
15:36:21martin_bedehi raptor
15:36:52martin_bedewatusimoto: i didn't read the following line: "ok, remove the constructor line from the macro"
15:37:35watusimotoyou think you have everything I wrote now?
15:37:56watusimotoraptor: I could not get the linux alert script to run. I do not have qt installed.
15:38:02watusimotoshould I install it?
15:38:13watusimoto(this sounds like a dumb question, but isn't)
15:42:29martin_bedeprobably i didn't understood everything because i still get an unrefined reference error to Zap::Spawn::luaMethods
15:42:39watusimotoor my code was wrong
15:42:49watusimotoI can't really test anything right now
15:43:02watusimotoI'll be home in a few hours and can get this problem fixed somehow
15:43:51watusimotoEverything will work if we can keep that item with "constructor" out of the macro
15:43:59watusimotoso I just need to find a way to do that
15:44:30raptorwatusimoto: the script should work with gtk3, too; my guess is that you need to install the python-gtk bindings
15:44:49watusimotook, will try
15:48:36watusimotoah, it's the python qt package that's missing
15:49:08raptoror that... if you have GNOME, it should work with gtk3, if KDE, qt
15:49:29watusimotowell, I get this error:
15:49:32watusimotoImportError: No module named qt
15:49:37watusimotofrom the python code
15:49:48raptoryeah i didn't think you had KDE installed
15:49:58watusimotoI don't :-)
15:50:03raptoryou need the python-gtk3 binding..
15:50:11watusimotosudo apt-get install python-gtk2
15:50:16raptornoooo
15:50:20watusimotopython-gtk2 is already the newest version.
15:50:22watusimotono?
15:50:25raptorgtk3
15:50:27raptor3
15:50:28raptor3
15:50:33watusimotowait... 3?
15:50:44watusimotoUnable to locate package python-gtk3
15:50:46raptorwhat desktop are you using...
15:50:46watusimotolike that?
15:50:57raptor looks at the code again...
15:51:08watusimotosorry
15:51:14raptoroops, i'm sorry
15:51:18watusimoto:-)
15:51:19raptorthe script does use gtk2
15:51:25raptori thought it was three
15:51:39watusimotoso I have that installed
15:51:46watusimotobut it gives me the qt error
15:52:09raptorok, force it to skip qt. change the line: isQtGui = True
15:52:11raptorto False
15:52:14watusimotook
15:52:24raptorline 36 or so
15:53:03watusimotoooh
15:53:07watusimotolooks like it's working
15:53:30watusimotoblech... we need a smaller icon, I htink
15:53:59raptorheh
15:54:09raptoryeah, dimensions are off a bit
15:54:39watusimotointeresting... it lists 1 player, while my other one lists 0
15:54:51watusimotooh wait, it just updated... nevermind
15:55:01raptor10 sec..
15:55:09watusimotomine works at 5 secs
15:55:28watusimotoso I would expec that after 5 secs, mine would show the real result
15:55:36watusimotook, I like it
15:55:41watusimotoneeds some smoothing out
15:55:43raptorclick on it
15:55:46watusimotobut does what we need
15:56:02watusimotoI did
15:56:03watusimotoworks
15:56:27watusimotoyes, this is good enough to accept
15:57:00raptorneeds some polishing, better detection, probably a little refactoring
15:57:09watusimotoyes
15:57:09raptorbut it works
15:57:16watusimotoand it's a good base to work from
15:57:21raptoryes
15:58:02YoshiSmb Quit ()
15:58:30hdon Quit (Ping timeout: 246 seconds)
16:05:17raptori've never actually worked with OO python before... but it can't be to tough
16:21:06raptorok heading to work
16:21:09raptor Quit ()
16:32:26LordDVG Quit (Remote host closed the connection)
16:45:11raptor has joined
16:45:11ChanServ sets mode +o raptor
17:18:13kodafk has joined
18:03:33watusimoto Quit (Ping timeout: 240 seconds)
19:16:00martin_bederaptor: hey, can i bog you with my questions? also, do you know anything about watusimoto? (i mean when he's online usually)
19:16:10raptorhi martin_bede
19:16:22raptorwatusimoto is in timezone UTC +1
19:17:00raptorso he works from around 10 - 6pm in UTC +1 and can usually answer basic questions then
19:17:19raptoralso he usually comes online at about 9-10pm (UTC +1)
19:17:28raptorso he should be back in a couple hours
19:18:07raptoryou can ask me some questions, although I am not as familiar with the Lua code as watusimoto
19:20:16martin_bedeawesome. btw i'm in the CET time zone too
19:20:27raptorah ok, so then you match him
19:21:06raptori'm in MST (UTC - 7)
19:22:23Watusimoto has joined
19:33:15martin_bederaptor: what part of the world is that?
19:33:28raptorI am in Utah, USA
19:33:35raptormountain time zone
19:46:03martinb has joined
19:46:24WatusimotoI've marked Dmitry's work as being complete
19:46:38raptordid he upload?
19:46:42Watusimotoyes
19:47:03Watusimotothough I didn;t actually look at his upload
19:47:53Watusimotook martin_bede -- now I need to fix that issue you encoutered
19:48:11martinbi was about to write about it :)
19:48:30Watusimotoraptor: martinb found a flaw in my x-treme x-macro implementation
19:48:43martin_bede Quit (Ping timeout: 256 seconds)
19:48:50martinb is now known as martin_bede
19:49:03raptoroh yeah?
19:49:17Watusimotoyah
19:49:19Watusimotoyeah
19:49:30martin_bedei've created a clone and uploaded the changes. it's kinda messy because i didn't want to remove anything
19:49:35Watusimotomartin_bede: I've been thinking about the solution, and I think it will be straighforward
19:50:06martin_bedelink: http://code.google.com/r/bmartin9x-bitfighter/source/detail?r=1d86bb46b6dc14486cd407c854ef93b7fcf7a542
19:50:12martin_bedeso what's the solution?
19:51:08martin_bedei'm also not sure about every change being submitted there because i manually copied stuff from my old working directory to the clone
19:55:30martin_bedeWatusimoto: why the sudden silence?
19:55:56WatusimotoI'm checking to see if my idea will work
19:56:13Watusimotoif so, it will be easy for you to continue... i need just a couple more minutes, I hope
20:00:51raptori'm experimenting with pydev
20:08:42Watusimotoinvisible thinks we should have x2 and x3 badges for when he wins the next contest. he asked me to tell you he thinks this.
20:09:00Watusimotoand then he asked me to confirm with him that I told you
20:09:32raptormessage confirmed
20:10:38raptorso the question is: will winning the badge discourage future entries?
20:10:54WatusimotoI doubt it
20:10:54raptormaybe we should have a second level 'participation' badge..
20:11:12raptorthe glory of having your mapped dumped on by Quartz
20:11:35WatusimotoA quartz badge
20:11:40raptori think he was the vicious one...
20:11:48WatusimotoQritiziced by Quartz
20:11:53raptorhahaha
20:12:17Watusimotoyeah, well, that's life
20:13:36raptoroh cool, i got the notifier running from an IDE..
20:15:59Watusimotook, martin_bede, I think this will work.. I just need to fix the 803 errors I now have
20:16:02Watusimotojust a sec
20:16:45martin_bedesounds easy :D
20:21:59Watusimotothese macros are very difficult for me
20:22:18Watusimotothey just push my brain slighly beyond what it's really capable of doing
20:22:35WatusimotoI know this will work, it's just a matter of finding the magic combination of braces
20:22:50raptorthat means you're outside the realm of what programming languages are supposed to do..
20:26:56Watusimotowell outside
20:27:09Watusimotobut C++ is meant for pushing beyond normal boundaries
20:27:29Watusimotoand preprocessor macros are meant for bending your mind like a bad batch of mushrooms
20:27:36raptori didn't know any statement could contain the words 'c++ is meant...'
20:27:37Watusimotoand I am getting bent
20:27:50Watusimoto'c++ is mean
20:28:07raptorheh
20:48:06Watusimotowell, down to 51 errors
20:50:37LordDVG has joined
20:57:12Watusimotooh, this is just lovely
20:57:25WatusimotoI finally get this thing compiling, and I realize I am working on a versino from Jan 1
20:57:55Watusimotolet's hope the merge goes well!
20:59:38Watusimotohooray!!! no conflicts!!!
20:59:47martin_bedeyay
20:59:55Watusimotobut does it still build?
21:00:10Watusimotoso martin, while this is building, let me tell you what I did
21:00:21WatusimotoI rewrote those macros that were giving you grief
21:01:02Watusimotoyou'll be able to remove the constructor item from the macro block (or rather, I'll do it), and there is now a way to specify the possible parameters for the constructor separately
21:01:08WatusimotoI will provide a sample of how that works
21:01:24Watusimotoand everything should be working again!
21:02:07martin_bedegreat
21:02:56Watusimotocompiled!!!
21:03:08Watusimotoif it runs without immediately crashing, we're in business
21:03:53Watusimotook good
21:09:14bobdaduck has joined
21:09:28bobdaduckGoodmorning, gentlemen.
21:10:27raptormonring
21:11:11bobdaduckHows school, raptor?
21:11:30kaenhello hello
21:11:39raptortoday I started learning about thread and field models of electromagnetic forces
21:11:57raptorhi kaen
21:12:00bobdaduckNice.
21:12:14bobdaduckThat sounds.....Positive.
21:13:12Watusimotook
21:13:15Watusimotomartin_bede:
21:13:21WatusimotoI'm checking everything in now
21:13:22raptorhar har
21:13:27BFLogBot Commit: 627342b1f698 | Author: watusimoto | Message: Whitespace
21:13:29BFLogBot Commit: bd8bd650bc73 | Author: watusimoto | Message: Reduce a big swath of now duplicate code. Huzzah!
21:13:30BFLogBot Commit: e912330d8bab | Author: watusimoto | Message: Update Lua macro system to provide a workaround for the "constructor" problem Martin_Bede discovered
21:13:32BFLogBot Commit: c29772d27dd9 | Author: watusimoto | Message: Merge
21:13:33BFLogBot Commit: 545ef8fe2b95 | Author: watusimoto | Message: Use new code to get rid of "constructor" from TestItem and ResourceItem
21:13:35BFLogBot Commit: 10ef1819ee41 | Author: watusimoto | Message: Merge
21:13:49Watusimotoin the next commit, you might take a look at the very last commit -- here I fix the problem you were having for TestItem and ResourceItem
21:13:57WatusimotoI will fix any others I can find
21:14:03Watusimotobut you should be clear to go now
21:14:31Watusimotobut you will want to implment Spawn using the same bit of code I added to the constructors for those two classes
21:14:45raptorWatusimoto: did you fork yourself again??
21:15:06Watusimotoindeed!
21:15:18Watusimotobut please keep it clean - this is a family channel
21:15:31raptorha
21:15:50raptorso was that an intentional choice to work off of a commin from december 31?
21:15:53raptor*commit
21:16:29Watusimotofor some values of "intentional"
21:16:39Watusimotomartin_bede: let me explain this briefly:
21:16:43Watusimotostatic LuaFunctionArgList constructorArgList = { {{ END }, { GEOM, END }}, 2 };
21:16:55Watusimotoand
21:16:56WatusimotocheckArgList(L, constructorArgList, "ResourceItem", "constructor")
21:17:12Watusimotothat first line basically says here are two possible sets of arguments for the constructor
21:17:16raptori see more braces...
21:17:36WatusimotoI had to destroy the village to save it
21:17:53raptorslash n' burn
21:18:02Watusimotoso the two sigs are either TestItem.new() or TestItem.new(geom)
21:18:13Watusimotoand the 2 means there are in fact two signatures
21:18:38Watusimoto(oops, sorry, that should have been ResourceItem)
21:18:54martin_bedewhat are the differences?
21:18:56Watusimotothe function checkArgList() takes that list, and looks at what's on the L stack
21:19:13Watusimoto(none, it;s just i started my example with resource)
21:19:37martin_bedeokay. it's always good to refresh my memories
21:19:52Watusimotoand returns the index of the parameter set that matches what;s in the L
21:20:22Watusimoto(the L, remember, has the parameters that the Lua script used in constructing the object)
21:21:11Watusimotoif you get back a number, you can be sure that the values in the L match that argument list, and no further type checking is needed
21:21:51Watusimotoif they do not match (i.e. the script does something like resourceItem.new("crud")), then an error will be thrown and handled elsewhere. You do not need to test for or handle this condition.
21:22:39Watusimotoso it there is more than 1 set of arguments (as there will be in all the itmes you are working on), you can do this:
21:23:04WatusimotoS32 param = checkArgList(L,...);
21:23:14Watusimotothen handle each possibility
21:23:48martin_bedewhat's an S32?
21:23:54WatusimotoSigned 32 bit int
21:24:27Watusimotosee line 53 of tnlTypes.h in the TNL folder
21:24:40Watusimotoit will make your life much easier if you take a look at that
21:25:08Watusimotoit's basically an attempt to bring some sanity to the whack C++ type system
21:26:52martin_bedeokay, i'll keep it open in Geany for reference the whole time i'm coding
21:27:14Watusimoto:-) once you understand it, you'll never need to refer to it again
21:27:32Watusimotoand you'll want to use it in every future C++ project you do!
21:28:16martin_bedehat does tnl stand for?
21:28:18martin_bedewhat*
21:28:24Watusimotoelsewhere we also define S64 and U64
21:28:35WatusimotoThe Netork Library or somesuch
21:28:46WatusimotoTorque Network Library
21:29:22raptornetork, haha
21:29:27Watusimotoit handles most of our networking for us
21:29:42Watusimotonetork is a monster from nethack, I think
21:30:00Watusimotoif it's not, it should be!
21:30:25raptorWatusimoto: did you get my e-mail about the fixed patch for the /announce command?
21:30:43Watusimotoyes
21:31:07Watusimotohaven't looked at it yet... have you?
21:31:17WatusimotoI will as soon as I get this mess squared away
21:31:19raptornot really...
21:31:21Watusimotowhich it pretty much is
21:31:31raptorbeen looking into python..
21:31:51Watusimotono worries
21:31:54WatusimotoI'll deal with it
21:38:31WatusimotoI also need to look at hdon's patch
21:38:42WatusimotoI see he's no longer with us
21:39:06bobdaduckHe's dead? :O
21:39:16Watusimotohard to be sure
21:39:20Watusimotoone way or the other
21:41:24kaen"hit by a bus" is the colloquial term
21:41:39raptorthat's what my boss says to me all the time!
21:42:00kaenI'm somewhat prone to be hit by busses.
21:42:05raptor" you better train someone on that .... because if you're hit by a bus we'll be in trouble!"
21:42:24kaenyour boss is a smart guy it sounds like :)
21:42:49raptori train our internal wiki...
21:42:56raptorit knows all
21:43:22kaenthat's probably even better
21:44:14Watusimotoyou sure it's not more like "you'd better not be late with that project... I'd hate for you to be, you know, hit by a bus or something"
21:44:25kaenlol
21:44:40kaen<raptor> that's what my mafia boss says to me all the time!
21:44:41Watusimotonice face... shame if something were to happen to it
21:56:03martin_bedewhere can i check what lua argument types are there?
21:56:59martin_bedelike GEOM, END, etc.
22:02:52martin_bedealmost forgot about the magic of ack
22:07:07martin_bedeWatusimoto: any chance of the new code malfunctioning? i get an error when passing no/1/2 parameter(s)
22:07:15martin_bedemy constructor: http://pastebin.com/Pbg3V9Vd
22:07:21Watusimotono chance at all!
22:07:53martin_bedethe error: http://pastebin.com/E4hWbjey
22:09:00martin_bedeit should accept no parameters or just a geom
22:09:24Watusimotofirst off, this is a better way to structure the code
22:09:26Watusimoto if(L)
22:09:28Watusimoto {
22:09:28Watusimoto S32 profile = checkArgList(L, functionArgs, "Spawn", "Spawn(lua_State *L)"));
22:09:28Watusimoto if(profile == 1)...
22:09:28Watusimoto }
22:09:32Watusimotoso you only call checkArgList once
22:09:38Watusimotoit;s a slightly expensive operation
22:10:35Watusimoto2nd, move the arglist def down to just above the place where you use it -- i think that's cleaner
22:10:43Watusimotoneither of these relate to your problem, though
22:10:58Watusimotook
22:11:06Watusimotothis problem is COMPLETELY unrelated
22:11:43Watusimotothe new repo has some new lua code in it
22:12:03martin_bedeyea, that's how i test it
22:12:13Watusimotoyou need to copy all the lua scripts (from resource/scripts) into wherever you are running from
22:12:23Watusimotospecifically into the scripts folder
22:12:59Watusimotothe odd thing is why did the script continue to run after you got that error?
22:13:09raptorit's self-aware
22:13:23martin_bedeit didn't :)
22:13:44Watusimotowell, where did the TestItem constructor error come from?
22:14:12Watusimotoonce _stackTracer was not found, it should have just quit
22:14:49martin_bedeoh
22:15:03Watusimotoand... the error related to TestItem constructor, and you were working on the Spawn constructor
22:15:18Watusimotoso your test script is loading the wrong object
22:16:31martin_bedeif i remember correctly my first task was converting the testitem's lua constructor
22:16:36martin_bedeit's haunting me
22:17:13martin_bede(maybe it's some leftover code)
22:17:39martin_bedebut i can't find any in the levelgen
22:18:46Watusimoto:-)
22:19:04Watusimotoare you sure you have the right levelgen?
22:19:11Watusimoto(check with F3 in the editor)
22:19:57Watusimotoand are you sure you have the right file (i.e. could you be looking in the wrong folder? add a logprint statement in the one you think you are running to confirm)
22:20:19martinb__android has joined
22:22:39martin_bedeoops... my terminal was in the wrong directory
22:24:18martinb_android Quit (Ping timeout: 255 seconds)
22:25:19martin_bedeactually it doesn't even build
22:25:28martin_bedemissing reference to END, GEOM...
22:25:41raptorclient-side predicts teleportation...
22:26:09raptorlooks kind of funny sometimes..
22:27:55Watusimotohow did yo test it if it doesn't build?
22:28:14martin_bedei was building the wrong thing
22:30:24Watusimotoso it currently does not build?
22:30:53martin_bedeyes
22:31:25Watusimotosorry... yes it builds or yes it does not build?
22:31:38martin_bedeit doesn't build currently
22:32:44martin_bede'GEOM' was not declared in this scope
22:32:54martin_bedesame with END
22:33:08martin_bedesomething has to be included?
22:33:30Watusimotolet me try
22:36:13Watusimotook
22:36:19Watusimotoput this inside the constructor
22:36:19Watusimotostatic LuaFunctionArgList constructorArgList = { {{ END }, { GEOM, END }}, 2 };
22:36:22Watusimotoand it shoudl compile
22:36:36Watusimotobest to move it down next to the place you first use it
22:40:47LordDVG Quit (Remote host closed the connection)
22:41:24raptorbrackets brackets everywhere
22:44:28Watusimotosee LuaScriptRunner.h line 285 for some explanation
22:44:31Watusimotoof the brackets
22:53:05Watusimotough, merging this announce code is a nightmare
22:53:22Watusimotohe diffed off an old version, so has none of sam's fixes
22:53:32Watusimotoand it's just messing up everything
22:53:41raptori sent you the fixed one didn't I?
22:53:51Watusimotooh crap
22:54:02WatusimotoI was working off the one he uploaded
22:54:11raptori already went through fire and shadow to get it done...
22:54:20WatusimotoI see that nwo
22:54:26Watusimotophooey!
22:54:46raptorhere: http://sam6.25u.com/upload/donimicov-task-patch3-fixed.patch
22:54:53Watusimotowell... thanks! it's the thought that counts
22:54:56Watusimototoo late for that
22:55:03Watusimotothere's no going back at this point
22:55:46Watusimotocompiles
22:55:47Watusimotoruns
22:55:50Watusimotodoesn;t do anything
22:57:15Watusimotook, he's stuck on the message rendering
22:57:30WatusimotoI've explained in great detail what he should do to fix it
22:57:59Watusimotooh wait
22:58:15Watusimotolet me check your merge file and make sure I really have his code; this looks old
23:01:16WatusimotoI think I do have the correct code
23:07:20raptorok
23:08:16YoshiSmb has joined
23:08:33raptorso i've been going online when i see new people (unregistered ones) online... and playing a bit with them
23:08:44raptori hope i haven't been scaring them off
23:09:07raptori've tried to play not expertly... not too difficult in my case
23:15:49Watusimotowhat do you think of my response:
23:15:50Watusimotohttp://www.google-melange.com/gci/task/view/google/gci2012/8025216
23:16:07Watusimotogood work with the playing, btw
23:17:15BFLogBot Commit: c709baf57e6a | Author: watusimoto | Message: Normalize things a tiny bit
23:17:16BFLogBot Commit: ae18fb88664b | Author: watusimoto | Message: Whitespace
23:17:18BFLogBot Commit: 191e8acd5bc0 | Author: watusimoto | Message: Changes from most recent Donny Mitsov submission
23:18:51YoshiSmb_ has joined
23:19:49YoshiSmb Quit (Ping timeout: 260 seconds)
23:25:52martin_bedei cloned again to avoid other leftover code, copied the resources to both ~/.bitfighter and the exe dir (scripting didn't run when resources were only in the exe dir), and then copied my Spawn.cpp to the clone
23:27:14martin_bedethen i ran tests which were successful, but right after that i get a missing _stackTracer() error, a warning about corrupted scripting environment, and a segfault
23:27:50martin_bedewhen the tests fail and the scripting engine terminates, the game keeps running, no segfault
23:29:04martin_bedewas this problem introduced by me? (maze map)
23:31:00raptori gotta hand it to Donny - he's been a trooper with this one
23:35:18raptorsam686: can you add a default number of bots on your server?
23:35:24raptori think people are getting lonely
23:40:06Watusimotomartin_bede: you need to make sure you have all the lastest lua files in your execution environment
23:40:40Watusimotothat is, make sure you copy all lua files from resources/script to the scripts subfolder whereever you are running
23:44:14martin_bedethat kinda did the trick
23:44:26martin_bedenow i get this: glibc detected *** ./bitfighter: corrupted double-linked list: 0x00000000014d9740
23:44:47martin_bedeit couldn't be any more cryptic for me
23:45:26martin_bedethe game just froze, didn't stop
23:45:47Watusimotouh
23:45:47martin_bederight when i selected mazeracer
23:45:55Watusimotothat means something very very had happened
23:46:11raptori got that glibc problem too!
23:46:29raptorWatusimoto: http://pastie.org/5651223
23:46:47raptorand that was from 3 days ago
23:46:59raptorhappens on exit of the game
23:47:40Watusimotook
23:47:56Watusimotoraptor: can you try hosting mazeracer?
23:48:08raptorok
23:48:40raptorpulling, compiling...
23:49:10raptorhosting...
23:49:34raptorCRASH
23:50:05Watusimotook
23:50:14raptorhttp://pastie.org/5665124
23:50:20Watusimotolet me try something
23:50:33raptorfor the record, my tree is up to date AND i'm pointing to the newest scripts available
23:50:49raptorstacktrace ^^
23:51:53Watusimotoyou need to copy the new lua scripts into the folder you are running from
23:52:03raptoralready done
23:52:08raptormaybe you didn't check them in?
23:52:38Watusimotodo you have stack-trace_plus.lua?
23:53:08raptornope, not found in the scripts directory
23:53:28Watusimotono you don't
23:55:24Watusimotook, my applogies
23:55:26BFLogBot Commit: 33ed6c3bd4d3 | Author: watusimoto | Message: I was *SURE* I had uploaded this!!!
23:55:27Watusimototo both of you
23:55:48Watusimotoyou'll need the new lua super stack tracing file... it goes in your scripts folder
23:56:26martin_bedegood night everyone, see you "tomorrow"
23:56:32raptornight martin_bede!
23:56:37martin_bede Quit (Quit: Leaving)
23:56:50raptorWatusimoto: same crash same trace
23:59:22Watusimotomamma mia

Index Search ←Prev date Next date→

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