--- Log opened Sun May 10 00:00:03 2015 |
00:08 | <&Derakon> | Man, I haven't written any Python in ages. |
00:14 | < catalyst> | ssssssss |
00:14 | <&Derakon> | You're thinking of rattlesnakes. |
00:17 | < Echoes--> | lol |
00:17 | < catalyst> | Nah, it's just more aggressive than duck typing |
00:17 | < Echoes--> | Yeah, pythons kind of just strangle stuff. |
00:29 | | Checkmate [Z@Nightstar-484uip.cust.comxnet.dk] has quit [Ping timeout: 121 seconds] |
00:30 | | Vash [Vash@Nightstar-uhn82m.ct.comcast.net] has joined #code |
00:30 | | mode/#code [+o Vash] by ChanServ |
00:38 | <@gnolam> | Derakon: If you're working in Python 3, then rejoice in enums. :) |
00:40 | <@gnolam> | (Introduced in 3.4) |
00:41 | <~Vornicus> | I was wondering when they'd finally get that off the ground |
00:43 | <&Derakon> | Oh yeah, Python 3 is a thing. >.> |
00:43 | <&Derakon> | The only excuse I have for not using it is laziness, at least for this project, which is just prototyping anyway. |
00:56 | <@gnolam> | (Seriously; IntEnums may be basic, but they're a godsend if you're interfacing with stuff) |
00:57 | | VirusJTG [VirusJTG@Nightstar-6i5vf7.sta.comporium.net] has quit [[NS] Quit: Leaving] |
00:57 | <@gnolam> | Give it a whirl. I find it hard to go back to 2 nowadays. |
00:57 | | VirusJTG [VirusJTG@Nightstar-6i5vf7.sta.comporium.net] has joined #code |
01:03 | | catalyst [catalyst@Nightstar-bt5k4h.81.in-addr.arpa] has quit [[NS] Quit: ] |
01:05 | | catadroid [catalyst@Nightstar-bt5k4h.81.in-addr.arpa] has joined #code |
01:54 | <&Derakon> | Ugh, even writing this algorithm in pseudocode is confusing me. >.< |
02:25 | <&Derakon> | Right, okay. |
02:25 | <&Derakon> | The goal here is to construct a random map out of prefabricated rooms. |
02:25 | <&Derakon> | The map is divided into regions. Each region contains a path to a key item, a path to a lock, and a path from the lock to the next region. |
02:27 | <&Derakon> | The map is also divided into cells, which are composed of a rectangular array of tiles (e.g. each cell is 16x14 tiles). Prefabs occupy set numbers of cells, and have specific edges ("borders") that can transition to other prefabs. |
02:27 | <&Derakon> | Example prefabs: http://pastebin.com/1WqbL4PF |
02:28 | <&Derakon> | And here's the algorithm I've developed for filling in the map: http://pastebin.com/hnyPUMmE |
02:29 | <&Derakon> | Basically it's a recursive algorithm with a set of defined task transitions. Path to key -> place key -> path to lock -> place lock -> path to next region. |
02:30 | <&Derakon> | At each recursive step, the algorithm tries placing all possible prefabs; each placement is a recursion step, and returns true if it was able to generate a complete, successful map, and false otherwise. |
02:30 | <&Derakon> | (NB I'm missing a termination step here ._.;) |
03:52 | | catadroid` [catalyst@Nightstar-bt5k4h.81.in-addr.arpa] has joined #code |
03:52 | | catadroid [catalyst@Nightstar-bt5k4h.81.in-addr.arpa] has quit [Connection reset by peer] |
05:20 | | Derakon is now known as Derakon[AFK] |
06:20 | | Alek [omegaboot@Nightstar-03ja8q.il.comcast.net] has quit [Ping timeout: 121 seconds] |
06:24 | | Alek [omegaboot@Nightstar-03ja8q.il.comcast.net] has joined #code |
06:24 | | mode/#code [+o Alek] by ChanServ |
06:49 | | Kindamoody[zZz] is now known as Kindamoody |
06:55 | | kourbou [kourbou@Nightstar-deqg8j.fbx.proxad.net] has joined #code |
07:17 | | kourbou is now known as kourbou|foodz |
07:47 | | Vornicus [vorn@Nightstar-uhn82m.ct.comcast.net] has quit [[NS] Quit: ] |
08:01 | | kourbou|foodz is now known as kourbou |
08:01 | | kourbou_ [kourbou@Nightstar-deqg8j.fbx.proxad.net] has joined #code |
08:02 | | kourbou [kourbou@Nightstar-deqg8j.fbx.proxad.net] has quit [NickServ (RECOVER command used by kourbou_)] |
08:02 | | kourbou_ is now known as kourbou |
08:02 | | kourbou|phone [kourbou@Nightstar-deqg8j.fbx.proxad.net] has joined #code |
08:34 | | Checkmate [Z@Nightstar-484uip.cust.comxnet.dk] has joined #code |
08:34 | | mode/#code [+o Checkmate] by ChanServ |
08:42 | | macdjord is now known as macdjord|slep |
08:51 | | Vash [Vash@Nightstar-uhn82m.ct.comcast.net] has quit [Connection closed] |
09:00 | | catadroid [catalyst@Nightstar-36hknq.dab.02.net] has joined #code |
09:01 | | catadroid` [catalyst@Nightstar-bt5k4h.81.in-addr.arpa] has quit [Connection closed] |
09:01 | | catadroid` [catalyst@Nightstar-bt5k4h.81.in-addr.arpa] has joined #code |
09:05 | | catadroid [catalyst@Nightstar-36hknq.dab.02.net] has quit [Ping timeout: 121 seconds] |
09:14 | | catalyst [catalyst@Nightstar-bt5k4h.81.in-addr.arpa] has joined #code |
09:19 | | catadroid` [catalyst@Nightstar-bt5k4h.81.in-addr.arpa] has quit [[NS] Quit: Bye] |
10:02 | | kourbou is now known as KBot |
10:04 | | KBot is now known as kourbou |
10:48 | | kourbou|phone [kourbou@Nightstar-deqg8j.fbx.proxad.net] has quit [Z-Lined: Your IP range has been attempting to connect too many times in too short a duration. Wait a while, and you will be able to connect.] |
10:48 | | kourbou [kourbou@Nightstar-deqg8j.fbx.proxad.net] has quit [Z-Lined: Your IP range has been attempting to connect too many times in too short a duration. Wait a while, and you will be able to connect.] |
10:53 | | kourbou [kourbou@Nightstar-99n.64t.160.37.IP] has joined #code |
10:56 | | kourbou [kourbou@Nightstar-99n.64t.160.37.IP] has quit [Connection closed] |
11:01 | | Kindamoody is now known as Kindamoody|afk |
11:20 | | kourbou_ [kourbou@Nightstar-deqg8j.fbx.proxad.net] has joined #code |
11:21 | | kourbou_ is now known as kourbou |
11:23 | | kourbou is now known as kourbou|testing |
11:24 | | kourbou|testing is now known as kourbou |
13:03 | | VirusJTG [VirusJTG@Nightstar-6i5vf7.sta.comporium.net] has quit [Connection closed] |
13:20 | | kourbou is now known as kourbou|afk |
13:25 | | kourbou|phone [kourbou@Nightstar-deqg8j.fbx.proxad.net] has joined #code |
14:42 | | Checkmate [Z@Nightstar-484uip.cust.comxnet.dk] has quit [Ping timeout: 121 seconds] |
14:46 | | VirusJTG [VirusJTG@Nightstar-6i5vf7.sta.comporium.net] has joined #code |
14:50 | | kourbou|phone [kourbou@Nightstar-deqg8j.fbx.proxad.net] has quit [Connection closed] |
14:59 | | kourbou|phone [kourbou@Nightstar-deqg8j.fbx.proxad.net] has joined #code |
15:44 | < abudhabi> | https://www.sendspace.com/file/qyymdo |
15:44 | < abudhabi> | Derakon[AFK]: Here's the minimal reproduction of the problem. |
15:44 | < abudhabi> | (Netbeans 8 project.) |
15:46 | < abudhabi> | If anyone else wants to help, please! |
16:12 | | Checkmate [Z@Nightstar-ev6.6um.94.83.IP] has joined #code |
16:12 | | mode/#code [+o Checkmate] by ChanServ |
16:16 | | kourbou|afk is now known as kourbou |
16:22 | | Meatyhandbag [sebastianfe@Nightstar-dk0.5eb.224.136.IP] has quit [Client exited] |
16:30 | | Echoes-- [rolly@Nightstar-eo05bk.co.comcast.net] has quit [Ping timeout: 121 seconds] |
17:11 | | Vornicus [vorn@ServerAdministrator.Nightstar.Net] has joined #code |
17:11 | | mode/#code [+qo Vornicus Vornicus] by ChanServ |
17:11 | | Vornicus [vorn@ServerAdministrator.Nightstar.Net] has quit [Connection closed] |
17:21 | | Vornicus [vorn@Nightstar-uhn82m.ct.comcast.net] has joined #code |
17:21 | | mode/#code [+qo Vornicus Vornicus] by ChanServ |
17:24 | | kourbou [kourbou@Nightstar-deqg8j.fbx.proxad.net] has quit [[NS] Quit: Tip about keeping secrets: It's easier if you don't know them.] |
17:24 | | kourbou [kourbou@Nightstar-deqg8j.fbx.proxad.net] has joined #code |
17:49 | | Vash [Vash@Nightstar-uhn82m.ct.comcast.net] has joined #code |
17:49 | | mode/#code [+o Vash] by ChanServ |
17:50 | | macdjord|slep is now known as macdjord |
18:34 | | kourbou [kourbou@Nightstar-deqg8j.fbx.proxad.net] has quit [[NS] Quit: Tip about keeping secrets: It's easier if you don't know them.] |
19:01 | | Meatyhandbag [sebastianfe@Nightstar-dk0.5eb.224.136.IP] has joined #code |
19:02 | | * abudhabi pokes the channel for Java people. |
19:06 | < kourbou|phone> | Hi, I'm a java people. |
19:06 | < kourbou|phone> | :P |
19:06 | < abudhabi> | kourbou|phone: Excellent. Could you divine me the reason why https://www.sendspace.com/file/qyymdo works the way it does? |
19:07 | < kourbou|phone> | I'm on mobile. |
19:07 | < abudhabi> | OK. |
19:07 | < kourbou|phone> | Pastebin? |
19:10 | < abudhabi> | kourbou|phone: http://pastebin.com/VzNscdvK |
19:10 | < abudhabi> | Four files. |
19:11 | < abudhabi> | The problem is that the Window's repaint() thinks the (0,0) point is in its own top left corner, even when drawing customPanel1's overriden paint method. |
19:12 | < abudhabi> | Calling customPanel1.repaint() correctly assumes (0,0) in the panel's top left corner. |
19:12 | < kourbou|phone> | Never used Awt before. |
19:12 | < kourbou|phone> | Won't be of much help. |
19:12 | < abudhabi> | But whenever I switch tabs, the Window's repaint() is called. |
19:13 | < kourbou|phone> | Okay, I can check anyways. |
19:14 | < kourbou|phone> | No clue, sorry. XD |
19:14 | < abudhabi> | (That first filename should be WhereIsZeroZero.java.) |
19:14 | < abudhabi> | Right. |
19:15 | | Vash [Vash@Nightstar-uhn82m.ct.comcast.net] has quit [Connection closed] |
19:22 | | kourbou|phone is now known as kourbou |
19:42 | | Vornicus [vorn@Nightstar-uhn82m.ct.comcast.net] has quit [Connection closed] |
19:49 | | * abudhabi identifies a clue. |
19:49 | < abudhabi> | When I use Graphics, instead of Graphics2D, it functions as it ought. |
19:53 | < abudhabi> | Aha! |
19:53 | < abudhabi> | AffineTransform seems to be culprit. |
19:53 | < abudhabi> | When I don't use it, it prints fine. |
19:53 | < abudhabi> | When I do use it, things go screwy. |
20:07 | < kourbou> | abudhabi: fixed it? |
20:07 | | kourbou [kourbou@Nightstar-deqg8j.fbx.proxad.net] has quit [Connection closed] |
20:08 | | kourbou|phone [kourbou@Nightstar-deqg8j.fbx.proxad.net] has joined #code |
20:08 | | kourbou|phone is now known as kourbou |
20:09 | | catalyst [catalyst@Nightstar-bt5k4h.81.in-addr.arpa] has quit [[NS] Quit: ] |
20:41 | | catadroid [catalyst@Nightstar-dl3rl3.cable.virginm.net] has joined #code |
20:48 | < abudhabi> | kourbou: I am closer to fixing it! |
20:48 | < kourbou> | Nice, good luck buddy. |
20:48 | < kourbou> | Keep it up! |
20:54 | | kourbou|phone [kourbou@Nightstar-boh.v94.161.37.IP] has joined #code |
20:55 | | kourbou|autojoin [kourbou@Nightstar-deqg8j.fbx.proxad.net] has joined #code |
20:55 | | kourbou [kourbou@Nightstar-deqg8j.fbx.proxad.net] has quit [Connection closed] |
20:56 | | kourbou|autojoin [kourbou@Nightstar-deqg8j.fbx.proxad.net] has quit [[NS] Quit: Don't think of what others think of you. Think of what you think of others.] |
20:56 | | kourbou [kourbou@Nightstar-deqg8j.fbx.proxad.net] has joined #code |
20:58 | | kourbou|phone [kourbou@Nightstar-boh.v94.161.37.IP] has quit [Ping timeout: 121 seconds] |
20:59 | < abudhabi> | Aha! |
20:59 | < abudhabi> | Someone had this problem before. |
20:59 | < abudhabi> | http://stackoverflow.com/questions/6705743/problems-with-affinetransform |
20:59 | < abudhabi> | It took a remarkable amount of futzing about before I knew what question to ask. |
21:03 | < abudhabi> | FIXED. |
21:04 | <&McMartin> | Not for nothing is it said that "a problem well stated is a problem half solved" |
21:11 | <@ErikMesoy> | That seems to have a corollary which is rather more doubtful: if your statement doesn't half solve it, you have phrased the problem badly |
21:12 | <@ErikMesoy> | Sometimes problems don't necessarily have solutions, half or whole, just a choice between which of several incompatible requirements to abandon |
21:15 | <&McMartin> | I call that "multiple solutions"~ |
21:15 | | Checkmate [Z@Nightstar-ev6.6um.94.83.IP] has quit [Ping timeout: 121 seconds] |
21:15 | <&McMartin> | As for your corollary |
21:16 | <&McMartin> | "For any reasonable statement of a problem, there is an unreasonable way of stating it which makes it twice as hard" |
21:16 | <&McMartin> | Seems less doubtful, if perhaps unnecessarily quantized. |
21:20 | <@ErikMesoy> | Granted |
21:29 | < abudhabi> | Now for the next persistent problem: Subpixel drawing using Java Graphics2D. |
21:29 | <&McMartin> | abudhabi: I don't know if you keep dev diaries, but I bet if you did keep one for this it would turn into a fine tutorial |
21:31 | < abudhabi> | How Not To Do AffineTransforms 101. |
21:34 | | kourbou [kourbou@Nightstar-deqg8j.fbx.proxad.net] has quit [Connection closed] |
21:35 | | kourbou [kourbou@Nightstar-deqg8j.fbx.proxad.net] has joined #code |
21:38 | <&McMartin> | Thinking more "navigating the minefield that is the Graphics2D API" |
21:48 | | Checkmate [Z@Nightstar-484uip.cust.comxnet.dk] has joined #code |
21:48 | | mode/#code [+o Checkmate] by ChanServ |
22:18 | | Kindamoody|afk is now known as Kindamoody |
22:20 | < abudhabi> | Alrighty, fixed that too. |
22:20 | < abudhabi> | Turns out I can't just drawOval(). |
22:20 | < abudhabi> | I have to draw() a Shape like a Ellipse2D.Double. |
22:45 | | kourbou is now known as kourbou|zzz |
23:35 | | celticminstrel [celticminst@Nightstar-md6f5v.dsl.bell.ca] has joined #code |
23:36 | | mode/#code [+o celticminstrel] by ChanServ |
23:37 | | Derakon[AFK] is now known as Derakon |
23:48 | | Meatyhandbag [sebastianfe@Nightstar-dk0.5eb.224.136.IP] has quit [Client exited] |
23:54 | | catadroid` [catalyst@Nightstar-5l445n.dab.02.net] has joined #code |
23:56 | | Kindamoody is now known as Kindamoody[zZz] |
23:57 | | catadroid [catalyst@Nightstar-dl3rl3.cable.virginm.net] has quit [Ping timeout: 121 seconds] |
--- Log closed Mon May 11 00:00:19 2015 |