GithubHelp home page GithubHelp logo

sahwar / nethack-moxie Goto Github PK

View Code? Open in Web Editor NEW

This project forked from kl7107/nethack-moxie

0.0 1.0 0.0 7.92 MB

TeX 1.74% Nemerle 0.34% C 93.96% C++ 3.50% OpenEdge ABL 0.07% R 0.10% Max 0.02% Shell 0.19% Python 0.01% Awk 0.08%

nethack-moxie's Introduction

Notes for the RTEMS-moxie port

This file contains notes for the ongoing port of NetHack to RTEMS / Moxie.

The goal is to move the port into the regular NetHack build infrastructure so it can be cleanly folded into the main NetHack codebase.

In the meantime, some files contain hardcoded changes instead of #ifdefs, etc.

NOTE: Some Makefiles still have hardcoded paths to my personal toolchain directories.

RTEMS ncurses

The RTEMS-moxie port of NetHack depends on RTEMS ncurses that can be found here:

git clone git://git.rtems.org/rtems-addon-packages.git cd rtems-addon-packages/ncurses-5.9 RTEMS_MAKEFILE_PATH=/home/lagerstrom/moxie-cores/tools/root/usr/moxie-rtems/marin/ CC=moxie-rtems-gcc RTEMS_BSP=marin RTEMS_CPU=moxie make -f ../RTEMS_Makefiles/Makefile.ncurses

This will install RTEMS ncurses into your toolchain.

Game datafiles

These are normally generated during the compilation of the game. This is currently not implemented for the Moxie port. Instead precompiled datafiles were taken from the MIPS .deb file (nethack-common_3.4.3-14_mips.deb). These were put into a tarfile (./sys/rtems-moxie/dat.tar.xz). The "dat.tar" (note: uncompressed) was converted into ./src/fsdata.h using the ./sys/rtems-moxie/tar2h.py script. The tarfile is thus compiled into the game, and is used to populate the RAM filesystem during boot (in rtems_moxie.c).

TODO

  • #ifdef all code changes
  • Move the Makefiles to the proper place
  • Generic toolchain paths in Makefiles
  • Add timed delay
  • Add documentation on how to build the executable
  • Compile game data instead of using precompiled datafiles from the MIPS .deb file
  • Use the standard directory locations instead of "."
  • Compress game data using XZ
  • Build ncurses with "-Os" (optimized for size)
  • Support for saving/restoring games
  • Support for a high score file

Bugs

  • Intermittent tty output garbage (e.g., when using HJKL for extended move)

nethack-moxie's People

Contributors

kl7107 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.