Search Results
Searched for posts by nukes in all forums

Showing results 1 - 8 out of 8 total
Modify your search
Posted by nukes, Sep 2, 2008 at 8:05 am
can't remember if I posted this before or after a certain change. In short I screwed up somewhere, probably forgetting to make install between builds. Anyway, in FeLib/Source/bitmap.cpp:
void cachedfont::PrintCharacter(cblitdata B) const
{
  if&#40;B.Dest.X < 0 || B.Dest.Y < 0 || B.Dest.X + 10 >= B.Bitmap->Size.X || B.Dest.Y + 9 >= B.Bitmap->Size.Y&#41;
  &#123;
    NormalMaskedBlit&#40;B&#41;;
    return;
  &#125;

  packcol16** SrcLine = &Image&#91;B.Src.Y&#93;;
  packcol16** EndLine = SrcLine + 9;
  packcol16** SrcMaskLine = &MaskMap&#91;B.Src.Y&#93;;
  packcol16** DestLine = &B.Bitmap->Image&#91;B.Dest.Y&#93;;

  for&#40;; SrcLine != EndLine; ++SrcLine, ++SrcMaskLine, ++DestLine&#41;
  &#123;
    culong* FontPtr = reinterpret_cast<culong*>&#40;*SrcLine + B.Src.X&#41;;
    culong* EndPtr = FontPtr + &#40;20/sizeof&#40;ulong&#41;&#41;;
    culong* MaskPtr = reinterpret_cast<culong*>&#40;*SrcMaskLine + B.Src.X&#41;;
    ulong* DestPtr = reinterpret_cast<ulong*>&#40;*DestLine + B.Dest.X&#41;;

    for&#40;; FontPtr != EndPtr; ++DestPtr, ++MaskPtr, ++FontPtr&#41;
      *DestPtr = *DestPtr & *MaskPtr | *FontPtr;
  &#125;
&#125;

At some point I tried changing it back to 32 bit values and it didn't go too well... I'm aware that 20/8 doesn't go, but it seems to work... can't tell the difference in looks anyway.
Posted by nukes, Sep 1, 2008 at 8:05 am
So I spent a few hours the other day getting IVAN running on my 64 bit Gentoo system. There was a lot of odd stuff with the reference counting, then a weird problem with the fonts. All seems to work now.
I've tested it on a 32 bit freebsd 7 system too, which seems to work, so hope I've not broken too much. Let me know. Most of the changes are in FeLib, so the likes of LIVAN should be able to take from that.

As always, disable optimisation or it'll die. Also chances are saves aren't compatible with the 32 bit version (but then they might be, not tried, just a hunch).

at some point I'll get round to comparing all the produced asm with the optimised stuff and see where it's going wrong, but with the amount of pointer tricks it's unlikely that the optimiser will be able to do a decent job anyway.

So anyway, here goes:
Attached files
ivan.tar.gz ()
Posted by nukes, Aug 31, 2008 at 1:59 pm
I've already done all that. check the livan source thread.
Posted by nukes, Mar 28, 2008 at 10:59 am
Fixed a problem where the game would crash on descending to GC5. (autoconf misconfiguration, wasn't installing one of the images)
In accordance with GPL have added notice saying it has been modified.
Attached files
livan.tar.bz2 ()
Posted by nukes, Mar 27, 2008 at 10:22 am
If it's not needed other changes from the CVS version could you make me a patch?
Posted by nukes, Mar 26, 2008 at 10:47 am
Also, you may need to compile with optimization disabled (sometimes messes up when going up/down stairs). To do this do:
$ ./configure CFLAGS="-O0" CXXFLAGS="-O0"
I don't know how to alter the cflags in makefile.in.
Posted by nukes, Mar 25, 2008 at 5:28 pm
It'll now build on linux (Gentoo, G++ 4.2 - 4.3 probably won't work).

This fixes a bug I was experiencing where the CPU usage was ~50% when playing. No way was the game actually using that much.

Now it uses ~2% if that. Same problem exists in CVS, but nobody seems to have access or want to take the patch.

If you have problems with it quitting unexpectedly (but cleanly) I know the potential source of this. (some systems need the SDL_Event cleared before passing it)
Attached files
livan.tar.bz2 ()
Posted by nukes, Mar 25, 2008 at 4:38 pm
As I'm sure you are all aware, LIVAN has been released in violation of the GPL (in that lampshade has not been publishing his source code).

I joined the IRC channel yesterday wanting to contribute a patch. What have I stumbled into?

So here it is, the source code for LIVAN, as provided by lampshade. I do have a version which runs on linux, but I'd rather provide his original source to begin with.


As I'm posting here, can I also ask who has CVS commit privileges to the original IVAN?
Attached files
LIVAN-0.99.rar ()