code logs -> 2012 -> Fri, 29 Jun 2012< code.20120628.log - code.20120630.log >
--- Log opened Fri Jun 29 00:00:03 2012
00:14 himi [fow035@0C0840.B22E58.E3471A.E028A1] has quit [Ping timeout: 121 seconds]
00:17 You're now known as TheWatcher[T-2]
00:22 io|gone is now known as iospace
00:23 You're now known as TheWatcher[zZzZ]
00:26 cpux|2 is now known as cpux[blargh]
00:33 Number3 is now known as ShellNinja
01:04 Derakon[AFK] is now known as Derakon
01:30 cpux[blargh] is now known as cpux
01:35 himi [fow035@D741F1.243F35.CADC30.81D435] has joined #code
01:35 mode/#code [+o himi] by ChanServ
02:04 Attilla [Obsolete@Nightstar-8afef565.as43234.net] has quit [Ping timeout: 121 seconds]
02:48
<@ToxicFrog>
Hmm
02:48
<@ToxicFrog>
It's about time I upgraded Thoth to a more recent release
02:48
<@ToxicFrog>
Mint 13, or should I go full on rolling release and install Mint LMDE?
03:07
< RichyB>
Install FreeBSD!
03:07
< RichyB>
I have no useful suggestions.
03:08
< RichyB>
If you have a Linux distribution that you actively *like* then please tell me because I want to find an alternative to Ubuntu 10.04 by the time the security patching support runs out. Ideally one that is not 12.04.
03:12 Kindamoody[zZz] is now known as Kindamoody
03:57 Kindamoody [Kindamoody@Nightstar-05577424.tbcn.telia.com] has quit [Ping timeout: 121 seconds]
04:01
< Rhamphoryncus>
I'm starting to think virtual texturing is not so simple
04:01 Kindamoody|afk [Kindamoody@Nightstar-05577424.tbcn.telia.com] has joined #code
04:01 mode/#code [+o Kindamoody|afk] by ChanServ
04:01 Kindamoody|afk is now known as Kindamoody
04:02
< Rhamphoryncus>
Assuming I do it all myself rather than leverage builtins, which ostensibly is necessary to handle a sphere right
04:02
< Rhamphoryncus>
Or it may be that the builtin stuff, although "wrong", is so subtle that it's not noticed
04:08
< Rhamphoryncus>
yeah, the virtual texturing paper doesn't even mention cubemaps :(
04:40 iospace is now known as iospacedout
04:57 SmithKurosaki [smith@Nightstar-1748d158.home1.cgocable.net] has joined #code
05:38
<~Vornicus>
oh, derp. Wasn't thinking about diagonal direction presses
05:44
<~Vornicus>
Fortunately my connections table thing is drastically cutting down on my LoC so I think I'll be all right
05:48
<~Vornicus>
(hooray, data)
05:50
<&McMartin>
How'd you pull that off?
05:53
<~Vornicus>
basically a big array that defines bits of the behavior for each path
05:54
<~Vornicus>
the direction it goes, the direction it forces to for each off-direction, etc
05:57
<~Vornicus>
then all the code just indexes that array with the pathindex and the index of the data it wants
06:03 SmithKurosaki [smith@Nightstar-1748d158.home1.cgocable.net] has quit [Ping timeout: 121 seconds]
06:40
<&McMartin>
That works
06:40 Derakon is now known as Derakon[AFK]
06:41
< Atreus>
Okay. I need some advice.
06:41 Atreus is now known as Tarinaky
06:41
< Tarinaky>
Playing my (ugly) game it's... sortof fun.
06:41
< Tarinaky>
But there's a terrible UI in the way.
06:41
< Tarinaky>
How do I fix that?
06:42
<&McMartin>
Can you clarify?
06:42
< Tarinaky>
Not really, unfortunately.
06:42
< Tarinaky>
I'm not really able to elucidate my thoughts very easily.
06:42
<&McMartin>
Can you at least post a screenshot?
06:43
< Tarinaky>
http://imgur.com/Hojnl
06:43
<&McMartin>
I am certainly having trouble parsing that
06:44
< Tarinaky>
Yeah. I'm sorry, this is going to be like pulling teeth - isn't it?
06:44
<&McMartin>
Can you explain what's going on on that screen?
06:44
< Tarinaky>
But even assuming the learning curve isn't an issue (I know what everything means even if no-one else does)
06:44
< Tarinaky>
It's still really hard to play.
06:45
< Tarinaky>
There're two ships.
06:45
< Tarinaky>
The Green/Gray circle belongs to 'you'.
06:45
< Tarinaky>
The Blue/Gray diamond is a rival's.
06:45
< Tarinaky>
There's two planets, both of type B and moderate quality.
06:45
< Tarinaky>
The friendly ship is going to one of them.
06:46
< Tarinaky>
Both ships are seperated by ~9 parsecs/game tiles.
06:46
< Tarinaky>
There's a Green/Gray owned planet just off the right end of the screen, you can see a sliver of its flag.
07:18 Kindamoody is now known as Kindamoody|movie
07:30
< Tarinaky>
But yeah. Something about the UI makes it really hard to play and I'm not entirely sure what.
07:30
< Tarinaky>
While I can make guesses - that's not really a good use of time >.<
09:45 himi [fow035@D741F1.243F35.CADC30.81D435] has quit [Operation timed out]
09:57 Rhamphoryncus [rhamph@Nightstar-5697f7e2.abhsia.telus.net] has quit [Client exited]
10:04 You're now known as TheWatcher
10:16 Kindamoody|movie is now known as Kindamoody
10:17 Attilla [Obsolete@Nightstar-8afef565.as43234.net] has joined #code
10:42 Kindamoody is now known as Kindamoody|out
11:51 iospacedout is now known as iospace
12:11 gnolaptop [lenin@26ECB6.2F30FB.20776A.50F834] has joined #code
12:14
<@TheWatcher>
Ugh. I can not get my brain to work properly today
12:17
<&jerith>
TheWatcher: I'll lend you my brain if you'll lend me your internets.
12:17
<@TheWatcher>
Tempting as the offer is, I suspect Myst'd kill me ;)
12:23
< iospace>
are jerith and southernmyst going out together? :P
12:26
<@TheWatcher>
I kinda doubt that ¬¬
12:27
< gnolaptop>
EAHAHGEHG
12:27
<&jerith>
Having just sorted out the UK paperwork, I don't think she's that keen to do the same thing in ZA.
12:28 * iospace blinks at gnolaptop
12:28
< iospace>
you ok there?
12:28
< gnolaptop>
Google: FUCK YOU
12:28
< gnolaptop>
Sincerely, your users.
12:28
< iospace>
hahah
12:29
< iospace>
what did they do now? :P
12:29
< gnolaptop>
What they love: not giving a single fuck about what I'm actually searching for.
12:29
<&jerith>
gnolaptop: Try turning on "verbatim".
12:30
<@TheWatcher>
(iospace: Myst's my wife, she happened to be using said internets when jerith offered that swap)
12:30
< iospace>
ah
12:30
< iospace>
ok ^^;;
12:30 * iospace was confused there, sorry
12:31
< gnolaptop>
jerith: nope, it's still ignoring half of my search terms :P
12:32 himi [fow035@Nightstar-5d05bada.internode.on.net] has joined #code
12:32 mode/#code [+o himi] by ChanServ
13:02 iospace is now known as io|gone
13:11 * TheWatcher eyes this comment he has just written: "# Note that this does have one small issue, nothing to worry about, but things will break if the id field is reset to 0 for any reason. # So don't reset it to zero. Ever. # Besides, even adding one news post every second, there's enough id space for 136 years, and if this thing is still in use in 136 years, I will have to come back from the dead purely to ask our Mantis Men overlords why on Earth Prime they haven't switched to something else."
13:12
<@TheWatcher>
I think I need more tea.
13:23
<&jerith>
"[...] why on Earth Prime t"
13:24
<@TheWatcher>
"... why on Earth Prime they haven't switched to something else."
13:25
<&jerith>
Is the issue with the value zero specifically, or with reusing old ids?
13:33
<@TheWatcher>
The latter, although really it's more of a sorting issue. I need N rows sorted in reverse chronological order, where N[0] is identified by a unique id.
13:34
<&jerith>
Isn't there a timestamp?
13:36
<@TheWatcher>
Yes, however ... well, here's the pertinent part of the query: "WHERE n.course_id = ? AND n.id <= ? AND p.id = n.post_id ORDER BY n.created DESC LIMIT $count".
13:38
<@TheWatcher>
n.id <= ? is the problem - I need that to anchor the first row at the required id, but it assumes all earlier entries have lower ids
13:39
<@TheWatcher>
I don't know any way around that one, there may be one, but brain noworky properly today
13:41
<&jerith>
Why are you doing that by id?
13:44
<@TheWatcher>
Because part of the feature set involves having to be able to show N posts made before a specified post, including the specified one.
13:45
<@TheWatcher>
I guess I could use a limit offset instead
13:46
<&jerith>
And you're given the post id as input?
13:46
<@TheWatcher>
yeah
13:47
<&jerith>
You could probably look up the timestamp on that post first. (Or add a cunning join.)
13:47
<@TheWatcher>
Hm. Hadn't thought of that!
13:48
<@TheWatcher>
'WHERE ... AND n.created <= (SELECT created FROM .... WHERE id = ?)' should work, I think
13:48
<&jerith>
Probably.
13:48 * TheWatcher shrug, will give it a go
13:48
<@TheWatcher>
Thanks!
13:49
<&jerith>
But run that through the query analyser to make sure you aren't subselecting on each row.
13:57
<@TheWatcher>
Okies, that works. Thanks!
13:59
<&jerith>
\o/
--- Log closed Fri Jun 29 14:19:42 2012
--- Log opened Fri Jun 29 14:20:36 2012
14:20 TheWatcher [chris@Nightstar-3762b576.co.uk] has joined #code
14:20 Irssi: #code: Total of 25 nicks [7 ops, 0 halfops, 0 voices, 18 normal]
14:20 mode/#code [+o TheWatcher] by ChanServ
14:21 Irssi: Join to #code was synced in 43 secs
14:32 io|gone is now known as iospace
15:30 Vash [Vash@Nightstar-e8057de2.wlfrct.sbcglobal.net] has joined #code
15:30 mode/#code [+o Vash] by ChanServ
15:39 celticminstrel [celticminst@Nightstar-05d23b97.cable.rogers.com] has joined #code
16:01 Derakon [chriswei@Nightstar-a3b183ae.ca.comcast.net] has joined #code
16:02 mode/#code [+ao Derakon Derakon] by ChanServ
16:02
<&Derakon>
Pop quiz, folks: how can adding an import of a standard Python module break your code?
16:04 * TheWatcher has no real idea, but guesses it's name clashes of some kind?
16:04
<&Derakon>
Yeah.
16:04
<@TheWatcher>
:(
16:04
<&Derakon>
In my particular case, I imported the time module halfway down a function when it was already imported for the module as a whole %Band used by that same function earlier on%B.
16:04
<&Derakon>
Er, s/%B/actual bolding in IRC/
16:04
<@TheWatcher>
>.<
16:09
<&Derakon>
It was a stupid bug, and I would have caught it if I had tested at all.
16:09
<&Derakon>
I don't know what I was thinking at the time. I probably wasn't!
16:13
<~Vornicus>
I have code that broke when python was updated because words had been added to the base library. Words like "True"
16:15 gnolaptop [lenin@26ECB6.2F30FB.20776A.50F834] has quit [[NS] Quit: Going home!]
16:15
<&Derakon>
I have variables named "file" in some parts of my code. That hasn't broken anything yet, but "file" is a builtin now.
16:16
<&Derakon>
Apparently as a synonym for open().
16:16
<@TheWatcher>
Ugh
16:18
<&Derakon>
(Which frankly surprises me since I thought Python's philosophy was "there should be one obvious way to do it")
16:18
<@TheWatcher>
I have no clue how T2 script writers like Nameless Voice and Telliamed managed to write their scripts before the source was leaked. It's hard enough to work out some of this stuff with the source >.<
16:19
< celticminstrel>
I use "file" as a variable name sometimes.
16:20
< celticminstrel>
Then I remember I probably shouldn't.
16:22
<~Vornicus>
T2?
16:23
<@TheWatcher>
Thief 2
16:25 himi [fow035@Nightstar-5d05bada.internode.on.net] has quit [Ping timeout: 121 seconds]
16:26
<~Vornicus>
ah
16:29
<@TheWatcher>
Trying to add ease-in and ease-out to model and joint rotations, so that I can make more realistic looking swinging objects
16:29
<@TheWatcher>
The data's there, I just have to actually work out how to use it, with no documentation.
16:39 himi [fow035@Nightstar-5d05bada.internode.on.net] has joined #code
16:39 mode/#code [+o himi] by ChanServ
16:56
<~Vornicus>
Yeah, I did that too for a while, der, now I use f instead
16:56
<&Derakon>
I've switched to using "filename" or "filehandle" as appropriate.
16:56
<&Derakon>
Single-letter variable names are reserved exclusively for i/j/k and list comprehensions.
17:24
< RichyB>
Lambdas, too.
17:28 * Derakon vanishes.
17:28 Derakon [chriswei@Nightstar-a3b183ae.ca.comcast.net] has quit [[NS] Quit: leaving]
18:04
< gnolam>
... huh. Now that was good news.
18:05
< gnolam>
The embedded system I'm eyeing for the main computer only weighs 0.5 lbs according to their sales rep.
18:13 Kindamoody|out is now known as Kindamoody
18:16
< gnolam>
This... simplifies things.
18:18 * iospace head desks till her forehead bleeds
18:19
< gnolam>
iospace: ?
18:21
< iospace>
gnolam: take your computers's set up utility. Now go through it and change every option possible to every possible setting
18:22
< iospace>
then come back to me
18:22
< iospace>
^_^
18:22
< gnolam>
What
18:22
< iospace>
... was I not clear?
18:23
<@rms>
Why would you do that?
18:23
< iospace>
oh
18:24
< iospace>
because it's my job to -_-
18:24 * iospace got assigned testing bitch duties
18:24
<@rms>
Ah
18:24
<@rms>
Yeah testing is... shitty.
18:24
< iospace>
i'd rather be coding
18:36
< iospace>
I WANNA STAB THINS
18:36
< iospace>
*things
18:37
< iospace>
RAWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWR
18:37
< iospace>
^_^
18:43
<@ToxicFrog>
Vornicus, Derakon[AFK]: I generally use 'fin', 'fout', or 'fd'.
18:56
< celticminstrel>
Heh.
18:56
< celticminstrel>
The former two are typically my names for C++ file streams.
19:11 RichyB [MyCatVerbs@Nightstar-3b2c2db2.bethere.co.uk] has quit [[NS] Quit: Leaving]
19:16 Kindamoody is now known as Kindamoody[zZz]
19:54 * Vornicus fiddles with stuff trying to figure out what other data he needs
19:58
<~Vornicus>
okay. I need the "forcing" direction, which is the direction that the gondola should go if the controller tells it to go in a direction not directly along the canal; I need the "natural" direction, which is the direction it should naturally go if the control stick is centered
20:16
<@ToxicFrog>
celticminstrel: that's how I originally derived the names, but I use them in any language.
20:24
<~Vornicus>
I need for some things an order to stop if not being forced...
20:37
<~Vornicus>
A lot of hand tuned data in this thing.
20:43 Rhamphoryncus [rhamph@Nightstar-5697f7e2.abhsia.telus.net] has joined #code
21:02
<~Vornicus>
Also I can't seem to find literal array syntax, which is Disheartening, let me tell you.
21:12 Vash [Vash@Nightstar-e8057de2.wlfrct.sbcglobal.net] has quit [[NS] Quit: I lovecraft Vorn!]
21:28
<~Vornicus>
okay. 882 pieces of data. Somehow I suspect the original is a little less picky in some ways.
22:21
< Rhamphoryncus>
literal array syntax?
22:22
< Rhamphoryncus>
oi, I'm only an hour late ;)
22:22
<@ToxicFrog>
Rhamphoryncus: in Game Maker.
22:22
< Rhamphoryncus>
ahh
22:28 * Vornicus ends up with a 40 kB script that all it does is initialize stuff in an array.
22:32
<&McMartin>
Yeah, this is A Weakness
22:33
<&McMartin>
the sprite font in Hex Inverter is similar -_-
22:33 * McMartin uses Python to write the GML.
22:34
<~Vornicus>
I used Excel, because that's where my data is.
22:34
<~Vornicus>
(It's also 40kb because all the indices are named)
22:54
<~Vornicus>
now, where to put it.
23:01 iospace is now known as io|gone
23:05
< celticminstrel>
Okay, why is x + y returning y? (Where x and y are strings.)
23:05
<&McMartin>
is + and?
23:05
< celticminstrel>
Um. No?
23:06
< celticminstrel>
String concatenation.
23:07
< celticminstrel>
It worked fine when x was a "const char*", and now it breaks when x is a "std::string".
23:07
<&McMartin>
Um
23:08
< celticminstrel>
Wait no, that's false. It's still a const char*.
23:08
<&McMartin>
That sounds backwards.
23:08
< celticminstrel>
Duh. <_<
23:08
<&McMartin>
My guess is "you're getting burned by the overloads on +"
23:08
< celticminstrel>
Well, I guess I could make it a std::string and see if that fixes it.
23:09
< celticminstrel>
(Actually it was a "const char*const", but I don't expect that's a relevant distinction.)
23:10
< celticminstrel>
'kay, fixed. Still confused why it happened, but doesn't matter anymore.
23:10
<&McMartin>
Persnickety overloads on std::string and the rule that you can only autocoerce one step.
23:11
< celticminstrel>
Only, it worked before.
23:12
< celticminstrel>
The const char*const was a function return value, so the type of that never changed.
23:12
< celticminstrel>
It was returning a .c_str() though, maybe that did something odd.
23:36
<~Vornicus>
now if I could just figure out where the hell to put this data.
23:42
<&McMartin>
celticminstrel: Oh. That's *bad*.
23:43
<&McMartin>
That's the equivalent of returing a pointer to a variable on the stack after you return
23:44
< celticminstrel>
Well... it worked if I just printed out the return value, but failed when I tried adding another string to it.
23:44 * Vornicus determines that he has not put the data where he thinks he has.
23:44
< celticminstrel>
Still, not doing that now.
23:44
<&McMartin>
celticminstrel: This is one of those things where it's "quirks of runtime" that let it work
23:44
< celticminstrel>
Ah.
23:44
<&McMartin>
Like referring to a field of an object after that object has been deleted.
23:45
<&McMartin>
Vorn: The rules for "self" and "other" and "named object (actually named class)" are *severely* wonky.
23:45
<&McMartin>
globalvar may be your friend.
23:45
< celticminstrel>
I wish I could tell Xcode to delete the levels directory when I clean the project...
23:45
<~Vornicus>
I get that impression
23:46
<&McMartin>
They're *consistent*, but the names are all wrong
23:46 * McMartin is off for the weekend, to play games with fellow alumni and their small children, so won't be around *too* much except in lulls.
23:47
<&McMartin>
At some point it's valuable to just read the entire manual straight through like a book, though, I'll say that much.
23:47
<~Vornicus>
okay now it's in a place that actually exists.
23:48
<~Vornicus>
(the room creation code location seems to not put things you assign there /anywhere/)
23:50
<&McMartin>
Heh
23:51
<&McMartin>
Yeah, the standard thing to do for room-surviving things is to put it in a gamemaster object that has no sprite and lives in the corner.
23:51
<&McMartin>
(but which is visible so that it can draw stuff on-screen as needed)
--- Log closed Sat Jun 30 00:00:35 2012
code logs -> 2012 -> Fri, 29 Jun 2012< code.20120628.log - code.20120630.log >

[ Latest log file ]