Timestamps are in GMT/BST.
| 00:00:36 | sam686 | no |
| 00:00:43 | sam686 | i was on 74. server |
| 00:01:16 | Zoomber | oh |
| 00:01:21 | sam686 | with limited memory, "service apache2 stop" freed enough memory to work |
| 00:01:46 | Zoomber | I 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:00 | raptor | remove files from /tmp |
| 00:02:10 | Zoomber | all? |
| 00:02:22 | raptor | sure |
| 00:02:31 | Zoomber | it was empty to begin with |
| 00:02:38 | raptor | try /var/tmp |
| 00:02:51 | Zoomber | empty |
| 00:03:11 | sam686 | what does "cf -h" say about disk space? |
| 00:03:22 | raptor | you could change to / |
| 00:03:34 | sam686 | "df -h" i meant |
| 00:03:35 | raptor | then run '''du -sh' |
| 00:03:43 | Zoomber | sam: i dont have the cf command, and i dont have enough disk space to run apt |
| 00:03:53 | Zoomber | Filesystem Size Used Avail Use% Mounted on |
| 00:04:07 | Zoomber | ./dev/simfs 10G 10G 8.0K 100% / |
| 00:04:15 | Zoomber | raptor: that gives me 843M |
| 00:04:48 | raptor | 'du -sh ./*' shows size used by directory |
| 00:05:43 | sam686 | how about this: du -sh / |
| 00:05:46 | Zoomber | working |
| 00:05:48 | Zoomber | found it |
| 00:05:52 | raptor | may take a while... |
| 00:05:56 | Zoomber | var folder is using 8.3 gigabytes |
| 00:06:07 | Zoomber | hmm, now i can trace in |
| 00:06:09 | raptor | so go into /var and run the same command again to find |
| 00:06:10 | Zoomber | ok its in the logs folder |
| 00:06:11 | raptor | yes |
| 00:06:18 | raptor | evil logs |
| 00:06:24 | raptor | they have no respect... |
| 00:06:26 | Zoomber | of course..... |
| 00:06:27 | Zoomber | mail |
| 00:06:51 | Zoomber | mail.log uses 2.6 Gb, mail.info uses 2.6 G, syslog uses 2.6G, |
| 00:07:00 | Zoomber | i shall remove everything! |
| 00:07:01 | raptor | oh my goodness |
| 00:08:01 | Zoomber | nooo go back, my download speed was at 1 Mb/sec for a while :( |
| 00:08:16 | Zoomber | why does it always go down to 600 KB/s? |
| 00:08:29 | sam686 | downloading from where? |
| 00:08:41 | sam686 | some servers might be slower then your connection speed? |
| 00:08:43 | Zoomber | www.propellorheads.se/download/ |
| 00:08:55 | Zoomber | i'm putting reason on another computer |
| 00:09:03 | Zoomber | so i dont always have to bring my laptop into this room |
| 00:09:26 | Zoomber | it starts at 900 KB/s, goes up to 1 MB/s, and then goes down to 600-700 KB/s |
| 00:09:37 | Zoomber | but when I do a speedtest, i get 40 mbits/s |
| 00:09:46 | raptor | speed tests *always* like |
| 00:09:48 | raptor | lie |
| 00:09:57 | Zoomber | how so? |
| 00:10:03 | raptor | because they are used to make businesses look good |
| 00:10:16 | Zoomber | nah, my old speed test was real crap :) |
| 00:10:24 | raptor | and are usually only done for 'burst' speeds |
| 00:10:29 | Zoomber | oh |
| 00:10:59 | Zoomber | there we go, i'm at 1.0 MB/sec now |
| 00:11:01 | raptor | i.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:06 | sam686 | i bet its the slow server network speed, not your connection speed |
| 00:11:19 | Zoomber | slow server network speed? |
| 00:11:52 | sam686 | yes, some servers can get overloaded and can only send so much data at once |
| 00:12:34 | sam686 | torrents on the other hand can be very fast if there is more then 10 seeds, as long as your connection is fast |
| 00:13:28 | Zoomber | i'm up to 1.3 MB/s, but i'm going to see how fast utorrent is for something |
| 00:15:55 | Zoomber | possible my wireless stops me too? |
| 00:16:10 | Zoomber | i'm hardwired to a airport extreme, which wirelessly extends my time capsule's network |
| 00:16:24 | Zoomber | both are N, moderate to strong distance |
| 00:16:56 | sam686 | maybe, 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:11 | Zoomber | what about wireless N, and they are about a ways away, still good signal |
| 00:18:16 | Zoomber | fair strength |
| 00:18:28 | sam686 | wireless N is better then G |
| 00:18:37 | Zoomber | right, in speed, but not in signal strength |
| 00:18:41 | Zoomber | right? |
| 00:18:45 | sam686 | so it is probably something else, not wireless... |
| 00:18:58 | Zoomber | well now i'm up to 1.4 MB/sec |
| 00:19:10 | sam686 | for what? |
| 00:19:14 | Zoomber | download speed |
| 00:19:18 | sam686 | downloading from one server? |
| 00:19:20 | Zoomber | yes |
| 00:19:36 | Zoomber | i guess the real test would be to download multiple things at once from multiple servers |
| 00:19:41 | Zoomber | and see if they all hold up speeds |
| 00:19:45 | sam686 | then probably that one server is slow, as i said |
| 00:19:58 | Zoomber | ok, i should find something else to download at the same time then |
| 00:21:32 | Zoomber | i think sam686 is right, or the server at least limits each user to a certain bandwidth |
| 00:21:39 | sam686 | as for torrent, it can be very fast to download, as it downloads from almost all seeds at the same time |
| 00:22:07 | Zoomber | as 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:33 | Zoomber | is it possible to test speed of my VPS? |
| 00:24:42 | Zoomber | i could try downloading something off it and see it's speed |
| 00:25:01 | sam686 | probably yes, but not sure how |
| 00:25:15 | sam686 | probably by file transfering big files? |
| 00:25:26 | Zoomber | by http download |
| 00:26:26 | Zoomber | 4.0 KB/sec on the server |
| 00:29:11 | raptor | i need a really hard level to triangulate... |
| 00:30:33 | raptor | i wonder if geo war is still lying around... |
| 00:32:24 | sam686 | this? http://sam686.maxhushahn.com/bitfighter/levels/qui_geo_war.level |
| 00:32:44 | raptor | yes |
| 00:32:56 | raptor | i need a crazy hard level to triangulate with Triangle... |
| 00:33:02 | raptor | didn't we have a good test level somewhere? |
| 00:41:22 | sam686 | try this: http://bitfighter.org/forums/viewtopic.php?t=1136 |
| 00:43:09 | raptor | oh yikes |
| 00:43:10 | raptor | that one |
| 00:43:13 | raptor | it crazy |
| 00:44:09 | sam686 | i don't even want to try that, my computer is very slow/.. |
| 00:47:56 | sam686 | http://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:20 | raptor | ah yes |
| 00:48:24 | raptor | that's the one i want |
| 00:48:29 | raptor | thanks |
| 01:23:20 | IAmBeard | i almost have physics screenshotting implemented :) |
| 01:30:04 | Heyub | Cool! |
| 01:30:05 | raptor | you're on windows? |
| 01:50:28 | | IAmBeard Quit (Ping timeout: 245 seconds) |
| 01:54:04 | | BFLogBot - Commit 6236fd3b63f2 | Author: buckyballreaction | Log: Rename SDL2 Xcode project to reflect library name; fix a minor project bug |
| 02:33:29 | | Zoomber Quit (Ping timeout: 245 seconds) |
| 02:39:28 | | IAmBeard has joined |
| 02:40:03 | IAmBeard | raptor yeah, windows 7 |
| 02:40:21 | IAmBeard | but I'll be testing on linux once I have something that builds correctly |
| 03:00:20 | | BFLogBot - Commit 4cf815397820 | Author: buckyballreaction | Log: Update SDL2 plist file |
| 03:00:21 | | BFLogBot - Commit 3bcb6d0bf634 | Author: buckyballreaction | Log: Update Mac to latest SDL2 library code; remove a now unneeded patch; fix SDL2 framework version |
| 03:58:34 | | IAmBeard Quit (Quit: Leaving) |
| 04:01:44 | | Zoomber has joined |
| 04:01:44 | | ChanServ sets mode +v Zoomber |
| 04:02:12 | Zoomber | hey raptor |
| 04:02:58 | raptor | hi |
| 04:29:29 | Zoomber | hmm |
| 04:29:42 | sam686 | hmm? |
| 04:29:51 | Zoomber | interesting |
| 04:29:54 | | Zoomber Quit (Quit: Zoomber) |
| 04:32:15 | | Zoomber has joined |
| 04:32:15 | | ChanServ sets mode +v Zoomber |
| 04:32:23 | Zoomber | sorry, computer forced a restart |
| 04:33:00 | | Zoomber Quit (Remote host closed the connection) |
| 04:33:39 | | Zoomber has joined |
| 04:33:39 | | ChanServ sets mode +v Zoomber |
| 04:33:50 | sam686 | computer problems? |
| 04:34:05 | | Zoomber_ has joined |
| 04:34:05 | | ChanServ sets mode +v Zoomber_ |
| 04:34:06 | Zoomber_ | bah |
| 04:34:20 | Zoomber_ | i keep latching on to some neighbors open 2wire network |
| 04:34:55 | sam686 | maybe turn off "auto connect to any available open (unsecured) wireless networks.. |
| 04:37:24 | Zoomber_ | yes, that would be the best thing for me to do |
| 04:38:13 | | Zoomber Quit (Ping timeout: 265 seconds) |
| 04:38:13 | | Zoomber_ is now known as Zoomber |
| 05:24:12 | | raptor Quit () |
| 06:14:17 | | LordDVG has joined |
| 06:14:44 | | LordDVG Quit (Remote host closed the connection) |
| 06:15:01 | | LordDVG has joined |
| 06:45:25 | | Myzaree Quit () |
| 07:02:45 | | kodaws has joined |
| 07:11:19 | sam686 | what does this look like Zoomber? out of memory? free memory: 4 KB.. |
| 07:12:09 | sam686 | time to... maybe temperory "service apache2 stop"? (then later "service apache2 start") |
| 07:52:28 | Zoomber | yes |
| 07:52:40 | Zoomber | sam, do you have mono 64 bit on your computer? |
| 07:52:59 | sam686 | both my old computer is not 64 bit |
| 07:53:07 | Zoomber | oh |
| 07:53:35 | sam686 | and both my computers only have slow CPU |
| 07:53:39 | Zoomber | ive 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:56 | Zoomber | I've tried a compile or two, not to work out so well |
| 07:54:26 | sam686 | i don't think i ever need mono on windows (if mono only thing it does is to let it run EXE) |
| 07:55:20 | Zoomber | oh right, |
| 07:55:26 | Zoomber | that wouldn't make any sense.. |
| 07:55:45 | Zoomber | i need it on mac though, and the most crucial, i don't have |
| 07:56:43 | sam686 | https://www.google.com/search?q=mono+on+64+bit+mac |
| 07:56:53 | sam686 | one of results might be useful to you is http://www.mono-project.com/Mono:OSX |
| 07:57:59 | Zoomber | ive 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:46 | Zoomber | i feel like downloading something from novel might not be the way to go |
| 08:00:05 | sam686 | "Visit the !!!download page!!! to find the latest MacOS X package" http://www.go-mono.com/mono-downloads/download.html |
| 08:00:10 | | kodabbws has joined |
| 08:00:37 | Zoomber | right, but that's for prebuilt installers |
| 08:00:50 | Zoomber | prebuilt installers on their page are only 32 bit for mac |
| 08:02:25 | sam686 | how much memory for your mac have? and CPU? |
| 08:03:30 | | kodaws Quit (Ping timeout: 245 seconds) |
| 08:03:32 | Zoomber | 12Gb total |
| 08:03:53 | Zoomber | yeah, i finally got enough for the upgrade |
| 08:04:27 | sam686 | could try running your own virtual machine for linux server, but you need to figure out the port forward.. |
| 08:04:56 | sam686 | not sure, it says the mac mono isn't available.. |
| 08:05:09 | sam686 | maybe there is alternative to mono that helps run EXE |
| 08:05:13 | Zoomber | not sure how good it will be for me to run vmbox constnatly.. |
| 08:05:48 | Zoomber | the 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:11 | Zoomber | ok, it actually configured |
| 08:06:12 | Zoomber | trying a make |
| 08:06:16 | Zoomber | this could take a while, couldnt it |
| 08:09:46 | Zoomber | i see bitfighter sam686 isnt up, maybe there's an issue getting the server to work? |
| 08:10:53 | sam686 | oh, almost up, just want to install gdb (for debugging stuff when it crash) |
| 08:11:47 | Zoomber | ok |
| 08:12:05 | sam686 | try to avoid 64-bit less-then-1024 MB vps |
| 08:12:29 | sam686 | your 74 vps is 64 bit, and have about 350 MB? |
| 08:12:57 | Zoomber | it came that way |
| 08:12:58 | sam686 | because, 64 bit use a bit more memory |
| 08:13:16 | Zoomber | i could reinstall it, but then that would destroy all my information on it |
| 08:14:00 | sam686 | although, i an not sure if it is worth the work to reinstall, |
| 08:14:17 | sam686 | files on vps is nothing much important to me anyway |
| 08:16:13 | | kodabbws Quit (Read error: Connection reset by peer) |
| 08:20:41 | Zoomber | this mono framework might suprisingly compile |
| 08:20:43 | Zoomber | no error yet |
| 08:23:05 | sam686 | got "bitfighter sam686" server going now |
| 08:24:57 | sam686 | also, 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:07 | sam686 | should be no problem, unless some people tries to use "74.122.199.250" as a DNS ip address |
| 08:30:12 | Zoomber | noo i have an error |
| 08:30:12 | Zoomber | ok |
| 08:30:15 | sam686 | Zoomber , i wonder why http://maxhushahn.com is not working (dns error)? |
| 08:30:31 | Zoomber | not sure, anythingelse.maxhushahn.com works |
| 08:31:33 | sam686 | try this command: ssh 127.0.0.1 |
| 08:31:43 | sam686 | is ssh to the same server |
| 08:31:57 | sam686 | kind of useless though (and uses a bit more memory) |
| 08:33:21 | sam686 | using pre-compiles is faster then compiling, finding precompiled binary might be harder or take longer though... |
| 08:35:46 | sam686 | http://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:23 | Zoomber | right |
| 08:36:37 | Zoomber | all-local |
| 08:36:38 | Zoomber | MCS [net_2_0] OpenSystem.C.dll |
| 08:36:38 | Zoomber | Assembly ../../class/lib/net_2_0/OpenSystem.C.dll signed. |
| 08:36:38 | Zoomber | make all-local |
| 08:36:38 | Zoomber | make[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:39 | Zoomber | make[7]: *** [do-all] Error 2 |
| 08:36:42 | Zoomber | thats what Gets me with the compile |
| 08:42:27 | sam686 | maybe you should use a different version (preferable a release version) instead of latest.. |
| 08:43:30 | Zoomber | i just tried to download a zipball, whatever that was |
| 08:43:35 | Zoomber | i'm really unsure what source i need to compile from |
| 08:44:41 | Zoomber | any ideas? maybe there's a different repo that works hand in hand with the main page's tutorial |
| 08:45:04 | | kodax has joined |
| 08:47:18 | sam686 | found this https://github.com/mono/mono |
| 08:47:31 | Zoomber | ok ok wait |
| 08:47:52 | Zoomber | so 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:06 | Zoomber | so maybe that zip file, watever that was, was a nonstable release? |
| 08:48:30 | sam686 | maybe you downloaded a latest changes which wasn't a release, probably, i guess |
| 08:48:36 | Zoomber | yeah |
| 08:48:39 | Zoomber | oh, now i see a branch button |
| 08:48:51 | Zoomber | maybe i can try tagging to the latest mono branch |
| 08:49:27 | sam686 | or maybe you can use git to download, makes it easier to changes version.. |
| 08:49:38 | Zoomber | ok |
| 08:49:53 | sam686 | as in, this: git://github.com/mono/mono.git |
| 08:51:41 | sam686 | i 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:34 | Zoomber | i cant seem to clone it |
| 08:52:40 | Zoomber | the repository was "denied" |
| 08:53:51 | sam686 | not sure, and i don't know if "https" will work an an alternative to "git" |
| 08:54:20 | Zoomber | the repository was reachable, but denied when i tried to clone it i guess |
| 08:54:40 | Zoomber | oh wait |
| 08:54:44 | Zoomber | that's xcode trying to clone it |
| 08:55:11 | sam686 | is xcode compatible to git? |
| 08:55:16 | Zoomber | yeah, nativley |
| 08:55:19 | Zoomber | and with svn |
| 08:55:38 | sam686 | try a blank username, blank password, maybe, but not sure what else.. |
| 08:55:40 | Zoomber | in fact, xcode picks up links that start with git:// and automatically ask if i want to add them |
| 08:55:50 | Zoomber | it didnt prompt me for a password, but it worked the second time for some reason |
| 08:56:13 | Zoomber | 2 am here, what's it for you? |
| 08:56:21 | sam686 | 3:56 AM |
| 08:56:28 | Zoomber | i suppose you dont like sleeping? |
| 08:56:49 | sam686 | i woke up kind of late.. |
| 08:57:08 | Zoomber | oh, ok |
| 08:57:17 | Zoomber | hmm, xcode gets more errors |
| 08:57:36 | Zoomber | "unable to write sha1 filename ...whatever...blaasdf.pack: no such file or dir" |
| 08:57:38 | Zoomber | well |
| 08:57:49 | Zoomber | i need to figureout how to use the github app itself and not xcode |
| 08:58:39 | sam686 | maybe xcode might not have "FULL" support of git, i think? |
| 08:58:55 | Zoomber | probably not, and also, the mono source code has no xcode project |
| 09:01:58 | Zoomber | there we go |
| 09:02:06 | Zoomber | got the github app working, finally cloning the repo |
| 09:02:14 | Zoomber | then i can try switching UI |
| 09:02:19 | Zoomber | branch* |
| 09:02:28 | Zoomber | not sure why i said "UI" |
| 09:07:33 | Zoomber | hey sam686, any idea what branch i should switch to? |
| 09:07:36 | Zoomber | i cloned the main code now |
| 09:08:07 | sam686 | probably anyone that is tagged as a version number indicating a release |
| 09:09:27 | sam686 | but, version number should be 2.7+ as it says on compiling instruction http://mono-project.com/Compiling_Mono_on_OSX |
| 09:09:45 | sam686 | higher version is usually better |
| 09:09:52 | Zoomber | ok, im on a 2.10 branch |
| 09:10:34 | sam686 | good, now try compiling.. and hope for no error |
| 09:11:12 | Zoomber | ok, just rolled back to a commit |
| 09:12:13 | Zoomber | i guess i'm doing the compile then |
| 09:12:18 | Zoomber | it just sucks because compiles take forrreever |
| 09:12:37 | Zoomber | and i'm getting tired, i may have to sleep and check if its done in the morning |
| 09:12:45 | sam686 | is your computer faster then mine? |
| 09:13:09 | sam686 | full compiling bitfighter takes about 7 minutes on my slow computer.. |
| 09:13:28 | Zoomber | for bitfighter, but this is mono |
| 09:13:55 | Zoomber | what 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:11 | sam686 | probably mono is 5 times more code to compile, i guess |
| 09:14:48 | Zoomber | ill just give it one shot at compiling tonight, and one shot to comile while i sleep |
| 09:20:27 | sam686 | as 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:11 | Zoomber | code is still going |
| 09:24:16 | Zoomber | do you think it will error? |
| 09:24:51 | sam686 | not sure, if it is going longer then previous, then maybe it passed the point where it would error? |
| 09:25:01 | Zoomber | i dont knwo if it went longer than previous |
| 09:25:23 | Zoomber | things are speeding p in the console now |
| 09:25:25 | Zoomber | speeeeeeding up |
| 09:26:22 | Zoomber | yeah, i think i passed the error i was at before |
| 09:26:25 | Zoomber | but this is a LOT of stuff |
| 09:26:39 | Zoomber | i think its assembling the compiled libraries now |
| 09:27:21 | Zoomber | there's alot of errors, but it doesn't seem to stop |
| 09:28:10 | sam686 | errors aren't always a good sign, if they are only "warnings" then it ia probably ok.. |
| 09:28:27 | Zoomber | no, full out errors, but not compiling errors |
| 09:28:48 | Zoomber | errors in whatever its doing, assembly i guess, but after the errors it says whatever it was doing complets successfully |
| 09:29:02 | Zoomber | "Compilation succeded" |
| 09:31:01 | Zoomber | also, i get lots of "warning: unreachable code detected". i wonder what that means |
| 09:32:01 | sam686 | maybe unreachable code might mean it will never print in case of this: if(3 == 4) print("hellp); |
| 09:32:34 | Zoomber | possibly, though there are alot of them here |
| 09:33:23 | sam686 | who knows, maybe some programmer is too lazy to fix some warnings... |
| 09:33:57 | Zoomber | theres about 5 warnings showing up per second |
| 09:34:02 | Zoomber | well, half the time |
| 09:34:54 | Zoomber | i think its finishing up |
| 09:34:56 | Zoomber | yay it finished |
| 09:35:27 | Zoomber | ok i was successfull with the make, but havaing errors doing a make install |
| 09:37:45 | sam686 | well 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:48 | Zoomber | ah, it works if i do a sudo make install |
| 09:38:08 | Zoomber | wait, what's te downside of a virtual machine? |
| 09:38:55 | sam686 | probably it won't have direct access to 3D hardware graphics (though mostly unused if running server only) |
| 09:39:14 | Zoomber | will it use more power than mono? |
| 09:39:18 | Zoomber | or more ram? |
| 09:39:27 | Zoomber | also, then i have to preallocate it |
| 09:40:00 | sam686 | well, 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:28 | Zoomber | dammit |
| 09:40:38 | Zoomber | still 32 bit |
| 09:40:45 | Zoomber | i dont even know why... |
| 09:40:53 | Zoomber | i specified x86_64 at the beginning |
| 09:40:57 | sam686 | using 64-bit EXE? |
| 09:40:58 | Zoomber | oh well |
| 09:41:10 | Zoomber | the exe runs in whatever mono is i think |
| 09:41:38 | sam686 | i think you need 64-bit EXE as well, i think.. |
| 09:42:03 | Zoomber | it has to be, the error i get is |
| 09:42:03 | sam686 | or did the same way on running exe on 64-bit linux work? |
| 09:42:04 | Zoomber | Warning : 32-bit operating systems are not officially supported. |
| 09:42:04 | Zoomber | Warning : You should upgrade to a 64-bit operating system. |
| 09:42:22 | Zoomber | ah found it |
| 09:42:24 | sam686 | does it let you use more then 3 GB ram? |
| 09:42:30 | Zoomber | it detects the system type and decides what mode to run in |
| 09:43:06 | Zoomber | dammit |
| 09:43:08 | Zoomber | what a waste of time |
| 09:43:14 | Zoomber | i got nowhere |
| 09:43:15 | Zoomber | ok |
| 09:43:17 | | LordDVG Quit (Read error: Connection reset by peer) |
| 09:43:24 | Zoomber | i guess i'm forced to go with using a VM |
| 09:43:38 | Zoomber | which might not be a bad idea, except i can't just leave a graphical vm app running |
| 09:44:00 | Zoomber | possibly to set one up via ssh and run it via ssh? |
| 09:44:40 | | LordDVG has joined |
| 09:45:07 | sam686 | it might be possible to hide the virtual machine, i think.. |
| 09:46:57 | | zoomber1 has joined |
| 09:47:20 | sam686 | i will need to go, bye |
| 09:47:22 | zoomber1 | ok |
| 09:47:23 | zoomber1 | bye |
| 09:47:29 | | sam686 has left |
| 09:47:37 | | zoomber1 Quit (Client Quit) |
| 10:49:00 | | Watusimoto has joined |
| 10:49:45 | | Watusimoto Quit (Read error: Connection reset by peer) |
| 10:50:59 | | Watusimoto has joined |
| 12:09:09 | | Watusimoto Quit (Ping timeout: 240 seconds) |
| 12:14:24 | | LordDVG Quit (Remote host closed the connection) |
| 12:42:35 | | Watusimoto has joined |
| 12:51:55 | | raptor has joined |
| 12:51:55 | | ChanServ sets mode +o raptor |
| 13:02:35 | raptor | buenos! |
| 13:04:43 | Watusimoto | hi |
| 13:05:14 | Watusimoto | still have link errors!!! joy! |
| 13:06:29 | raptor | oh man |
| 13:15:38 | Watusimoto | ok, just built. will now try a clean build to make sure it's for real |
| 13:15:43 | Watusimoto | then I need to see if it actually runs |
| 13:15:50 | raptor | haha |
| 13:16:02 | Watusimoto | last night I had a moment of hope before it segfaulted |
| 13:16:19 | Watusimoto | then there is the higher hurdle of seeing if it compiles on linux |
| 13:16:30 | Watusimoto | which we have reason to suspect won't work |
| 13:16:43 | Watusimoto | but... if it does... awesome! |
| 13:17:38 | raptor | i'll be here to test :) |
| 13:18:08 | Watusimoto | now avira won;t let me build |
| 13:18:11 | raptor | or maybe you could just to go to vim + mingw on windows, then i'll never need to worry again :) |
| 13:18:15 | Watusimoto | stupid piece of crap |
| 13:18:17 | raptor | haha |
| 13:18:47 | Watusimoto | ok, build worked... not to test |
| 13:19:12 | Watusimoto | segfault |
| 13:22:54 | raptor | sneaky NPE |
| 13:24:37 | Watusimoto | odd -- a full vector is getting emptied after filling, before use |
| 13:24:45 | Watusimoto | but never explicitly emptied |
| 13:24:56 | Watusimoto | and it's static |
| 13:25:07 | Watusimoto | so there should be only one |
| 13:35:53 | Watusimoto | ok, this static vector has at least 3 different addresses at different times |
| 13:36:25 | Watusimoto | I suspect this is template related |
| 13:37:17 | Watusimoto | though the vector has no direct template associations |
| 13:52:40 | raptor | maybe it's something completely unrelated |
| 14:00:20 | Watusimoto | looks like luaWrapper gets included 3 times, each as an indepndent entity |
| 14:00:30 | Watusimoto | with all statics declared therein being triplicated |
| 14:00:48 | Watusimoto | not sure how to confirm or fix this |
| 14:02:10 | raptor | circular includes! |
| 14:02:23 | raptor | there is a gcc option to let you see the include tree of a specific header |
| 14:02:47 | Watusimoto | this might detect it: |
| 14:02:48 | Watusimoto | struct tester |
| 14:02:48 | Watusimoto | { |
| 14:02:48 | Watusimoto | tester() { printf("Hello!!!!!!!!!!!!!!!!!!!!!!!!!!!!!\n"); } |
| 14:02:48 | Watusimoto | }; |
| 14:02:48 | Watusimoto | static tester xxx; |
| 14:02:58 | Watusimoto | should only get printed once |
| 14:03:27 | raptor | ha |
| 14:03:53 | raptor | gcc -M does it, as well - maybe there's a similar option for vc++ |
| 14:05:14 | raptor | http://stackoverflow.com/questions/1137966/displaying-the-include-hierarchy-for-a-c-file-in-visual-studio |
| 14:05:42 | Watusimoto | my test won't link |
| 14:05:49 | Watusimoto | trying full rebuild |
| 14:06:09 | Watusimoto | yes, templates are awesome |
| 14:06:21 | raptor | macro macro! |
| 14:07:52 | Watusimoto | I'm using macros to wrap the templates |
| 14:08:00 | Watusimoto | kind of like a crap sandwich |
| 14:08:32 | Watusimoto | full rebuild worked |
| 14:08:47 | Watusimoto | good lord... about 30 hello!!!! lines |
| 14:09:40 | Watusimoto | there IS an include guard in LuaWrapper.h |
| 14:10:43 | raptor | maybe the #include made it into a macro? |
| 14:10:48 | raptor | err.. |
| 14:11:04 | raptor | actually i have no idea... |
| 14:12:04 | Watusimoto | showIncludes option is not terribly useful, sadly |
| 14:14:28 | Watusimoto | pastie overflowed with even a partial sample of the output |
| 14:15:12 | raptor | yuk |
| 14:16:34 | Watusimoto | so we'll try putting a break pioint on the print line |
| 14:21:55 | raptor | and write down the call tree? |
| 14:22:49 | Watusimoto | call tree is useless, alas\ |
| 14:23:49 | Watusimoto | this must be being included from more than one place; perhaps independent bits that don't see each other's #defines ??? |
| 14:23:49 | Watusimoto | if that's possible |
| 14:24:08 | raptor | i don't see how? |
| 14:24:36 | Watusimoto | nor do i |
| 14:25:15 | raptor | http://stackoverflow.com/questions/607259/using-static-variable-along-with-templates |
| 14:26:54 | raptor | ^^ maybe that has something to do with it? |
| 14:26:56 | Watusimoto | we'll try putting the vectors in a different class |
| 14:27:40 | Watusimoto | maybe a little like that, but this is not ina template |
| 14:28:02 | Watusimoto | though something that refers to something that refers to this is |
| 14:28:11 | Watusimoto | and I'm thinking the template may be contagious |
| 14:28:13 | raptor | ha |
| 14:28:39 | Watusimoto | You're getting two copies of the same variable because you've declared a static variable in a header file. |
| 14:28:46 | Watusimoto | that is exactly what I'm doing |
| 14:31:00 | | kodax Quit (Excess Flood) |
| 14:31:37 | | kodax has joined |
| 14:32:25 | raptor | well so far git is less friendly than hg was upon first learning... |
| 14:33:09 | Watusimoto | except I want the behavior the poster is complaining about |
| 14:33:15 | Watusimoto | and I;m not getting it |
| 14:40:14 | Watusimoto | ok, I've reread the case 100 times |
| 14:40:28 | Watusimoto | this is definitely my problem: |
| 14:40:29 | Watusimoto | You'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:45 | Watusimoto | but this is not what I want |
| 14:40:47 | Watusimoto | I 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:41 | Watusimoto | but what I want is a single static variable that applies to all templates |
| 14:41:48 | Watusimoto | and I'm not yet sure how to get that |
| 14:41:55 | raptor | then it might need to be in a namespace? |
| 14:42:12 | raptor | or at least, only defined in the header |
| 14:42:17 | raptor | and declared once in a .cpp? |
| 14:42:42 | Watusimoto | possibly, but I'm trying to do this all within LuaWrapper.h |
| 14:43:38 | raptor | you may need a .cpp to go along with it: LuaWrapper.cpp |
| 14:44:09 | Watusimoto | that would be lame! |
| 14:46:15 | Watusimoto | but that may be a solution; or define the vectors somewhere else |
| 14:47:26 | Watusimoto | unfortunately, that is startting to destroy the elegance I was hoping for |
| 14:47:54 | Watusimoto | I 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:44 | raptor | templates? attractive? |
| 14:49:01 | raptor | i didn't know those words had anything to do with each other |
| 14:53:22 | Watusimoto | ok, back in a bit |
| 15:31:30 | | kodax Quit (Quit: kodax out) |
| 16:00:16 | Watusimoto | I can't declare the vectors outside of the luaWrapper header |
| 16:00:21 | Watusimoto | on pain of link errors |
| 16:00:36 | | kodaws has joined |
| 16:01:06 | raptor | what are the vectors being used for again? |
| 16:01:29 | Watusimoto | long explanation |
| 16:01:33 | Watusimoto | used for registration |
| 16:01:45 | Watusimoto | for regestering the lua classes |
| 16:01:54 | Watusimoto | trying to decentralize it |
| 16:02:15 | Watusimoto | I can fix it in a less elegant way; I think I'll do that |
| 16:05:11 | Watusimoto | just won't be integrated in luaW |
| 16:05:17 | Watusimoto | this is such a pain |
| 16:22:09 | | Watusimoto Quit (Ping timeout: 240 seconds) |
| 16:24:24 | | kodaws Quit (Read error: Connection reset by peer) |
| 16:28:52 | | kodax has joined |
| 17:03:09 | | Watusimoto has joined |
| 17:24:25 | Watusimoto | more link errors |
| 17:25:49 | raptor | the bane of our existence |
| 17:26:07 | Watusimoto | besides templates, you mean |
| 17:27:02 | raptor | oh yes, that too |
| 17:33:15 | kodax | linkage where? |
| 17:33:19 | kodax | linux/win/osx? |
| 17:35:50 | raptor | he is having template problems in windows (i'm sure they'd exist everywhere) |
| 17:38:00 | | Watusimoto Quit (Ping timeout: 260 seconds) |
| 17:50:19 | | Watusimoto has joined |
| 17:50:51 | | Zoomber_ has joined |
| 17:50:51 | | Zoomber Quit (Read error: Connection reset by peer) |
| 17:50:51 | | ChanServ sets mode +v Zoomber_ |
| 17:50:52 | | Zoomber_ is now known as Zoomber |
| 18:00:08 | kodax | raptor: i found some crosscompiler tools |
| 18:00:12 | kodax | from linux to osx |
| 18:00:21 | raptor | oooo |
| 18:00:24 | kodax | maybe they could help your quest |
| 18:00:30 | kodax | in maintaing the osx build |
| 18:00:35 | raptor | my quest to be mac free! |
| 18:00:42 | raptor | :P |
| 18:01:04 | kodax | enjoy https://launchpad.net/~flosoft/+archive/cross-apple :) |
| 18:01:18 | kodax | if you're not on maverik, you can use the debs |
| 18:01:31 | kodax | and if you're not debian based, you can use the sources and compile them |
| 18:03:10 | kodax | took a while to have them working, but it's better than compiling manually :P |
| 18:21:43 | Watusimoto | so 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:15 | Watusimoto | I'm a maverick because I'm using templates! |
| 18:22:22 | raptor | so you're heating the house |
| 18:25:59 | Watusimoto | I'm ensuring I'll have no further children |
| 18:26:47 | raptor | ah... see that's why i put my laptop on a piece of wood, or a solid book |
| 18:26:57 | Watusimoto | I see this as a benefit |
| 18:28:43 | kodax | lol |
| 18:29:02 | | LordDVG has joined |
| 18:37:26 | Watusimoto | now I'm getting really crazy |
| 18:37:31 | Watusimoto | just warning you |
| 18:37:33 | raptor | in the head? |
| 18:37:39 | Watusimoto | well yes |
| 18:38:05 | Watusimoto | but also creating a scheme of pointers to try to force this damn code to have just ONE vector |
| 18:39:32 | Watusimoto | rats |
| 18:39:36 | Watusimoto | this won't work |
| 18:39:57 | raptor | are you sure you don't just want to ask on StackOverflow and take a peaceful break for a few days? |
| 19:12:59 | kodax | that often works |
| 19:19:35 | | LordDVG Quit (Remote host closed the connection) |
| 19:31:26 | Watusimoto | I may yet do that |
| 19:31:43 | Watusimoto | there's still a few permutations of characters I haven't tried typing yet |
| 19:32:18 | raptor | haha |
| 19:34:41 | | Watusimoto_ has joined |
| 19:36:46 | | Watusimoto Quit (Ping timeout: 252 seconds) |
| 19:39:46 | | sam686 has joined |
| 19:39:46 | | ChanServ sets mode +v sam686 |
| 19:49:30 | | LordDVG has joined |
| 19:53:03 | | LordDVG Quit (Remote host closed the connection) |
| 19:53:37 | Watusimoto_ | all this template code needs to be in the .h file |
| 19:53:57 | Watusimoto_ | but the statics it refers to should be defined in a .cpp file |
| 19:54:28 | Watusimoto_ | but if its in the cpp file, the h file can't see it |
| 19:54:46 | raptor | declared in teh .cpp |
| 19:55:07 | raptor | so in .h: static vector dumbContainer |
| 19:55:26 | raptor | in .cpp: static vector dumbContainer = Vector(); |
| 19:55:27 | raptor | maybe? |
| 19:58:54 | sam686 | maybe something similar to this will work? http://sam686.maxhushahn.com/upload/text1205/120506_14-05-29.txt |
| 19:59:23 | Renderwahn | declare it extern in the header? |
| 20:00:05 | raptor | ok, refresh my memory: is the 'declaration' or 'definition' part that has the equals '=' in it? |
| 20:00:25 | Watusimoto_ | here's what I've got |
| 20:00:26 | Watusimoto_ | http://pastie.org/3870060 |
| 20:00:36 | Renderwahn | raptor: definition |
| 20:00:39 | Watusimoto_ | there's a lot of extraneous classes in there |
| 20:00:53 | Watusimoto_ | as I've tried to force things to work |
| 20:01:37 | Watusimoto_ | I tried declaring registrationFunctions in a (now deleted) parent class of LuaRegistrarBase1 |
| 20:02:29 | sam686 | if this is outside of any class / struct: static std::vector<RegFunc> registrationFunctions; |
| 20:02:41 | Renderwahn | declare it as extern and put the definition in the cpp file |
| 20:02:53 | Renderwahn | or the "proper" declaration |
| 20:02:53 | sam686 | thent that will make each cpp file have their own set of "registrationFunctions;" |
| 20:03:00 | Watusimoto_ | what is there probably won;t work |
| 20:03:18 | Watusimoto_ | I' trying the extern thing now; I've tried sevearl variants on it, but will give it another go |
| 20:03:36 | sam686 | try changing that to "extern" not "static" and put a "std::vector<RegFunc> registrationFunctions;" in cpp file |
| 20:04:39 | Watusimoto_ | changed the declarations on line 3 & 4 to externs, and copied 3 & 4 to a cpp file. compiling now |
| 20:06:32 | Watusimoto_ | holy crap... it compiled |
| 20:06:36 | Watusimoto_ | but will it run? |
| 20:06:44 | Renderwahn | it compiles! ship it! |
| 20:06:53 | Watusimoto_ | why spoil it by testing? |
| 20:06:58 | Renderwahn | indeed |
| 20:08:22 | Watusimoto_ | ok, it crashed |
| 20:08:35 | Watusimoto_ | give me a sec and I'll explain why |
| 20:08:40 | Watusimoto_ | because it's pretty weird |
| 20:10:35 | Watusimoto_ | http://pastie.org/3870107 |
| 20:10:47 | Watusimoto_ | I'm still compiling this, but I added two printf statements |
| 20:10:56 | Watusimoto_ | I think the pointers there will be different |
| 20:11:10 | Watusimoto_ | even though they should be the same |
| 20:11:30 | Watusimoto_ | no, they are the same |
| 20:11:33 | Watusimoto_ | ok |
| 20:11:42 | Watusimoto_ | so that's good, I guess |
| 20:12:22 | Watusimoto_ | now we're in a new realm of crashingness |
| 20:18:31 | raptor | a whole new realm! |
| 20:23:13 | Renderwahn | to boldly crash where no program has crashed before |
| 20:24:08 | Watusimoto_ | one item is disappearing from my vector, I think |
| 20:24:26 | Watusimoto_ | trying to prove that |
| 20:24:52 | Watusimoto_ | I see 6 things going in, but when I iterate over it, I only get 5 iterations |
| 20:27:37 | Watusimoto_ | the first item is getting clobbered somehow... perhaps by a reinitialization of the vector??? |
| 20:29:04 | Watusimoto_ | Registering Reg Functions 1: 01499E58 1 |
| 20:29:04 | Watusimoto_ | Registering Reg Functions 2: 01499E58 1 |
| 20:29:04 | Watusimoto_ | Registering Reg Functions 2: 01499E58 2 |
| 20:29:04 | Watusimoto_ | Registering Reg Functions 2: 01499E58 3 |
| 20:29:04 | Watusimoto_ | Registering Reg Functions 2: 01499E58 4 |
| 20:29:06 | Watusimoto_ | Registering Reg Functions 2: 01499E58 5 |
| 20:29:13 | Watusimoto_ | address, followed by number of items in the vector |
| 20:29:22 | Watusimoto_ | printed after adding an item |
| 20:29:29 | Watusimoto_ | so that first item disappears somehow |
| 20:30:00 | Watusimoto_ | note that the very first number, the 1/2 refers to the template that's adding the item |
| 20:30:15 | Renderwahn | those are different vectors you add them too -_- |
| 20:30:19 | Renderwahn | registrationFunctions.push_back(®isterClass); |
| 20:30:28 | Renderwahn | oh nvm |
| 20:30:40 | Renderwahn | i did not read it correctly |
| 20:30:52 | Watusimoto_ | 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:08 | Renderwahn | is it intentional that regfun 1 only adds to one vector? |
| 20:31:43 | Watusimoto_ | updated code at http://pastie.org/3870203 |
| 20:31:52 | Watusimoto_ | yes |
| 20:32:10 | Watusimoto_ | I add one "type 1" item, and a number of "type 2" |
| 20:36:10 | Renderwahn | the adresses of the vectors are the same? |
| 20:36:14 | Renderwahn | oh |
| 20:36:16 | Renderwahn | nvm |
| 20:47:41 | Watusimoto_ | we create a TON of vectors during initialization |
| 20:47:52 | Watusimoto_ | I put a breakpoint in the vector construction code |
| 20:47:54 | Watusimoto_ | TONs |
| 20:49:33 | kodax | sometimes i'm happy that hedgewars doesn't use c++ |
| 20:51:55 | raptor | is there nothing akin to c++ templates in freepascal or haskell? |
| 20:52:12 | raptor | probably not, since their more functional in nature, huh? |
| 20:52:15 | Watusimoto_ | ok, creating TWO vectors, so each template will write to its own |
| 20:52:17 | raptor | *they're |
| 20:52:20 | Watusimoto_ | functions1 and functions2 |
| 20:52:24 | Watusimoto_ | let's see if that works |
| 20:52:42 | Watusimoto_ | this is getting totally nutzo |
| 20:54:29 | Watusimoto_ | argh!!!!! |
| 20:54:30 | Watusimoto_ | Registering Reg Functions 1: 00C09FA8 1 |
| 20:54:31 | Watusimoto_ | Registering Reg Functions 2: 00C09E20 1 |
| 20:54:31 | Watusimoto_ | Registering Reg Functions 2: 00C09E20 2 |
| 20:54:31 | Watusimoto_ | Registering Reg Functions 2: 00C09E20 3 |
| 20:54:31 | Watusimoto_ | Registering Reg Functions 2: 00C09E20 4 |
| 20:54:32 | Watusimoto_ | Registering Reg Functions 2: 00C09E20 5 |
| 20:54:35 | Watusimoto_ | Welcome to Bitfighter! |
| 20:54:37 | Watusimoto_ | Could not launch updater, returned error: T |
| 20:54:38 | raptor | heh |
| 20:54:39 | Watusimoto_ | d C:\Users\Chris\Documents\bf-trunk\zap\..\ |
| 20:54:41 | Watusimoto_ | Client connecting to master [bitfighter.org |
| 20:54:42 | kodax | raptor: well you can use pascal like oop but since it has everything in a single file it has less problems compiling |
| 20:54:44 | Watusimoto_ | Recast built 1 zones! |
| 20:54:46 | Watusimoto_ | Timings: 0 1 1 |
| 20:54:49 | Watusimoto_ | IP:Any:0 - connected to server. |
| 20:54:50 | Watusimoto_ | IP:Any:0 - client "watusimoto" connected. |
| 20:54:52 | Watusimoto_ | Server connecting to master [bitfighter.org |
| 20:54:55 | Watusimoto_ | Reading Reg Functions 1: 00C09FA8 0 |
| 20:54:55 | kodax | pascal is almost unlinkable to c++ |
| 20:54:57 | Watusimoto_ | Reading Reg Functions 2: 00C09E20 5 |
| 20:54:59 | Watusimoto_ | my "1" vector empties itself!!! |
| 20:55:03 | Watusimoto_ | impossible!!! |
| 20:55:14 | raptor | unpossible |
| 20:55:30 | Watusimoto_ | where did it go?!??!? |
| 20:55:43 | kodax | barred-possible |
| 20:55:55 | raptor | into the divide-by-zero black hole |
| 20:57:23 | Renderwahn | is it all a single binary or are there some shared libraries or something like that? |
| 20:57:32 | Watusimoto_ | this part is all single binary |
| 20:58:10 | Watusimoto_ | I should probably try a complete rebuild, just to be sure |
| 20:58:24 | raptor | i give my full support of that decision |
| 20:58:38 | Watusimoto_ | just in case my apartment were not yet warm enough |
| 21:00:02 | Renderwahn | are those reg functions called after the main function was entered? |
| 21:00:18 | Watusimoto_ | no |
| 21:00:34 | Watusimoto_ | they are called during pre main running, or whatever that time is called |
| 21:00:54 | Renderwahn | that could be the problem, initialization order is undefined there |
| 21:01:01 | Watusimoto_ | yes, and that's ok |
| 21:01:06 | Watusimoto_ | I think |
| 21:01:21 | Renderwahn | maybe the vector isn't initialized the first time reg fun is called |
| 21:01:23 | Watusimoto_ | well, as long as the vector has been initialized before everything else |
| 21:01:36 | Watusimoto_ | but wouldn't I get an error? maybe not |
| 21:01:54 | Watusimoto_ | ok, I could try doing a lazy intiailze to force it to be intialized |
| 21:02:04 | Watusimoto_ | sigh |
| 21:04:22 | Renderwahn | you could put in a function vector<RegFunc>& getRegistrationFunctions(){static vector<RegFunc> functions; return functions;} instead of the extern mambo jambo |
| 21:05:32 | raptor | are the vectors not static? |
| 21:05:39 | Watusimoto_ | they are static |
| 21:06:00 | Watusimoto_ | they are NOT static |
| 21:06:04 | Watusimoto_ | sorry |
| 21:18:39 | | kodax Quit (Ping timeout: 240 seconds) |
| 21:34:43 | Watusimoto_ | we need a language that is easy like java, but not lame like java |
| 21:35:53 | raptor | haha |
| 21:36:17 | raptor | google go!? |
| 21:36:37 | raptor | i have no experience with it really.. |
| 21:36:39 | Watusimoto_ | IT WORKED!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! |
| 21:36:46 | raptor | que pasa? |
| 21:37:02 | Watusimoto_ | Renderwahn: I found a permutation on your suggestion that compiled and runs!! and does the right thing! |
| 21:37:19 | Renderwahn | Watusimoto_: lol, when in doubt, try random things until it works |
| 21:37:28 | Watusimoto_ | yes, I've been doing that |
| 21:37:35 | raptor | cat /dev/urandom > bitfighter.cpp |
| 21:37:37 | Renderwahn | i'd suggest D as a nice language |
| 21:37:44 | Watusimoto_ | now the prioblme is this will not work on linux, I bet |
| 21:37:52 | Watusimoto_ | I'm going to clean it up a bit and check it in |
| 21:37:57 | raptor | ok, then i'll test |
| 21:38:01 | Watusimoto_ | oh but if it does... |
| 21:38:11 | raptor | icing on the cake? |
| 21:40:01 | Watusimoto_ | we'll see |
| 21:40:51 | sam686 | java appears to have less features then C++, when comparing them.. http://en.wikipedia.org/wiki/Comparison_of_Java_and_C%2B%2B |
| 21:42:48 | Watusimoto_ | it is missing pointers and unsigned ints |
| 21:42:59 | Watusimoto_ | and maybe a couple of other minor things |
| 21:43:09 | raptor | like c++ templates |
| 21:43:11 | Watusimoto_ | but when you use it with Eclipse, it is really quite nice |
| 21:43:19 | raptor | ^^ it's missing c++ templates |
| 21:43:20 | Watusimoto_ | aside from the totally sucking part |
| 21:43:22 | raptor | haha |
| 21:43:32 | Watusimoto_ | well, it has template-like things |
| 21:43:45 | raptor | of course.. but not c++ ones... |
| 21:43:48 | raptor | that's a feature |
| 21:44:43 | Watusimoto_ | yes |
| 21:44:49 | Watusimoto_ | c++ templates just spit out code |
| 21:45:01 | Watusimoto_ | which I like in a way -- things run fast |
| 21:45:19 | Watusimoto_ | but it has this annotation voodoo |
| 21:45:27 | Watusimoto_ | which I never fully understood |
| 21:45:57 | Watusimoto_ | 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:14 | raptor | you mean java annotations? |
| 21:48:31 | Watusimoto_ | yes |
| 21:48:35 | Watusimoto_ | ok, pushing |
| 21:49:16 | Watusimoto_ | if this all works, we can now do REGISTER_CLASS(Asteroid); in the asteroid class instead of registering them over in LuaObject |
| 21:49:25 | Watusimoto_ | was it worth it? probably not |
| 21:49:29 | raptor | ok |
| 21:49:32 | raptor | i will compile... |
| 21:54:35 | raptor | i don't see the changes.. |
| 21:55:42 | sam686 | http://code.google.com/p/bitfighter/source/list no sign of latest changes that is a few minutes ago... |
| 22:04:18 | Watusimoto_ | the push failed |
| 22:04:32 | raptor | murphey! |
| 22:04:38 | Watusimoto_ | I had previously pulled, apparently that failed |
| 22:04:44 | Watusimoto_ | merging |
| 22:05:03 | Watusimoto_ | ok, pushed |
| 22:05:30 | raptor | pulling... |
| 22:05:53 | raptor | here goes.. |
| 22:06:21 | raptor | kaboom: http://pastie.org/3870580 |
| 22:06:40 | raptor | looking.. |
| 22:07:32 | | BFLogBot - Commit 6bd97c7c2d0f | Author: watusim...@bitfighter.org | Log: Simplify lua class registration process |
| 22:07:33 | | BFLogBot - Commit ce1edf2f8b68 | Author: watusim...@bitfighter.org | Log: Comment |
| 22:07:35 | | BFLogBot - Commit 084fb17cd7a1 | Author: watusim...@bitfighter.org | Log: Push classnames down to defining class -- less custom junk in LuaObject |
| 22:07:36 | | BFLogBot - 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:38 | | BFLogBot - Commit ab55d52e3b9c | Author: watusim...@bitfighter.org | Log: Merge |
| 22:08:21 | raptor | looks like an issue of pedancy |
| 22:08:25 | raptor | is that a word? |
| 22:11:30 | raptor | well making it: T::registerClass2(); copmiles, but i don' tthink it's appropriate |
| 22:17:13 | Watusimoto_ | where do you make that change? |
| 22:18:03 | raptor | luaObject.h |
| 22:18:05 | raptor | 271 |
| 22:18:07 | raptor | and 279 |
| 22:18:19 | raptor | this is the compile error: http://pastie.org/3870580 |
| 22:19:18 | sam686 | raptor, you could try compiling with -fpermissive (that turns into warning instead of error) |
| 22:20:09 | raptor | i'm sure i could... |
| 22:20:29 | raptor | but i have no idea how being permissive will affect the futuer |
| 22:20:32 | raptor | *future |
| 22:23:49 | Watusimoto_ | ok, well, those lines will hopefully disappear soon... so do what you will with them |
| 22:24:32 | Watusimoto_ | am testing to see if I can compile with T:: prefix |
| 22:24:58 | Watusimoto_ | does it compile otherwise? |
| 22:25:49 | | IAmBeard has joined |
| 22:26:38 | Watusimoto_ | ah... is this what you did? |
| 22:26:38 | Watusimoto_ | LuaW_Registrar2() { T::registerClass2(); } |
| 22:26:50 | sam686 | you could try LuaRegistrarBase1<T>::registerClass1(); and LuaRegistrarBase2<T, U>::registerClass2(); |
| 22:26:53 | raptor | yeah - it compiles with that, but i don't think it's appropriate |
| 22:27:00 | raptor | oh good idea |
| 22:27:01 | Watusimoto_ | it's aboslutely not |
| 22:27:37 | raptor | sam686's idea works |
| 22:27:52 | raptor | continuing compile... |
| 22:28:23 | sam686 | and because you are calling a static method, you might only need class LuaW_Registrar2 without the ": public LuaRegistrarBase2<T, U> " part |
| 22:29:32 | raptor | Watusimoto_: now i hit the same error from my e-mail |
| 22:29:52 | Watusimoto_ | ah, that's what I was afraid of |
| 22:30:04 | Watusimoto_ | can you put that on pastie please? |
| 22:30:26 | raptor | http://pastie.org/3870664 |
| 22:30:50 | raptor | looks like there is an out-or-order error, too |
| 23:02:30 | Watusimoto_ | well, I'm not sure that IS a pointer to a member function |
| 23:02:35 | Watusimoto_ | despite the error messaeg |
| 23:02:44 | Watusimoto_ | I know it looks like one |
| 23:02:56 | raptor | ha |
| 23:03:18 | Watusimoto_ | 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:28 | Watusimoto_ | template <typename T, int (T::*methodName)(lua_State * )> |
| 23:03:28 | Watusimoto_ | int luaW_doMethod(lua_State *L) |
| 23:03:28 | Watusimoto_ | { |
| 23:03:28 | Watusimoto_ | T *w = luaW_check<T>(L, 1); |
| 23:03:28 | Watusimoto_ | if(w) |
| 23:03:29 | Watusimoto_ | return (w->*methodName)(L); |
| 23:03:31 | Watusimoto_ | lua_pushnil(L); |
| 23:03:34 | Watusimoto_ | return 1; |
| 23:03:36 | Watusimoto_ | } |
| 23:03:38 | Watusimoto_ | that;s the template |
| 23:04:08 | Watusimoto_ | so it is getting called in reference to a specific object; to me it seems more like a stringish thing |
| 23:04:26 | Watusimoto_ | I could probably rework this as a macro somehow and sidestep the issue |
| 23:04:36 | raptor | you are talking about the second type of error in that pastie, right? |
| 23:04:55 | Watusimoto_ | invalid use of ‘Zap::Item::getRad’ to form a pointer-to-member-function |
| 23:05:00 | Watusimoto_ | that one |
| 23:05:05 | Watusimoto_ | and others like it |
| 23:05:08 | raptor | ah that one |
| 23:06:35 | raptor | well luaMethods is static |
| 23:06:39 | raptor | but getRad is not |
| 23:08:01 | Watusimoto_ | no, but I don't care |
| 23:08:07 | raptor | i don't understand how vc++ still compiles without an object for getRad |
| 23:08:29 | Watusimoto_ | I think when it expands the template into code, it all gets fixed up |
| 23:09:01 | Watusimoto_ | I am sure the bulk of it can be macroized to avoid the whole issue |
| 23:09:26 | raptor | just think: if we were coding in C, we'd have to use macros! |
| 23:09:29 | Watusimoto_ | but I'm not sure we can do an elegant solution like: |
| 23:09:30 | Watusimoto_ | { "isInCaptureZone", luaW_doMethod<Item, &isInCaptureZone> }, |
| 23:09:46 | Watusimoto_ | that's what lets us bypass the local static function |
| 23:10:34 | Watusimoto_ | if you recall our earlier conversation |
| 23:11:14 | Watusimoto_ | doGetClassId looks like where we started (item.cpp line 233) |
| 23:11:45 | Watusimoto_ | we used to need a function like that for every method in the luaMethods list |
| 23:11:56 | Watusimoto_ | now the template does it all |
| 23:12:33 | Watusimoto_ | 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:45 | raptor | hmmm |
| 23:15:03 | Watusimoto_ | try changing { "getRad", luaW_doMethod<Item, &getRad> }, to { "getRad", luaW_doMethod<Item, &Item::getRad> }, |
| 23:15:12 | Watusimoto_ | (inserting Item::) |
| 23:15:33 | Watusimoto_ | on all luaMethods[] in item.cpp line 244 |
| 23:15:45 | Watusimoto_ | probably won't help |
| 23:15:50 | raptor | oh my goodness it compiled |
| 23:15:59 | Watusimoto_ | ?? |
| 23:16:39 | sam686 | i don't know about that, would adding "item::" skip the virtual checks? |
| 23:17:08 | raptor | yep |
| 23:17:14 | Watusimoto_ | well, I can live with that |
| 23:17:30 | Watusimoto_ | we can create a macro to hide that tiny bit of ugliness, as long as the larger concept works |
| 23:17:46 | Watusimoto_ | or maybe just leave it as-is |
| 23:17:49 | raptor | next error, ugly: http://pastie.org/3870819 |
| 23:17:59 | raptor | well, i may be able to work through these now |
| 23:18:04 | raptor | you may want to sleep |
| 23:18:26 | Watusimoto_ | yes; I have parent-teacher conference at 7:30AM; it's 1:20AM here |
| 23:18:34 | Watusimoto_ | and it's in luxembourgish |
| 23:19:01 | Watusimoto_ | fix what you can, pastie what seems unfixable, and I'll look at hte chat logs tomorrow |
| 23:19:19 | Watusimoto_ | maybe we're making progress?? |
| 23:20:10 | raptor | maybe? |
| 23:20:29 | raptor | ok, i'll try and fix stuff... |
| 23:21:53 | Watusimoto_ | ok, maybe not :-) |
| 23:23:25 | raptor | wow, i need a really wide window to understand this error properly |
| 23:30:51 | raptor | got it to compile fully |
| 23:37:01 | raptor | got rid of the last warning... |
| 23:37:02 | raptor | committing |
| 23:37:51 | | BFLogBot - Commit 141dea8af5f0 | Author: buckyballreaction | Log: I can compile again! Fix compiling with GCC |
| 23:53:40 | | Watusimoto_ Quit (Ping timeout: 260 seconds) |