Re: [Ohrrpgce] SVN: james/5480 Attacks base stat is now allowed to be max stats,

2012-12-08 Thread David Gowers
I thought the meaning of 'splitting the attack stat' was to reduce the number of enumerated values; to have only two related options in base stat, 'attacker stat' and 'target stat', with the selection of which stat to use in a separate field. On Sun, Dec 9, 2012 at 12:48 PM, James Paige

Re: [Ohrrpgce] New nohrio RELOAD api feedback

2012-10-01 Thread David Gowers
On Mon, Oct 1, 2012 at 1:46 AM, Ralph Versteegen teeem...@gmail.com wrote: I see. But what would this stream api actually look like (just when and next)? I think either iterating, indexing by child name, or elif chain would comfortably and naturally handle all the document structures we

Re: [Ohrrpgce] New nohrio RELOAD api feedback

2012-09-30 Thread David Gowers
On Sun, Sep 30, 2012 at 12:20 AM, Ralph Versteegen teeem...@gmail.com wrote: On 29 September 2012 18:23, David Gowers 00a...@gmail.com wrote: Good idea CCing the list, I initially thought it was a topic of limited general relevance, but I realized at least Mike might also have something to say

Re: [Ohrrpgce] New nohrio RELOAD api feedback

2012-09-29 Thread David Gowers
Good idea CCing the list, I initially thought it was a topic of limited general relevance, but I realized at least Mike might also have something to say here.. On Sat, Sep 29, 2012 at 2:31 AM, Ralph Versteegen teeem...@gmail.com wrote: On 29 September 2012 00:38, David Gowers 00a...@gmail.com

Re: [Ohrrpgce] Mac bug: Maybe BINARY ACCESS READ rather than LOF is the culprit?

2012-06-02 Thread David Gowers (kampu)
On Sat, Jun 2, 2012 at 6:43 AM, James Paige b...@hamsterrepublic.com wrote: Actually, I can't believe I missed this before, but it looks like ALL files 4096 bytes are affected. The filenames that have smaller sizes that were not affected were actually the names of directories. I am not sure

Re: [Ohrrpgce] nohrio-based tool for importing/exporting data

2012-05-17 Thread David Gowers (kampu)
On Fri, May 18, 2012 at 1:18 AM, Ralph Versteegen teeem...@gmail.com wrote: One thing I'd like to mention at this point is that some parts of ndarray subclassing are non-obvious; for instance recarray-style access is not as good as it sounds because arrays come with  a great many  (100+?)

Re: [Ohrrpgce] nohrio-based tool for importing/exporting data

2012-05-14 Thread David Gowers (kampu)
Hi TeeEmCee, On Mon, May 14, 2012 at 3:37 PM, Ralph Versteegen teeem...@gmail.com wrote: I've been working on a crude nohrio program to import and export data (enemies, heroes, attacks, items, textboxes) to csv files. It's totally generic, working by inspecting the fields of the lump's dtype,

Re: [Ohrrpgce] nohrio-based tool for importing/exporting data

2012-05-14 Thread David Gowers (kampu)
On Mon, May 14, 2012 at 5:27 PM, Ralph Versteegen teeem...@gmail.com wrote: On 14 May 2012 18:36, David Gowers (kampu) 00a...@gmail.com wrote: I think that must be a Windows-only constraint. I can memmap with any offset and any length. I forgot to try manually specifying the length. Wow

Re: [Ohrrpgce] Teach me some git

2012-04-20 Thread David Gowers (kampu)
On Sat, Apr 21, 2012 at 3:26 AM, Ralph Versteegen teeem...@gmail.com wrote: I found this pretty confusing too, and I'm still not entirely comfortable working with remotes. But I'll point out (though this is getting into advanced territory) that there are usually *three* copies of a remote

Re: [Ohrrpgce] dealing with a corrupted palettes.bin file

2012-04-08 Thread David Gowers (kampu)
On Sun, Apr 8, 2012 at 2:38 PM, Ralph Versteegen teeem...@gmail.com wrote: Anyway, while I was looking at the relumping code I realised it was quite delicate. If something goes wrong, you'll probably just get a silently corrupted RPG file. It should be possible to add some safety checks. Of

[Ohrrpgce] 64bit dependencies

2012-02-11 Thread David Gowers (kampu)
Hi, Just dropping a note, since I didn't find this in README-source.txt, that on 64bit Linux platforms, 32bit versions of libs are needed for GCC to pick them up when linking ohrrpgce-(game|custom). This usually involves installing a separate package -- for example (on Arch Linux), I already had

Re: [Ohrrpgce] 16-color Palette manipulation with scripts

2011-05-27 Thread David Gowers (kampu)
On Sat, May 28, 2011 at 1:17 AM, James Paige b...@hamsterrepublic.comwrote: This makes a lot of sense to me now. I wrote up a summary of it here: http://rpg.hamsterrepublic.com/ohrrpgce/Types_of_Palettes There are four types of palettes.. (describes three) Are you trying to make a Monty

Re: [Ohrrpgce] Build system pruning

2011-04-26 Thread David Gowers (kampu)
Instead, you have 'scons -c' Specifying cleanup targets in SConscript files is not usually necessary. The -c flag removes all files necessary to build the specified target: scons -c . to remove all target files, or: scons -c build

Re: [Ohrrpgce] SVN: teeemcee/4084 Ugh, should have incremented RPG Format version when I added .DT0 record

