From: David B. <db...@ta...> - 2007-01-25 11:19:57
|
Hi Tim, On Wednesday 24 January 2007 21:13, Tim Holy wrote: > > I updated my sources & recompiled without trouble. But executing tuxmath, I > ran into a couple of issues: > 1. Until I changed titlescreen.c so that the reference to main_bkg.jpg was > turned into main_bkg.png, I got a segfault just after Loading... was > complete. Try it now - I had changed the backgrounds from .png to .jpg (much smaller files) but forgot to change the code in one place and had left the old .png file in the data dir - should be fixed. > 2. After recompiling, I got farther: past the tux4kids logo, with the > main_bkg loaded and showing, but as soon as the "Tux of Math Command" text > reached the left edge of the screen, another segfault. I noticed a lot of > failures to load images that are nominally in data/images/menu---however, > in my checkout, there is no data/images/menu. Might that directory not have > been added to the svn tree? Or is this still a work in progress? For some reason, svn kept telling me that data/images/menu was already under source control, even though it wasn't. I have renamed it to data/images/sprites and added it successfully. I just did a clean checkout in a test directory on my Debian box and it works OK. > > I notice that game.c has not changed in a while; presumably your work with > the menu code does not affect this? Thus, unless you disagree, I'd be happy > to hack on game.c to incorporate the new icons/effects, since that > shouldn't conflict with the work you're doing. That would be fine. For what it's worth, my daughter is very adamant that we keep the "city" graphics as an option, at least. > I can submit my patches to you; I never did get a response about getting an SVN account. I don't exactly know who administers the svn site - I think Holger knows. Also, one issue will be whether to bundle any fonts. I understand that tuxtype went through some sort of issue with this in the past - for now, it just has a hard-coded path to where the desired font is located in Debian, and the tuxtype-derived code now in tuxmath does the same thing. I would favor bundling a single default/fallback font with the program, and eventually putting in some smarter code to search for system fonts (this seems to be what TuxPaint does). -- David Bruce |