#bitfighter IRC Log

Index Search ←Prev date Next date→

IRC Log for 2012-05-06

Timestamps are in GMT/BST.

00:00:36sam686no
00:00:43sam686i was on 74. server
00:01:16Zoomberoh
00:01:21sam686with limited memory, "service apache2 stop" freed enough memory to work
00:01:46ZoomberI can give you access to 216 server too if you want, but for some reason, all the hard disk space is used up on it, and not sure why
00:02:00raptorremove files from /tmp
00:02:10Zoomberall?
00:02:22raptorsure
00:02:31Zoomberit was empty to begin with
00:02:38raptortry /var/tmp
00:02:51Zoomberempty
00:03:11sam686what does "cf -h" say about disk space?
00:03:22raptoryou could change to /
00:03:34sam686"df -h" i meant
00:03:35raptorthen run '''du -sh'
00:03:43Zoombersam: i dont have the cf command, and i dont have enough disk space to run apt
00:03:53ZoomberFilesystem Size Used Avail Use% Mounted on
00:04:07Zoomber./dev/simfs 10G 10G 8.0K 100% /
00:04:15Zoomberraptor: that gives me 843M
00:04:48raptor'du -sh ./*' shows size used by directory
00:05:43sam686how about this: du -sh /
00:05:46Zoomberworking
00:05:48Zoomberfound it
00:05:52raptormay take a while...
00:05:56Zoombervar folder is using 8.3 gigabytes
00:06:07Zoomberhmm, now i can trace in
00:06:09raptorso go into /var and run the same command again to find
00:06:10Zoomberok its in the logs folder
00:06:11raptoryes
00:06:18raptorevil logs
00:06:24raptorthey have no respect...
00:06:26Zoomberof course.....
00:06:27Zoombermail
00:06:51Zoombermail.log uses 2.6 Gb, mail.info uses 2.6 G, syslog uses 2.6G,
00:07:00Zoomberi shall remove everything!
00:07:01raptoroh my goodness
00:08:01Zoombernooo go back, my download speed was at 1 Mb/sec for a while :(
00:08:16Zoomberwhy does it always go down to 600 KB/s?
00:08:29sam686downloading from where?
00:08:41sam686some servers might be slower then your connection speed?
00:08:43Zoomberwww.propellorheads.se/download/
00:08:55Zoomberi'm putting reason on another computer
00:09:03Zoomberso i dont always have to bring my laptop into this room
00:09:26Zoomberit starts at 900 KB/s, goes up to 1 MB/s, and then goes down to 600-700 KB/s
00:09:37Zoomberbut when I do a speedtest, i get 40 mbits/s
00:09:46raptorspeed tests *always* like
00:09:48raptorlie
00:09:57Zoomberhow so?
00:10:03raptorbecause they are used to make businesses look good
00:10:16Zoombernah, my old speed test was real crap :)
00:10:24raptorand are usually only done for 'burst' speeds
00:10:29Zoomberoh
00:10:59Zoomberthere we go, i'm at 1.0 MB/sec now
00:11:01raptori.e. since they test for a few seconds, your internet provider will make sure to give you top speed just for the first few seconds
00:11:06sam686i bet its the slow server network speed, not your connection speed
00:11:19Zoomberslow server network speed?
00:11:52sam686yes, some servers can get overloaded and can only send so much data at once
00:12:34sam686torrents on the other hand can be very fast if there is more then 10 seeds, as long as your connection is fast
00:13:28Zoomberi'm up to 1.3 MB/s, but i'm going to see how fast utorrent is for something
00:15:55Zoomberpossible my wireless stops me too?
00:16:10Zoomberi'm hardwired to a airport extreme, which wirelessly extends my time capsule's network
00:16:24Zoomberboth are N, moderate to strong distance
00:16:56sam686maybe, but wireless G speed shouldn't limit you less then 20 Mbps unless you are very far, probably more then 100 feet away
00:18:11Zoomberwhat about wireless N, and they are about a ways away, still good signal
00:18:16Zoomberfair strength
00:18:28sam686wireless N is better then G
00:18:37Zoomberright, in speed, but not in signal strength
00:18:41Zoomberright?
00:18:45sam686so it is probably something else, not wireless...
00:18:58Zoomberwell now i'm up to 1.4 MB/sec
00:19:10sam686for what?
00:19:14Zoomberdownload speed
00:19:18sam686downloading from one server?
00:19:20Zoomberyes
00:19:36Zoomberi guess the real test would be to download multiple things at once from multiple servers
00:19:41Zoomberand see if they all hold up speeds
00:19:45sam686then probably that one server is slow, as i said
00:19:58Zoomberok, i should find something else to download at the same time then
00:21:32Zoomberi think sam686 is right, or the server at least limits each user to a certain bandwidth
00:21:39sam686as for torrent, it can be very fast to download, as it downloads from almost all seeds at the same time
00:22:07Zoomberas of now, i have one torrent running at 2 MB/s when enough peers are on, while direct download at 1.4 MB/s
00:24:33Zoomberis it possible to test speed of my VPS?
00:24:42Zoomberi could try downloading something off it and see it's speed
00:25:01sam686probably yes, but not sure how
00:25:15sam686probably by file transfering big files?
00:25:26Zoomberby http download
00:26:26Zoomber4.0 KB/sec on the server
00:29:11raptori need a really hard level to triangulate...
00:30:33raptori wonder if geo war is still lying around...
00:32:24sam686this? http://sam686.maxhushahn.com/bitfighter/levels/qui_geo_war.level
00:32:44raptoryes
00:32:56raptori need a crazy hard level to triangulate with Triangle...
00:33:02raptordidn't we have a good test level somewhere?
00:41:22sam686try this: http://bitfighter.org/forums/viewtopic.php?t=1136
00:43:09raptoroh yikes
00:43:10raptorthat one
00:43:13raptorit crazy
00:44:09sam686i don't even want to try that, my computer is very slow/..
00:47:56sam686http://sam686.maxhushahn.com/bitfighter/levels/qui_sarcophage.level that was kind of also knows as having trouble when trying to get triangulation to work..
00:48:20raptorah yes
00:48:24raptorthat's the one i want
00:48:29raptorthanks
01:23:20IAmBeardi almost have physics screenshotting implemented :)
01:30:04HeyubCool!
01:30:05raptoryou're on windows?
01:50:28IAmBeard Quit (Ping timeout: 245 seconds)
01:54:04BFLogBot - Commit 6236fd3b63f2 | Author: buckyballreaction | Log: Rename SDL2 Xcode project to reflect library name; fix a minor project bug
02:33:29Zoomber Quit (Ping timeout: 245 seconds)
02:39:28IAmBeard has joined
02:40:03IAmBeardraptor yeah, windows 7
02:40:21IAmBeardbut I'll be testing on linux once I have something that builds correctly
03:00:20BFLogBot - Commit 4cf815397820 | Author: buckyballreaction | Log: Update SDL2 plist file
03:00:21BFLogBot - Commit 3bcb6d0bf634 | Author: buckyballreaction | Log: Update Mac to latest SDL2 library code; remove a now unneeded patch; fix SDL2 framework version
03:58:34IAmBeard Quit (Quit: Leaving)
04:01:44Zoomber has joined
04:01:44ChanServ sets mode +v Zoomber
04:02:12Zoomberhey raptor
04:02:58raptorhi
04:29:29Zoomberhmm
04:29:42sam686hmm?
04:29:51Zoomberinteresting
04:29:54Zoomber Quit (Quit: Zoomber)
04:32:15Zoomber has joined
04:32:15ChanServ sets mode +v Zoomber
04:32:23Zoombersorry, computer forced a restart
04:33:00Zoomber Quit (Remote host closed the connection)
04:33:39Zoomber has joined
04:33:39ChanServ sets mode +v Zoomber
04:33:50sam686computer problems?
04:34:05Zoomber_ has joined
04:34:05ChanServ sets mode +v Zoomber_
04:34:06Zoomber_bah
04:34:20Zoomber_i keep latching on to some neighbors open 2wire network
04:34:55sam686maybe turn off "auto connect to any available open (unsecured) wireless networks..
04:37:24Zoomber_yes, that would be the best thing for me to do
04:38:13Zoomber Quit (Ping timeout: 265 seconds)
04:38:13Zoomber_ is now known as Zoomber
05:24:12raptor Quit ()
06:14:17LordDVG has joined
06:14:44LordDVG Quit (Remote host closed the connection)
06:15:01LordDVG has joined
06:45:25Myzaree Quit ()
07:02:45kodaws has joined
07:11:19sam686what does this look like Zoomber? out of memory? free memory: 4 KB..
07:12:09sam686time to... maybe temperory "service apache2 stop"? (then later "service apache2 start")
07:52:28Zoomberyes
07:52:40Zoombersam, do you have mono 64 bit on your computer?
07:52:59sam686both my old computer is not 64 bit
07:53:07Zoomberoh
07:53:35sam686and both my computers only have slow CPU
07:53:39Zoomberive been trying to figure out a way to get mono on my computer as a 64 bit runtime, and not a 32 bit one, but it seems so rare its almost impossible in mac
07:53:56ZoomberI've tried a compile or two, not to work out so well
07:54:26sam686i don't think i ever need mono on windows (if mono only thing it does is to let it run EXE)
07:55:20Zoomberoh right,
07:55:26Zoomberthat wouldn't make any sense..
07:55:45Zoomberi need it on mac though, and the most crucial, i don't have
07:56:43sam686https://www.google.com/search?q=mono+on+64+bit+mac
07:56:53sam686one of results might be useful to you is http://www.mono-project.com/Mono:OSX
07:57:59Zoomberive tried that, the problem is they dont specify a specific source to download the soruce code from, and i often end up downloading sources that don't seem to work with that tutorial
07:58:46Zoomberi feel like downloading something from novel might not be the way to go
08:00:05sam686"Visit the !!!download page!!! to find the latest MacOS X package" http://www.go-mono.com/mono-downloads/download.html
08:00:10kodabbws has joined
08:00:37Zoomberright, but that's for prebuilt installers
08:00:50Zoomberprebuilt installers on their page are only 32 bit for mac
08:02:25sam686how much memory for your mac have? and CPU?
08:03:30kodaws Quit (Ping timeout: 245 seconds)
08:03:32Zoomber12Gb total
08:03:53Zoomberyeah, i finally got enough for the upgrade
08:04:27sam686could try running your own virtual machine for linux server, but you need to figure out the port forward..
08:04:56sam686not sure, it says the mac mono isn't available..
08:05:09sam686maybe there is alternative to mono that helps run EXE
08:05:13Zoombernot sure how good it will be for me to run vmbox constnatly..
08:05:48Zoomberthe thing is, the source code i found, has an autogen.sh, but not a ./configure, so basically the same thing, but the tutorial uses ./configure and argements
08:06:11Zoomberok, it actually configured
08:06:12Zoombertrying a make
08:06:16Zoomberthis could take a while, couldnt it
08:09:46Zoomberi see bitfighter sam686 isnt up, maybe there's an issue getting the server to work?
08:10:53sam686oh, almost up, just want to install gdb (for debugging stuff when it crash)
08:11:47Zoomberok
08:12:05sam686try to avoid 64-bit less-then-1024 MB vps
08:12:29sam686your 74 vps is 64 bit, and have about 350 MB?
08:12:57Zoomberit came that way
08:12:58sam686because, 64 bit use a bit more memory
08:13:16Zoomberi could reinstall it, but then that would destroy all my information on it
08:14:00sam686although, i an not sure if it is worth the work to reinstall,
08:14:17sam686files on vps is nothing much important to me anyway
08:16:13kodabbws Quit (Read error: Connection reset by peer)
08:20:41Zoomberthis mono framework might suprisingly compile
08:20:43Zoomberno error yet
08:23:05sam686got "bitfighter sam686" server going now
08:24:57sam686also, i shut off the "named" on your 74 server to free more memory (i bet "named" is some DNS server) sudo /etc/init.d/bind9 stop sudo update-rc.d bind9 disable
08:26:07sam686should be no problem, unless some people tries to use "74.122.199.250" as a DNS ip address
08:30:12Zoombernoo i have an error
08:30:12Zoomberok
08:30:15sam686Zoomber , i wonder why http://maxhushahn.com is not working (dns error)?
08:30:31Zoombernot sure, anythingelse.maxhushahn.com works
08:31:33sam686try this command: ssh 127.0.0.1
08:31:43sam686is ssh to the same server
08:31:57sam686kind of useless though (and uses a bit more memory)
08:33:21sam686using pre-compiles is faster then compiling, finding precompiled binary might be harder or take longer though...
08:35:46sam686http://mono-project.com/Compiling_Mono_on_OSX it says x86-64 (64 bit) is experimental (i think that means they just started trying to support 64-bit stuff)
08:36:23Zoomberright
08:36:37Zoomber all-local
08:36:38ZoomberMCS [net_2_0] OpenSystem.C.dll
08:36:38ZoomberAssembly ../../class/lib/net_2_0/OpenSystem.C.dll signed.
08:36:38Zoombermake all-local
08:36:38Zoombermake[8]: *** No rule to make target `../../../external/cecil/Mono.Collections.Generic/Collection.cs', needed by `../../class/lib/net_2_0/Mono.Cecil.dll'. Stop.
08:36:39Zoombermake[7]: *** [do-all] Error 2
08:36:42Zoomberthats what Gets me with the compile
08:42:27sam686maybe you should use a different version (preferable a release version) instead of latest..
08:43:30Zoomberi just tried to download a zipball, whatever that was
08:43:35Zoomberi'm really unsure what source i need to compile from
08:44:41Zoomberany ideas? maybe there's a different repo that works hand in hand with the main page's tutorial
08:45:04kodax has joined
08:47:18sam686found this https://github.com/mono/mono
08:47:31Zoomberok ok wait
08:47:52Zoomberso that's the site i downloaded mine from, but i downloaded whatever zipball was on that "zip" button at the top if you take a look at it
08:48:06Zoomberso maybe that zip file, watever that was, was a nonstable release?
08:48:30sam686maybe you downloaded a latest changes which wasn't a release, probably, i guess
08:48:36Zoomberyeah
08:48:39Zoomberoh, now i see a branch button
08:48:51Zoombermaybe i can try tagging to the latest mono branch
08:49:27sam686or maybe you can use git to download, makes it easier to changes version..
08:49:38Zoomberok
08:49:53sam686as in, this: git://github.com/mono/mono.git
08:51:41sam686i hope the smileys don't get in the way like it did for me.. http://sam686.maxhushahn.com/upload/irc_smilies_are_annoying.png
08:52:34Zoomberi cant seem to clone it
08:52:40Zoomberthe repository was "denied"
08:53:51sam686not sure, and i don't know if "https" will work an an alternative to "git"
08:54:20Zoomberthe repository was reachable, but denied when i tried to clone it i guess
08:54:40Zoomberoh wait
08:54:44Zoomberthat's xcode trying to clone it
08:55:11sam686is xcode compatible to git?
08:55:16Zoomberyeah, nativley
08:55:19Zoomberand with svn
08:55:38sam686try a blank username, blank password, maybe, but not sure what else..
08:55:40Zoomberin fact, xcode picks up links that start with git:// and automatically ask if i want to add them
08:55:50Zoomberit didnt prompt me for a password, but it worked the second time for some reason
08:56:13Zoomber2 am here, what's it for you?
08:56:21sam6863:56 AM
08:56:28Zoomberi suppose you dont like sleeping?
08:56:49sam686i woke up kind of late..
08:57:08Zoomberoh, ok
08:57:17Zoomberhmm, xcode gets more errors
08:57:36Zoomber"unable to write sha1 filename ...whatever...blaasdf.pack: no such file or dir"
08:57:38Zoomberwell
08:57:49Zoomberi need to figureout how to use the github app itself and not xcode
08:58:39sam686maybe xcode might not have "FULL" support of git, i think?
08:58:55Zoomberprobably not, and also, the mono source code has no xcode project
09:01:58Zoomberthere we go
09:02:06Zoombergot the github app working, finally cloning the repo
09:02:14Zoomberthen i can try switching UI
09:02:19Zoomberbranch*
09:02:28Zoombernot sure why i said "UI"
09:07:33Zoomberhey sam686, any idea what branch i should switch to?
09:07:36Zoomberi cloned the main code now
09:08:07sam686probably anyone that is tagged as a version number indicating a release
09:09:27sam686but, version number should be 2.7+ as it says on compiling instruction http://mono-project.com/Compiling_Mono_on_OSX
09:09:45sam686higher version is usually better
09:09:52Zoomberok, im on a 2.10 branch
09:10:34sam686good, now try compiling.. and hope for no error
09:11:12Zoomberok, just rolled back to a commit
09:12:13Zoomberi guess i'm doing the compile then
09:12:18Zoomberit just sucks because compiles take forrreever
09:12:37Zoomberand i'm getting tired, i may have to sleep and check if its done in the morning
09:12:45sam686is your computer faster then mine?
09:13:09sam686full compiling bitfighter takes about 7 minutes on my slow computer..
09:13:28Zoomberfor bitfighter, but this is mono
09:13:55Zoomberwhat takes about 1 minute to compile bitfighter on my computer, it takes about 30 minutes before I got an error in the make
09:14:11sam686probably mono is 5 times more code to compile, i guess
09:14:48Zoomberill just give it one shot at compiling tonight, and one shot to comile while i sleep
09:20:27sam686as for virtual machine, i think many CPU have hardware virtualization that can provide multiple CPU at, i bet, at CPU having less then 1% loss of speed..
09:24:11Zoombercode is still going
09:24:16Zoomberdo you think it will error?
09:24:51sam686not sure, if it is going longer then previous, then maybe it passed the point where it would error?
09:25:01Zoomberi dont knwo if it went longer than previous
09:25:23Zoomberthings are speeding p in the console now
09:25:25Zoomberspeeeeeeding up
09:26:22Zoomberyeah, i think i passed the error i was at before
09:26:25Zoomberbut this is a LOT of stuff
09:26:39Zoomberi think its assembling the compiled libraries now
09:27:21Zoomberthere's alot of errors, but it doesn't seem to stop
09:28:10sam686errors aren't always a good sign, if they are only "warnings" then it ia probably ok..
09:28:27Zoomberno, full out errors, but not compiling errors
09:28:48Zoombererrors in whatever its doing, assembly i guess, but after the errors it says whatever it was doing complets successfully
09:29:02Zoomber"Compilation succeded"
09:31:01Zoomberalso, i get lots of "warning: unreachable code detected". i wonder what that means
09:32:01sam686maybe unreachable code might mean it will never print in case of this: if(3 == 4) print("hellp);
09:32:34Zoomberpossibly, though there are alot of them here
09:33:23sam686who knows, maybe some programmer is too lazy to fix some warnings...
09:33:57Zoombertheres about 5 warnings showing up per second
09:34:02Zoomberwell, half the time
09:34:54Zoomberi think its finishing up
09:34:56Zoomberyay it finished
09:35:27Zoomberok i was successfull with the make, but havaing errors doing a make install
09:37:45sam686well if you can't get mono to work, then i guess you could use virtual machine, which have one advantage: if your virtual machine got hacked or dies, then good thing is not your whole computer..
09:37:48Zoomberah, it works if i do a sudo make install
09:38:08Zoomberwait, what's te downside of a virtual machine?
09:38:55sam686probably it won't have direct access to 3D hardware graphics (though mostly unused if running server only)
09:39:14Zoomberwill it use more power than mono?
09:39:18Zoomberor more ram?
09:39:27Zoomberalso, then i have to preallocate it
09:40:00sam686well, it may use more RAM to hold the virtual operating system, but then your operating system could put some of that to swap file..
09:40:28Zoomberdammit
09:40:38Zoomberstill 32 bit
09:40:45Zoomberi dont even know why...
09:40:53Zoomberi specified x86_64 at the beginning
09:40:57sam686using 64-bit EXE?
09:40:58Zoomberoh well
09:41:10Zoomberthe exe runs in whatever mono is i think
09:41:38sam686i think you need 64-bit EXE as well, i think..
09:42:03Zoomberit has to be, the error i get is
09:42:03sam686or did the same way on running exe on 64-bit linux work?
09:42:04ZoomberWarning : 32-bit operating systems are not officially supported.
09:42:04ZoomberWarning : You should upgrade to a 64-bit operating system.
09:42:22Zoomberah found it
09:42:24sam686does it let you use more then 3 GB ram?
09:42:30Zoomberit detects the system type and decides what mode to run in
09:43:06Zoomberdammit
09:43:08Zoomberwhat a waste of time
09:43:14Zoomberi got nowhere
09:43:15Zoomberok
09:43:17LordDVG Quit (Read error: Connection reset by peer)
09:43:24Zoomberi guess i'm forced to go with using a VM
09:43:38Zoomberwhich might not be a bad idea, except i can't just leave a graphical vm app running
09:44:00Zoomberpossibly to set one up via ssh and run it via ssh?
09:44:40LordDVG has joined
09:45:07sam686it might be possible to hide the virtual machine, i think..
09:46:57zoomber1 has joined
09:47:20sam686i will need to go, bye
09:47:22zoomber1ok
09:47:23zoomber1bye
09:47:29sam686 has left
09:47:37zoomber1 Quit (Client Quit)
10:49:00Watusimoto has joined
10:49:45Watusimoto Quit (Read error: Connection reset by peer)
10:50:59Watusimoto has joined
12:09:09Watusimoto Quit (Ping timeout: 240 seconds)
12:14:24LordDVG Quit (Remote host closed the connection)
12:42:35Watusimoto has joined
12:51:55raptor has joined
12:51:55ChanServ sets mode +o raptor
13:02:35raptorbuenos!
13:04:43Watusimotohi
13:05:14Watusimotostill have link errors!!! joy!
13:06:29raptoroh man
13:15:38Watusimotook, just built. will now try a clean build to make sure it's for real
13:15:43Watusimotothen I need to see if it actually runs
13:15:50raptorhaha
13:16:02Watusimotolast night I had a moment of hope before it segfaulted
13:16:19Watusimotothen there is the higher hurdle of seeing if it compiles on linux
13:16:30Watusimotowhich we have reason to suspect won't work
13:16:43Watusimotobut... if it does... awesome!
13:17:38raptori'll be here to test :)
13:18:08Watusimotonow avira won;t let me build
13:18:11raptoror maybe you could just to go to vim + mingw on windows, then i'll never need to worry again :)
13:18:15Watusimotostupid piece of crap
13:18:17raptorhaha
13:18:47Watusimotook, build worked... not to test
13:19:12Watusimotosegfault
13:22:54raptorsneaky NPE
13:24:37Watusimotoodd -- a full vector is getting emptied after filling, before use
13:24:45Watusimotobut never explicitly emptied
13:24:56Watusimotoand it's static
13:25:07Watusimotoso there should be only one
13:35:53Watusimotook, this static vector has at least 3 different addresses at different times
13:36:25WatusimotoI suspect this is template related
13:37:17Watusimotothough the vector has no direct template associations
13:52:40raptormaybe it's something completely unrelated
14:00:20Watusimotolooks like luaWrapper gets included 3 times, each as an indepndent entity
14:00:30Watusimotowith all statics declared therein being triplicated
14:00:48Watusimotonot sure how to confirm or fix this
14:02:10raptorcircular includes!
14:02:23raptorthere is a gcc option to let you see the include tree of a specific header
14:02:47Watusimotothis might detect it:
14:02:48Watusimotostruct tester
14:02:48Watusimoto{
14:02:48Watusimoto tester() { printf("Hello!!!!!!!!!!!!!!!!!!!!!!!!!!!!!\n"); }
14:02:48Watusimoto};
14:02:48Watusimotostatic tester xxx;
14:02:58Watusimotoshould only get printed once
14:03:27raptorha
14:03:53raptorgcc -M does it, as well - maybe there's a similar option for vc++
14:05:14raptorhttp://stackoverflow.com/questions/1137966/displaying-the-include-hierarchy-for-a-c-file-in-visual-studio
14:05:42Watusimotomy test won't link
14:05:49Watusimototrying full rebuild
14:06:09Watusimotoyes, templates are awesome
14:06:21raptormacro macro!
14:07:52WatusimotoI'm using macros to wrap the templates
14:08:00Watusimotokind of like a crap sandwich
14:08:32Watusimotofull rebuild worked
14:08:47Watusimotogood lord... about 30 hello!!!! lines
14:09:40Watusimotothere IS an include guard in LuaWrapper.h
14:10:43raptormaybe the #include made it into a macro?
14:10:48raptorerr..
14:11:04raptoractually i have no idea...
14:12:04Watusimoto showIncludes option is not terribly useful, sadly
14:14:28Watusimotopastie overflowed with even a partial sample of the output
14:15:12raptoryuk
14:16:34Watusimotoso we'll try putting a break pioint on the print line
14:21:55raptorand write down the call tree?
14:22:49Watusimotocall tree is useless, alas\
14:23:49Watusimotothis must be being included from more than one place; perhaps independent bits that don't see each other's #defines ???
14:23:49Watusimotoif that's possible
14:24:08raptori don't see how?
14:24:36Watusimotonor do i
14:25:15raptorhttp://stackoverflow.com/questions/607259/using-static-variable-along-with-templates
14:26:54raptor^^ maybe that has something to do with it?
14:26:56Watusimotowe'll try putting the vectors in a different class
14:27:40Watusimotomaybe a little like that, but this is not ina template
14:28:02Watusimotothough something that refers to something that refers to this is
14:28:11Watusimotoand I'm thinking the template may be contagious
14:28:13raptorha
14:28:39WatusimotoYou're getting two copies of the same variable because you've declared a static variable in a header file.
14:28:46Watusimotothat is exactly what I'm doing
14:31:00kodax Quit (Excess Flood)
14:31:37kodax has joined
14:32:25raptorwell so far git is less friendly than hg was upon first learning...
14:33:09Watusimotoexcept I want the behavior the poster is complaining about
14:33:15Watusimotoand I;m not getting it
14:40:14Watusimotook, I've reread the case 100 times
14:40:28Watusimotothis is definitely my problem:
14:40:29WatusimotoYou're getting two copies of the same variable because you've declared a static variable in a header file. When you declare a global variable static this way, you're saying it's local to the compilation unit (the .o file). Since you include the header in two compilation units, you get two copies of count.
14:40:45Watusimotobut this is not what I want
14:40:47WatusimotoI think what you really want here is a static template member variable associated with each instance of the template class. It would look like this:
14:41:41Watusimotobut what I want is a single static variable that applies to all templates
14:41:48Watusimotoand I'm not yet sure how to get that
14:41:55raptorthen it might need to be in a namespace?
14:42:12raptoror at least, only defined in the header
14:42:17raptorand declared once in a .cpp?
14:42:42Watusimotopossibly, but I'm trying to do this all within LuaWrapper.h
14:43:38raptoryou may need a .cpp to go along with it: LuaWrapper.cpp
14:44:09Watusimotothat would be lame!
14:46:15Watusimotobut that may be a solution; or define the vectors somewhere else
14:47:26Watusimotounfortunately, that is startting to destroy the elegance I was hoping for
14:47:54WatusimotoI want to contribute some of these changes back to the luaW dev, but if it gets too much clunkier, it may not be attractive
14:48:44raptortemplates? attractive?
14:49:01raptori didn't know those words had anything to do with each other
14:53:22Watusimotook, back in a bit
15:31:30kodax Quit (Quit: kodax out)
16:00:16WatusimotoI can't declare the vectors outside of the luaWrapper header
16:00:21Watusimotoon pain of link errors
16:00:36kodaws has joined
16:01:06raptorwhat are the vectors being used for again?
16:01:29Watusimotolong explanation
16:01:33Watusimotoused for registration
16:01:45Watusimotofor regestering the lua classes
16:01:54Watusimototrying to decentralize it
16:02:15WatusimotoI can fix it in a less elegant way; I think I'll do that
16:05:11Watusimotojust won't be integrated in luaW
16:05:17Watusimotothis is such a pain
16:22:09Watusimoto Quit (Ping timeout: 240 seconds)
16:24:24kodaws Quit (Read error: Connection reset by peer)
16:28:52kodax has joined
17:03:09Watusimoto has joined
17:24:25Watusimotomore link errors
17:25:49raptorthe bane of our existence
17:26:07Watusimotobesides templates, you mean
17:27:02raptoroh yes, that too
17:33:15kodaxlinkage where?
17:33:19kodaxlinux/win/osx?
17:35:50raptorhe is having template problems in windows (i'm sure they'd exist everywhere)
17:38:00Watusimoto Quit (Ping timeout: 260 seconds)
17:50:19Watusimoto has joined
17:50:51Zoomber_ has joined
17:50:51Zoomber Quit (Read error: Connection reset by peer)
17:50:51ChanServ sets mode +v Zoomber_
17:50:52Zoomber_ is now known as Zoomber
18:00:08kodaxraptor: i found some crosscompiler tools
18:00:12kodaxfrom linux to osx
18:00:21raptoroooo
18:00:24kodaxmaybe they could help your quest
18:00:30kodaxin maintaing the osx build
18:00:35raptormy quest to be mac free!
18:00:42raptor:P
18:01:04kodaxenjoy https://launchpad.net/~flosoft/+archive/cross-apple :)
18:01:18kodaxif you're not on maverik, you can use the debs
18:01:31kodaxand if you're not debian based, you can use the sources and compile them
18:03:10kodaxtook a while to have them working, but it's better than compiling manually :P
18:21:43Watusimotoso one of the thing that totally sucks here is I need to do full rebuilds otherwise things look like they aren't working
18:22:15WatusimotoI'm a maverick because I'm using templates!
18:22:22raptorso you're heating the house
18:25:59WatusimotoI'm ensuring I'll have no further children
18:26:47raptorah... see that's why i put my laptop on a piece of wood, or a solid book
18:26:57WatusimotoI see this as a benefit
18:28:43kodaxlol
18:29:02LordDVG has joined
18:37:26Watusimotonow I'm getting really crazy
18:37:31Watusimotojust warning you
18:37:33raptorin the head?
18:37:39Watusimotowell yes
18:38:05Watusimotobut also creating a scheme of pointers to try to force this damn code to have just ONE vector
18:39:32Watusimotorats
18:39:36Watusimotothis won't work
18:39:57raptorare you sure you don't just want to ask on StackOverflow and take a peaceful break for a few days?
19:12:59kodaxthat often works
19:19:35LordDVG Quit (Remote host closed the connection)
19:31:26WatusimotoI may yet do that
19:31:43Watusimotothere's still a few permutations of characters I haven't tried typing yet
19:32:18raptorhaha
19:34:41Watusimoto_ has joined
19:36:46Watusimoto Quit (Ping timeout: 252 seconds)
19:39:46sam686 has joined
19:39:46ChanServ sets mode +v sam686
19:49:30LordDVG has joined
19:53:03LordDVG Quit (Remote host closed the connection)
19:53:37Watusimoto_all this template code needs to be in the .h file
19:53:57Watusimoto_but the statics it refers to should be defined in a .cpp file
19:54:28Watusimoto_but if its in the cpp file, the h file can't see it
19:54:46raptordeclared in teh .cpp
19:55:07raptorso in .h: static vector dumbContainer
19:55:26raptorin .cpp: static vector dumbContainer = Vector();
19:55:27raptormaybe?
19:58:54sam686maybe something similar to this will work? http://sam686.maxhushahn.com/upload/text1205/120506_14-05-29.txt
19:59:23Renderwahndeclare it extern in the header?
20:00:05raptorok, refresh my memory: is the 'declaration' or 'definition' part that has the equals '=' in it?
20:00:25Watusimoto_here's what I've got
20:00:26Watusimoto_http://pastie.org/3870060
20:00:36Renderwahnraptor: definition
20:00:39Watusimoto_there's a lot of extraneous classes in there
20:00:53Watusimoto_as I've tried to force things to work
20:01:37Watusimoto_I tried declaring registrationFunctions in a (now deleted) parent class of LuaRegistrarBase1
20:02:29sam686if this is outside of any class / struct: static std::vector<RegFunc> registrationFunctions;
20:02:41Renderwahndeclare it as extern and put the definition in the cpp file
20:02:53Renderwahnor the "proper" declaration
20:02:53sam686thent that will make each cpp file have their own set of "registrationFunctions;"
20:03:00Watusimoto_what is there probably won;t work
20:03:18Watusimoto_I' trying the extern thing now; I've tried sevearl variants on it, but will give it another go
20:03:36sam686try changing that to "extern" not "static" and put a "std::vector<RegFunc> registrationFunctions;" in cpp file
20:04:39Watusimoto_changed the declarations on line 3 & 4 to externs, and copied 3 & 4 to a cpp file. compiling now
20:06:32Watusimoto_holy crap... it compiled
20:06:36Watusimoto_but will it run?
20:06:44Renderwahnit compiles! ship it!
20:06:53Watusimoto_why spoil it by testing?
20:06:58Renderwahnindeed
20:08:22Watusimoto_ok, it crashed
20:08:35Watusimoto_give me a sec and I'll explain why
20:08:40Watusimoto_because it's pretty weird
20:10:35Watusimoto_http://pastie.org/3870107
20:10:47Watusimoto_I'm still compiling this, but I added two printf statements
20:10:56Watusimoto_I think the pointers there will be different
20:11:10Watusimoto_even though they should be the same
20:11:30Watusimoto_no, they are the same
20:11:33Watusimoto_ok
20:11:42Watusimoto_so that's good, I guess
20:12:22Watusimoto_now we're in a new realm of crashingness
20:18:31raptora whole new realm!
20:23:13Renderwahnto boldly crash where no program has crashed before
20:24:08Watusimoto_one item is disappearing from my vector, I think
20:24:26Watusimoto_trying to prove that
20:24:52Watusimoto_I see 6 things going in, but when I iterate over it, I only get 5 iterations
20:27:37Watusimoto_the first item is getting clobbered somehow... perhaps by a reinitialization of the vector???
20:29:04Watusimoto_Registering Reg Functions 1: 01499E58 1
20:29:04Watusimoto_Registering Reg Functions 2: 01499E58 1
20:29:04Watusimoto_Registering Reg Functions 2: 01499E58 2
20:29:04Watusimoto_Registering Reg Functions 2: 01499E58 3
20:29:04Watusimoto_Registering Reg Functions 2: 01499E58 4
20:29:06Watusimoto_Registering Reg Functions 2: 01499E58 5
20:29:13Watusimoto_address, followed by number of items in the vector
20:29:22Watusimoto_printed after adding an item
20:29:29Watusimoto_so that first item disappears somehow
20:30:00Watusimoto_note that the very first number, the 1/2 refers to the template that's adding the item
20:30:15Renderwahnthose are different vectors you add them too -_-
20:30:19RenderwahnregistrationFunctions.push_back(&registerClass);
20:30:28Renderwahnoh nvm
20:30:40Renderwahni did not read it correctly
20:30:52Watusimoto_so I think that after the 1 item is added, the vector gets reinitialized, so when adding the 2 items it starts fresh
20:31:08Renderwahnis it intentional that regfun 1 only adds to one vector?
20:31:43Watusimoto_updated code at http://pastie.org/3870203
20:31:52Watusimoto_yes
20:32:10Watusimoto_I add one "type 1" item, and a number of "type 2"
20:36:10Renderwahnthe adresses of the vectors are the same?
20:36:14Renderwahnoh
20:36:16Renderwahnnvm
20:47:41Watusimoto_we create a TON of vectors during initialization
20:47:52Watusimoto_I put a breakpoint in the vector construction code
20:47:54Watusimoto_TONs
20:49:33kodaxsometimes i'm happy that hedgewars doesn't use c++
20:51:55raptoris there nothing akin to c++ templates in freepascal or haskell?
20:52:12raptorprobably not, since their more functional in nature, huh?
20:52:15Watusimoto_ok, creating TWO vectors, so each template will write to its own
20:52:17raptor*they're
20:52:20Watusimoto_functions1 and functions2
20:52:24Watusimoto_let's see if that works
20:52:42Watusimoto_this is getting totally nutzo
20:54:29Watusimoto_argh!!!!!
20:54:30Watusimoto_Registering Reg Functions 1: 00C09FA8 1
20:54:31Watusimoto_Registering Reg Functions 2: 00C09E20 1
20:54:31Watusimoto_Registering Reg Functions 2: 00C09E20 2
20:54:31Watusimoto_Registering Reg Functions 2: 00C09E20 3
20:54:31Watusimoto_Registering Reg Functions 2: 00C09E20 4
20:54:32Watusimoto_Registering Reg Functions 2: 00C09E20 5
20:54:35Watusimoto_Welcome to Bitfighter!
20:54:37Watusimoto_Could not launch updater, returned error: T
20:54:38raptorheh
20:54:39Watusimoto_d C:\Users\Chris\Documents\bf-trunk\zap\..\
20:54:41Watusimoto_Client connecting to master [bitfighter.org
20:54:42kodaxraptor: well you can use pascal like oop but since it has everything in a single file it has less problems compiling
20:54:44Watusimoto_Recast built 1 zones!
20:54:46Watusimoto_Timings: 0 1 1
20:54:49Watusimoto_IP:Any:0 - connected to server.
20:54:50Watusimoto_IP:Any:0 - client "watusimoto" connected.
20:54:52Watusimoto_Server connecting to master [bitfighter.org
20:54:55Watusimoto_Reading Reg Functions 1: 00C09FA8 0
20:54:55kodaxpascal is almost unlinkable to c++
20:54:57Watusimoto_Reading Reg Functions 2: 00C09E20 5
20:54:59Watusimoto_my "1" vector empties itself!!!
20:55:03Watusimoto_impossible!!!
20:55:14raptorunpossible
20:55:30Watusimoto_where did it go?!??!?
20:55:43kodaxbarred-possible
20:55:55raptorinto the divide-by-zero black hole
20:57:23Renderwahnis it all a single binary or are there some shared libraries or something like that?
20:57:32Watusimoto_this part is all single binary
20:58:10Watusimoto_I should probably try a complete rebuild, just to be sure
20:58:24raptori give my full support of that decision
20:58:38Watusimoto_just in case my apartment were not yet warm enough
21:00:02Renderwahnare those reg functions called after the main function was entered?
21:00:18Watusimoto_no
21:00:34Watusimoto_they are called during pre main running, or whatever that time is called
21:00:54Renderwahnthat could be the problem, initialization order is undefined there
21:01:01Watusimoto_yes, and that's ok
21:01:06Watusimoto_I think
21:01:21Renderwahnmaybe the vector isn't initialized the first time reg fun is called
21:01:23Watusimoto_well, as long as the vector has been initialized before everything else
21:01:36Watusimoto_but wouldn't I get an error? maybe not
21:01:54Watusimoto_ok, I could try doing a lazy intiailze to force it to be intialized
21:02:04Watusimoto_sigh
21:04:22Renderwahnyou could put in a function vector<RegFunc>& getRegistrationFunctions(){static vector<RegFunc> functions; return functions;} instead of the extern mambo jambo
21:05:32raptorare the vectors not static?
21:05:39Watusimoto_they are static
21:06:00Watusimoto_they are NOT static
21:06:04Watusimoto_sorry
21:18:39kodax Quit (Ping timeout: 240 seconds)
21:34:43Watusimoto_we need a language that is easy like java, but not lame like java
21:35:53raptorhaha
21:36:17raptorgoogle go!?
21:36:37raptori have no experience with it really..
21:36:39Watusimoto_IT WORKED!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
21:36:46raptorque pasa?
21:37:02Watusimoto_Renderwahn: I found a permutation on your suggestion that compiled and runs!! and does the right thing!
21:37:19RenderwahnWatusimoto_: lol, when in doubt, try random things until it works
21:37:28Watusimoto_yes, I've been doing that
21:37:35raptorcat /dev/urandom > bitfighter.cpp
21:37:37Renderwahni'd suggest D as a nice language
21:37:44Watusimoto_now the prioblme is this will not work on linux, I bet
21:37:52Watusimoto_I'm going to clean it up a bit and check it in
21:37:57raptorok, then i'll test
21:38:01Watusimoto_oh but if it does...
21:38:11raptoricing on the cake?
21:40:01Watusimoto_we'll see
21:40:51sam686java appears to have less features then C++, when comparing them.. http://en.wikipedia.org/wiki/Comparison_of_Java_and_C%2B%2B
21:42:48Watusimoto_it is missing pointers and unsigned ints
21:42:59Watusimoto_and maybe a couple of other minor things
21:43:09raptorlike c++ templates
21:43:11Watusimoto_but when you use it with Eclipse, it is really quite nice
21:43:19raptor^^ it's missing c++ templates
21:43:20Watusimoto_aside from the totally sucking part
21:43:22raptorhaha
21:43:32Watusimoto_well, it has template-like things
21:43:45raptorof course.. but not c++ ones...
21:43:48raptorthat's a feature
21:44:43Watusimoto_yes
21:44:49Watusimoto_c++ templates just spit out code
21:45:01Watusimoto_which I like in a way -- things run fast
21:45:19Watusimoto_but it has this annotation voodoo
21:45:27Watusimoto_which I never fully understood
21:45:57Watusimoto_we hired some guy who was into them, and all our code started having @this and @that and who knew what it did??
21:47:14raptoryou mean java annotations?
21:48:31Watusimoto_yes
21:48:35Watusimoto_ok, pushing
21:49:16Watusimoto_if this all works, we can now do REGISTER_CLASS(Asteroid); in the asteroid class instead of registering them over in LuaObject
21:49:25Watusimoto_was it worth it? probably not
21:49:29raptorok
21:49:32raptori will compile...
21:54:35raptori don't see the changes..
21:55:42sam686http://code.google.com/p/bitfighter/source/list no sign of latest changes that is a few minutes ago...
22:04:18Watusimoto_the push failed
22:04:32raptormurphey!
22:04:38Watusimoto_I had previously pulled, apparently that failed
22:04:44Watusimoto_merging
22:05:03Watusimoto_ok, pushed
22:05:30raptorpulling...
22:05:53raptorhere goes..
22:06:21raptorkaboom: http://pastie.org/3870580
22:06:40raptorlooking..
22:07:32BFLogBot - Commit 6bd97c7c2d0f | Author: watusim...@bitfighter.org | Log: Simplify lua class registration process
22:07:33BFLogBot - Commit ce1edf2f8b68 | Author: watusim...@bitfighter.org | Log: Comment
22:07:35BFLogBot - Commit 084fb17cd7a1 | Author: watusim...@bitfighter.org | Log: Push classnames down to defining class -- less custom junk in LuaObject
22:07:36BFLogBot - Commit 4cadbfad20a4 | Author: watusim...@bitfighter.org | Log: Lua class registration now decentralized... this code needs major cleanup, but pushing for raptor to test
22:07:38BFLogBot - Commit ab55d52e3b9c | Author: watusim...@bitfighter.org | Log: Merge
22:08:21raptorlooks like an issue of pedancy
22:08:25raptoris that a word?
22:11:30raptorwell making it: T::registerClass2(); copmiles, but i don' tthink it's appropriate
22:17:13Watusimoto_where do you make that change?
22:18:03raptorluaObject.h
22:18:05raptor271
22:18:07raptorand 279
22:18:19raptorthis is the compile error: http://pastie.org/3870580
22:19:18sam686raptor, you could try compiling with -fpermissive (that turns into warning instead of error)
22:20:09raptori'm sure i could...
22:20:29raptorbut i have no idea how being permissive will affect the futuer
22:20:32raptor*future
22:23:49Watusimoto_ok, well, those lines will hopefully disappear soon... so do what you will with them
22:24:32Watusimoto_am testing to see if I can compile with T:: prefix
22:24:58Watusimoto_does it compile otherwise?
22:25:49IAmBeard has joined
22:26:38Watusimoto_ah... is this what you did?
22:26:38Watusimoto_ LuaW_Registrar2() { T::registerClass2(); }
22:26:50sam686you could try LuaRegistrarBase1<T>::registerClass1(); and LuaRegistrarBase2<T, U>::registerClass2();
22:26:53raptoryeah - it compiles with that, but i don't think it's appropriate
22:27:00raptoroh good idea
22:27:01Watusimoto_it's aboslutely not
22:27:37raptorsam686's idea works
22:27:52raptorcontinuing compile...
22:28:23sam686and because you are calling a static method, you might only need class LuaW_Registrar2 without the ": public LuaRegistrarBase2<T, U> " part
22:29:32raptorWatusimoto_: now i hit the same error from my e-mail
22:29:52Watusimoto_ah, that's what I was afraid of
22:30:04Watusimoto_can you put that on pastie please?
22:30:26raptorhttp://pastie.org/3870664
22:30:50raptorlooks like there is an out-or-order error, too
23:02:30Watusimoto_well, I'm not sure that IS a pointer to a member function
23:02:35Watusimoto_despite the error messaeg
23:02:44Watusimoto_I know it looks like one
23:02:56raptorha
23:03:18Watusimoto_but by the time the template has worked it over, it looks like something different to me, admittedly something I don't really understand
23:03:28Watusimoto_template <typename T, int (T::*methodName)(lua_State * )>
23:03:28Watusimoto_int luaW_doMethod(lua_State *L)
23:03:28Watusimoto_{
23:03:28Watusimoto_ T *w = luaW_check<T>(L, 1);
23:03:28Watusimoto_ if(w)
23:03:29Watusimoto_ return (w->*methodName)(L);
23:03:31Watusimoto_ lua_pushnil(L);
23:03:34Watusimoto_ return 1;
23:03:36Watusimoto_}
23:03:38Watusimoto_that;s the template
23:04:08Watusimoto_so it is getting called in reference to a specific object; to me it seems more like a stringish thing
23:04:26Watusimoto_I could probably rework this as a macro somehow and sidestep the issue
23:04:36raptoryou are talking about the second type of error in that pastie, right?
23:04:55Watusimoto_invalid use of ‘Zap::Item::getRad’ to form a pointer-to-member-function
23:05:00Watusimoto_that one
23:05:05Watusimoto_and others like it
23:05:08raptorah that one
23:06:35raptorwell luaMethods is static
23:06:39raptorbut getRad is not
23:08:01Watusimoto_no, but I don't care
23:08:07raptori don't understand how vc++ still compiles without an object for getRad
23:08:29Watusimoto_I think when it expands the template into code, it all gets fixed up
23:09:01Watusimoto_I am sure the bulk of it can be macroized to avoid the whole issue
23:09:26raptorjust think: if we were coding in C, we'd have to use macros!
23:09:29Watusimoto_but I'm not sure we can do an elegant solution like:
23:09:30Watusimoto_{ "isInCaptureZone", luaW_doMethod<Item, &isInCaptureZone> },
23:09:46Watusimoto_that's what lets us bypass the local static function
23:10:34Watusimoto_if you recall our earlier conversation
23:11:14Watusimoto_doGetClassId looks like where we started (item.cpp line 233)
23:11:45Watusimoto_we used to need a function like that for every method in the luaMethods list
23:11:56Watusimoto_now the template does it all
23:12:33Watusimoto_actually, it will be hard to do an elegant macro without anonymous functions, and we won't have those until c011x or whatever the hell it's called
23:12:45raptorhmmm
23:15:03Watusimoto_try changing { "getRad", luaW_doMethod<Item, &getRad> }, to { "getRad", luaW_doMethod<Item, &Item::getRad> },
23:15:12Watusimoto_(inserting Item::)
23:15:33Watusimoto_on all luaMethods[] in item.cpp line 244
23:15:45Watusimoto_probably won't help
23:15:50raptoroh my goodness it compiled
23:15:59Watusimoto_??
23:16:39sam686i don't know about that, would adding "item::" skip the virtual checks?
23:17:08raptoryep
23:17:14Watusimoto_well, I can live with that
23:17:30Watusimoto_we can create a macro to hide that tiny bit of ugliness, as long as the larger concept works
23:17:46Watusimoto_or maybe just leave it as-is
23:17:49raptornext error, ugly: http://pastie.org/3870819
23:17:59raptorwell, i may be able to work through these now
23:18:04raptoryou may want to sleep
23:18:26Watusimoto_yes; I have parent-teacher conference at 7:30AM; it's 1:20AM here
23:18:34Watusimoto_and it's in luxembourgish
23:19:01Watusimoto_fix what you can, pastie what seems unfixable, and I'll look at hte chat logs tomorrow
23:19:19Watusimoto_maybe we're making progress??
23:20:10raptormaybe?
23:20:29raptorok, i'll try and fix stuff...
23:21:53Watusimoto_ok, maybe not :-)
23:23:25raptorwow, i need a really wide window to understand this error properly
23:30:51raptorgot it to compile fully
23:37:01raptorgot rid of the last warning...
23:37:02raptorcommitting
23:37:51BFLogBot - Commit 141dea8af5f0 | Author: buckyballreaction | Log: I can compile again! Fix compiling with GCC
23:53:40Watusimoto_ Quit (Ping timeout: 260 seconds)

Index Search ←Prev date Next date→

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