2011-01-05 Thread David Gowers (kampu)
On Thu, Jan 6, 2011 at 6:16 AM, James Paige b...@hamsterrepublic.com wrote: On Thu, Jan 06, 2011 at 08:02:20AM +1300, Ralph Versteegen wrote: However f you don't build out of an svn or git repository (for example, if you download the nightly source) then you'll get a revision number of 0,

Re: [Ohrrpgce] string.bi

2011-01-01 Thread David Gowers (kampu)
Hmm, I thought I fixed that before (it's about the dependency detection -- SCons is detecting string.bi as a dep, and not finding it.).. wait.. Adding 'string.bi' to the list on line 10 of ohrbuild.py should fix it. Testing.. yep, works. Commited :)

Re: [Ohrrpgce] Instant updates to Game from Custom, through backends

2010-11-06 Thread David Gowers (kampu)
On Sun, Nov 7, 2010 at 2:07 PM, James Paige b...@hamsterrepublic.com wrote: On Sat, Nov 06, 2010 at 05:16:03AM -0700, Jay Tennant wrote: managed by the backend, but doing so would allow edits in Custom to be immediately visible in Game. I'm not sure of the practicality of that, but it's an

Re: [Ohrrpgce] better palette options

2010-10-31 Thread David Gowers (kampu)
On Thu, Oct 28, 2010 at 1:45 AM, James Paige b...@hamsterrepublic.com wrote: On Wed, Oct 27, 2010 at 04:34:35PM +1030, David Gowers (kampu) wrote: On Wed, Oct 27, 2010 at 1:47 AM, James Paige b...@hamsterrepublic.com wrote: Hypotheticlly suppose I have a side-scroller where the hero has

Re: [Ohrrpgce] better palette options

2010-10-27 Thread David Gowers (kampu)
On Wed, Oct 27, 2010 at 1:47 AM, James Paige b...@hamsterrepublic.com wrote: Hypotheticlly suppose I have a side-scroller where the hero has a 4-frame walk animation. When I press and hold the attack button while walking, I want her to switch to to the sprite set where she charges an

Re: [Ohrrpgce] better palette options

2010-10-27 Thread David Gowers (kampu)
On Wed, Oct 27, 2010 at 4:34 PM, David Gowers (kampu) 00a...@gmail.com wrote: On Wed, Oct 27, 2010 at 1:47 AM, James Paige b...@hamsterrepublic.com wrote: Hypotheticlly suppose I have a side-scroller where the hero has a 4-frame walk animation. When I press and hold the attack button while

Re: [Ohrrpgce] better palette options

2010-10-26 Thread David Gowers (kampu)
On Fri, Oct 22, 2010 at 1:40 AM, James Paige b...@hamsterrepublic.com wrote: Then the question arises of what to do when chaining to another animation: should the saved state be overwritten? Both possibilities could be useful; maybe another parameter to 'end' would even be justified. This

Re: [Ohrrpgce] better palette options

2010-10-20 Thread David Gowers (kampu)
On Mon, Oct 18, 2010 at 11:11 PM, Ralph Versteegen teeem...@gmail.com wrote: Wondering why you noted reset as only resetting gfxset  - you don't think the rest is useful? I hadn't thought how to derive the defaults yet. I've partially amended it now. I intended to just save the state at the

Re: [Ohrrpgce] Sprites, animation food for thought

2010-10-18 Thread David Gowers (kampu)
On Mon, Oct 18, 2010 at 9:58 PM, Ralph Versteegen teeem...@gmail.com wrote: On 14 October 2010 13:45, David Gowers (kampu) 00a...@gmail.com wrote: On Wed, Oct 13, 2010 at 7:20 PM, David Gowers (kampu) 00a...@gmail.com wrote: On Mon, Oct 11, 2010 at 4:07 AM, Mike Caron caron.m...@gmail.com

Re: [Ohrrpgce] better palette options

2010-10-18 Thread David Gowers (kampu)
Just a quick reply now, the rest when I do not need to go to bed: On Mon, Oct 18, 2010 at 11:11 PM, Ralph Versteegen teeem...@gmail.com wrote: - various updates, still considering other updates as a consequence of Mike's input. Initially I thought tag2ctr was quite nice, but I wonder whether

Re: [Ohrrpgce] Sprites, animation food for thought

2010-10-13 Thread David Gowers (kampu)
On Mon, Oct 11, 2010 at 4:07 AM, Mike Caron caron.m...@gmail.com wrote: First off, a disclaimer: This is not an actual proposal for a data format for the OHR. This is something I've cooked up for another project which may or may not ever see the light of day (hopefully, it will, but it's

Re: [Ohrrpgce] Sprites, animation food for thought

2010-10-13 Thread David Gowers (kampu)
On Wed, Oct 13, 2010 at 7:20 PM, David Gowers (kampu) 00a...@gmail.com wrote: On Mon, Oct 11, 2010 at 4:07 AM, Mike Caron caron.m...@gmail.com wrote: First off, a disclaimer: This is not an actual proposal for a data format for the OHR. This is something I've cooked up for another project which

Re: [Ohrrpgce] better palette options

2010-10-13 Thread David Gowers (kampu)
I believe I've solved the palette problems, see the other thread if interested. ___ Ohrrpgce mailing list ohrrpgce@lists.motherhamster.org http://lists.motherhamster.org/listinfo.cgi/ohrrpgce-motherhamster.org

Re: [Ohrrpgce] better palette options

2010-10-11 Thread David Gowers (kampu)
On Sun, Oct 10, 2010 at 9:34 PM, Ralph Versteegen teeem...@gmail.com wrote: RELOAD was not part of it (well, honestly RELOAD vaguely annoys me, the way it replicates XML's weird data model. So it's not the first thing I would think of.) But it is now. I wasn't actually requesting it. RELOAD

Re: [Ohrrpgce] better palette options

2010-10-10 Thread David Gowers (kampu)
On Mon, Oct 11, 2010 at 3:36 AM, Mike Caron caron.m...@gmail.com wrote: What about RELOAD (or, I guess, XML's) data model don't you like? That nodes with children can also have values. That's a pretty extraordinary behaviour for a tree data model, IMO. Unless you expect people to XSLT their XML

Re: [Ohrrpgce] better palette options

2010-10-08 Thread David Gowers (kampu)
On Fri, Oct 8, 2010 at 2:38 AM, James Paige b...@hamsterrepublic.com wrote: On Fri, Oct 08, 2010 at 01:27:58AM +1030, David Gowers (kampu) wrote: Did james modify my palette in that way? I know he changed it slightly before installing as the new default. That's a shame if so; I specifically

Re: [Ohrrpgce] better palette options

2010-10-08 Thread David Gowers (kampu)
On Fri, Oct 8, 2010 at 2:53 PM, Ralph Versteegen teeem...@gmail.com wrote: On 8 October 2010 14:59, David Gowers (kampu) 00a...@gmail.com wrote: On Fri, Oct 8, 2010 at 9:44 AM, Jeremy Bursey zippywi...@hotmail.com wrote: I'm only subscribed to the mailing digest, not the individual alerts, so I

Re: [Ohrrpgce] better palette options

2010-10-08 Thread David Gowers (kampu)
http://bpaste.net/show/10001/ ^ The format proposition ___ Ohrrpgce mailing list ohrrpgce@lists.motherhamster.org http://lists.motherhamster.org/listinfo.cgi/ohrrpgce-motherhamster.org

Re: [Ohrrpgce] better palette options

2010-10-08 Thread David Gowers (kampu)
On Fri, Oct 8, 2010 at 11:42 PM, David Gowers (kampu) 00a...@gmail.com wrote: http://bpaste.net/show/10001/ ^ The format proposition Note that I intentionally made it as unrestricted as possible. Imposing additional constraints could allow the removal of certain tuple types and runtime

Re: [Ohrrpgce] better palette options

2010-10-08 Thread David Gowers (kampu)
On Sat, Oct 9, 2010 at 5:07 AM, Ralph Versteegen teeem...@gmail.com wrote: On 9 October 2010 02:48, David Gowers (kampu) 00a...@gmail.com wrote: On Fri, Oct 8, 2010 at 11:42 PM, David Gowers (kampu) 00a...@gmail.com wrote: http://bpaste.net/show/10001/ ^ The format proposition

Re: [Ohrrpgce] better palette options

2010-10-07 Thread David Gowers (kampu)
On Thu, Oct 7, 2010 at 4:57 PM, Jeremy Bursey zippywi...@hotmail.com wrote: Now that I'm upgrading my game's palette a little, I've noticed how painful it is to keep track of every graphical element in the game from tilesets to UI color options. It seems like one little shift of the color

Re: [Ohrrpgce] better palette options

2010-10-07 Thread David Gowers (kampu)
On Fri, Oct 8, 2010 at 9:44 AM, Jeremy Bursey zippywi...@hotmail.com wrote: I'm only subscribed to the mailing digest, not the individual alerts, so I have to cut and paste those comments related to the palette discussion I introduced last night. Hopefully this doesn't come out all messy. Did

Re: [Ohrrpgce] [Bug 847] New: Stop using Capslock

2010-09-25 Thread David Gowers (kampu)
On Sat, Sep 25, 2010 at 2:49 PM, Ralph Versteegen teeem...@gmail.com wrote: On 25 September 2010 16:56, David Gowers (kampu) 00a...@gmail.com wrote: On Sat, Sep 25, 2010 at 1:52 PM, Ralph Versteegen teeem...@gmail.com wrote: Ah! Good point. But that also argues against holding down space

Re: [Ohrrpgce] [Bug 847] New: Stop using Capslock

2010-09-25 Thread David Gowers (kampu)
On Sun, Sep 26, 2010 at 1:50 AM, Ralph Versteegen teeem...@gmail.com wrote: On 25 September 2010 18:44, David Gowers (kampu) 00a...@gmail.com wrote: On Sat, Sep 25, 2010 at 2:49 PM, Ralph Versteegen teeem...@gmail.com wrote: On 25 September 2010 16:56, David Gowers (kampu) 00a...@gmail.com

Re: [Ohrrpgce] [Bug 847] New: Stop using Capslock

2010-09-24 Thread David Gowers (kampu)
On Sat, Sep 25, 2010 at 11:49 AM, bugzilla-dae...@ravenwest.dreamhost.com wrote: http://rpg.hamsterrepublic.com/bugzilla/show_bug.cgi?id=847 It's about time we stopped using Capslock for scrolling graphics in the sprite editors: -It doesn't work properly with old versions of SDL that people

Re: [Ohrrpgce] [Bug 847] New: Stop using Capslock

2010-09-24 Thread David Gowers (kampu)
On Sat, Sep 25, 2010 at 1:52 PM, Ralph Versteegen teeem...@gmail.com wrote: 1) whenever S is the active tool, arrow keys scroll the sprite 2) when S is active, press space/mouse button to start scrolling, and press again to stop This seems interesting. I'd like to combine it with : 3) when S

