• moria and the small screen

    From Eli the Bearded@21:1/5 to All on Tue Aug 9 22:07:52 2016
    Anyone alive here still?

    I've been interested in making umoria work on a text screen smaller than
    80x24. I started by adjusting SCREEN_HEIGHT and SCREEN_WIDTH in
    constant.h (to half their size) and saw it wasn't working as neatly as
    one might hope. I reverted those and tried adding a WINDOW_HEIGHT
    and WINDOW_WIDTH pair instead. Those I put put in generate.c for the max_panel_rows/max_panel_cols values (leaving town at cur_height = SCREEN_HEIGHT, cur_width = SCREEN_WIDTH). And I used the WINDOW_HEIGHT
    and WINDOW_WIDTH in panel_bounds() of misc3.c.

    The town works correctly with my new size now. The dungeon does not. io.c:put_buffer() gets upset and aborts from time to time. "OH NO!!!!!!
    A gruesome software bug LEAPS out at you. There is NO defense!"

    Before I beat my head on this for too long, has anyone done these
    adjustments and have patches to share for it? Email or post with links,
    diffs, etc, are welcome.

    My goal is to target a ARM based Linux system with a native screen size
    of 65 wide and 20 tall.

    Elijah
    ------
    used to tinker with moria code for fun

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Eli the Bearded@21:1/5 to *@eli.users.panix.com on Wed Aug 10 19:54:46 2016
    In rec.games.roguelike.moria, Eli the Bearded <*@eli.users.panix.com> wrote:
    I've been interested in making umoria work on a text screen smaller than 80x24. I started by adjusting SCREEN_HEIGHT and SCREEN_WIDTH in
    ...
    Before I beat my head on this for too long, has anyone done these
    adjustments and have patches to share for it? Email or post with links, diffs, etc, are welcome.

    kMoria, for the Palm Pilot, is still available in source form from
    sourceforge:

    https://sourceforge.net/projects/roguelike-palm/

    (Scroll down past iRogue. It was uploaded "1 year ago", but the tar file
    is full of November 2000 time stamps.)

    It *is* for a smaller screen. It also has a lot of code changes relative
    to umoria, and not just because it was for a device without a keyboard
    or text oriented display: the Palm apparently had a very small stack, so
    large arrays were troublesome. Then all of the #ifdef SYSTEM has been
    edited out. And a lot of functions have been moved between files. So
    diffs are not really useful.

    But misc1.c:get_panel() is gone and display.c:get_panel() is a
    completely different implementation.

    I'm looking at it for ideas still.

    (But anything else, if anyone is there, is welcome.)

    Elijah
    ------
    played moria on a Palm Pilot V back around 2000

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From benshadwick@21:1/5 to All on Wed Aug 10 17:46:42 2016
    I haven't looked into it, but I was thinking that it might be nice to be able to support *bigger* resolutions. Let us know if you figure it out.

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)