#bitfighter IRC Log

Index Search ←Prev date Next date→

IRC Log for 2014-01-06

Timestamps are in GMT/BST.

00:00:02fordcarsSure
00:00:08fordcarsraptor, just delet isRobot()
00:00:20fordcarsin onMessageReceived to get the Event Bug
00:00:23raptorwill that make it crash?
00:01:07raptormy version doesn't have that
00:01:16raptorso maybe event bug is already fixed
00:01:22sam686ON skybot: longText = {"Indeed.asdfasdfasdfasdfasdfasdfasdfasdfasdf"} and without isRobot, will crash
00:01:23raptoroh! yeah... actually, i remember fixing that
00:01:28sam686with 2 or more bots
00:01:41sam686and, lf eliza didn't have isRobot it can crash too
00:02:11raptorok, let me test...
00:02:46raptoroh wait,, is that a stackoverflow?
00:02:55sam686yes
00:02:58raptorhahaha
00:03:09raptorok - not sure what we can do about that...
00:04:58sam686once again, it only happens if there is 2 or more robots that runs globalMsg in onMsgReceived
00:05:20Skybaxlol ford, it just crashed xD
00:05:34fordcarsHahahahahaha
00:05:36fordcarsWow
00:05:45SkybaxWe weren't even doing anything
00:05:53fordcarsThere is no reason it would, it must be a Bitfighter problem
00:06:17sam686was there bots when it crashed>
00:06:20fordcarsOnly one bot?
00:06:24fordcarsYeah
00:06:25SkybaxYeah only one bot
00:06:37SkybaxAnd Ford and I
00:06:40fordcarsThe bots were not going to talk either
00:06:41raptordefine crash?
00:06:51raptorgame crash, or bot crash?
00:06:55fordcarsAdd bot, wait a little, crash
00:06:59fordcarsBitfighter crash
00:07:22SkybaxThe screen went white and a window came up saying Bitfighter has stopped working and it was troubleshooting and then another window comes up and says they couldn't find a solution and gives me a button to close program
00:07:43fordcarsraptor, isn't there a Bitfighter random number generator?
00:08:03SkybaxIt actually happened earlier just when I hit the level editor button, too
00:08:06fordcarsIn global, ok nmn
00:09:00raptoryes
00:09:03fordcarsHey SKybax, there is a Bitfighter random number generator, I'll use that, it should be better :)
00:09:04raptorok you found it
00:09:11fordcarsYeah, thanks :)
00:09:16raptoradd skybot?
00:10:00fordcarsraptor, is it global: or bf:
00:10:04raptorbf:
00:10:08fordcarsAh ok
00:10:09raptorwait no
00:10:12raptorif global, then nothing
00:10:15fordcarsOh ok
00:10:21fordcars:getRand.....
00:10:30raptorno colon
00:10:54fordcarsOh
00:11:06fordcarsOk thanks :)
00:11:35SkybaxWould it be possible to extend the range that Skybot begins to cloak?
00:11:49SkybaxI can see it just as it goes into cloak, and that gives away it's position
00:12:40SkybaxIt would probably work perfectly if not for the cloaking delay cause of the fade
00:13:55fordcarsUh sure, but it will require a bit of work, but I'll do it :P
00:14:39SkybaxThis is exciting
00:15:05fordcarsPoo, sorry it'll have to be after diner HAHA
00:15:08fordcarsLater :P
00:15:11fordcars Quit (Quit: Page closed)
00:27:04vs73nx_ has joined
00:28:40fordcars has joined
00:29:07vs73nx Quit (Ping timeout: 260 seconds)
00:39:19sam686forget the 'live chat' button, what about putting that live chat option as a link in 'Contact'?
00:39:43sam686that can solve the idiot problem of seeing 'live chat' from home page, but not from forum..
00:42:38Flynnn Quit (Quit: This computer has gone to sleep)
00:52:27fordcarsUh, In method onTick(): ...\Roaming\Bitfighter\scripts\lua_helper_functions.lua:36: bad argument #1 to 'pairs' (table expected, got nil -- did you use '.' instead of ':'?)
00:52:52raptorfix your syntax
00:53:24fordcarsBut, where?
00:53:32raptorread the full stack trace
00:53:44raptorit'll tell you a line number where it originated
00:56:20fordcarsUh, I don't see anything
00:56:32fordcarsIt says it is in shield, but I didn't touch that
00:56:39raptorwhat is the full trace?
00:56:54fordcarshttp://pastie.org/8605099
00:57:32fordcarsOh ahhhh I think I know
00:58:07fordcarsI had 2 for loops and used v,i twice
00:58:18raptorthat woudl do it..
00:58:20fordcarsUnrelated to the stack trace though
00:58:29fordcars!gci
00:58:29BFLogBotGCI Students Welcome! Please see: http://bitfighter.org/wiki/index.php/GCI_Student_Bootstrap for getting started.
00:59:09fordcarsThanks :P
00:59:42fordcarsOh, that wasn't it
00:59:51fordcarsGetting same stack trace
01:00:07raptorpast your code somewhere please
01:00:28fordcarshttp://pastie.org/8605104
01:01:57raptorcan you do this in main(): logprint(table.clear)
01:02:02raptorand see if it is nil
01:02:19fordcarsSure
01:03:02fordcarsIt didn't go to main() yet
01:03:06fordcarsIt was still 'compiling'
01:03:18fordcarsOh wait
01:03:20raptorthat seems like a different issue...
01:03:22fordcarsfunction: 0224DFF0
01:03:25fordcarsIs that it?
01:03:27raptoryes
01:03:29raptorok, good
01:03:32raptorthen that exists
01:03:46fordcarsOk
01:05:18raptoritems is nil
01:05:21raptorwhy is it nil
01:05:22fordcarsYeah
01:05:26fordcarsI think I knw
01:05:31raptoritems = orderArrayByDistance
01:05:33fordcarsfunction orderArrayByDistance(arrToOrder)
01:05:34raptorthat would do it
01:05:39fordcarsNo table.clear!
01:05:45raptorwith no table return function
01:08:49fordcarsOk I got it
01:08:57fordcarsI was using items, but it was nil in function orderArrayByDistance(arrToOrder)
01:09:29fordcarsBut I removed table.removed, so it's all good ;)
01:09:31fordcarsThanks
01:09:55fordcarsOh poo nm I need table.remove
01:10:54raptorwhen you run a function, it's default return type is nil
01:11:03raptorso by doing this: items = orderArrayByDistance
01:11:08raptoryou are setting items to be nil
01:11:08fordcarsOh right sorry
01:11:28raptorunless you can guarantee you return a table in orderArrayByDistance()
01:11:31fordcarsBut I got to figure out scope stuff now
01:11:39raptorbut i don't hink that's what you want...
01:11:51fordcarsWell I added "return finalArray"
01:11:57fordcarsIn orderArrayByDistance()
01:13:14fordcarsOk I got it
01:15:41fordcarsOk, what
01:16:16fordcarsI added a return to return the table in orderARrayByDistance(), and I cleaned the for in there to make it work, and I still get the same error
01:34:05fordcarsOOooh now I think I am good
01:51:40vs73nx_ is now known as vs73nx
02:03:08NothingMuchHereT is now known as Nothing_Much
02:15:34Nothing_Much Quit (Remote host closed the connection)
02:38:55SkybaxMy dinner is amazing
02:46:30raptordoes it do a good song and dance?
02:49:37SkybaxIt does in my tummy
02:52:51Flynnn has joined
02:59:02oskopekholy sh... it's 4am
02:59:15oskopekbetter get going.. good night
03:05:34fordcarsI have a weird need for sushi right now
03:05:54raptorget up, get a drink of water, sit down - need gone
03:06:04fordcarsHah
03:06:11fordcarsIf my water has fish in it :)
03:06:27fordcarsBut seriously, I don't have sushi
03:07:00SkybaxSadness
03:20:55fordcarsraptor, is it table.insert and table:remove?
03:31:06raptorboth are dot .
03:56:31Nothing_Much has joined
04:01:09Flynnn Quit (Quit: This computer has gone to sleep)
04:07:13fordcarsraptor, can I show you something?
04:12:05fordcarsOh nevermind, but table.remove(tempArr,closestItemIndex) doesn't work (bad argument)
04:14:37raptorhi
04:14:39raptorsay what?
04:15:58fordcarstable.remove is really hating me, I haveno idea what to do
04:16:13fordcarsI keep getting: 265: bad argument #1 to 'remove' (table expected, got nil -- did you use '.' instead of ':'?)
04:16:30fordcarsWith it, and my bot goes crazy, but only in single-player games
04:16:36fordcars*single-team
04:17:19fordcarsOh, ignore 265: bad argument #1 to 'remove' (table expected, got nil -- did you use '.' instead of ':'?)
04:17:35fordcarsOk, sorry, no table problems
04:18:12raptorit means your tempArr is nil
04:18:15fordcarsBut the bot still goes crazy
04:18:29fordcarsYeah, sorry I repaired that, forgot I changed that table
04:19:22fordcarsBut my bot gets the table it needs, but its just weird
04:20:02fordcarsIt knows there is player, but it can't go to it's point and always goes left, it can't aim at the player either
04:29:25raptori'm heading to bed early, night!
04:29:43raptor Quit ()
04:37:35Skybax Quit (Ping timeout: 245 seconds)
04:39:09Skybax has joined
04:56:44Skybax_ has joined
04:57:41Skybax Quit (Ping timeout: 248 seconds)
05:05:38noneofmynickswor Quit (Quit: Leaving)
05:18:49Skybax has joined
05:20:00Skybax_ Quit (Ping timeout: 265 seconds)
05:51:07Skybax Quit (Ping timeout: 260 seconds)
05:56:43Skybax has joined
05:56:59fordcarsSkybax, you better be happy >:)
05:57:14SkybaxWhat?
05:57:15fordcarsI finally found the problem with single-team games
05:57:21SkybaxHoorah!
05:57:22fordcarsIt took around 2 hours :)
05:57:32SkybaxWas it fun? lol
05:57:36fordcarsHahaha tots
05:57:59SkybaxAwesome
05:58:07fordcarsI made the code clearer too, now I just have to find a good number for the range the bot sees other players to cloak
05:58:24SkybaxWhat was it at before?
05:58:43fordcarsUh, it was Bitfighter defined, I don't know
05:58:48SkybaxAh
05:58:51fordcarsI completely rewrote that part
05:59:36SkybaxTry, like.. 20 shiplengths lol
06:03:04fordcarsLol
06:04:37fordcarsI think I got it
06:04:49fordcarsWant to see it?
06:07:13fordcarsAnyway, uploading to forums
06:17:21fordcarsDone!
06:39:15Skybax_ has joined
06:39:33Skybax Quit (Ping timeout: 248 seconds)
06:44:54Skybax_ is now known as Skybax
06:45:04SkybaxAwesome!
06:49:26Skybaxlol wow it's even more powerful now xD it follows you even when you're cloaked! Guess I can't use that against it anymore
06:52:03SkybaxSkybot reigns supreme!
06:55:43SkybaxNow all that needs to happen is the devs need to release the next version so the bot swirly thing will be fixed x)
06:55:55SkybaxThe cloak works great
06:56:07SkybaxBitfighter just likes to teleport the bots in!
06:56:36SkybaxThanks for putting up with me and for making this awesome bot, fordcars! :D
06:58:31fordcarsWow that is true, no more hiding with cloak for you mhahahaha
06:58:55fordcarsYour welcome SKybax!
06:59:36SkybaxHahaha just crashed again xD
06:59:46fordcarsxD
07:01:47SkybaxDid anybody else ever get the crash too, or just me?
07:02:13fordcarsJust you :P
07:02:21SkybaxSweet
07:02:24fordcarsI didn't crash in 019 yet actually
07:02:53fordcarsBut is may be because of SDL
07:02:57Skybaxwat told me to download microsoft visual studios express to be able to find what's causing the crashes, but idk what to do with it
07:03:07fordcarsYeah
07:03:11Nothing_MuchHi guys
07:03:15SkybaxHiya
07:03:16fordcarsThere are some debugging tools in that
07:03:18fordcarsHi
07:03:24Nothing_MuchWhat's goin' on?
07:03:29SkybaxWell I have it lol it's been sitting on my desktop for a while now
07:03:42fordcarsSkybax, when it crashes, do you get a 0x0000873 or something?
07:04:28fordcarsSkybax, if you have Microsoft Tools, I recommend getting Bitfighter source
07:04:52SkybaxI don't know what that multiplication problem means
07:05:06fordcarsIt is the address of the command that crashed
07:05:15fordcarsIt may help to find the problem
07:05:47fordcarsI think wat or raptor may be able to figure out what went wrong with that
07:05:52SkybaxI don't get anything that tells me how or why it's crashed. I even tried opening Bitfighter in cmd so that I could getting a running log of what goes on
07:05:59SkybaxIt just stops working
07:06:02fordcarsHeh
07:06:15fordcarsDo you have time right now?
07:06:22SkybaxSure
07:06:26fordcarsOk
07:06:45fordcarsWait
07:06:47fordcars!gci
07:06:47BFLogBotGCI Students Welcome! Please see: http://bitfighter.org/wiki/index.php/GCI_Student_Bootstrap for getting started.
07:07:23fordcarsDo you have a 32 or 64 bit computer?
07:07:38SkybaxUhh.. I think it's 64.. how do I find out xD
07:07:56fordcarsUh, do you have Program Files(86x) ?
07:07:59fordcarsIn my computer
07:08:35fordcarsC:
07:08:47SkybaxYes
07:08:52Nothing_MuchYou're on 64 bit
07:08:53Nothing_Much:D
07:08:54fordcarsOk, it is 64 bit
07:08:55SkybaxBooyah
07:08:56fordcars:D
07:09:13fordcarsOk, get this: http://mercurial.selenic.com/release/windows/mercurial-2.8.1.win32-py2.7.exe
07:09:30SkybaxWhat is it
07:09:51SkybaxSays I need Python to use it
07:09:55fordcarsYeah: http://www.python.org/ftp/python/2.7.6/python-2.7.6.amd64.msi
07:10:03fordcarsHaha, it will get you the Bitfighter source
07:10:09SkybaxFancy
07:10:11fordcarsIt is not necessairy, but it will help allot
07:10:45fordcarsYou can get latest source with 1 command. If you don't trust me (>:)), http://bitfighter.org/wiki/index.php/GCI_Student_Bootstrap is pretty much what you are doing
07:11:26SkybaxI trust you xD
07:11:31fordcarsHappily you only need 3 programs
07:11:34fordcarsxD
07:11:54SkybaxMy internet is decided to be a poo and take forever to download this Python thing
07:12:02fordcarsPoo
07:12:14fordcarsAfter, you'll need this: http://www.cmake.org/files/v2.8/cmake-2.8.12.1-win32-x86.exe and you are done!
07:12:28fordcarsDownload Microsoft tools would of been the biggest thing anyway :P
07:12:44SkybaxSee that one took ten seconds
07:12:48fordcarsHeh
07:12:49SkybaxWhy is the other one taking an hour
07:13:00SkybaxIt should take fifteen seconds
07:13:01fordcarsMaybe their server was slow
07:13:15fordcarsPython is slow?
07:13:19SkybaxYes
07:13:33Skybax30 minutes to download 16 mb
07:13:43fordcarsOh poo please cancel :)
07:13:54SkybaxCancelyed!
07:14:14fordcarsOh ok never mind haha
07:14:32SkybaxWhat now?
07:14:41fordcarsWell, it might help if you restart... I thought I had given you the wrong link
07:14:55fordcarsrestart the download, not computer :P
07:15:02SkybaxI did
07:15:10fordcarsIt is downloading?
07:15:31SkybaxYes
07:15:35SkybaxFaster but still slowly
07:15:42fordcarsOk, well go make yourself a sandwich :)
07:16:24SkybaxHaha xD
07:16:30fordcarsxD
07:18:14fordcarsSkybax, did you install Microsoft Tools?
07:18:24SkybaxI'm not sure
07:18:33fordcarsAnd are they 2010 or 2013?
07:18:40fordcarsOr 2012
07:18:44SkybaxThe Visual Studios?
07:18:47fordcarsyeah
07:18:51Skybax2013
07:18:54fordcarsOk
07:19:17fordcarsAre you don downloading>
07:19:18fordcars?
07:19:32Skybax4.5/15.9
07:19:37fordcarsWhoa
07:19:40fordcarsHah
07:19:45SkybaxI took a NyQuil a little bit ago and I think the drowsyness is kicking in lol
07:20:14fordcarsHeh, after the download you can always continue another, your pretty much done anyway
07:20:16Nothing_MuchSkybax: Fight it for the moment!
07:20:28fordcarsHah
07:21:11Nothing_MuchGameJolt's pretty active, though the forums could be better (ramble)
07:22:24fordcarsYeah, I downloaded the featured game earlier
07:24:12SkybaxPython is done
07:24:23fordcarsYay!
07:24:30fordcarsIs everything done downloading?
07:24:47SkybaxYesh. I have all three things you sent me
07:24:52fordcarsIf they are, install the three programs
07:25:01fordcarsAnd then, you are done all the crap
07:27:07SkybaxIt won't let me install Python until Visual Studio is done repairing
07:27:28fordcarsWhat did you do :O
07:27:47SkybaxI opened it and it said it needed to repair lol
07:27:52fordcarsOh okokok
07:27:57fordcarsI think it did that here too
07:28:07fordcarsWindows stuff
07:28:12SkybaxYeup
07:28:42SkybaxI really wish I had a Mac haha
07:29:13fordcarsHaha
07:29:21fordcarsI am getting linux on this computer
07:29:33fordcarsI am more of a Mac Linux guy
07:29:40fordcarsBut I have Windows :)
07:29:42SkybaxI'm not smart enough for Linux
07:29:50fordcarsHehe
07:30:00Nothing_MuchSkybax: Use Ubuntu, that's easy to use :D
07:30:05fordcarsYeah
07:30:05SkybaxI'm a Mac guy but I have Windows because I didn't have enough money to get a Mac that could do what I wanted it to lol
07:30:19fordcarsLol
07:30:36SkybaxBut I got this Dell Inspiron that can run every game I can throw at it for only $700
07:30:51fordcarsWhoa
07:31:03Nothing_MuchNice dude
07:31:13fordcarsI got this new laptop as a gift, getting Linux soon
07:31:14Nothing_MuchPut Ubuntu on that thang yo
07:31:21fordcarsI have Windows 8 :x
07:31:21SkybaxxD
07:31:29SkybaxI have Windows 8.1
07:31:35fordcarsMe too :)
07:31:47fordcarsGood looking, but it's still Windows
07:31:51SkybaxA lot of people don't like it but I think it's cool
07:32:10fordcarsHehe, pressing on the Windows Button
07:32:24Nothing_MuchWindows 8 is okayish
07:32:27SkybaxEveryone complained about not having a "Start" button on the bottom left so with the .1 update they put the Windows button there xD
07:32:41fordcarsxD yeah
07:32:44fordcarsIs it done "repairing"?
07:32:51SkybaxAlmost halfway
07:33:14SkybaxThe problem is, now I have way too many games
07:33:31Nothing_MuchOh man
07:33:37SkybaxBack when I had a Mac, my gaming was limited, but I still always had something to play
07:33:43fordcarsHah I barely have any, I don't have allot of bandwith for Internet
07:33:45SkybaxNow I have like 200 games and I can never decide what to do
07:33:58fordcarsI have 3 I think haha
07:34:18SkybaxI have 175 of 682 gb free
07:34:21SkybaxMost of it is games
07:34:30fordcarsHeh
07:34:57Skybax158 of them are Steam games
07:35:00Nothing_MuchI wish most games were on Linux :(
07:35:16Nothing_MuchSteam games included
07:35:16SkybaxAlmost every Humble Bundle game is on Linux too
07:35:38fordcarsNothing, they are getting there
07:35:41fordcarsYeah
07:36:04fordcarsNothing, get Overgrowth NOW
07:36:08SkybaxI'm actually selling game files haha and most of them are available for Linux
07:36:08Nothing_MuchOvergrowth?
07:36:09fordcarsIt is awesome
07:36:09Nothing_Muchwuts dat
07:36:17fordcarshttp://store.steampowered.com/app/25000/
07:36:23Nothing_MuchSkybax: What do you mean game files?
07:36:41fordcarsSaves?
07:36:57Nothing_MuchWait, how do you sell that stuff?
07:37:05Nothing_Muchfordcars: type "not" then hit tab :)
07:37:13SkybaxThe internet
07:37:17fordcars:) I always forget
07:37:24Nothing_Muchno like
07:37:29Nothing_Muchare you making money?
07:37:30Nothing_Mucho.o
07:37:44SkybaxI haven't yet haha
07:37:49SkybaxBut look http://seattle.craigslist.org/oly/vgm/4274444355.html
07:38:13SkybaxI have steam codes, steam games in my steam inventory, and just game files
07:38:22Nothing_MuchUh
07:38:33Nothing_MuchYou realize that most games on Steam require you to buy them right?
07:38:39Nothing_MuchBecause like
07:38:47SkybaxYou can sell steam codes
07:39:02Nothing_MuchWhen you put the game files in the Steam folder, you have to verify that you bought the game
07:39:11Nothing_MuchYeah I know about the steam codes
07:39:15SkybaxThe game files aren't steam compatible lol
07:39:24Nothing_MuchOh really?
07:39:33Nothing_MuchWell, that's interesting
07:39:39Nothing_MuchThat's also illegal lol
07:39:49SkybaxShhhh
07:39:51fordcarsI think he is selling non steam games
07:39:53fordcarsLol
07:40:06Nothing_MuchYeah, I'm not supportive of that dude >.>
07:40:31fordcars<.<
07:40:32Watusimoto has joined
07:40:33fordcars>.>
07:40:39fordcars^.^
07:40:40Skybax<.<
07:40:42Nothing_Muchv.v
07:40:43fordcarsv.v
07:40:46Nothing_Muchapsodfhja
07:40:56fordcarsHi watusimoto!
07:41:02fordcars*Good morning
07:41:06Nothing_MuchHi wat
07:41:18Nothing_MuchSkybax: pm'd ya
07:42:17fordcarsSkybax, is it done?
07:44:34SkybaxLike 3/4 of the way
07:44:48fordcarsGoood
07:44:58vs73nxWatusimoto: hi
07:45:47Watusimotohi all -- I'm on my way out the door to work; I can chat a little in about an hour if that's ok
07:46:00vs73nxok
07:46:21fordcarsSure
07:47:27fordcarsSkybax, I have to go :(((((( When you are done installing everything, wait until tomorror or follow
07:47:31fordcars!gci
07:47:31BFLogBotGCI Students Welcome! Please see: http://bitfighter.org/wiki/index.php/GCI_Student_Bootstrap for getting started.
07:47:42fordcars*tomorrow
07:48:28fordcarsSo, night guys!
07:48:33fordcars Quit (Quit: Page closed)
07:48:38SkybaxOkay
07:48:39SkybaxNight!
07:48:55Nothing_MuchL8r ford
07:51:31Watusimoto Quit (Ping timeout: 260 seconds)
08:10:07LordDVG has joined
08:19:49Skybax Quit (Ping timeout: 248 seconds)
08:40:35watusimoto has joined
08:40:35ChanServ sets mode +o
08:40:52Nothing_Much Quit (Remote host closed the connection)
08:41:13watusimotohi
08:46:31oskopekhello
08:55:42vs73nxok im back
08:56:07vs73nxWatusimoto: i need you help to finish my code off
08:56:13watusimotohi
08:57:47vs73nxim having problems with inheritence and polymorthism
09:01:54watusimotook
09:02:44vs73nxjust let me make a pastie to fully explain the problem
09:10:30vs73nxhttp://pastie.org/8605956
09:12:24vs73nxWatusimoto: ok, so i have my class LevelSource, and i return a subling of LevelSource EG: FileListLevelSource. my dilema is with calling a function :EG newLevelSource->loadLevels(folderManager);
09:13:16vs73nxthe function is present in both levelsources but the compiler thinks that i want to call a function in LevelSource
09:13:57watusimotosorry -- which two classes is that function in?
09:15:08vs73nx]look in the pastie
09:15:14watusimotoI see it
09:15:18vs73nxFolderLevelSource and FileListLevelSource
09:15:33vs73nxboth of which are subclasses of LevelSource
09:15:43watusimotothat code should work
09:15:48vs73nxit doesnt
09:16:16watusimotoso when you say the wrong function is running, which one is running, and which do you expect to be running?
09:16:35vs73nxerror: ‘class Zap::LevelSource’ has no member named ‘loadLevels’
09:17:17watusimotook, does LevelSource have a function called loadLevels?
09:18:07vs73nxLevelSource *newLevelSource = GameSettings::chooseLevelSource(levelList, str); returns a subclass, both of which have LoadLevels but yet newLevelSource still points to LevelSource
09:18:23watusimotoyes, it will point to LevelSource
09:18:26vs73nxLevelSource doesnt have loadlevels
09:18:33vs73nxok then...
09:18:37watusimotothink of LevelSource as an interface
09:18:42watusimotothat the other two classes implement
09:18:48watusimoto(in Java terms)
09:19:12vs73nxok
09:19:18watusimotoso in this case, it sounds like you need to add a loadLevels function to the interface; i.e. to LevelSource
09:19:33vs73nxa virtual function?
09:19:37watusimotomake sure you use the exact signature that the child classes use, and make sure to use the keyword virtual
09:19:38watusimotoyes
09:19:51watusimotoif it is not virtual, the children will not override it
09:20:18watusimotoin this case, you can make it "pure virutal" by adding the = 0; to the end, which means that all children will need to implement it.
09:20:42watusimotothis will probably create an error with the other LevelSource child class, but you can add a dummy implementation to that one.
09:21:24vs73nxok i got further now...
09:21:38vs73nx/home/vs73nx/development/eclipseProgs/c++/vs37nx-bitfighter-dev/zap/GameSettings.cpp:498:37: error: cannot call member function ‘std::string Zap::GameSettings::getString(CmdLineParams::ParamId)’ without object
09:21:38vs73nxif(GameSettings::getString(USE_FILE) == "")
09:21:38vs73nx^
09:22:14watusimotois getString declared as a static function?
09:22:29watusimotoif not, you'll need to call it with a GameSettings object
09:22:39watusimotosettings->getString()
09:22:51vs73nxoh
09:22:55vs73nxwhoops
09:23:28vs73nxbut this is in GameSettings.cpp
09:23:46vs73nxso i can just do getSTring
09:23:52vs73nx*getString()
09:23:57watusimotomaybe; try that
09:24:09vs73nxno
09:24:13vs73nxi cant
09:25:54watusimotoI see the problem
09:26:05watusimotochooseLevelSource is not a member of GameSettings
09:26:14watusimotoit is in the file, but it's just a loose static function
09:26:21watusimotoyou need to add GameSettings::chooseLevelSource()
09:26:33watusimotoif you want it to be able to access member functions like getString
09:26:43vs73nxahh
09:26:53vs73nxoh dear
09:26:56vs73nxyour right
09:27:32watusimotothese details can be tricky and easy to overlook, but are also quite important!
09:27:52watusimotoyou'll learn after you make this mistake 100 times, as I have
09:29:31vs73nxok i have a function GameSettings::isUsingPlaylist() yet it still complains about cannot call member function ‘std::string Zap::GameSettings::getString(CmdLineParams::ParamId)’ without object
09:30:12watusimototry adding a this-> in front of the function (don't leave it in, but it might help you find the problem in the short term)
09:30:36vs73nxok
09:30:59vs73nxerror: ‘this’ is unavailable for static member functions
09:31:17vs73nxisUsingPlaylist and chooseLevelSource are static
09:31:33watusimotook, then you need an actual settings object; or make them non-static
09:32:14watusimotoprobably better to go the non-static route
09:33:09vs73nxyeah made them non static
09:35:19vs73nxis there a gameSettings object that is acessable in gameConnection?
09:36:28watusimotocan gameConnection access a game object? that's where the settings are, I think
09:36:47vs73nxdont know
09:37:48watusimotolook for getgtame() or mGame... those are the usual places
09:38:44watusimotoor try mServerGame
09:38:53vs73nxgameConnection has mClientGame and mServerGame
09:39:00watusimotoalso see if it has a mSettings
09:39:09watusimotosometimes the settins are stored there
09:39:34vs73nxit does
09:39:39watusimotook, use that
09:40:07watusimotoalso, for the moment, please add a TNLAssert(mSettings, "Settings should not be NULL!"); line in there somewhere, just to be sure
09:40:07vs73nxwatusimoto: hmm
09:40:13vs73nxZap::GameSettingsPtr Zap::Game::mSettings’ is protected
09:40:30watusimotoso?
09:40:52watusimotoyou are in the same class, right? you don't need external access
09:41:43vs73nxyes i am
09:41:54vs73nxim working in GameConnection
09:42:06watusimotothen it should be no problem
09:42:28vs73nx'but there is D:
09:43:18vs73nxhttp://pastie.org/8606028
09:43:27vs73nx^ Full compile time srror
09:43:30vs73nx*error
09:44:24watusimotobtw, get rid of the == true; it's totally unnecessary (though harmless)
09:44:54vs73nxah
09:44:59vs73nxdone
09:45:14watusimotoso what is the fundamental problem with the compiler error?
09:45:24watusimotowhat is it telling you?
09:45:53vs73nxim accessing a member of Game.h, which is protected...
09:46:12vs73nxthat member is mSettings
09:46:37watusimotoright; why are you accessing a "remote" copy of mSettings? why not use the copy on the local object?
09:46:57vs73nx?
09:47:19watusimotoGameConnection has its own mSettings
09:47:34vs73nxoh
09:50:14vs73nxok it works
09:50:25vs73nxjus tsome small compile time errors that i can fix
09:50:39watusimotogood
09:53:06oskopekwatusimoto: how can I get/set all possible position data of a GeomObject? using getPos() only returns the one Point for PolyLines, f.e... would getVert() work?
09:53:53watusimotoin the editor, you mean?
09:53:57oskopekyes
09:54:26vs73nxoh a big implementation problem...
09:55:00vs73nxparseLevelLine requires pointers to Game and gameObjectDatabase.
09:55:27vs73nxbut wherever getFilePlaylist is called i dont have access to those pointers.
09:55:27watusimotooskopek: not sure, but you can look at other functions that move objects to see... take a look at translateSelectedItems (I think that's what it's called)
09:56:29oskopekwatusimoto: oh me, stupid.. yes, they use getVert.. thanks
09:57:57watusimotovs73nx: where are you talking about? Your code will be called in the same context that the folderPlayList code is called, and that needs to do fundamentally the same thing as what you are doing. How does folderPlayList solve the problem?
09:59:46vs73nxgetFilePlaylist() is called in gameConnection, and GameSettings... i can get the pointers in gameConnection but not in gameConnection
10:02:30watusimotoI'm a bit confused. did you write getFilePlaylist?
10:02:43vs73nxyes
10:03:02watusimotook, and what does it do?
10:03:05vs73nxalso where can i get a pointer to game in GameSettings
10:03:07vs73nx?
10:03:55watusimoto>>> where can i get a pointer to game in GameSettings <<< you should know that :-) You were getting an error trying to use it not 10 minutes ago!
10:04:09watusimotooh wait, no you weren't
10:04:10watusimotosorry
10:04:14watusimotoI am confused
10:04:17vs73nxit reads the filename from -usefile, and then it reads the file using getFilePlaylist(). next it checks that each filename ends in .level
10:04:26watusimotoyou probably can't get one in gameSettings
10:04:31watusimotounless you pass one one
10:05:04vs73nxoh
10:05:23vs73nxi need to pass getFilePlaylist a pointer to Game
10:05:38watusimotowhy do you need game in order to check if the filenames end in .level?
10:06:27vs73nxno
10:06:37vs73nxi need game to call getFilePlaylist
10:06:56vs73nxwhich needs game to call parseLevelLine
10:07:36watusimotoI'm a bit lost... the fundamental answer is if you need game in GameSettings, you'll need to pass one in.
10:08:12vs73nxoh i get it
10:08:21vs73nxgetPlaylist(Game *game)
10:12:38vs73nx Quit (Changing host)
10:12:38vs73nx has joined
10:16:03vs73nxanother erro
10:16:10vs73nx*error
10:16:13vs73nx/home/vs73nx/development/eclipseProgs/c++/vs37nx-bitfighter-dev/zap/GameSettings.cpp:519:92: error: cannot convert ‘Zap::LevelSourcePtr {aka boost::shared_ptr<Zap::LevelSource>}’ to ‘Zap::LevelSource*’ in return
10:16:13vs73nxreturn LevelSourcePtr(new FolderLevelSource(getLevelList(), getFolderManager()->levelDir));
10:16:49vs73nxnvm
10:28:43vs73nxalso where would i get a pointer to Game in main.cpp?
10:30:21vs73nxnvm
10:35:42LordDVG Quit (Remote host closed the connection)
10:42:22vs73nxwatusimoto: ive gottem much closer now...
10:42:35watusimotoyou'll get there!
10:43:11vs73nxive got some new errorws though
10:43:12vs73nxhttp://pastie.org/8606145
10:44:55watusimotonot sure, but it looks to me like some stupid syntax error or something simple
10:45:15vs73nxi think its a stupid error aswell
10:45:38vs73nxbut its late at night so i cant even see startight :)
10:45:43vs73nx*straight
10:46:54watusimotothen go to sleep and revisit it when you are rested
10:46:58watusimotoseriously -- that works!
10:47:04vs73nxi cant
10:47:10vs73nxGCI finishes tom morrow
10:47:17vs73nxso i need to finish it
10:47:30watusimotoif you are close, we'll give you credit and you can finish after the deadline
10:47:47watusimotoyou are hardly the first person to be in this position
10:48:33vs73nxand hey, next year ill be ready to complete tasks in a jiffy
10:48:52vs73nx* read win GCI
10:48:55watusimotoso I would recommend getting some sleep and taking a fresh look tomorrow
10:49:20vs73nxok
10:49:42vs73nxwill i still be able to submit it for GCI tomorrow?
10:49:47watusimotowe have several projects that won't be finished by the deadline
10:50:13vs73nxoh
10:50:28watusimotowe had several last year as well
10:52:03vs73nxok
10:52:09vs73nxbefore i leave...
10:52:47vs73nxin GameSettings i made a few helper functions...
10:53:25vs73nxgetPlaylistFile(), which returns the filename of the playlist file...
10:54:00vs73nxbool isUsingPlaylist(), which im pretty sure you can guess what it does...
10:54:42vs73nxgetlevelLoc(), which if isUsingPlaylist() calls getPlaylistFile(),
10:55:11vs73nxand will otherwise return getFolderManager()->levelDir;
10:55:37vs73nxand thats it
10:55:47vs73nxand with that... goodnight everyone
10:56:08watusimotook, sounds good. good night!
10:56:26vs73nx Quit (Quit: bedtime!)
11:06:59oskopekwatusimoto: using getVert, setVert I'm now able to undo moving/transforming walls.. the problem is, only the vertices get moved, not the "wall object" (blue box surrounding vertices).. I've been looking at the translateSelectedItems method for half an hour now, and can't get it to work no matter what I do..
11:07:49oskopekhttp://fpaste.org/66077/00645113/ this is the method I use for setting vertices back..
11:07:57oskopekmoving normal objects works just fine
11:07:57watusimotoah yes, walls are a bit of a strange case
11:08:05watusimotoso the vertices move, but the outline does not
11:08:11watusimotoyou need to rebuild the wall outlines
11:08:28watusimotothere is some code int here to do that
11:08:57oskopekdatabase->getWallSegmentManager()->recomputeAllWallGeometry(database); ?
11:09:23watusimotorebuildEverything() will definitely work, as will recomputeAllWallGeometry
11:09:34oskopekok, thanks, I'll try that
11:10:08watusimotoactually, rebuildEverything probably calls recomputeAllWallGeometry()
11:10:15oskopekyes
11:10:21oskopekthat's where I found it
11:10:38watusimotoprobably better to use rebuildEverything()
11:10:45oskopekok
11:10:57watusimotowalls are ugly complex things
11:11:15watusimotowhen you think about it... you have the body of teh walls, and the outlines that all need to merge together nicely
11:11:17vs73nx has joined
11:11:37watusimotothey are not like other objects that pretty much stand alone
11:11:59vs73nxwatusimoto: before i REALLY go can you please give me an extensoin on my task?
11:12:08watusimotoI think I did
11:12:30oskopekvs73nx: I don't think it'll help if GCI ends in about 5 hours
11:13:01vs73nxapparently i can finish it after GCI
11:13:05watusimotowell, eitehr way, don't worry about that.... you focus on finishing the task, and we'll take care of interfacing with GCI
11:13:23watusimotowe're not going to mark you as incomplete when you are this close
11:13:32oskopekyeah, I've noticed.. half the code of the Editor has something to do with fixing walls
11:13:43watusimotowalls are a real pain
11:13:50oskopekit still doesn't work :/
11:13:56watusimotoevery time you move one, it affects everything else
11:15:03watusimotoso even after running rebuildeverything the outlines do not match with the vertices?
11:15:36oskopekno, they didn't
11:15:37vs73nxok then, see you all later!
11:15:45oskopekbye
11:15:55vs73nx Quit (Client Quit)
11:15:58watusimotois everything in the same database?
11:16:57oskopekwell it should be..
11:37:33Nothing_Much has joined
11:38:52watusimotooskopek: the walls in question must be in a different database somehow, otherwise rebuildeverything would work
11:38:55oskopekit is, mDatabaseId stays the same after all moves
11:40:29oskopeki'll do one more test just ot be sure
11:41:30oskopekDB_ID: 8
11:41:30oskopekWALLS_DB_ID: 8
11:41:30oskopekWALLS_DB_ID_BF: 8 definately the same db..
11:42:11oskopekif I move the wall
11:42:13oskopekthen undo
11:42:21oskopekthe outline stays in place
11:42:28oskopekand I can "move" the outline again
11:42:37oskopekand then it resnaps to where it should be
11:43:36yomanurock has joined
11:43:58yomanurockwasatimotu: are you there?
11:44:36watusimotoyes
11:44:51yomanurockim working on the copy/paste
11:45:08yomanurockcould you tell me where to implement my function?
11:46:57watusimotoyou can replace the current copy/paste functions with your new ones
11:47:15watusimotoso when you copy, it goes to the clipboard, and when you paste, it comes from the clipboar
11:47:41yomanurockbut wont it work if i switch names?
11:47:51yomanurock(of the functions)
11:48:06watusimotoright now, when you hit ctrl+c, copySelection() runs
11:48:16watusimotoyou can change it to run your copy() function
11:48:37watusimotoor replace the existing copySelection with your copy fn
11:48:43yomanurockyes, but if i just switch the names of the functions (new and old), wont that work?
11:48:52watusimotoit might
11:49:20watusimotoso have you actually tested your code?
11:49:30yomanurockit builds without errors
11:49:45watusimotoyes, but does it work?
11:50:55yomanurockwhen i start the binary, it says --
11:50:55watusimotoI need to go to a meeting... I just wanted to ask you to be sure to test the code before you resubmit
11:51:01watusimotoI'll be back in a bit
11:51:05yomanurockk
11:51:48yomanurockbye :)
11:55:16yomanurockcan anyone else help me?
11:55:29yomanurockwhen i run the binary, it says --
11:55:31yomanurockhttp://pastie.org/8606288
11:55:50yomanurock(it says so from the first time i built the binary)
12:02:01Platskies Quit (Ping timeout: 246 seconds)
12:06:40oskopekyomanurock: do you have SDL2 installed? you need it in order to complete the copy/paste task
12:06:58yomanurockyes i do have SDL2 installed
12:07:35oskopeknot sure here, but did you link it correctly?
12:08:11yomanurockyes i did
12:08:37yomanurockoh sorry, had to install some more libraries for video support
12:08:41yomanurockworks now
12:09:09oskopekwhat platform are you on?
12:09:23yomanurocklinux (fedora 17)
12:09:47oskopekif you added any dependencies, you should probably include them in the README
12:10:16yomanurockdo you know how to implement (and where to implement) my functions?
12:13:28yomanurock?
12:14:34watusimotoyomanurock: that assert happened inside shutdownBitfighter(). How did you get there? i.e. did the game start and then you quit?
12:15:58yomanurockno
12:16:42watusimotothen you probaby got there because the video system did not initialize
12:16:54yomanurockbut could you tell me where to implement my new functions?
12:17:08watusimotoin uieditor
12:17:22watusimotoyou implemented them in the right place, I believe
12:17:31yomanurocki have implemented them in uieditor
12:17:53watusimotogood. that is the right place
12:17:57yomanurockbut you asked how to test them
12:18:22watusimotoI did
12:18:44watusimotoYou don't call them from anywhere, so I didn't see a way to test them
12:18:49yomanurockfor that purpose, i will have to call the function somewhere
12:18:54oskopekjust remove the old copySelection() function and rename your new one to copySelection()
12:19:04watusimotoyes
12:19:10watusimotoexactly
12:19:20yomanurockbut raptor told me to add a new function, not to remove the old
12:19:59yomanurockand also, in my changes, i have switched names of the two functions
12:20:02yomanurock(new and old)
12:20:11yomanurockso, it has already been called
12:20:28watusimotohowever you do it, you want to call you copy function when the user hits ctrl+C
12:20:34yomanurockk
12:20:45yomanurockso, will removing the old one work?
12:20:50yomanurockor do i just rename it
12:21:14yomanurockor i can even commentit
12:21:28watusimotoeither your function needs to be called copySelection() or the ctrl+C handler needs to call copy()
12:21:35yomanurockk
12:21:56yomanurockso ill just rename the old one as copySelection_old()
12:22:03yomanurockand the new one as copySelection()
12:23:28watusimotothat will work. You can just delete the old function
12:23:47watusimotowhen yours works, we won't need it anymore
12:23:57Platskies has joined
12:24:55yomanurock_ has joined
12:25:11yomanurock_ has left #bitfighter
12:26:20yomanurock Quit (Ping timeout: 240 seconds)
12:27:00yomanurock has joined
12:28:23Darrel Quit (Read error: Connection timed out)
12:29:08Darrel has joined
12:29:14yomanurockwatasimotu, could you review my task?
12:31:23oskopekdoes TNL vector handle deleting pointer on .erase()?
12:34:33watusimotoyomanurock: I can't do it right now, but can look when I get home later
12:34:43watusimotodoes it work?
12:35:11oskopekyomanurock: I can help you test it if you want
12:35:30watusimotothanks oskopek!!
12:35:39oskopekno problem
12:35:42watusimotoit should be easy to test
12:39:32oskopekyomanurock: do you have link to you clone?
12:41:45yomanurockwait a sec...
12:42:27yomanurockhttp://code.google.com/r/mjuvekar0-googleci/source/checkout
12:43:43oskopekdid you try it out? or are you still getting that SDL error?
12:45:16yomanurockstill getting the sdl error
12:45:21yomanurockbut im sure it works
12:45:36oskopekyou should resolve the error and test it first, probably
12:45:50yomanurockwill
12:45:59yomanurockbut could you test first?
12:46:16LordDVG has joined
12:46:29oskopekI will, but before you submit anything, it's good practice to test it first
12:47:54yomanurockk thx :)
12:49:35yomanurock has left #bitfighter
12:50:27watusimotooskopek: one idea I had for testing whether or not your walls are in the right place is to delete everything from the database and see what still draws. If only your stuff (or only other stuff) still draws, you'll know you have a problem.
12:51:16oskopekwatusimoto: good idea, I'll try that
12:51:31yomanurock has joined
12:52:21yomanurockoskopek: did you say anything when i was gone (had to reboot for some installation)
12:52:22watusimotoalso, you could hae rebuildEverything print the address of the database it is using, and see if it is different after you call it as opposed to when you do something like add a wall
12:52:41yomanurockif you did, could you repeat?
12:52:58oskopekyomanurock: nope
12:53:13yomanurockdoes the code work, or are you still testing?
12:53:26watusimotoyomanurock: for the record, we log this channel, if you ever want to see what has been written in your absence. The logs are at bitfighter.org/irclogs
12:53:35oskopekwatusimoto: ok, even simpler
12:53:56yomanurockwasatimoto: thx
12:55:23oskopekwatusimoto: the pointer address, right?
12:55:27watusimotoyes
12:55:36watusimotouse %p with printf or logprintf
12:57:38Platskies Quit (Quit: Platskies)
13:01:55watusimotook, back in a while
13:03:29oskopekwatusimoto: it's definately the same DB
13:08:55oskopekI'll push what I have.. I'm starting to get lost.. the only (hopefully) things that don't work so yet are: moving wall outlines, undoing a deleted object (should be easy to fix, the pointer is deleted somewhere probably) and a similar problem with "overwriting history" (when you do an action, undo, do a different action, and then undo) -- the references to the deleted objects are being kept in the UndoAction, I need to remove them somehow from
13:08:55oskopekthere.. (answered two of my questions just by writing them down, again)
13:09:15oskopekyomanurock: you have a build error
13:09:23yomanurockwhat does it say?
13:09:33oskopek/home/oskopek/gci/bitfighter/mjuvekar0-googleci/zap/UIEditor.cpp:69:27: fatal error: SDL_clipboard.h: No such file or directory
13:09:33oskopek#include <SDL_clipboard.h>
13:09:50oskopekyou need to look at cmake
13:10:06yomanurockoskopek, do you have libsdl and sdl (2)?
13:10:11oskopekyou didn't add SDL2 as a dependency
13:10:21yomanurockwhere do I add it?
13:10:23oskopekcmake didn't fail
13:10:25oskopekit should
13:10:30oskopekCMakeLists.txt
13:10:39yomanurockk
13:10:43yomanurockwait...
13:10:49yomanurockwhich CMakeLists?
13:11:22oskopek./CMakeLists.txt
13:11:36oskopekproject folder
13:11:46yomanurockit says that sdl2 is default
13:11:54oskopekyes, not sure which library the header is in, thought
13:12:24yomanurockgot it, if sdl2 is not there, it finds sdl (1)
13:12:40yomanurockso, do i just delete the place where i find sdl1?
13:13:35oskopekyou should enforce SDL2 somehow
13:14:13yomanurockanyways, got to go, bye!
13:14:15yomanurock has left #bitfighter
13:17:58oskopekoh, too late
13:18:08oskopekjust change the import to SDL2/SDL_clipboard.h
13:51:01YoshiSmb has joined
14:01:42YoshiSmbsam...
14:49:03YoshiSmbtrying to learn to create a bot: http://pastie.org/private/eplz1xgkvb03xms8wcug
14:58:46watusimotodoes it work?
14:59:48YoshiSmbyes
14:59:54watusimotoexcellent!
15:00:08YoshiSmbhttp://bitfighter.org/forums/viewtopic.php?f=12&t=2201
15:09:44sam686YoshiSmb have a problem not being able to open console with ctrl+/, because his keyboard / button is shift+7, there is no / without shift on his keyboard
15:09:46oskopekwatusimoto: I'm hitting a weird thing here, do you have 2 minutes?
15:11:04watusimotothat's an interesting problem! in 019a he'll be able to remap it
15:11:27watusimotooskopek: did you make any progress
15:11:47watusimotosam686: in my office, we have at least 4 different keyboard layouts around
15:12:16oskopekyes.. I've almost fixed the history rewriting problem, but the thing is
15:12:22oskopekimagine the following:
15:12:26oskopekI add an object
15:12:29watusimotobelgian, german, french, american, possibly a swiss or two, but not sure
15:12:32oskopekI add another one
15:12:40oskopekI undo the last object
15:12:47oskopekand then add a new one
15:12:57watusimotook
15:13:09sam686yoshiSMB said he can type the following with keyboard: ºª!"·$%&/()=?'¡¿`+^*Ǩ_:;<>{}[]€\|@#~€¬
15:13:13oskopekso, the 2. object gets erased completely, even from the UndoAction
15:13:22oskopekbut another object appears
15:13:28oskopeka 4th one
15:13:31watusimotosam686: so YoshiSmb can help us test the abilities of the keyboard remapping
15:13:45oskopekand I'm clueless as to guess from where
15:13:49watusimotooskopek: yes, correct
15:14:02watusimotowell, except for the 4th one
15:14:31watusimotoI think you should have 2 objects at the end of your sequence, plus the deleted object
15:14:52oskopekyes, exactly
15:15:06oskopekbut in the debug, a fourth object appears in the db
15:15:10watusimotoso what is the 4th one? i.e. what kind of object?
15:15:33oskopekI dunno, how do I'll print it's type
15:15:34watusimotoif you think it is a copy of one of the other 3, you can create 3 different objects in your sequence, and see which the 4th is
15:15:53watusimotogood qustion
15:16:59watusimotoI think there is a string in the root Object (in TNL) that might have what you need
15:18:13watusimotoTry getClassName
15:18:35watusimotoalso getTypeNumber returns a number you can look somewhere to see what class it is
15:18:47watusimotobut getClassName is probably easier
15:19:02watusimotousually I tell what an object is by inspecting it in a debugger, but printing is probably easier
15:20:59oskopekI'm kind off lost in gdb
15:21:06watusimotoI understand
15:21:56sam686does not look like you could remap / ctrl+/ from bitfighter.ini at all
15:22:11sam686also, ctrl+/ could happen in-game, hosting.
15:22:36Watusimoto_ has joined
15:23:35watusimototrue
15:25:34YoshiSmbback, Watusimoto: does the 'Idler' work?
15:25:51watusimotoI don't know -- I didn't try it
15:26:01watusimotobut if it works for you, then it works
15:27:23sam686I said it to YoshiSmb (in a mess of long chat in pm) that it worked from http://pastie.org/private/eplz1xgkvb03xms8wcug
15:27:34sam686the bot basically do nothing after 3 lines of chat
15:28:29YoshiSmbwell, i change it on now.
15:28:45YoshiSmb(just when i post the code on the forums)
15:30:25sam686even the one in the forum works http://bitfighter.org/forums/viewtopic.php?t=2201
15:35:45oskopekwatusimoto: fixed!!!
15:37:56watusimotoexcellent!!!
15:43:35LordDVG Quit (Remote host closed the connection)
16:07:54koda has joined
16:08:30oskopekwatusimoto: but, I've found even more errors :/
16:10:38watusimotoof course!
16:11:00watusimotoyou are doing complex stuff; I'd be amazed if you didn't
16:12:20oskopekI'll let it be for today
16:22:57watusimotook. also don't worry too much about the end of gci
16:23:10watusimotoI think you are pretty close, so we'll take care of the project from the gci end
16:23:24watusimotojust be sure to finish it :-)
16:26:53Flynnn has joined
16:26:57oskopekwatusimoto: I will for sure, after all that work
16:27:14watusimotoI know you will :-)
16:27:31watusimotoactually, your task is one of my favorites, so I hope we get it to work!
16:29:25oskopekI have a lot of school stuff coming up :/ leaves less time for the fun stuff
16:29:39Flynnn Quit (Client Quit)
16:44:50watusimotono worries
16:47:17Watusimoto_ Quit (Ping timeout: 265 seconds)
16:55:35raptor has joined
16:55:35ChanServ sets mode +o
16:56:16raptorgood day!
16:56:57koda Quit (Ping timeout: 265 seconds)
17:06:22sam686my apartments kitchen sink is clogged again (since about 6 months ago), tried using toilet plunger only to have the water turn black. Bathroom sink is fine.
17:06:33raptormine did the same think
17:06:41raptorcontinue using the plunger
17:06:49raptoruntil it drains
17:07:10sam686The worst problem is, if I hear up stairs kitchen sink drain, our kitchen sink gets more water and can overflow like it almsot did 6 months ago
17:07:21raptorblech
17:07:23sam686the up stairs is a different apartment, though..
17:07:28raptorls
17:10:06sam686I guess toilet plunger won't work in my case, all the water will only be pushed into up stairs, though not quite enough for water to reach the up stairs sink.
17:10:35raptoryou should tell them to plug their sink while you try to fix yours...
17:10:55sam686already told some apartment people, they may later try fixing it
17:11:14raptorin my experience - the toilet plunger *always* works, you just have to be dedicated and smart about it
17:11:56sam686its too cold outside, and to get from one apartments to another requires going outside..
17:12:03raptorhaha
17:12:12raptoroh yeah - you guys have really cold winters
17:12:34sam686its like -20 F outside right now in sioux falls, SD.
17:12:45raptorBBRrrrrrrrr
17:14:09sam686toilet plunger trick may work, if the clog is closer to my sink, which appears not..
17:14:37raptoroh? then that may be a problem...
17:14:39sam686and I don't know how many sinks are effected too..
17:15:53YoshiSmb Quit (Ping timeout: 272 seconds)
17:17:48sam686My internet had heavy dropped packets on the sending direction yesterday, but I think I now fixed it myself by removing a cable splitter, which appears to give better signal to my cable modem..
17:18:25sam686it was about, 30% dropped packets, now its more like 0.1% dropped packets..
17:19:01watusimotosam686: get a plumber's snake
17:19:43sam686I don't have it, and rignt now, my apartment people will try to fix it later today or tomorrow..
17:19:43watusimotoit will fix your sink better than a plunger would
17:19:48watusimotook
17:19:53watusimotothey'll use a snake
17:20:20watusimotoI bought a cheap plastic one for like $3 that I keep in my bathroom, and have a couple of others
17:20:36watusimotoincluding one badass momma I used to clear a plugged street drain in front of my house
17:20:49watusimotowith mixed success
17:21:08sam686another problem, I shouldn't use dish washer machine as they drain straight into sink's drainage, and can also overflow kitchen sink if clogged.
17:21:17watusimotoyuck
17:21:33sam686and my disk washer is full of dirty dishes..
17:22:19sam686bathroom kink and toilet is ok and isn't clogged, so I can use that for water/cleaning if needed..
17:22:55watusimotowash your dishes in that toilet
17:23:02watusimotojust stick them in and flush
17:23:08watusimotoit's just as good
17:23:22sam686or I can use bathroon sink, that good.
17:23:37watusimotoyou need the flushing action to really get the dishes clean
17:24:27sam686it could use so much water from flushing so many times, and having to wait a minute for toilet to be ready for another fluch
17:25:51sam686and it isn't good for small items like fork,spoon, risk of losing them in the toilet drain.
17:26:12watusimotoput them together in a sock
17:26:19watusimotothat should help
17:26:21koda has joined
17:26:28sam686well then dirt gets trapped inside a sock..
17:26:43raptoror get a dog...
17:27:08watusimotothen the dog can do the flushing!
17:27:12watusimotoperfect!@
17:33:12sam686any updates to improvement contest?
17:35:27raptoryes, i've been doing that this morning - post is almost done
17:38:35Flynnn has joined
17:43:21Flynnn Quit (Ping timeout: 265 seconds)
18:05:05BFLogBot Commit: 3d90b3d1b640 | Author: sam8641 | Message: Fix crash while punching through firewall, fix page up/down crash in server browser
18:05:06BFLogBot Commit: 662c1e164ebf | Author: sam8641 | Message: Fix lua_getScore/lua_getRating was always returning zero
18:05:53fordcars has joined
18:15:25fordcars Quit (Quit: http://www.kiwiirc.com/ - A hand crafted IRC client)
18:16:25thread_ has joined
18:17:46raptornew maps up
18:17:52thread_whooo!
18:31:57raptorvoting up
18:42:10watusimoto Quit (Ping timeout: 245 seconds)
18:52:55LordDVG has joined
19:00:42Flynnn has joined
19:01:01Watusimoto has joined
19:10:25Darrel Quit (Read error: Connection reset by peer)
19:10:39LordDVG Quit (Remote host closed the connection)
19:16:40Watusimotoraptor: this specify teams in the robot file turns out to be enormously complex to implement correctly
19:17:42Watusimotothank goodness we have some testing implemented to make it easier to figure out when things are broken
19:18:34raptorhuh
19:20:57Watusimotowhen a client normally joins, it is assigned to the smallest team]
19:21:02Watusimotonot so with a robot in the level file
19:21:16raptorah yes, that bug
19:22:10Watusimotoand when you add players to an autoleveled game, you need to count some robots as if they were humans for the purpose of determining how many autolevel bots to add
19:22:26Watusimotoso you need to track which bots are which
19:22:45raptoroh lovely
19:23:02Watusimotoyes; there are lots of weird situations that need to be handled
19:23:03Watusimotough
19:23:36koda Quit (Quit: Leaving)
19:30:12Flynnn Quit (Quit: This computer has gone to sleep)
19:30:16Darrel has joined
19:51:29Skybax has joined
19:53:29Watusimoto Quit (Ping timeout: 246 seconds)
19:54:33Flynnn has joined
20:01:37Flynnn Quit (Quit: This computer has gone to sleep)
20:08:19Flynnn has joined
21:01:07raptorSkybax: did fordcars get you to compile and hack on bitfighter?
21:01:15SkybaxNo
21:01:26SkybaxWe went to bed right as everything finished installing lol
21:01:35raptorah ok
21:02:16SkybaxAnd Mercurial still can't find Python even after I installed it
21:02:37raptorah, you may need to restart after installing python
21:03:12SkybaxOkay
21:10:13thread_ Quit (Ping timeout: 272 seconds)
21:14:10Watusimoto has joined
21:25:37sam686Skybax, using windows or mac? as for Mercurial on windows, turtoiseHG might be easier to use and still have hg command line option, but much easier to install in windows. TurtoiseHG includes mercurial + python together I believe.
21:25:57SkybaxWindows. I already downloaded everything tho
21:26:10raptorSkybax: why was he trying to get you to do crazy developer stuff?
21:26:22SkybaxTo figure out why Bitfighter keeps crashing
21:26:44raptoroh... you're still having that problem? is it the 'random' crashing problem?
21:26:49SkybaxYes
21:27:00SkybaxSkybot makes it happen more often
21:27:23sam686is anything more then just bitfighter crashing?
21:27:28raptorbut still random, with Skybot?
21:27:31SkybaxYes
21:27:58SkybaxAnd I'm the only one it happens to lol
21:28:07raptorthat's so weird - do you have antivirus running?
21:28:20raptorinconsistency in crashing is the worst..
21:28:23SkybaxI think just the basic Windows antivirus
21:28:25sam686what computer you using? windows 8? 7? xp? cpu? memory?
21:28:32SkybaxWindows 8.1
21:28:56sam686oh and what hardware graphics you using?
21:28:56raptori wonder if you're the only one on windows 8...
21:29:05raptori should get a VM of that somehow...
21:29:05vs73nx has joined
21:29:09SkybaxI believe it's NVIDIA
21:29:23Skybaxford is on windos 8.1
21:29:28raptoroh?
21:29:30SkybaxAnd he can't reproduce the crash
21:29:32vs73nx Quit (Changing host)
21:29:32vs73nx has joined
21:29:34raptorargh
21:30:05vs73nxhello everyone
21:30:08SkybaxHi
21:30:13sam686I do have windows 8, my other intel atom dual core with intel gma 3600 (powerVR based gpu)
21:30:18Watusimotohi sam686, raptor: did either of you make any recent modifications to the code that might result in mEnergy being undefined in Ship::packUpdate?
21:30:24sam686it works fine with bitfighter without random crashing
21:30:25Watusimotoby recent I mean the last, say 2 weeks?
21:30:34raptorWatusimoto: I think sam686 did
21:30:42raptorme points fingers
21:30:43sam686although I just don't get line smoothing at all on that very weak gpu..
21:31:44sam686and I just don't get any sort of random crashing at all like Skybax do...
21:33:16raptorWatusimoto: maybe 1047dcab338c+
21:33:22raptoroosp: 1047dcab338c
21:34:03sam686my windows 8 is so weak, it doesn't have a fan at all, zero fans. and it has about 64 GB of SSD. In a positive side its battery lasts more then 6 hours.
21:34:55SkybaxActually wait.. I might have AMD graphics..
21:35:24raptorSkybax: you can find out with this: http://filehippo.com/download_gpuz/
21:37:01sam686on windows, control panel, system, tells you about several things about your computer
21:38:35SkybaxOkay yeah I have an AMD Radeon HD 7730M
21:39:08sam686right click desktop, screen resolution, advanced, tells you about graphics name and model (although intel graphics don't always tell you the model, because many is integrated into CPU)
21:40:02Watusimotowell, whatever it is is causing a test to fail
21:40:09Watusimotoluckily, not one I'm working on!
21:40:36vs73nxhi Watusimoto!
21:40:55BFLogBot Commit: 5467cba390fa | Author: watusimoto | Message: Fix all bot manager tests (again)
21:40:57BFLogBot Commit: 861f78f6f73a | Author: watusimoto | Message: Merge
21:41:02Watusimotohi
21:41:05Watusimotobe back in a minute
22:02:23Skybax_ has joined
22:04:37Skybax Quit (Ping timeout: 240 seconds)
22:05:46Skybax_ is now known as Skybax
22:08:09Skybax_ has joined
22:10:45Skybax Quit (Ping timeout: 248 seconds)
22:10:54Skybax_ is now known as Skybax
22:19:13Watusimotohi]
22:21:03vs73nxWatusimoto: hello, in main.cpp is ClientGame a pointer to game?
22:22:34sam686mEnergy being undefined? I don't have any compile errors though...
22:22:54Watusimotoeither Game or more likely to a ClientGame
22:23:05Watusimotosam686: unitialized
22:23:43sam686uninitalized? then maybe the constructor forgot to set them, either ship constructor or robot constructor..
22:23:45Watusimotoif you run the tests on my most recent checkin, you should get a crash somewhere in TestServerGame
22:24:46vs73nxwhen i pass clientGame as an arg to chooseLevelSource it gives me the error i had last night
22:25:25Watusimotoprobably
22:25:36sam686partially the result of recording game play, but the real problem is somethere in constructor mEnergy was never set and stays at random junk value.
22:26:00WatusimotomEnergy is set in ship->initialize()
22:26:58raptorfound a windows 8 vm!
22:27:07Watusimotowhich should get run for non-robots
22:27:23Watusimotovs73nx: what was the error?
22:27:38vs73nxerror: expected primary-expression before ‘(’ token
22:27:42sam686pack/unpack is the same for ship/robots, as robots don't have their own specific packUpdate
22:27:45vs73nxthat one
22:27:55Watusimotooh that one
22:28:03vs73nxbut it only happens when i pass clientGame as an arg
22:28:39Watusimototry this: create a temp variable, assign clientGame to that then try passing that, just to see what happens
22:28:47raptorsyntax error!
22:28:56Watusimotoyes, I suspect so
22:29:12Watusimotothat's what I suggested last night, but I looked at the line, and it wasn't obviously so
22:29:26Watusimotobut I don't have the full context, so it's hard to say
22:29:35raptorguaranteed syntax error
22:29:45sam686I got an out of bound value in Ship::packUpdate mEnergy = 0xcdcdcdcd
22:29:51vs73nxGame *game = ClientGame;
22:29:57raptorOCD OCD OCD OCD
22:30:07vs73nxgives me expected primary-expression before ‘;’ token
22:30:19vs73nxhmm
22:30:28Watusimotowhoa... ClientGame is not a varibnale
22:30:33Watusimotoit is a class name
22:30:38vs73nxyeah its a classs
22:30:57vs73nxbut i need a pointer to Game inside main.cpp
22:30:58Watusimotoso you can't assign a variable like that
22:31:29Watusimotoyou need a client game or a servergame?
22:31:38sam686and its a robot that have mEnergy=0xCDCDCDCD
22:31:43Watusimotoyou probably need a servergame
22:31:48vs73nxhmm
22:31:57vs73nxyeah servergame seems better
22:31:58Watusimotobecause clients don't load levels
22:32:11vs73nxreally?
22:32:20vs73nxhuh, ok
22:32:24Watusimotothe editor does, but the clients get their levels from the server
22:32:31raptorwe may want to rethink the logic of not having robot::initialize call ship::initialize...
22:32:52Watusimotoif you think about it.... the server is in Germany with the levels, but the client is in Australia
22:33:19Watusimotothat's how you can play levels you don;t have on your server
22:34:09vs73nxok
22:35:29sam686there is 2 different Ship::initialize, one if called from constructor that doesn't set mEnergy
22:38:25Watusimotobut that intiailize calls the other
22:38:31Watusimoto(if it's not a bot)
22:41:47vs73nxok, so where can i get a pointer to servergame in main.cpp
22:42:24Watusimotofrom mGameManager
22:42:29Watusimotoor gameManager
22:42:36Watusimotoor maybe it's static
22:42:43WatusimotoGameManager::
22:42:53Watusimotosorry, I thought I wrote that before
22:43:11vs73nxits not static
22:43:13vs73nxbut thanks
22:43:26WatusimotoServerGame *serverGame = GameManager::getServerGame();
22:43:30Watusimotoit is
22:44:03vs73nxit works
22:44:08vs73nxcompilation sucess
22:44:36vs73nxlinking error though
22:45:06vs73nxundefined reference to Zap::LevelSource::loadLevels(Zap::FolderManager*)
22:45:44WatusimotoDid you add a new file to the project?
22:45:51vs73nxno
22:46:12vs73nxthe error occurs in LevelSource.cpp.o
22:46:16Watusimotois that function defined?
22:46:37vs73nxits a virtual function in levelsource
22:46:39Watusimoto(check the spelling between the .h and the .cpp version)
22:46:54Watusimotois the signature identical?
22:47:04vs73nxyes
22:47:09Watusimotocheck to make sure the implementations have the identical sigs
22:48:43raptorwiindows 8 booted up!
22:48:54raptorfirst order of business... install Bitfighter!
22:49:04Watusimotowindows 8?
22:49:05vs73nxheh
22:49:14Watusimotoand here I thought we were friends!
22:49:21vs73nxi have a Windows 8 VM, disc..
22:49:27vs73nxsomewhere...
22:49:40vs73nxi think...
22:49:52vs73nxi also have a VM of windows 98
22:50:29vs73nxwhat good fun it was...
22:50:33raptorIE is the the msot important web browser because it's first task is to download firefox
22:50:44vs73nxheh
22:50:50Watusimoto:-)
22:51:01vs73nxalthough if there was wget on windows...
22:51:17Watusimotowe have a major (to us, at least) website at work that we've never tested with IE because none of us have it or will run it
22:51:33Watusimotowell, I suppose our customers have tested it, and it doesn't work
22:51:57WatusimotoI have wget on my windows machine
22:52:08vs73nxits funny that i had a VM of an operating system that is older than me!
22:52:21vs73nx* Windows 98
22:53:10Watusimotogreat! wget --help loads windows help, which shows the message: "Why can't I get Help from this program?"
22:53:24vs73nxheh
22:53:56raptornext order of business, install Skybax and see if he crashes the game
22:57:04raptorsecond order of business - install adblock so I can browse the web!
22:57:25vs73nxit compiles...
22:57:33vs73nxbut it segfaults
22:57:40vs73nxwell... good fun!
22:58:53raptori need my start menu...
23:01:08vs73nxhaha
23:04:45raptorSkybax: how fast does it take for skybot to crash the game?
23:04:54raptoralso skybot is scary
23:07:26vs73nxskybot = skynet?
23:07:28sam686oh one idea for Skybax: run bitfighter -dedicated and join your server, that will tell you whether your server crash, or your client crash..
23:07:51Watusimotoraptor: I'm rethinking one of our bot "rules"
23:08:11Watusimotoif I add a bot with /addbot, maybe autoleveling should stay on
23:08:27raptorhow come?
23:08:35Watusimoto1) because it's hard not to
23:08:48Watusimoto2) because it's kind of akin to adding a new player
23:08:58raptorcommands are advanced-ish and should allow more control
23:09:05Watusimotosure
23:09:21Watusimotobut disabling autoleveling is not giving more control necessarily
23:09:31Watusimotobecause the player isn't necessarily asking for that to happen
23:09:42Watusimotothe player wants to add another player
23:09:51raptorso maybe we need a /disableautoleveling
23:09:55Watusimotomaybe a special bot
23:09:58Watusimotoyes, maybe that
23:10:01raptoror an extra option for admins in the menu
23:10:22Watusimotojust an extra item on the bots menu
23:10:24Watusimoto- more bots
23:10:28Watusimoto- fewer bots
23:10:33Watusimoto- disable autoleveling
23:10:52raptorautoleveling seems too weird of a term
23:10:59Watusimotoyes, of course better worded
23:11:25raptormaybe auto-balancing
23:11:34vs73nxhmm
23:11:48raptorhow on earth do i shut down windows 8?
23:12:02Watusimotowe have more bots, less bots, remove all bots, mabye have robots balance teams <yes>/<no> like we do on the host menu
23:12:43vs73nxraptor: i dunno, thats the reason that i dont use windows 8
23:12:57Watusimotoraptor: you pause your VM
23:13:00raptorheh, i have to install a 3rd part app: classicshell
23:13:05vs73nxyes
23:13:12vs73nxclassicshell is good
23:13:20raptorforce-shutdown saves the day!
23:13:46vs73nxhmm
23:13:56vs73nxmy segfailt give me t a bt like this
23:13:58vs73nxhttp://pastie.org/8608124
23:14:48raptorServerGame is null
23:15:02vs73nxhmm
23:15:15vs73nxim passing to initHosting() LevelSourcePtr levelSource = LevelSourcePtr(settings->chooseLevelSource(game));...
23:15:25vs73nxoh
23:15:46vs73nxraptor: how did you figure that out?
23:16:12raptorsecrets of a seasoned segfault programmer
23:16:22vs73nxoh
23:16:35raptorline 0 says ServerGame::resetLevelLoadIndex (this=0x0)
23:16:40raptorthis=0x0
23:16:44vs73nxand 0x0 is null
23:16:51raptorthat means that the object, ServerGame, is NULL
23:16:53raptoryes
23:18:00vs73nxGameSettingsPtr settings = game->getSettingsPtr();
23:18:13vs73nxdoesnt look like that returns a null pointer...
23:18:22raptorno
23:18:33vs73nxwhoops
23:18:33raptorbut the ServerGame object in 'initHosting' is NULL
23:18:36vs73nxwrong statement
23:19:10raptorclassicshell shows me the shutdown button!
23:19:31raptorwindows 8 feels like it has multiple personality disorder
23:22:09vs73nxwait...
23:22:27vs73nxi dont pass initHosting a serverGame
23:22:53vs73nxonly a GameSettings object and my levelsource
23:23:06vs73nxand two Bools
23:23:18raptoryou don't have to pass it one
23:23:28raptorbut whatever is in initHosting is NULL
23:23:33raptorand that's why it's crashing
23:23:38vs73nxhmm
23:23:50vs73nxi didnt touch the inithosting function
23:24:13raptoryou did indirectly by passing in different objects
23:24:26raptorit could be that it uses those objects but fails to create the servergame with them
23:25:21vs73nxah
23:25:22vs73nxalright
23:27:48vs73nxhmm
23:35:39raptorheading home. later!
23:35:41raptor Quit ()
23:46:58Flynnn Quit (Quit: This computer has gone to sleep)

Index Search ←Prev date Next date→

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