Re: [Ohrrpgce] scons+geany minor crazyness

2010-09-22 Thread David Gowers (kampu)
On Thu, Sep 23, 2010 at 2:48 AM, James Paige b...@hamsterrepublic.com wrote: I use geany as my text editor for OHR programming, but today when I happened to have SConscript and ohrbuild.py open in it while I was working on the recursive include detection, my geany instance would silently crash

Re: [Ohrrpgce] SVN: kampu/3758 SConstruct based build system. Builds game, custom, and bam2mid currentl

2010-09-21 Thread David Gowers (kampu)
On Tue, Sep 21, 2010 at 3:34 PM, Seth Hetu seth.h...@gmail.com wrote: Yes, Mike is right about that. And I checked; David didn't disable copying. I just want to say that I am now TOTALLY confused by this error. After deleting build once (and then re-sconsing), the system now works exactly as

Re: [Ohrrpgce] SVN: kampu/3758 SConstruct based build system. Builds game, custom, and bam2mid currentl

2010-09-20 Thread David Gowers (kampu)
On Sun, Sep 19, 2010 at 9:08 PM, Ralph Versteegen teeem...@gmail.com wrote: On 19 September 2010 11:37, David Gowers (kampu) 00a...@gmail.com wrote: On Sun, Sep 19, 2010 at 8:49 AM, James Paige b...@hamsterrepublic.com wrote: On Sat, Sep 18, 2010 at 04:05:49PM -0700, subvers

