2013-05-05T00:02:20 *** fsvgm777 has quit IRC 2013-05-05T00:14:26 *** Nmlgc has quit IRC 2013-05-05T00:26:17 *** tosiaki has quit IRC 2013-05-05T01:00:04 *** tosiaki has joined #thcrap 2013-05-05T02:06:15 I said that I managed to read files in a DAT without extracting this DAT from the HDI. Well, in fact, it doesn't work. >_< I made some tests with BFTs, and the conversion to BMP is successful when the BFT is outside the HDI, but not when it's inside. >_< 2013-05-05T02:08:08 Look at http://thtk.googlecode.com/ it’s a collection of tools and functions to access DAT and other Touhou files. 2013-05-05T02:08:09 <[Bot]MagicStone> Title: thtk - Touhou Toolkit - Google Project Hosting (at thtk.googlecode.com) 2013-05-05T02:08:46 I take it can do what you want. 2013-05-05T02:10:35 About something entirely unrelated, today I added soft looppoints support to SDL_mixer, and I will start using that in PyTouhou for the music, I hope it will soon be merged upstream so everyone will be able to use it. :) 2013-05-05T02:11:05 I already know thtk, that's what I used to understant the DATs' file format. But there's no problem while reading the DAT itself, the problem, I think, comes from functions like the read/seek/… I implemented, when dealing with files compressed using RLE. 2013-05-05T02:11:38 Why did you rewrite it instead of just calling its functions? 2013-05-05T02:11:46 (Oh, and by the way, thank you for showing me http://pytouhou.linkmauve.fr/98/formats.patch) 2013-05-05T02:12:19 (It’s not finished yet and far from complete, but I’m glad it’s been of use. :)) 2013-05-05T02:14:56 Well, first, because it's fun~ And because there's no functions for reading a file without extracting it (or maybe I missed it). But, anyway, that's horribly slow, I read the file without loading it in memory, but I really should do it. 2013-05-05T02:16:28 Oh, yeah, and, what do you mean by "soft loop points"? 2013-05-05T02:17:05 Telling the music player the start and end of the loop. 2013-05-05T02:17:33 So that it plays the intro, then loops and if it’s done well you never hear it looping. 2013-05-05T02:17:52 What's the exact meaning of this soft? 2013-05-05T02:20:08 Hmm, I don’t know exactly. 2013-05-05T02:20:19 I’ve always heard it called like that. 2013-05-05T02:20:36 I should really try pytouhou again, I tried it quite some time ago already, so I supposed it changed. 2013-05-05T02:20:46 I see. 2013-05-05T02:21:59 Up until now we were using pyglet for windowing, input, OpenGL and sound, and I’m in the process of replacing it with SDL 2.0 because it’s better. 2013-05-05T02:22:02 Well, let's go back to the DAT files. I'll load everything decompressed in memory, it will be a lot easier to manipulate, at least I hope. 2013-05-05T02:22:31 One of the advantages is that it will work on much more platforms, with pyglet we were limited to windows, macos and linux, and OpenGL 2.1 or bellow. 2013-05-05T02:24:38 Yep, I saw you were talking about making it available to smartphones (I think) in the logs. 2013-05-05T02:30:33 Hum, I have a little question. Which kind of method do you use to manage all the bullets on the screen? (Maybe it's really simple, but I don't have any idea and , well, I happen to think about a lot (well, not a lot, but a lot for something not really important for me)) 2013-05-05T02:30:54 a lot about it* 2013-05-05T02:31:35 A very inefficient one. ^^' 2013-05-05T02:31:55 Ahah, I see. 2013-05-05T02:32:02 We have one Bullet object per bullet, we put those in a list, and we iterate at each frame. 2013-05-05T02:33:13 Plus an animation per Bullet, plus a Sprite, plus an awful update function that takes a lot of time called at each frame. 2013-05-05T02:33:28 There is a lot of room for optimizations here. 2013-05-05T02:34:57 It seems pretty inefficient indeed. But I don't really know, I never coded any video game (except a mastermind for school, so…), so I question myself a lot about the ways used to deal with a great number of elements and the collisions at each frame (and not only for danmakus). 2013-05-05T02:36:18 (-at*? I should really practice English more.) 2013-05-05T02:37:11 There are a lot of algorithmes we could use to speed that up, the easiest ones would be to split the screen and to calculate collisions only between sprites in those parts. 2013-05-05T02:37:23 That way we would do a lot less collisions check. 2013-05-05T02:38:52 I’ve read a great paper from SCE about the ineffiency of OOP: http://research.scee.net/files/presentations/gcapaustralia09/Pitfalls_of_Object_Oriented_Programming_GCAP_09.pdf 2013-05-05T02:39:31 I want to implement that in PyTouhou, but there are more important missing features I want to implement first. 2013-05-05T02:41:32 I don't use POO a lot (almost never in fact), be this could be interesting, I think I'll read it next week. 2013-05-05T03:11:39 It works! I’ve reintegrated music into PyTouhou. :) 2013-05-05T03:12:12 But now is time to sleep, I’ll fix the player and enemy sounds tomorrow. 2013-05-05T03:23:55 *** Ibaraki_Ibuki has joined #thcrap 2013-05-05T03:30:34 It works. \o/ (And besides, the conversion to BMP is instantaneous. Before, it needed a few seconds, and to fail.) 2013-05-05T03:31:37 *** Nazeo has joined #thcrap 2013-05-05T03:32:30 *** tosiaki has quit IRC 2013-05-05T03:32:53 *** GreaseMonkey has joined #thcrap 2013-05-05T03:40:54 *** Twidona has quit IRC 2013-05-05T03:59:09 *** tosiaki has joined #thcrap 2013-05-05T06:47:08 *** DeltaSierra4_ has joined #thcrap 2013-05-05T06:50:06 *** DeltaSierra4 has quit IRC 2013-05-05T06:51:02 *** DeltaSierra4_ is now known as DeltaSierra4 2013-05-05T07:20:55 *** Nazeo has quit IRC 2013-05-05T07:26:11 *** Ibaraki_Ibuki has quit IRC 2013-05-05T07:31:02 *** DeltaSierra4 has quit IRC 2013-05-05T09:19:35 *** Nmlgc has joined #thcrap 2013-05-05T09:26:19 *** KyoriAsh has quit IRC 2013-05-05T10:45:48 *** fsvgm777 has joined #thcrap 2013-05-05T11:43:12 *** tosiaki has quit IRC 2013-05-05T11:46:43 *** tosiaki has joined #thcrap 2013-05-05T12:17:30 *** tosiaki has quit IRC 2013-05-05T12:17:49 *** tosiaki has joined #thcrap 2013-05-05T12:22:52 *** GreaseMonkey has quit IRC 2013-05-05T12:26:24 *** nurupo has quit IRC 2013-05-05T12:26:24 *** albel727 has quit IRC 2013-05-05T12:26:29 *** GreaseMonkey_ has joined #thcrap 2013-05-05T12:28:05 *** albel727 has joined #thcrap 2013-05-05T12:28:06 *** nurupo has joined #thcrap 2013-05-05T12:33:32 *** GreaseMonkey_ has quit IRC 2013-05-05T12:34:28 *** nurupo has quit IRC 2013-05-05T12:34:28 *** albel727 has quit IRC 2013-05-05T12:34:28 *** fsvgm777 has quit IRC 2013-05-05T12:34:54 *** Nmlgc has quit IRC 2013-05-05T12:34:54 *** Ruusento has quit IRC 2013-05-05T12:42:05 *** nurupo has joined #thcrap 2013-05-05T12:42:05 *** albel727 has joined #thcrap 2013-05-05T12:42:05 *** fsvgm777 has joined #thcrap 2013-05-05T12:42:05 *** Nmlgc has joined #thcrap 2013-05-05T12:42:05 *** Ruusento has joined #thcrap 2013-05-05T13:59:56 *** Nmlgc has quit IRC 2013-05-05T14:03:26 *** Nmlgc has joined #thcrap 2013-05-05T14:17:11 *** Twidona has joined #thcrap 2013-05-05T14:19:39 Twidona, there is RLE compression in the PC-98 games? On which formats in particular? 2013-05-05T14:21:37 Yep, for the DAT files. 2013-05-05T14:21:59 (But not every files.) 2013-05-05T14:22:27 Ah, I see. I still don't know what HRtP's mask.grf is, and that seemed to make sense. 2013-05-05T14:42:37 The link to PyTouhou is broken. (http://http//pytouhou.linkmauve.fr/ instead of http://pytouhou.linkmauve.fr/ ) 2013-05-05T14:42:40 <[Bot]MagicStone> Title: PyTouhou (at pytouhou.linkmauve.fr) 2013-05-05T14:42:49 fsvgm777, oh? Where? 2013-05-05T14:43:04 On the main page of Touhou Patch Center. 2013-05-05T14:43:48 And it's fixed. 2013-05-05T15:51:38 *** Twidona has quit IRC 2013-05-05T16:35:35 *** Ibaraki_Ibuki has joined #thcrap 2013-05-05T18:25:09 *** DeltaSierra4 has joined #thcrap 2013-05-05T19:12:57 *** Ikubi_Ikarabi has joined #thcrap 2013-05-05T19:17:08 *** Ibaraki_Ibuki has quit IRC 2013-05-05T19:17:23 *** Ikubi_Ikarabi is now known as Ibaraki_Ibuki 2013-05-05T19:43:07 *** Twidona has joined #thcrap 2013-05-05T19:54:20 *** DeltaSierra4 is now known as DS4away 2013-05-05T20:42:00 *** Nazeo has joined #thcrap 2013-05-05T21:23:08 *** DS4away is now known as DeltaSierra4 2013-05-05T21:41:23 *** tosiaki has quit IRC 2013-05-05T22:45:40 *** DeltaSierra4 is now known as DS4gapped 2013-05-05T22:54:09 *** tosiaki has joined #thcrap 2013-05-05T23:49:17 *** Nmlgc has quit IRC