Timestamps are in GMT/BST.
| 00:14:00 | | raptor Quit () |
| 02:29:22 | | Flynnn has joined |
| 02:31:49 | | Flynnn Quit (Client Quit) |
| 06:59:35 | | koda has joined |
| 07:08:06 | | kodab has joined |
| 07:11:49 | | koda Quit (Ping timeout: 291 seconds) |
| 07:18:24 | | kodabb has joined |
| 07:18:41 | | kodab Quit (Excess Flood) |
| 08:10:35 | | bobdaduck has joined |
| 08:44:37 | | Nothing_Much Quit (Remote host closed the connection) |
| 08:46:51 | | Nothing_Much has joined |
| 08:47:23 | | Nothing_Much Quit (Max SendQ exceeded) |
| 08:55:40 | | Nothing_Much has joined |
| 10:30:11 | | sam686 has joined |
| 10:30:11 | | ChanServ sets mode +v sam686 |
| 10:41:26 | | kodabb Quit (Ping timeout: 245 seconds) |
| 11:00:07 | | watusimoto Quit (Quit: Leaving.) |
| 11:01:47 | | Nothing_Much Quit (Ping timeout: 248 seconds) |
| 11:06:53 | | Nothing_Much has joined |
| 11:15:47 | | Nothing_Much Quit (Remote host closed the connection) |
| 11:18:36 | | Nothing_Much has joined |
| 11:23:35 | | Nothing_Much Quit (Ping timeout: 248 seconds) |
| 11:26:21 | | Watusimoto has joined |
| 11:27:34 | | watusimoto1 has joined |
| 12:00:12 | | raptor has joined |
| 12:00:12 | | ChanServ sets mode +o raptor |
| 12:00:44 | | bobdaduck Quit (Remote host closed the connection) |
| 12:03:11 | raptor | hi kaen |
| 12:04:16 | sam686 | hi raptor |
| 12:04:18 | raptor | when you get the SDL2 crash in your windows xp VM, what VM software are you using |
| 12:04:20 | raptor | hi sam686! |
| 12:04:46 | raptor | sam686: I can't remember - do you get the CPU spiking problem with changing from fullscreen to windowed mode on Windows? |
| 12:07:18 | raptor | I've been working with the SDL development mailing list to find answers... and they want hardware specs |
| 12:07:26 | raptor | I've only duplicated it in VMWare |
| 12:07:29 | sam686 | it spikes up one of my 8 logical cpus (its a single thread CPU eating when it freezes) |
| 12:07:33 | raptor | OK |
| 12:07:43 | raptor | what OS/version and video hardware are you using? |
| 12:08:44 | sam686 | windows 7 64 bit AMD radeon 6770 3 monitors in the one graphics card, plus integrated intel HD graphics 2000 with one more monitor.. |
| 12:08:59 | raptor | excellent, thanks! |
| 12:09:07 | sam686 | intel core i7-2660 16GB Ran |
| 12:09:16 | sam686 | RAM (not ran) |
| 12:09:33 | sam686 | 2600, not 2660 |
| 12:11:24 | raptor | thanks! |
| 12:11:30 | raptor | also, here are my latest findings: http://lists.libsdl.org/pipermail/sdl-libsdl.org/2013-June/088664.html |
| 12:13:08 | sam686 | I would need to try compiling SDL2... |
| 12:13:16 | raptor | I did in debug mode |
| 12:14:02 | raptor | you can just check out from mercurial http://hg.libsdl.org/SDL |
| 12:14:17 | raptor | there are vc++ 2008 project files already in there somewhere |
| 12:20:11 | Watusimoto | why am I logged in twice??? |
| 12:20:14 | Watusimoto | and hello |
| 12:20:27 | Watusimoto | I think my work machine doesn't disconnect me when I "suspend" it |
| 12:20:34 | raptor | hello |
| 12:20:53 | Watusimoto | though it acts like it is off, sometimes I see all the chats from the previous evening on my screen in the morning |
| 12:21:04 | raptor | i bet the NIC is still on... |
| 12:21:12 | Watusimoto | could be |
| 12:21:26 | raptor | windows 7 must always be network operable so it knows what you're doing |
| 12:21:27 | Watusimoto | but the computer would still be sleeping, no? |
| 12:21:41 | Watusimoto | this is my Linux Mint laptop |
| 12:21:48 | raptor | oh interesting.. |
| 12:21:50 | raptor | uhh |
| 12:21:50 | Watusimoto | first hibernate stopped working |
| 12:21:56 | raptor | go Linux! |
| 12:21:56 | Watusimoto | now suspend is suspect |
| 12:22:03 | Watusimoto | it's been slowly degrading |
| 12:22:10 | raptor | yeah, i doubt it's working properly anymroe.. |
| 12:22:40 | Watusimoto | well, I'm now two versions behind the latest, so after my work trip next week, I'll upgrade |
| 12:23:01 | Watusimoto | this one will be a terrible trip... I have to go to Paris |
| 12:23:40 | Watusimoto | but what I really wanted to ask was if you (or anyone) knows anything about Joystick::FakeRawButton |
| 12:23:52 | sam686 | If a computer will be sleeping/suspended, all programs and everything will freeze while suspended, including network programs.. Maybe you only told it to turn off the monitor screen.. |
| 12:24:06 | Watusimoto | it gets compared to other things a lot, but the value is never used in an assignment |
| 12:24:18 | raptor | I don't remember FakeRawButton |
| 12:24:23 | Watusimoto | sam686: this is possible, but it's a laptop, so maybe not |
| 12:24:49 | Watusimoto | here's one usage context: |
| 12:24:50 | Watusimoto | // Don't render if button doesn't exist... what is this about??? |
| 12:24:50 | Watusimoto | if(buttonInfo.sdlButton == Joystick::FakeRawButton) |
| 12:24:50 | Watusimoto | return getSymbol(KEY_UNKNOWN, color); |
| 12:24:55 | Watusimoto | the comment after the ... is mine |
| 12:25:10 | sam686 | if a laptop is not plugged into outlet, it will eventually die faster if not sleeping due to limited battery life.. |
| 12:25:11 | Watusimoto | before the ... was preexisting |
| 12:25:20 | Watusimoto | the laptop is on a cradle |
| 12:25:27 | Watusimoto | off the cradle it dies after about 3 days |
| 12:25:40 | Watusimoto | which is why I like hibernate |
| 12:26:12 | Watusimoto | FakeRawBtn seems to be a marker for somthing |
| 12:27:22 | sam686 | my windows 7 have a sleep/hibernate combined into 1, when it does hyprid mode it writes everyting to hard disk like if it is hibernating then sleeps for quick wake up. Lost power, it resumes more slowly like its resuming from hibernation.. |
| 12:27:36 | raptor | hmm... i probably wrote that code... |
| 12:28:14 | Watusimoto | I thought that perhaps FRB was what buttons would be initialized to |
| 12:28:50 | Watusimoto | but no worries... I just need a way to detect when a button doesn't exist (i.e. hasn't been defined in the joysticks.ini), and I will work through the code and see how this works |
| 12:29:02 | Watusimoto | because I love joystick buttons!!!!!! |
| 12:29:26 | raptor | I remember spending a lot of time on porting joystick stuff to SDL... then spending a lot of time in therapy |
| 12:29:46 | Watusimoto | yes, I recall that |
| 12:29:52 | raptor | the mind likes to forget pain.. so I don't remember much |
| 12:29:56 | Watusimoto | it's a lot better than it used to be |
| 12:30:07 | Watusimoto | >> that's what allows us to have second children |
| 12:30:13 | raptor | hahaha |
| 12:30:20 | raptor | (or a third) |
| 12:30:42 | Watusimoto | my amnesia must not have been complete after the second... |
| 12:30:52 | Watusimoto | ok, well, my son just got home, so off to dinner |
| 12:30:56 | Watusimoto | back later folks! |
| 12:31:09 | raptor | later! |
| 12:31:45 | raptor | it's D-Day |
| 12:35:39 | | Watusimoto Quit (Ping timeout: 248 seconds) |
| 12:38:36 | raptor | sam686: if you disabled all monitors but one, would you still get the CPU spike on changing to windowed mode with bitfigher? |
| 12:40:31 | sam686 | I think I got SDL2 successfully compiled, even though some of SDL Tests fails to compile with linker errors.. |
| 12:41:12 | raptor | yes - i had to disable the NODEFAULTLIB part |
| 12:44:30 | sam686 | After I update the SDL2, bitfighter will not start even though it starts running Main() and quits during VideoSystem::init()... |
| 12:44:36 | raptor | oh |
| 12:44:49 | raptor | do the following: |
| 12:45:17 | raptor | 1. copy in your newly compiled SDL.dll SDL.lib and SDLMain.lib into the bitfighter/lib folder |
| 12:45:28 | sam686 | I get in console: SDL Video initialization failed: Application didn't initialize properly, did you include SDL_main.h in the file containing your main() function? |
| 12:45:40 | raptor | 2. copy SDL/include/* into bitfighter/libsdl/SDL2 |
| 12:45:56 | raptor | you ned to use the new headers and .lib files to link |
| 12:45:58 | sam686 | I guess i try sdlmain copy (what I didn't do before) |
| 12:46:21 | raptor | you may have to full recompile the bitfighter binary, but i'm not sure |
| 12:46:29 | raptor | (with the new headers) |
| 12:48:12 | sam686 | Trying with new headers.. |
| 12:49:31 | raptor | yeah, the SDL guys promised teh ABI was locked a whiel ago, but I'm not sure that held true.. |
| 12:54:42 | | bobdaduck has joined |
| 12:54:56 | bobdaduck | increase dinosaur dna research |
| 12:55:16 | raptor | as in, get one cloned now? |
| 12:55:40 | sam686 | So I got it to run, it is in a loop in WIN_PumpEvents after maximize and restore.. |
| 12:55:41 | bobdaduck | yeah something like that |
| 12:55:49 | raptor | yes |
| 12:56:02 | bobdaduck | I should add a research system to DnD |
| 13:00:58 | sam686 | WIN_PumpEvents stuck in a loop with msg.messasge = 0x000F (which is WM_PAINT) |
| 13:02:39 | raptor | yes |
| 13:04:46 | raptor | found some hints: http://stackoverflow.com/questions/1135901/windows-message-loop |
| 13:06:59 | kaen | heh. SDL2 RC2 is out |
| 13:07:06 | kaen | I feel like it's partially your fault, raptor :) |
| 13:07:24 | raptor | probably.. |
| 13:07:28 | raptor | hi kaen |
| 13:07:34 | kaen | also, I'm on 64bit XP using virtualbox |
| 13:07:39 | raptor | excellent |
| 13:07:41 | raptor | thansk |
| 13:07:44 | kaen | you bet |
| 13:07:53 | raptor | what service pack? 3? |
| 13:08:02 | kaen | I believe so |
| 13:08:04 | kaen | let me check |
| 13:08:56 | kaen | yep, SP3 |
| 13:12:18 | kaen | !!! |
| 13:12:28 | kaen | disabling video acceleration fixes it |
| 13:12:34 | kaen | sounds like a hardware issue for sure |
| 13:12:53 | raptor | really?? |
| 13:12:56 | kaen | for me |
| 13:13:23 | raptor | which acceleration did you disable? (I'm putting it in my response e-mail) |
| 13:13:28 | kaen | 01:05.0 VGA compatible controller: Advanced Micro Devices [AMD] nee ATI RS880M [Mobility Radeon HD 4100] |
| 13:13:40 | kaen | um, both |
| 13:14:00 | kaen | I'll try reenabling 2d and see if it hangs |
| 13:14:03 | raptor | how did you disable? I guess i'm searching for guest/host relation.. |
| 13:14:30 | kaen | in the settings for the VM in virtualbox, under the display settings |
| 13:14:42 | kaen | there's an option for passthrough 2D and 3D acceleration |
| 13:16:03 | sam686 | SDL2, http://sam6.25u.com/upload/text1306/130606_14-06-05.txt fixes freezing problem, but not sure if that the right fix, more like hiding the real problem.. |
| 13:16:27 | raptor | sam686: not found |
| 13:17:31 | sam686 | can't load anything on my website? or what? |
| 13:18:08 | kaen | that link 404s |
| 13:18:26 | kaen | connection is fine. |
| 13:18:54 | sam686 | does http://sam6.25u.com/upload/text1306/ load? |
| 13:19:07 | raptor | nope |
| 13:19:15 | sam686 | does http://sam6.25u.com/upload/ load? |
| 13:19:22 | raptor | yes |
| 13:19:53 | kaen | could just use pastie :) |
| 13:19:54 | sam686 | do you see a text1306/ folder? |
| 13:20:36 | raptor | nope |
| 13:20:46 | raptor | permissions? |
| 13:20:49 | raptor | soft links? |
| 13:21:11 | kaen | no hang with 2D acceleration... I'll try with just 3D to be certain. |
| 13:21:45 | sam686 | http://96.2.35.66/upload/text1306/ do you see it load ok? |
| 13:21:57 | raptor | nope |
| 13:22:02 | raptor | thanks kaen |
| 13:22:22 | kaen | if you're sure the file exists, then I agree it's likely perms or softlinks |
| 13:25:05 | | Watusimoto has joined |
| 13:25:44 | sam686 | this is strange, now I get not found.. |
| 13:25:49 | raptor | sam686: I'm eager to see your solution.. :) |
| 13:27:28 | sam686 | http://pastie.org/8016155 its only 2 lines of added code... |
| 13:27:50 | kaen | uh, raptor... don't add that to your report just yet |
| 13:27:56 | raptor | heh ok |
| 13:28:02 | raptor | interesting sam686... |
| 13:28:04 | kaen | it's magically stopped hanging and crashing with acceleration on... |
| 13:28:12 | raptor | oh lovely |
| 13:29:26 | raptor | kaen: Mobility Radeon HD 4100 is your host graphics card? |
| 13:29:32 | raptor | and your host OS? |
| 13:29:32 | kaen | yep |
| 13:29:44 | kaen | debian wheezy (stable) |
| 13:31:36 | kaen | okay, my VM's gone nutty |
| 13:31:46 | kaen | visual studio won't even launch |
| 13:35:51 | raptor | ok sent e-mail |
| 13:36:07 | raptor | my response: http://lists.libsdl.org/pipermail/sdl-libsdl.org/2013-June/088667.html |
| 13:38:42 | sam686 | do you now see http://sam6.25u.com/upload/text1306/ ? |
| 13:38:51 | raptor | nope |
| 13:38:59 | | bobdaduck Quit (Read error: Connection reset by peer) |
| 13:39:05 | | bobdaduck_ has joined |
| 13:40:37 | bobdaduck_ | I feel obligated to warn, is all. |
| 13:40:51 | kaen | sam686, can *you* see those urls if you request with the remote address? |
| 13:41:24 | kaen | er, public address. |
| 13:41:28 | raptor | public posting to a software mailing list makes me feel like I'm being thrown to the wolves |
| 13:43:00 | kaen | especially the SDL mailing list |
| 13:43:14 | kaen | talk about an intimidating audience... |
| 13:43:21 | raptor | heh, so true.. |
| 13:43:45 | raptor | like *the* know-it-alls for cross-platform gaming |
| 14:10:23 | bobdaduck_ | So I'm planning to release DnD in the somewhat far future. |
| 14:17:58 | raptor | is that a threat? |
| 14:21:27 | sam686 | found the problem, iptables -t nat -L have DNAT tcp -- anywhere anywhere tcp dpt:http to:192.168.3.3 |
| 14:21:59 | sam686 | it turns out i can access my linux directly with web browser, but external address is accessing my other web server.. |
| 14:22:06 | raptor | ha! |
| 14:23:42 | sam686 | http://sam6.25u.com/upload/text1306/ should work now, right? |
| 14:23:50 | raptor | I see it! |
| 14:23:59 | sam686 | good |
| 14:28:54 | bobdaduck_ | Well no I was just thinking that it would be great for someone trying to learn levelgens to pick apart |
| 14:29:01 | bobdaduck_ | I'm trying to document it well because of that |
| 14:29:27 | raptor | that is a good skill to develop |
| 14:30:49 | bobdaduck_ | I mean documentation is still... Uh... Heavily flavored. |
| 14:30:56 | bobdaduck_ | But someone should still be able to learn from it . |
| 14:31:10 | raptor | haha, most documentation is.. |
| 14:31:24 | raptor | but something is (usually) better than nothing |
| 14:31:58 | | LordDVG has joined |
| 14:32:06 | bobdaduck_ | -- the whip code originally is just lines, but we have to extend that into a zone. |
| 14:32:06 | bobdaduck_ | --I actually have no idea how this works. |
| 14:32:54 | bobdaduck_ | local bangbangbang = 600 -- most descriptive variable ever |
| 14:33:10 | raptor | you might want to at least reference the source of the wh ip logic |
| 14:33:46 | bobdaduck_ | I think I did |
| 14:33:59 | bobdaduck_ | Hm, not in the DnD code |
| 14:34:04 | bobdaduck_ | in the independent rope code |
| 14:42:53 | | sam686 Quit (Ping timeout: 245 seconds) |
| 15:06:55 | kaen | technically, the line is *extruded* rather than extended. |
| 15:08:03 | | BFLogBot Commit: 08b4bcab3703 | Author: watusimoto | Message: Clean out temporary junk on the Options > Input screen. Remember these buttons are only displayed in debug mode. Useful to display them always (or perhaps when controller is active?) |
| 15:08:04 | | BFLogBot Commit: de3adfd219cd | Author: watusimoto | Message: Fix up joystick buttons a bit with a few trivial refactors, and a clarification about the roll of the mysterious FakeRawButton. Button maps displayed on Input menu now expunged (almost) of bad keys, with the sole exception of the problematic back button on the Wingman controller. Thoughts about how to handle this are welcome. Also made a few changes to the generic joystick, which will probably have no effect as this is probably completely unused (and, perhaps, useless... should we delete it?) |
| 15:10:13 | kaen | BFLogBot, behave yourself! |
| 15:10:41 | raptor | haha |
| 15:10:44 | raptor | he truncated... |
| 15:15:28 | bobdaduck_ | lol |
| 15:15:40 | Watusimoto | logbot cut me o |
| 15:16:27 | bobdaduck_ | lol |
| 15:16:53 | raptor | generic joystick is great! it's like a white elephant gift |
| 15:17:32 | Watusimoto | hey loser, here's your stupid joystick |
| 15:19:53 | raptor | of course |
| 15:20:05 | raptor | the real fix |
| 15:20:05 | raptor | is to let users adjust their buttons in-game.. |
| 15:21:27 | bobdaduck_ | doit doit |
| 15:30:18 | raptor | we could instead provide *no* presets |
| 15:30:23 | raptor | remove loads of code |
| 15:30:43 | raptor | and just say, "hey you! set up your joystick!" |
| 15:32:33 | bobdaduck_ | rofl |
| 15:32:48 | bobdaduck_ | As a non joystick user, I am in favor of this. |
| 15:33:53 | | bobdaduck_ Quit (Remote host closed the connection) |
| 15:44:14 | Watusimoto | users *can* adjust their buttons (almost) in game |
| 15:44:29 | Watusimoto | unless you mean giving them a meny to pick glyphs and such |
| 15:44:45 | Watusimoto | in which case we won't reduce complexity |
| 15:45:19 | raptor | well, i mean to completely bypass our |
| 15:45:28 | raptor | 'Button' abstraction |
| 15:45:56 | raptor | because we do SDL RAW -> Button -> Game action |
| 15:46:29 | raptor | people can set what Button to use for an action, but that could map to anything in SDL |
| 15:46:30 | raptor | or nothing |
| 15:49:01 | raptor | somehow... |
| 15:49:15 | raptor | it may be too tied into the InputCode system.. |
| 15:51:44 | Watusimoto | the InputCode system is a completely unnecessary abstraction layer at this point |
| 15:52:06 | Watusimoto | though to rip it out would be... well... unthinkable |
| 15:52:39 | raptor | sanity depriving |
| 15:59:26 | raptor | kaen: do you think I have enough info to just open a bug against SDL? |
| 16:06:35 | | LordDVG Quit (Quit: Leaving) |
| 16:09:58 | | sam686 has joined |
| 16:09:59 | | ChanServ sets mode +v sam686 |
| 16:10:20 | | BFLogBot Commit: 889293cfa889 | Author: watusimoto | Message: Centralize all FakeRawButton access inside of Joystick itself. |
| 16:14:08 | raptor | you sullied the header file! |
| 16:16:44 | Watusimoto | Shhhhh.... |
| 16:17:50 | Watusimoto | I just could not bring myself to create a method in the cpp for that one thing... I felt this was clearer... perhaps I'll change my mind after a night's sleep, or maybe someone else will feel so disgusted they take it upon themselves to change it. |
| 16:18:06 | raptor | such negligence will slow down the compiler by 1 microsecond! |
| 16:18:30 | Watusimoto | Especially as this was the only method in the struct, it was a struct constructor (which we rarely use), and it was so short |
| 16:18:33 | raptor | per compilation unit! |
| 16:19:05 | Watusimoto | well, sam686 and I suffer more from that microsecond than some others do... |
| 16:25:56 | | bobdaduck has joined |
| 16:27:11 | | bobdaduck Quit (Read error: Connection reset by peer) |
| 16:28:27 | | bobdaduck has joined |
| 16:30:13 | bobdaduck | neutral turrets with full health will behave like hostile turrets |
| 16:30:42 | bobdaduck | shooting at everybody |
| 16:31:12 | raptor | bobdaduck: i can't tell if you started in the middle of a conversation.. |
| 16:41:16 | | Flynnn has joined |
| 16:42:36 | bobdaduck | um |
| 16:42:38 | bobdaduck | well |
| 16:42:52 | bobdaduck | If you heal a turret to full health but don't change it to your team |
| 16:42:55 | bobdaduck | it will shoot at you |
| 16:44:07 | bobdaduck | proper behavior should be to treat it as if everyone is on the turrets team |
| 16:44:09 | bobdaduck | ...right? |
| 16:44:13 | raptor | is this some side effect of your Lua tinkering? |
| 16:44:25 | bobdaduck | Just sayin' |
| 16:44:27 | bobdaduck | You should fix that |
| 16:44:43 | raptor | i still don't know what you're talking about |
| 16:44:51 | bobdaduck | I JUST EXPLAINED IT |
| 16:44:55 | raptor | what, specifically, did you do |
| 16:44:59 | bobdaduck | A full health neutral turret is just a hostile turret |
| 16:45:04 | raptor | ok |
| 16:45:06 | bobdaduck | that you can heal to your team after you kill |
| 16:45:12 | raptor | ok |
| 16:45:24 | raptor | how did it become a full health neutral turret? |
| 16:51:31 | bobdaduck | Yeah |
| 16:51:59 | Flynnn | bobdaduck |
| 16:52:13 | Flynnn | you are wanting to heal a neutral turret without changing its team, yes? |
| 16:52:51 | bobdaduck | What no I already did that |
| 16:52:59 | bobdaduck | BUT IT SHOT AT ME AND BETRAYED MY TRUST |
| 16:53:15 | Flynnn | oh I see |
| 16:55:56 | | bobdaduck Quit (Remote host closed the connection) |
| 17:00:11 | raptor | heading out! |
| 17:00:13 | | raptor Quit () |
| 17:01:51 | | fordcars has joined |
| 17:54:59 | | Flynnn Quit (Quit: This computer has gone to sleep) |
| 17:58:32 | | Flynnn has joined |
| 18:06:13 | | raptor has joined |
| 18:06:14 | | ChanServ sets mode +o raptor |
| 18:13:10 | | Watusimoto Quit (Ping timeout: 248 seconds) |
| 18:23:23 | raptor | uhh |
| 18:23:46 | raptor | can someone confirm that the writeFile method in stringUtils.cpp isn't actually using the 'append' option? |
| 18:28:05 | | Flynnn Quit (Quit: This computer has gone to sleep) |
| 18:31:32 | raptor | ok fixed it.. |
| 18:31:33 | kaen | investigating. |
| 18:31:34 | kaen | oh |
| 18:31:35 | kaen | oka |
| 18:31:36 | kaen | y |
| 18:32:01 | kaen | I think I'm the one who was fiddling with that last. |
| 18:32:37 | raptor | looks like you converted it to ofstream? |
| 18:32:57 | raptor | i seem to remember it using C methods.. |
| 18:34:21 | kaen | indeed |
| 18:34:51 | raptor | now the question.. |
| 18:34:57 | | BFLogBot Commit: 0722c5bcf252 | Author: buckyballreaction | Message: Fix append mode with writeFile() |
| 18:34:58 | kaen | I can't remember what compelled me to do that. I think it was while I was lifting the line size limits. |
| 18:35:24 | raptor | i completely forgot to consider the data i'd be saving to the file |
| 18:35:38 | raptor | so writeFile(filename, contents, append) |
| 18:35:42 | raptor | but |
| 18:35:50 | raptor | what should I allow for 'contents' ? |
| 18:35:53 | raptor | just strings? |
| 18:36:27 | raptor | let's say yes! |
| 18:37:00 | kaen | I say yes. |
| 18:37:29 | raptor | sold! |
| 18:42:09 | kaen | I wonder how it will react to \0 |
| 18:42:29 | raptor | soon we can test! |
| 18:47:36 | kaen | hmm. the docs are kind of hard to follow, but it seems that it will stop at the null :/ |
| 18:50:07 | kaen | I know you can make a std::string contain null with string (const char* s, size_t n); |
| 18:57:12 | raptor | ok kaen, you may test... |
| 18:57:12 | | BFLogBot Commit: c8e73deecb8c | Author: buckyballreaction | Message: Add method for Lua scripts to write to the filesystem in our sandbox. Currently outputs to screenshots directory |
| 18:58:05 | kaen | it skips the null! |
| 18:58:07 | kaen | and keeps going |
| 18:58:23 | raptor | so... good! |
| 18:58:31 | raptor | now how about reading |
| 18:58:48 | raptor | string fileContents = readFromFile("filename.txt") |
| 18:59:00 | kaen | I'm already sure it will pick up the null in that case |
| 18:59:08 | raptor | i mean, implementation |
| 18:59:15 | raptor | should I consider reading line by line? |
| 18:59:41 | raptor | maybe put a 1MB filesize limit... |
| 18:59:53 | raptor | I actually have no idea the performance issues that could arise... |
| 19:00:12 | kaen | I spent a few minutes on google looking up fast readFile implementations |
| 19:00:19 | kaen | when I wrote that one |
| 19:00:30 | raptor | yeah, that's fine |
| 19:00:39 | raptor | i'm thinking about from c++ to Lua, though |
| 19:00:46 | raptor | what can (or can't) Lua handle |
| 19:00:49 | kaen | ohh |
| 19:01:01 | | Flynnn has joined |
| 19:03:31 | kaen | no idea for size. |
| 19:03:39 | kaen | I say let the user shoot himself in the foot if he wants to |
| 19:03:47 | kaen | lua_pushlstring (lua_State *L, const char *s, size_t len); |
| 19:03:54 | kaen | will keep the zeros if you have any. |
| 19:04:21 | raptor | haha |
| 19:04:24 | raptor | sold! |
| 19:08:58 | raptor | oops, had a bug in writeToFile.. |
| 19:12:51 | | Flynnn Quit (Quit: This computer has gone to sleep) |
| 19:13:01 | raptor | is a c++ string of "" considered zero length? |
| 19:13:42 | kaen | yes. |
| 19:14:34 | kaen | I learned to that std::strings are not null terminated until you c_str() them. |
| 19:14:40 | kaen | learned today* |
| 19:14:45 | raptor | what |
| 19:14:46 | raptor | that |
| 19:14:50 | raptor | that explains so much |
| 19:15:26 | raptor | because I've hit loads of weird errors treating them as arrays and using them |
| 19:16:43 | | Flynnn has joined |
| 19:24:57 | raptor | ok |
| 19:25:03 | raptor | readFromFile done |
| 19:25:10 | | BFLogBot Commit: 59777b80af00 | Author: buckyballreaction | Message: Lua API: Add readFromFile() to allow reading from a specific directory within the sandbox. Reads from screenshots dir. Also fix bug in writeToFile() |
| 19:25:51 | raptor | ok, i'll be back later - feel free to test :) |
| 19:26:06 | | raptor Quit () |
| 19:34:17 | | Flynnn Quit (Quit: This computer has gone to sleep) |
| 20:31:54 | fordcars | brb uys |
| 20:31:57 | fordcars | g |
| 20:36:08 | | fordcars Quit (Ping timeout: 250 seconds) |
| 21:20:34 | | raptor has joined |
| 21:20:34 | | ChanServ sets mode +o raptor |
| 21:20:52 | raptor | hello |
| 21:22:20 | kaen | greetings |
| 21:31:23 | raptor | do you think I have enough info to open an official bug? I know they wanted a test-case, but I can't seem to duplicate it with my little bit of code.. |
| 21:31:34 | raptor | err, a bug with SDL on that windows spiking issue |
| 21:35:18 | kaen | hmm. a simple render loop doesn't dupe it for you? |
| 21:35:24 | raptor | no |
| 21:35:33 | kaen | if that's the case then I suspect the problem is on our end. |
| 21:35:59 | raptor | I even made a complex one: http://pastie.org/8017528 |
| 21:36:15 | raptor | has three video modes just like ours and tries to call all the same windowing stuff |
| 21:36:29 | raptor | yeah... |
| 21:36:41 | raptor | but the thing is, watusimoto doesn't get it.. |
| 21:37:08 | kaen | oh boy. |
| 21:37:21 | kaen | definitely cosmic radiation, then |
| 21:37:23 | kaen | :) |
| 21:37:24 | raptor | heh |
| 21:37:26 | raptor | yes! |
| 21:37:31 | raptor | argh! |
| 21:37:38 | raptor | anyways, I have a few more hunches.. |
| 21:37:52 | raptor | that WM_PAINT thing is the key.. |
| 21:38:30 | kaen | running it in my vm is still magically working fine. |
| 21:38:40 | raptor | wacky |
| 21:38:41 | kaen | I haven't even rebuilt since the last time I ran it |
| 21:38:57 | raptor | which makes me think it is less our side... |
| 21:40:19 | kaen | perhaps we're doing something to exacerbate a hardware-specific bug? |
| 21:40:33 | raptor | yeah, that's my feeling |
| 21:55:29 | raptor | huh, I'm reading some stuff about how WM_PAINT should not be used with OpenGL |
| 21:55:42 | raptor | I wish I actually understood this Windows stuff.. |
| 22:06:41 | | fordcars has joined |
| 22:15:21 | fordcars | hey kaen, what is the maximum health of a turret with gethealth()? |
| 22:15:36 | kaen | I think it might be 1.0 |
| 22:15:46 | kaen | alternatively, some power of 10 |
| 22:16:31 | kaen | I'm honestly just guessing. try calling it on a healthy turret? |
| 22:16:47 | fordcars | ok :P |
| 22:16:49 | fordcars | thanks! |
| 22:17:01 | | Flynnn has joined |
| 22:29:05 | raptor | c++ says 1.0 |
| 22:29:16 | raptor | but damage to it is reduced by a factor of 4 |
| 22:33:15 | fordcars | ah ok |
| 22:49:20 | raptor | oh yay, a bug heind the bug |
| 22:49:26 | raptor | behind |
| 22:54:32 | fordcars | http://pastie.org/8017709 |
| 22:55:00 | fordcars | it's supposed to change module, but doesn't! I keeps the old module even if it goes on a loadout |
| 22:57:37 | | fordcars_ has joined |
| 22:57:47 | raptor | kaen: have you restarted your host computer and the VM computer with 3D acceleration on since tinkering? |
| 22:57:56 | kaen | yes |
| 22:57:58 | kaen | no hang |
| 22:58:10 | raptor | that's crazy |
| 22:58:20 | fordcars_ | yay my computer just decided to restart by itself :D |
| 22:58:27 | kaen | so you should disregard my statements about disabling acceleration fixing it... |
| 22:58:35 | kaen | because I haven't been able to make it hang since. |
| 22:58:36 | raptor | I think I got a fix |
| 22:58:44 | kaen | ! |
| 22:59:15 | raptor | Looking at SDL 1.2 code.. they handled the WM_PAINT event but excluded parts of it if the window was opengl |
| 22:59:34 | | fordcars Quit (Ping timeout: 250 seconds) |
| 22:59:36 | kaen | whoa |
| 23:00:01 | | testing123 has joined |
| 23:00:08 | | testing123 Quit (Client Quit) |
| 23:00:51 | kaen | not sure what I did, but VS2010 still refuses to launch in my vm |
| 23:01:23 | raptor | here's my patch: http://pastie.org/8017726 |
| 23:01:37 | raptor | maybe I should post it to a bug? or maybe just th emailing list? |
| 23:01:37 | | fordcars_ Quit (Client Quit) |
| 23:04:29 | kaen | I don't think it could hurt to open a bug since you have a patch |
| 23:04:42 | kaen | but then I'd also reply to the thread with a link to the bug report |
| 23:04:48 | raptor | good idea |
| 23:04:51 | kaen | too bad we can't make a simple repro. |
| 23:05:00 | raptor | yeah... |
| 23:05:06 | raptor | anyways |
| 23:05:14 | raptor | if you start the game with a small window |
| 23:05:22 | raptor | (this is another bug) |
| 23:05:36 | raptor | and change to fullscreen and back again, is the window larger for you? |
| 23:06:50 | kaen | do you get this in linux? my windows vm is applying updates... |
| 23:06:58 | raptor | no, only in windows |
| 23:07:11 | raptor | in fact - it changes back to the proper size, then resizes itself larger.. |
| 23:07:17 | kaen | okay. I can't test it right now and I'm going to bed in a minute. |
| 23:07:19 | kaen | wut? |
| 23:07:22 | raptor | ok |
| 23:07:30 | raptor | :) |
| 23:07:32 | raptor | good night |
| 23:07:36 | kaen | good night. |
| 23:07:37 | raptor | such weirdness.. |
| 23:07:46 | kaen | I'll see if I can reproduce in the morning before work. |
| 23:07:56 | raptor | only if i can't fix it tonight! :) |
| 23:28:09 | | bobdaduck has joined |
| 23:28:40 | bobdaduck | BEHOLD, A WILD DUCK APPROACHETH |
| 23:33:43 | raptor | rubber duck programming! |
| 23:34:05 | raptor | bobdaduck: can you test something for me in windows? |
| 23:34:08 | raptor | with 018a |
| 23:34:46 | bobdaduck | sure |
| 23:34:54 | raptor | start the game in windowed mode |
| 23:34:58 | raptor | make the window small |
| 23:34:59 | bobdaduck | always do |
| 23:35:09 | bobdaduck | Window is now teeny |
| 23:35:10 | raptor | then cycle through full screen and back to windowed |
| 23:35:15 | raptor | is the window the same size? |
| 23:35:28 | bobdaduck | windowed mode stays teeny |
| 23:35:38 | raptor | cycle again, i fyou please |
| 23:35:56 | bobdaduck | window stays teeny |
| 23:35:59 | raptor | argh |
| 23:36:02 | raptor | ok |
| 23:36:06 | raptor | another SDL2 issue.. |
| 23:36:19 | raptor | thanks! |
| 23:36:58 | bobdaduck | No problm |
| 23:47:31 | raptor | kaen: posted that bug: http://bugzilla.libsdl.org/show_bug.cgi?id=1897 |
| 23:47:35 | raptor | now I await wolves |