Re: [Ohrrpgce] SVN: kampu/3758 SConstruct based build system. Builds game, custom, and bam2mid currentl

2010-09-20 Thread David Gowers (kampu)
On Mon, Sep 20, 2010 at 5:58 PM, Seth Hetu seth.h...@gmail.com wrote: David, I get a weird error building with the latest (SVN) source the latest (SVN) sconscript file: - fbc -lang deprecated -c build\loading.bas -o

Re: [Ohrrpgce] SVN: kampu/3766 Some Scons fixes suggested by TMC

2010-09-20 Thread David Gowers (kampu)
On Tue, Sep 21, 2010 at 9:02 AM, Ralph Versteegen teeem...@gmail.com wrote: On 20 September 2010 20:54,  subvers...@hamsterrepublic.com wrote: kampu 2010-09-20 01:54:38 -0700 (Mon, 20 Sep 2010) 33 Some Scons fixes suggested by TMC --- U   wip/SConscript You seem to have missed my changes

Re: [Ohrrpgce] New build system (Was: SVN: teeemcee/3714 I rewroteMakefile, for fast builds!)

2010-09-18 Thread David Gowers (kampu)
All outstanding issues have been addressed, except the 'clean' target one mentioned by Seth. I haven't been able to commit since my login no longer seems to work, so I'll just attach these, for now. (I have emailed James about the login, but thought that might take some time to work out.)

Re: [Ohrrpgce] SVN: kampu/3758 SConstruct based build system. Builds game, custom, and bam2mid currentl

2010-09-18 Thread David Gowers (kampu)
On Sun, Sep 19, 2010 at 8:49 AM, James Paige b...@hamsterrepublic.com wrote: On Sat, Sep 18, 2010 at 04:05:49PM -0700, subvers...@hamsterrepublic.com wrote: kampu 2010-09-18 16:05:49 -0700 (Sat, 18 Sep 2010) 112 SConstruct based build system. Builds game, custom, and bam2mid currently.

Re: [Ohrrpgce] New build system (Was: SVN: teeemcee/3714 I rewroteMakefile, for fast builds!)

2010-09-17 Thread David Gowers
On Fri, Sep 17, 2010 at 3:32 PM, Ralph Versteegen teeem...@gmail.com wrote: On 16 September 2010 23:42, David Gowers 00a...@gmail.com wrote: On Thu, Sep 16, 2010 at 8:35 PM, Mike caron.m...@gmail.com wrote: IIRC, you need to include -m game while compiling game.bas itself. Possibly while

Re: [Ohrrpgce] New build system (Was: SVN: teeemcee/3714 I rewroteMakefile, for fast builds!)

2010-09-17 Thread David Gowers
On Fri, Sep 17, 2010 at 1:18 PM, Seth Hetu seth.h...@gmail.com wrote: Currently having some trouble building this on Windows. If I just run scons from the root source directory, I get: --- ...it seems to be

Re: [Ohrrpgce] New build system (Was: SVN: teeemcee/3714 I rewroteMakefile, for fast builds!)

