Re: [Pipmak-Users] Autocubic: my reply to F.Pistonesi and C.Walther
Status: Alpha
Brought to you by:
cwalther
From: Christian W. <cwa...@gm...> - 2007-04-03 20:39:27
|
Andrea Viarengo wrote: > I do Know why, but I cannot manage to Reply to the thread > "Re: File IO with Pipmak and image manipulation." > Gmane continue to tell me: > "You seem to be top-posting. Don't do that." > .....(Are there some bugs in gmane? ) If you're sure that you are not top-posting (and you're sure that the rejection comes from Gmane), I'd recommend reporting that to the Gmane admins. If it does not come from Gmane but from SourceForge, send me a copy of your message and of the rejection notice, and I'll see if this is something I can change in the mailing list configuration. It's not my intention to police people into not top-posting using an overzealous automatic filter. > I've update the demopack on my site, now it's possible to see throw the > door holes, and every room can have their different floor and ceil and > outside you could see mountain around... Nice! I noticed that the tops of the doors sometimes look a bit skewed, is that a bug? > About the possibility of using the Pipmak's existing saved game functionality, > I haven't investigate about it, could be interesting workaround, > but pipmak state are saved in a binary or in a lua mode, > so I could read using dofile? The files are binary (and the Lua code that reads and writes them is in the "serialize" and "deserialize" functions in Pipmak Resources/resources/defaults.lua or at <http://pipmak.svn.sourceforge.net/viewvc/pipmak/trunk/pipmak/extras/serialize.lua?view=markup>). But that shouldn't matter to you as you don't have to read them yourself, Pipmak does that for you. When you load a saved game, you just get the contents of the "state" table restored to what they were when the game was saved. > How I can add some external image manipulation, using loadlib()? I'm not sure if that's the easiest way. The image manipulation support in Pipmak is not designed to be modular, so it would probably be easier to add things directly to Pipmak than in a plugin. As for how it works, have a look at pipmakLuaLib.c (and images.h, images.c), particularly the bits added in <http://pipmak.svn.sourceforge.net/viewvc/pipmak?view=rev&revision=145>. -Christian |