{"id":13780355,"url":"https://github.com/sonneveld/nagi","last_synced_at":"2026-01-10T07:59:56.679Z","repository":{"id":54963961,"uuid":"783113","full_name":"sonneveld/nagi","owner":"sonneveld","description":"New Adventure Game Interpreter","archived":false,"fork":false,"pushed_at":"2022-05-14T10:34:34.000Z","size":715,"stargazers_count":37,"open_issues_count":4,"forks_count":12,"subscribers_count":8,"default_branch":"master","last_synced_at":"2024-08-03T18:15:02.413Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"http://www.agidev.com/projects/nagi/","language":"C","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/sonneveld.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"license.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2010-07-19T02:37:17.000Z","updated_at":"2024-01-30T09:35:18.000Z","dependencies_parsed_at":"2022-08-14T07:31:21.192Z","dependency_job_id":null,"html_url":"https://github.com/sonneveld/nagi","commit_stats":null,"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sonneveld%2Fnagi","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sonneveld%2Fnagi/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sonneveld%2Fnagi/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sonneveld%2Fnagi/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/sonneveld","download_url":"https://codeload.github.com/sonneveld/nagi/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":225056806,"owners_count":17414213,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-08-03T18:01:14.834Z","updated_at":"2026-01-10T07:59:56.625Z","avatar_url":"https://github.com/sonneveld.png","language":"C","funding_links":[],"categories":["C"],"sub_categories":[],"readme":"# NAGI Source\n\n**By Nick Sonneveld**\n\n\n### Introduction\n\nThis is the public release of the NAGI source code.\n\nNAGI (New Adventure Game Interpreter) is a clone of Sierra's own AGI which\nthey created and used through the 80's to produce a whole bunch of great\nadventure games like Space Quest, Leisure Suit Larry and Kings Quest. NAGI was\ncreated by disassembling the original AGI executable and writing equivalent C\ncode that would run under SDL which is a free generic library for low-level\naccess to graphics and audio. It can read both v2 and v3 game data for the PC.\n\nI am still supporting and working on NAGI!  I just feel it's time to release\nthe source code as well.  If you are working on a similiar interpreter or a\ntool to help develop AGI games, then hopefully you'll find some use in the\nNAGI source code.  The original source was released April 18th, 2002.\n\nThe current source release supports Linux and some some minor bug fixes!\nCheck it out!\n\n\n### Current Developers:\n\n  * [Nick Sonneveld][1] - Original author\n  * [Gareth McMullin][2] - Linux port and tweaking\n  * [Claudio Matsuoka][3] - has pledged to support the project.\n  * [Ritchie Swann][4] - OS X port, upgrade to SDL2 and various improvements\n\n### License\n\nNAGI's source has been released under the X11 license.  This means you can use\nthe source in any project you want and you do not have to provide the source\nif that is your wish.  You have to make sure you acknowledge my copyright and\nyou cannot use my name as an endorsement of something else.  No warranties are\nimplied either.\n\nThe X11 license has been deemed to be [compatible with the GPL license][5].\nFor the full license, check out of the bottom of this page.\n\n\n###  Systems Supported\n\n  * Windows - NAGI was originally written for Windows using the SDL Library\n  * Linux - a new version, ported by Gareth McMullin\n\n\n### Build Requirements\n\nIn order to successfully build NAGI from the provided source code, you will\nneed a suitable toolchain and a suitable SDL2 library.\n\nWindows - MinGW / MSYS (www.mingw.org/wiki/msys) provides a suitable toolset\nMacOS - use MacPorts (www.macports.org)\nLinux - most distributions have some way of getting SDL2 installed. See below\n\n### How to Build (Linux/Macos)\n\n * Arch Linux, MinGW : sudo pacman -S libsdl2-dev cmake\n * Debian Linux : sudo apt-get install libsdl2-dev cmake\n * MacPorts : brew install sdl2 cmake\n\nThen : mkdir build ; cd build; cmake .. ; make\n\n### How to Build (Windows)\n\n * Install Visual Studio 2019 Community\n * Download SDL2-devel-2.0.14-VC.zip from https://www.libsdl.org/download-2.0.php\n * Decompress SDL2-devel-2.0.14-VC.zip into a directory\n * Add support/sdl2-config.cmake to SDL directory\n * Open nagi directory in Visual Studio as a cmake project\n * Go to Project/CMake Settings for NAGI. Set variable SDL2_DIR to SDL location\n * Build!\n\n### Suggestions\n\nThese are some things that I planned to work on:\n\n  * New save game format to make it less fragile and compatible across other\nfree interpreters\n  * Save menu, controller and thumbnail info in save games\n  * Font scaling\n  * Clean sound code\n  * Optimised x1 x2 graphics scale modes\n  * beeping for agi errors\n  * GUI to configure NAGI options (using wxWindows?)\n  * Links with AGI Studio to aid debugging\n  * MIDI generation\n  * Ability to split ini keys on several lines\n  * Screenshots\n  * Separate ini file in game directory overides main ini\n  * cache of found games\n  * After quitting game, go back to game menu\n  * Dialogue box to enter commands\n  * Selectable gui backgrounds\n  * 256 colour / palette hacks\n  * support for Amiga mouse commands\n  * support for AGInfo's game checksum list\n  * support early interpreter's sprite handling (fix Donald Duck, AGI Trek,\nXmas demo sprite glitches)\n  * transition screen fades between new rooms\n  * fix windib support (SDL problem?)\n  * joystick support\n  * patches for copy protection\n\nHopefully that will give you some ideas if you want to hack NAGI.\n\n\n### Disassembled Code\n\nAlso in another package are files I used for disassembling NAGI.  Some code,\nbefore I started writing straight into C, is available here along with files\nthat are compatible with the early free DOS version of IDA (interactive\ndisassembler).  If you have a legal commercial Windows version, it should be\nable to read them in and convert them.\n\nIf any of the disassembled comments looks wrong, it possibly is.  I learnt\nproper C and how to read assembler from this project so my initial guesses may\nbe wrong.\n\n\n### Support\n\nSend me any emails if you want more information on NAGI or how the source code\nfits together.  As long as it doesn't get too demanding, I won't mind\nanswering any questions.\n\n\n### X11 License\n\nThe license in full: (applies to all source code)\n\n    COPYRIGHT AND PERMISSION NOTICE\n\n    Copyright (c) 2001 - 2017 Nick Sonneveld, Gareth McMullin, Ritchie Swann\n\n    All rights reserved.\n\n    Permission is hereby granted, free of charge, to any person obtaining a\n    copy of this software and associated documentation files (the\n    \"Software\"), to deal in the Software without restriction, including\n    without limitation the rights to use, copy, modify, merge, publish,\n    distribute, and/or sell copies of the Software, and to permit persons\n    to whom the Software is furnished to do so, provided that the above\n    copyright notice(s) and this permission notice appear in all copies of\n    the Software and that both the above copyright notice(s) and this\n    permission notice appear in supporting documentation.\n\n    THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS\n    OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF\n    MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT\n    OF THIRD PARTY RIGHTS. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR\n    HOLDERS INCLUDED IN THIS NOTICE BE LIABLE FOR ANY CLAIM, OR ANY SPECIAL\n    INDIRECT OR CONSEQUENTIAL DAMAGES, OR ANY DAMAGES WHATSOEVER RESULTING\n    FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT,\n    NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION\n    WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.\n\n    Except as contained in this notice, the name of a copyright holder\n    shall not be used in advertising or otherwise to promote the sale, use\n    or other dealings in this Software without prior written authorization\n    of the copyright holder.\n\n[Nick Sonneveld][6]\n\n\n\n\n   [1]: mailto:sonneveld.at.hotmail.com\n\n   [2]: mailto:g_mcm.at.mweb.co.za\n\n   [3]: mailto:claudio.at.helllabs.org\n\n   [4]: mailto:ritchieswann@gmail.com\n\n   [5]: http://www.gnu.org/licenses/license-list.html\n\n   [6]: mailto:sonneveld.at.hotmail.com\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsonneveld%2Fnagi","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsonneveld%2Fnagi","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsonneveld%2Fnagi/lists"}