2010-09-17 Thread David Gowers
On Fri, Sep 17, 2010 at 5:05 PM, Seth Hetu seth.h...@gmail.com wrote: David, if you're trying to fix my errors, I might point out that TMC's patch fixed everything up to: ---`build\blit.o' not found ...which is the error you just described in this email. So we're both on the same page.

Re: [Ohrrpgce] New build system (Was: SVN: teeemcee/3714 I rewroteMakefile, for fast builds!)

2010-09-17 Thread David Gowers
On Fri, Sep 17, 2010 at 5:53 PM, Ralph Versteegen teeem...@gmail.com wrote: On 17 September 2010 19:09, David Gowers 00a...@gmail.com wrote: On Fri, Sep 17, 2010 at 3:32 PM, Ralph Versteegen teeem...@gmail.com wrote: On 16 September 2010 23:42, David Gowers 00a...@gmail.com wrote: On Thu, Sep

Re: [Ohrrpgce] New build system (Was: SVN: teeemcee/3714 I rewroteMakefile, for fast builds!)

2010-09-17 Thread David Gowers
On Fri, Sep 17, 2010 at 6:17 PM, Seth Hetu seth.h...@gmail.com wrote: Yeah, I haven't disabled it or anything. It works fine. (in case this appears in a double post.. this is the one with the correct updated SConscript) Sorry, I'm continuing the crazy double-posting. I just tried scons -c

Re: [Ohrrpgce] New build system (Was: SVN: teeemcee/3714 I rewrote Makefile, for fast builds!)

2010-09-16 Thread David Gowers
This is going a little slower than I thought. I've got bam2mid building (easy); Just now, I've made it collect all the common object files into a library ('libohrcommon.a') scons: done reading SConscript files. scons: Building targets ... scons: `all' is up to date. fbc -lang deprecated -c

Re: [Ohrrpgce] New build system (Was: SVN: teeemcee/3714 I rewrote Makefile, for fast builds!)

2010-09-16 Thread David Gowers
On Thu, Sep 16, 2010 at 5:52 PM, Ralph Versteegen teeem...@gmail.com wrote: On 16 September 2010 20:01, David Gowers 00a...@gmail.com wrote: This is going a little slower than I thought. Should have figured; the Makefile took me a whole evening :) I've got it in a reasonable state now. Stick

Re: [Ohrrpgce] New build system (Was: SVN: teeemcee/3714 I rewroteMakefile, for fast builds!)

2010-09-16 Thread David Gowers
On Thu, Sep 16, 2010 at 8:35 PM, Mike caron.m...@gmail.com wrote: IIRC, you need to include -m game while compiling game.bas itself. Possibly while compiling all modules. Thanks muchly Mike, that fixed it :D The attached SConscript should have functionality roughly equivalent to TMC's

Re: [Ohrrpgce] New build system (Was: SVN: teeemcee/3714 I rewrote Makefile, for fast builds!)

2010-09-15 Thread David Gowers
On Thu, Sep 16, 2010 at 9:30 AM, Ralph Versteegen teeem...@gmail.com wrote: We should use SCons --- James Scons has a lot of prestige, so I'm not surprised that it's the first suggestion, but there are other options: any other suggestions? Has anyone used Scons extensively who can

Re: [Ohrrpgce] svn - git bridge, nohrio

2010-09-14 Thread David Gowers
On Sun, Sep 12, 2010 at 9:35 PM, Ralph Versteegen teeem...@gmail.com wrote: On 12 September 2010 19:18, David Gowers 00a...@gmail.com wrote: I always suspected I was exploiting a bug; I guess that it was fixed. It was too good to be be true anyway. c = memmap ('/tmp/kamplita',dtype = 'B

[Ohrrpgce] A little script to find all your strings

2010-09-13 Thread David Gowers
Hello all, I was investigating menus.bas and came up with this script which lists all the unique strings,in order, in BAS/BI files (whichever files you specify). I thought that could have applications for developing, so I'm posting it here. (currently requires grep, but that could easily be

Re: [Ohrrpgce] svn - git bridge, nohrio

2010-09-12 Thread David Gowers
*resurrects thread* {doi se mrilu ko na morsi u'i} (sorry, I'm a little addicted to speaking in Lojban) On Wed, Sep 2, 2009 at 6:08 PM, David Gowers 00a...@gmail.com wrote: l = np.memmap('viking.l00', dtype = dtypes['l.linear'], mode = 'r+', offset = BLOAD_SIZE, order='F') This doesn't work

Re: [Ohrrpgce] Script structures/objects (Was: NPC instance script commands)

2010-09-10 Thread David Gowers
On Sat, Sep 11, 2010 at 2:11 AM, Mike Caron caron.m...@gmail.com wrote: It depends on the situation. It boils down to has-a vs is-a, really. Or, on other words, if it looks like a duck, quacks like a duck, and has a feathers property, but was created by CreateChimera(), can we still treat it as

Re: [Ohrrpgce] Zone maps; file format

2010-08-03 Thread David Gowers
I'm thinking about this. Currently I favor a scanline-based approach: * zonemaps * lines * n * nzones_on_this_line * data : unsigned-short array, (serialized with zlib compression?) ZONE NENTRIES START END [START END.. ] (repeat for each zone which has some part within this

Re: [Ohrrpgce] RELOAD Delay Loading

2010-04-08 Thread David Gowers
I'd just like to mention that, as this seems to be a variant of lazy loading (http://en.wikipedia.org/wiki/Lazy_loading), it might be more appropriate to use that term - not that it matters much here, but moreso in the code. (IMO Delay loading suggests a *time-based* loading (ie nodes being fully

Re: [Ohrrpgce] SVN: james/3379 Update text files for ypsiliform+2

2010-02-12 Thread David Gowers
coi, On Fri, Feb 12, 2010 at 7:51 PM, Ralph Versteegen teeem...@gmail.com wrote: Basically, anything that could have a space in it needs quotes. The only potential edge case might be if it contains a caret (^), which is the shell escape character (and, is not allowed in file names, I

Re: [Ohrrpgce] SVN: teeemcee/3398 Remove 8.3 lump name limit. New limit is: any string of up to 50 charact

2010-02-10 Thread David Gowers
On Thu, Feb 11, 2010 at 12:06 AM, subvers...@hamsterrepublic.com wrote: teeemcee 2010-02-10 05:36:07 -0800 (Wed, 10 Feb 2010) 92 Remove 8.3 lump name limit. New limit is: any string of up to 50 characters from [a-z0-9._-] , 'case insensitive'. Lump name checking is now implemented in

Re: [Ohrrpgce] A module format to add

2010-01-28 Thread David Gowers
On Thu, Jan 28, 2010 at 9:16 PM, Ralph Versteegen teeem...@gmail.com wrote: On 28 January 2010 19:26, Mike West theoreye...@yahoo.com wrote: I don't know if you all know about it but there's a new module format for music that is much better than .mod... it's for a tracker called Protrekker,

Re: [Ohrrpgce] [Bug 788] New: colour swap tool

2009-11-17 Thread David Gowers
On Wed, Nov 18, 2009 at 1:49 PM, bugzilla-dae...@karnov.dreamhost.com wrote: http://rpg.hamsterrepublic.com/bugzilla/show_bug.cgi?id=788           Summary: colour swap tool           Product: OHRRPGCE           Version: unknown          Platform: PC        OS/Version: Windows XP          

Re: [Ohrrpgce] Plan for bigger walkabouts

2009-10-30 Thread David Gowers
I just posted a scheme over at http://gilgamesh.hamsterrepublic.com/wiki/ohrrpgce/index.php/Talk:Plan_for_raising_sprite_frame_limits Which might be pertinent ___ Ohrrpgce mailing list ohrrpgce@lists.motherhamster.org

Re: [Ohrrpgce] XML size bloat experiment (Was: SVN: pkmnfrk/2428 Breaking the ground on my XML idea. for the time being, I'm not hacking)

2009-10-18 Thread David Gowers
Claimer: the following is more or less rambling, without necessarily a specific point. On Sat, Oct 17, 2009 at 7:27 PM, Ralph Versteegen teeem...@gmail.com wrote: (ED: I originally wrote the following in November 2008, but never sent it. Finding it in my draft emails folder, I've dusted it off

Re: [Ohrrpgce] SVN: james/2887 Apply a modification of David's patch to warn of possible corruption whe

2009-09-26 Thread David Gowers
On Sun, Sep 27, 2009 at 1:45 AM, Ralph Versteegen teeem...@gmail.com wrote: 2009/9/25  subvers...@hamsterrepublic.com: james 2009-09-24 09:11:32 -0700 (Thu, 24 Sep 2009) 242 Apply a modification of David's patch to warn of possible corruption when binsize shrinks All I changed was to move

Re: [Ohrrpgce] svn - git bridge, nohrio

2009-09-18 Thread David Gowers
My internet connectivity is back to normal now A partial implementation of the RPG interface (lump spec matching the previous email) is in git HEAD (locally and on gitorious). YMMV as a) it's partial b) I haven't done any significant amount of testing c) API will definitely change somewhat before

Re: [Ohrrpgce] svn - git bridge, nohrio

2009-09-08 Thread David Gowers
I've just begun work on the final of those 7 issues (to TMC: IMO, unless you are planning on major revision, having nice wrapper classes won't require any additional changes, so hopefully this does not block updating your code.) I'm currently looking at abstracting away the need to know lump

Re: [Ohrrpgce] svn - git bridge, nohrio

2009-09-02 Thread David Gowers
I've just pushed the latest changes to nohrio to gitorious, fixing 6 of the outstanding issues. Details follow ('missing' number three is 'do more highlevel wrapping of rpg format', which is a somewhat more long term aim) TMC, note that ptshapes was not normalized in the way I previously said,

Re: [Ohrrpgce] svn - git bridge, nohrio

2009-08-30 Thread David Gowers
Your editos the othe wiki on gilgamesh all failed because they were urls and you were not logged in. Doh! Thanks James, I've fixed it now :) David ___ Ohrrpgce mailing list ohrrpgce@lists.motherhamster.org

Re: [Ohrrpgce] svn - git bridge, nohrio

2009-08-28 Thread David Gowers
On Sat, Aug 29, 2009 at 3:16 AM, Ralph Versteegenteeem...@gmail.com wrote: 2009/8/27 David Gowers 00a...@gmail.com: A problem: both of those stories are from before the release of SVN 1.5, which introduced merge tracking. So I'm not sure that anything you say is true. Having to manually

Re: [Ohrrpgce] svn - git bridge, nohrio

2009-08-27 Thread David Gowers
On Thu, Aug 27, 2009 at 8:14 PM, Ralph Versteegenteeem...@gmail.com wrote: 2009/8/27 James Paige b...@hamsterrepublic.com: I like that. merging both files into attacks.bin and removing the olds files seems clean to me. But could we name it something other than attacks.bin, as that's too easy

Re: [Ohrrpgce] svn - git bridge, nohrio

2009-08-26 Thread David Gowers
On Thu, Aug 27, 2009 at 12:44 AM, James Paigeb...@hamsterrepublic.com wrote: On Wed, Aug 26, 2009 at 09:54:15PM +0930, David Gowers wrote: On Tue, Aug 25, 2009 at 1:41 AM, James Paigeb...@hamsterrepublic.com wrote: I think you are being overly hard on svn. I have never had a problem with using

Re: [Ohrrpgce] svn - git bridge, nohrio

2009-08-23 Thread David Gowers
On Mon, Aug 24, 2009 at 12:16 AM, Ralph Versteegenteeem...@gmail.com wrote: Yes, that's quite sensible. But I'm not sure that you're still talking about textserialize_dtype_tweaks. Anyway, I haven't looked at serialisation at all, so don't know how it happens. I'll get around to it. oh, that.

Re: [Ohrrpgce] svn - git bridge, nohrio

2009-08-22 Thread David Gowers
On Sat, Aug 22, 2009 at 4:44 AM, Ralph Versteegenteeem...@gmail.com wrote: 2009/8/20 David Gowers 00a...@gmail.com: my comments on coloruse.py: * record() appears to be dead code Yes. * unpackpt and friends need an alternate set of nohrio dtypes that have a proper shape, then ptshape

Re: [Ohrrpgce] svn - git bridge, nohrio

2009-08-22 Thread David Gowers
On Sat, Aug 22, 2009 at 1:56 AM, Ralph Versteegenteeem...@gmail.com wrote: IIRC I'm planning to use that mainly to get graphics to serialize in a neat, human-editable format rather than as a lump (haven't checked how they currently serialize; I would guess it is as a single escaped string,

Re: [Ohrrpgce] svn - git bridge, nohrio

2009-08-22 Thread David Gowers
On Sat, Aug 22, 2009 at 3:55 AM, James Paigeb...@hamsterrepublic.com wrote: nohrio.egg-info/PKG-INFO: needs update nohrio.egg-info/SOURCES.txt: needs update nohrio.egg-info/top_level.txt: needs update refusing to pull with rebase: your working tree is not up-to-date ahahah. well, that says

Re: [Ohrrpgce] svn - git bridge, nohrio

2009-08-22 Thread David Gowers
just pushed. 'git shortlog' says: ohrrpgce: make palette/picture pairs more consistent in naming (req. by TMC) ohrrpgce: fixBits, archiNym: support inline RPG lump I/O; fixbits: support slicing README: add mission statement, improve and augment examples, expand credits

Re: [Ohrrpgce] svn - git bridge, nohrio

2009-08-22 Thread David Gowers
On Sun, Aug 23, 2009 at 2:17 AM, Ralph Versteegenteeem...@gmail.com wrote: 2009/8/22 David Gowers 00a...@gmail.com: just pushed. 'git shortlog' says:      ohrrpgce: make palette/picture pairs more consistent in naming (req. by TMC)      ohrrpgce: fixBits, archiNym: support inline RPG lump I

Re: [Ohrrpgce] svn - git bridge, nohrio

2009-08-22 Thread David Gowers
On Sun, Aug 23, 2009 at 10:59 AM, Denny Abrahamdabra...@gmail.com wrote: Hi Is this git mirror going to remain current with the SVN head? Certainly. When I get my internet connection working reliably, I'll set it up to 'git svn rebase; git push' once a day. It is currently current with SVN

Re: [Ohrrpgce] svn - git bridge, nohrio

2009-08-20 Thread David Gowers
my comments on coloruse.py: * record() appears to be dead code * unpackpt and friends need an alternate set of nohrio dtypes that have a proper shape, then ptshape would not be required here. I've added these as 'alt-pt%d' to my local NOHRIO -- but it's looking like they may end up as something

Re: [Ohrrpgce] svn - git bridge, nohrio

2009-08-20 Thread David Gowers
Further: offset = 0 if lumptype in self.lumpheaders: offset = self.lumpheaders[lumptype] try this instead: offset = self.lumpheaders.get (lumptype, 0) dict.get is very handy :D btw, I failed to read the documentation (which is in-code!) for gfx4bpp -- it is actually completely

Re: [Ohrrpgce] svn - git bridge, nohrio

2009-08-19 Thread David Gowers
On Thu, Aug 20, 2009 at 4:54 AM, Ralph Versteegenteeem...@gmail.com wrote: Sorry for the slow response. I wanted to finish the little test utility I was working on first, but that was a bad idea as it took a while. No; an array is directly usable. It just can't be translated to yaml. It was

[Ohrrpgce] svn - git bridge, nohrio

2009-08-10 Thread David Gowers
With James' permission, I've created a git import of OHRRPGCE subversion, mainly because development of ambitious features such as are found in http://gilgamesh.hamsterrepublic.com/wiki/ohrrpgce/index.php/Plan_for_dynamic_types_in_HamsterSpeak benefit a lot from inexpensive, pain-free branching

Re: [Ohrrpgce] OHRRPGCE Data debugging, rc1

2009-06-04 Thread David Gowers
I had just been playing with XML and XPATH, and eventually wrote this in my journal: XML analysis for OHRRPGCE: XML and consequently XPATH is nice, however OHRRPGCE data structures are generally shallow enough and simple enough that YAML remains a better option. One thing that should be learnt

Re: [Ohrrpgce] SVN: teeemcee/2740 Add quick quitting to Custom too. Pressing esc+pgup+pgdwn or telling cus

2009-05-29 Thread David Gowers
Hi TMC, On Fri, May 29, 2009 at 6:11 PM, subvers...@hamsterrepublic.com wrote: teeemcee 2009-05-29 01:41:43 -0700 (Fri, 29 May 2009) 398 Add quick quitting to Custom too. Pressing esc+pgup+pgdwn or telling custom to quit from the window manager quits to the save/quit menu. This is a good

Re: [Ohrrpgce] OHRRPGCE Data debugging, rc1

2009-05-26 Thread David Gowers
Hello. Sorry for taking so long between posts. I abandoned the previous YAML serialization method because it was hackish (and consequently caused obscure problems.) I've been working on a proper YAML serialization, and just got a working prototype today (write-only, works with simple data types

Re: [Ohrrpgce] A proposal for TextSlices

2009-04-08 Thread David Gowers
On Wed, Apr 8, 2009 at 11:03 PM, S'orlok Reaves sorlok_rea...@yahoo.com wrote: An alternative to a copy() operator could be a ref() operator. Personally, I think a ref() operator is somewhat inconsistent. This is how I see it: 1) When I call copy(), some work is done, and a copy of my

Re: [Ohrrpgce] OHRRPGCE Data debugging, rc1

2009-02-09 Thread David Gowers
Update part 2 import numpy as np import os BLOAD_HEADER = ('bload_header', (np.uint8, 7)) BLOAD_SIZE = 7 H = np.int16 def fieldlist_to_dtype (fields): fields = fields.split() return [(field,H) for field in fields] def mmap (fname, dtype, offset = 0, shape = None): return np.memmap

Re: [Ohrrpgce] OHRRPGCE Data debugging, rc1

2009-01-21 Thread David Gowers
Latest update part 2 not-yet-ported types: * old and new 16color palette formats * fnt * say TODO: * easy interface that abstracts memmapping, offsets, and dtypes. * the remaining formats * update memmapped-fileformats.rst to match the reality of dtypes and classes being implemented in

Re: [Ohrrpgce] OHRRPGCE Data debugging, rc1

2009-01-07 Thread David Gowers
Here's an update on my progress. The attached module works (for the limited subset of file formats it currently handles), and contains most of the helper functions and some of the dtypes, accessible through a dictionary. Various refactoring will need to happen before release on PyPI; for now, I'm

Re: [Ohrrpgce] OHRRPGCE Data debugging, rc1

2009-01-07 Thread David Gowers
Hi, On Thu, Jan 8, 2009 at 2:24 AM, James Paige b...@hamsterrepublic.com wrote: On Wed, Jan 07, 2009 at 08:00:30PM +1030, David Gowers wrote: Here's an update on my progress. The attached module works (for the limited subset of file formats it currently handles), and contains most

Re: [Ohrrpgce] OHRRPGCE Data debugging, rc1

2008-12-19 Thread David Gowers
On Fri, Dec 19, 2008 at 3:19 AM, James Paige b...@hamsterrepublic.com wrote: On Fri, Dec 19, 2008 at 02:11:24AM +1300, Ralph Versteegen wrote: Besides that, all my other errors are to do with trying to access /tmp, and the hdf5 stuff. Any direct references to /tmp should be replaced using the

Re: [Ohrrpgce] OHRRPGCE Data debugging, rc1

2008-12-18 Thread David Gowers
On Thu, Dec 18, 2008 at 11:41 PM, Ralph Versteegen teeem...@gmail.com wrote: 2008/12/13 David Gowers 00a...@gmail.com: However, What I plan to do with this is finish it up into a module with YAML serialization and some other features I mention in the doc, and upload it on PyPI, maybe

Re: [Ohrrpgce] OHRRPGCE Data debugging, rc1

2008-12-13 Thread David Gowers
Hi James, On Sun, Dec 14, 2008 at 1:31 PM, James Paige b...@hamsterrepublic.com wrote: Sorry to take so long to respond on this-- I must say it looks awesome! A bit overwhelming, but really cool. It might be more digestible in html format. If you run 'rst2html memmapped-fileformats.rst

Re: [Ohrrpgce] OHRRPGCE Data debugging, rc1

2008-12-12 Thread David Gowers
Hello, What a coincidence! Just two days ago, I was looking at how to load OHR tilemaps and other lumps with Python. I saw that you used a little bit of NumPy for this in Jormungand, but I used array. Array is really simple, it works fine for things like GEN which are basically a huge lump of

Re: [Ohrrpgce] SVN: pkmnfrk/2428 Breaking the ground on my XML idea. for the time being, I'm not hacking

2008-11-06 Thread David Gowers
On Thu, Nov 6, 2008 at 5:21 PM, Ralph Versteegen [EMAIL PROTECTED] wrote: I think the whole idea of replacing the current format with a textual markup is a bit crazy because: 1) If game had to be decompiled and recompiled every time it was played, that would really blow out already totally

Re: [Ohrrpgce] SVN: pkmnfrk/2436 so, I've decided against XML. Instead, I propose RELOAD, a new format.

2008-11-06 Thread David Gowers
Hi, This RELOAD is sounding a bit like Google Protocol-buffers. You might want to read up on it to see if you can use some of their research in this effort.. Pertinent issues it deals with are compact forward-and-backward-compatible writing, streaming support, and security. Notably it seems to do

  1   2   >