Short: Polanie (1996) Amiga RTG PORT Author: Benedykt Dziubaltowski (with Claude AI) Uploader: benedykt netc fr (Benedykt Dziubaltowski) Type: game/strat Version: 0.3 (build 51) Replaces: game/strat/Polanie-RTG-amiga Requires: 68030+; RTG (CyberGraphX or Picasso96); files from the original Polanie CD. Architecture: m68k-amigaos >= 3.0.0 x: https://x.com/BDziubaltowski gameplay: https://youtu.be/2PezLctSR1g ============================================================= POLANIE RTG - AmigaOS 68k Port EARLY TEST VERSION ============================================================= This is an early but genuinely playable build of the Polish real-time strategy game "Polanie" (MDF, 1996), ported to the Amiga with an RTG graphics card. At the moment the game is available only in Polish. It is still a test version - the campaigns have not been played through to the end, and plenty of things remain unpolished or untested. But the engine now runs, renders, talks and plays: all six campaigns start, units can be selected and commanded, games can be saved and loaded, and the sound effects and unit speech are back. I am releasing it to show the current progress and to gather feedback. ------------------------------------------------------------- WHAT WORKS ------------------------------------------------------------- - Runs on real hardware and under emulation - Three display modes (see below), on Picasso96 and CyberGraphX - Main menu and mission selection - All six campaigns load and play - Map loading, rendering and scrolling (mouse edges or cursor keys) - Unit selection: single click and rubber-band box selection - Move command (right mouse button) - Save and load games (4 slots) - SOUND!! effects and unit speech via AHI - In-game menu (ESC or the button in the bottom right corner) - Frame rate counter in the top left corner - Clean exit: left Amiga + Q, the window close gadget, or Quit from the in-game menu ------------------------------------------------------------- DISPLAY MODES ------------------------------------------------------------- Run from the Shell with one of: Polanie-Amiga 320 - own 320x200 (or 320x240) 8-bit RTG screen. Fastest mode - around 70 fps on a 68060. Recommended. Polanie-Amiga 640 - own 640x480 8-bit RTG screen, 2x pixel doubled. Around 20 fps on a 68060. Polanie-Amiga wb - window on the Workbench, true-colour. Slowest, because every frame is converted to 24-bit, but handy for testing and for unusual RTG setups. Polanie-Amiga - defaults to the 640x480 mode. If a mode cannot be opened, the game falls back to the next best option rather than refusing to start. ------------------------------------------------------------- WHAT IS STILL MISSING / NOT WORKING ------------------------------------------------------------- - CD audio music (the game expects audio tracks on a physical CD) - Intro animations (FLI playback is skipped for now) - Palette fades are instantaneous instead of smooth - The campaigns have not been played through to the end, so the later game mechanics are untested - Language versions (planned: Polish, English, Hungarian) - Sound costs roughly 5 fps while AHI is active ------------------------------------------------------------- REQUIREMENTS ------------------------------------------------------------- - 68030 CPU at 50 MHz or faster (developed and tested on a 68060) - RTG graphics card with CyberGraphX or Picasso96 - AHI for sound (optional - the game runs without it) - About 8 MB of RAM (the sound bank alone takes 3.7 MB) - Data files from the original Polanie CD ------------------------------------------------------------- INSTALLATION AND RUNNING ------------------------------------------------------------- This archive contains ONLY the executable. The game data (graphics, maps, fonts, sound) are the property of their copyright holders and are NOT included. You must own the original Polanie CD. 1. Copy the following from the CD into the same drawer as Polanie-Amiga: graf.dat pal.dat font.dat levels drawer (level.dat and level.26 ... level.47) data drawer (including sound.dat) 2. Create a file named SETUP.INI in that drawer. It must be exactly 8 bytes long and filled with zeros (contact the author if you do not know how to create it). 3. Run Polanie-Amiga from the Shell, optionally with a mode argument, for example: Polanie-Amiga 320 Amiga filenames are case-insensitive, so GRAF.DAT and graf.dat are treated as the same file. ------------------------------------------------------------- CONTROLS ------------------------------------------------------------- - Left mouse button - selection, menus, buttons - Left button + drag - rubber-band selection of several units - Right mouse button - move command / target - Cursor keys - scroll the map - Mouse at the edges - scroll the map - ESC - in-game menu (save, load, restart, quit) - Left Amiga + Q - quit immediately ------------------------------------------------------------- TECHNICAL NOTES ------------------------------------------------------------- This port was created by compiling the original source code (Watcom C++, DOS, 32-bit protected mode) with m68k-amigaos-gcc. The DOS-specific layer (VGA mode 13h, INT33 mouse, PIT timer, CD access, Sound Blaster DMA) was replaced with native AmigaOS functionality: RTG screens and windows, IDCMP input, timer.device and AHI. Differences between x86 little-endian and 68k big-endian systems had to be handled in several places - sprite headers, campaign map files and the sound bank index. CRLF line endings in the text data files also needed care, since DOS text mode used to strip them silently. The game uses only integer arithmetic - an FPU is not required. One amusing find along the way: the original FreeMemory() has an inverted test and so never actually frees its 260 KB buffer. Under DOS nobody noticed, because the operating system reclaimed everything on exit. On the Amiga it leaked on every run. It is fixed here. ------------------------------------------------------------- ACKNOWLEDGEMENTS ------------------------------------------------------------- - MDF - for creating the original game Polanie - The Amiga community - for the invaluable RTG software (CyberGraphX, Picasso96) and for AHI This is a non-commercial hobby project. Polanie and all of its data remain the property of their respective copyright holders. Bug reports, suggestions and feedback are always welcome. --------------------------------- x: https://x.com/BDziubaltowski ============================================================= POLANIE RTG - Port na AmigaOS 68k WCZESNA WERSJA TESTOWA ============================================================= To wczesna, ale juz w pelni grywalna wersja portu polskiej gry strategicznej czasu rzeczywistego "Polanie" (MDF, 1996) na Amige wyposazona w karte graficzna RTG. Obecnie gra dostepna jest tylko w jezyku polskim. To nadal wersja testowa - kampanie nie zostaly jeszcze przejscione do konca, a wiele elementow wymaga dalszych poprawek lub testow. Silnik jednak juz dziala, renderuje, odtwarza dzwieki i pozwala normalnie grac: wszystkie szesc kampanii uruchamia sie, mozna zaznaczac jednostki i wydawac im rozkazy, zapisywac oraz wczytywac stan gry, a efekty dzwiekowe i glosy jednostek zostaly przywrocone. Publikuje te wersje, aby pokazac aktualny postep prac i zebrac opinie uzytkownikow. ------------------------------------------------------------- CO DZIALA ------------------------------------------------------------- - Dziala na prawdziwym sprzecie oraz pod emulacja - Trzy tryby wyswietlania (opisane ponizej), na Picasso96 i CyberGraphX - Menu glowne i wybor misji - Wszystkie szesc kampanii mozna uruchomic i rozegrac - Wczytywanie, wyswietlanie i przewijanie map (mysza przy krawedziach lub klawiszami kursora) - Zaznaczanie jednostek: pojedynczym kliknieciem oraz ramka - Wydawanie rozkazu ruchu (prawy przycisk myszy) - Zapisywanie i wczytywanie gry (4 sloty) - DZWIEK!! efekty oraz glosy jednostek przez AHI - Menu w trakcie gry (ESC lub przycisk w prawym dolnym rogu) - Licznik FPS w lewym gornym rogu - Poprawne zakonczenie gry: Lewa Amiga + Q, gadzet zamkniecia okna lub Wyjscie z menu gry ------------------------------------------------------------- TRYBY WYSWIETLANIA ------------------------------------------------------------- Uruchom z Shella przy pomocy jednego z argumentow: Polanie-Amiga 320 - wlasny ekran RTG 320x200 (lub 320x240) 8-bit. Najszybszy tryb - okolo 70 fps na 68060. Zalecany. Polanie-Amiga 640 - wlasny ekran RTG 640x480 8-bit, podwojone piksele (2x). Oko?o 20 fps na 68060. Polanie-Amiga wb - okno na Workbenchu w trybie true-colour. Najwolniejszy tryb, poniewaz kazda klatka jest konwertowana do 24 bitow, ale bardzo wygodny do testow oraz nietypowych konfiguracji RTG. Polanie-Amiga - domyslnie uruchamia tryb 640x480. Jesli wybrany tryb nie moze zostac otwarty, gra automatycznie przelaczy sie na kolejny dostepny zamiast odmowic uruchomienia. ------------------------------------------------------------- CZEGO JESZCZE NIE MA / CO NIE DZIALA ------------------------------------------------------------- - Muzyka CD Audio (gra oczekuje sciezek audio na fizycznej plycie) - Animacje intro (odtwarzanie FLI jest obecnie pomijane) - Przejscia palety (fade) sa natychmiastowe zamiast plynnych - Kampanie nie zostaly jeszcze przejscione do konca, dlatego pozniejsze mechaniki gry nie zostaly jeszcze przetestowane - Wersje jezykowe (planowane: polska, angielska, wegierska) - Dzwiek zabiera okolo 5 fps podczas pracy AHI ------------------------------------------------------------- WYMAGANIA ------------------------------------------------------------- - Procesor 68030 50 MHz lub szybszy (program tworzony i testowany na 68060) - Karta graficzna RTG z CyberGraphX lub Picasso96 - AHI do obslugi dzwieku (opcjonalnie - gra dziala bez niego) - Okolo 8 MB pamieci RAM (sam bank dzwiekow zajmuje 3.7 MB) - Dane z oryginalnej plyty Polanie CD ------------------------------------------------------------- INSTALACJA I URUCHOMIENIE ------------------------------------------------------------- To archiwum zawiera TYLKO plik wykonywalny. Dane gry (grafika, mapy, czcionki, dzwieki) pozostaja wlasnoscia ich wlascicieli praw autorskich i NIE sa dolaczone. Musisz posiadac oryginalna plyte Polanie CD. 1. Skopiuj z plyty do tej samej szuflady co Polanie-Amiga: graf.dat pal.dat font.dat katalog levels (level.dat oraz level.26 ... level.47) katalog data (w tym sound.dat) 2. Utworz w tej szufladzie plik SETUP.INI. Musi miec dokladnie 8 bajtow i byc wypelniony zerami (skontaktuj sie z autorem, jesli nie wiesz jak go utworzyc). 3. Uruchom Polanie-Amiga z Shella, opcjonalnie podajac argument trybu wyswietlania, na przyklad: Polanie-Amiga 320 Nazwy plikow na Amidze nie rozrozniaja wielkosci liter, dlatego GRAF.DAT i graf.dat sa traktowane jako ten sam plik. ------------------------------------------------------------- STEROWANIE ------------------------------------------------------------- - Lewy przycisk myszy - zaznaczanie, menu, przyciski - Lewy przycisk + ruch - zaznaczanie wielu jednostek ramka - Prawy przycisk myszy - rozkaz ruchu / cel - Klawisze kursora - przewijanie mapy - Mysz przy krawedziach - przewijanie mapy - ESC - menu gry (zapis, odczyt, restart, wyjscie) - Lewa Amiga + Q - natychmiastowe wyjscie ------------------------------------------------------------- UWAGI TECHNICZNE ------------------------------------------------------------- Port powstal przez kompilacje oryginalnego kodu zrodlowego (Watcom C++, DOS, 32-bitowy tryb chroniony) kompilatorem m68k-amigaos-gcc. Warstwa specyficzna dla DOS-a (VGA mode 13h, mysz INT33, timer PIT, dostep do CD oraz DMA Sound Blastera) zostala zastapiona natywna funkcjonalnoscia AmigaOS: ekranami i oknami RTG, IDCMP, timer.device oraz AHI. Roznice pomiedzy architektura x86 little-endian a 68k big-endian musialy zostac obsluzone w wielu miejscach: naglowkach sprite'ow, plikach map kampanii oraz indeksie banku dzwiekow. Dodatkowo nalezalo uwzglednic konce linii CRLF w plikach tekstowych, poniewaz DOS usuwal je automatycznie. Gra korzysta wylacznie z arytmetyki calkowitoliczbowej - FPU nie jest wymagane. Ciekawostka znaleziona podczas portowania: oryginalna funkcja FreeMemory() zawierala odwrocony warunek, przez co nigdy nie zwalniala swojego 260 KB bufora. Pod DOS-em nikt tego nie zauwazyl, poniewaz system odzyskiwal cala pamiec po zakonczeniu programu. Na Amidze powodowalo to wyciek pamieci przy kazdym uruchomieniu. Tutaj zostalo to naprawione. ------------------------------------------------------------- WSPARCIE ------------------------------------------------------------- Powstaje wspolnie z Claude, asystentem AI, ktory okazal sie zaskakujaco dobrym partnerem przy portowaniu. Czyta zrodla z 1996 roku, wylapuje pulapki zwiazane z kolejnoscia bajtow (endianness) i trzydziestoletnie bledy, a do tego nigdy nie meczy sie kolejna runda: "Nadal Guru? Sprawdzmy jeszcze raz." Taka pomoc nie jest jednak darmowa - kazda sesja zuzywa tokeny, a ten port pochlonal ich juz naprawde bardzo duzo. Jesli sprawia Ci radosc ogladanie starych polskich gier powracajacych na Amige i chcialbys pomoc w dalszym rozwoju projektu, kazda forma wsparcia bedzie mile widziana. Jesli nie, to rowniez w porzadku - po prostu ciesz sie gra. Ko-fi: https://ko-fi.com/benedykt BuyCoffee: https://buycoffee.to/benedykt BLIK: 781 518 589 Patronite: https://patronite.pl/benek Suppi: https://suppi.pl/benedykt ------------------------------------------------------------- PODZIEKOWANIA ------------------------------------------------------------- - MDF - za stworzenie oryginalnej gry Polanie - Spolecznosci Amigi - za bezcenne oprogramowanie RTG (CyberGraphX, Picasso96) oraz AHI To niekomercyjny projekt hobbystyczny. Gra Polanie oraz wszystkie jej dane pozostaja wlasnoscia ich prawowitych wlascicieli. Zgloszenia bledow, sugestie i wszelkie opinie sa zawsze mile widziane. --------------------------------- x: https://x.com/BDziubaltowski ============================================================= POLANIE RTG - AmigaOS 68k port KORAI TESZTVERZIO ============================================================= Ez a lengyel valos ideju strategiai jatek, a "Polanie" (MDF, 1996) korai, de mar teljes mertekben jatszhato Amiga RTG portja. Jelenleg a jatek csak lengyel nyelven erheto el. Ez tovabbra is egy tesztverzio - a hadjaratok meg nem lettek teljesen vegigjatszva, es sok resz tovabbi finomitasra vagy tesztelesre var. A motor azonban mar mukodik, renderel, lejatsza a hangokat es normalisan jatszhato: mind a hat hadjarat elindithato, az egysegek kijelolhetok es parancsok adhatok nekik, a jatek mentheto es visszatoltheto, valamint a hangeffektek es az egysegek hangjai is visszakerultek. Azert teszem kozze ezt a verziot, hogy bemutassam a jelenlegi fejlesztesi allapotot es visszajelzeseket kapjak a felhasznaloktol. ------------------------------------------------------------- MI MUKODIK ------------------------------------------------------------- - Mukodik valodi hardveren es emulator alatt is - Harom megjelenitesi mod (lasd lejjebb), Picasso96 es CyberGraphX tamogatassal - Fomenu es kuldetesvalasztas - Mind a hat hadjarat elindithato es vegigjatszhato - Terkepek betoltese, megjelenitese es gorgetese (egerrel a kepernyo szelein vagy kurzorbillentyukkel) - Egysegek kijelolese: egy kattintassal vagy kijelolo kerettel - Mozgasi parancs kiadasa (jobb egergomb) - Jatek mentese es visszatoltese (4 slot) - HANG!! effektek es egyseghangok AHI segitsegevel - Jatekmenu (ESC vagy a jobb also sarokban levo gomb) - FPS szamlalo a bal felso sarokban - Helyes kilepes: Bal Amiga + Q, az ablak bezaro gadgetje vagy Kilepes a jatek menubol ------------------------------------------------------------- MEGJELENITESI MODOK ------------------------------------------------------------- Shellbol az alabbi argumentumok valamelyikevel indithato: Polanie-Amiga 320 - sajat 320x200 (vagy 320x240) 8 bites RTG kepernyo. A leggyorsabb mod - kb. 70 fps 68060 processzoron. Ajanlott. Polanie-Amiga 640 - sajat 640x480 8 bites RTG kepernyo, 2x pixelnagyitassal. Kb. 20 fps 68060 processzoron. Polanie-Amiga wb - ablak Workbenchen true-colour modban. Ez a leglassabb mod, mert minden kepkocka 24 bitesre konvertalodik, viszont nagyon kenyelmes teszteleshez es kulonleges RTG konfiguraciokhoz. Polanie-Amiga - alapertelmezes szerint 640x480 modban indul. Ha a valasztott mod nem erheto el, a jatek automatikusan a kovetkezo hasznalhato modra valt ahelyett, hogy megtagadna az indulast. ------------------------------------------------------------- MI HIANYZIK MEG / MI NEM MUKODIK ------------------------------------------------------------- - CD Audio zene (a jatek fizikai CD-n levo hangsavakat var) - Intro animaciok (az FLI lejatszas jelenleg ki van kapcsolva) - A paletta-atmenetek (fade) azonnaliak, nem folyamatosak - A hadjaratok meg nincsenek teljesen vegigjatszva, ezert a kesobbi jatekelemek meg nincsenek teljesen letesztelve - Nyelvi valtozatok (tervezett: lengyel, angol, magyar) - A hang kb. 5 fps teljesitmenycsokkenest okoz, amikor az AHI aktiv ------------------------------------------------------------- KOVETELMENYEK ------------------------------------------------------------- - 68030 processzor 50 MHz vagy gyorsabb (a program fejlesztese es tesztelese 68060 processzoron tortent) - RTG videokartya CyberGraphX vagy Picasso96 tamogatassal - AHI hangrendszer (nem kotelezo, a jatek nelkule is fut) - Kb. 8 MB RAM (csak a hangbank 3.7 MB-ot foglal) - Az eredeti Polanie CD adatai ------------------------------------------------------------- TELEPITES ES INDITAS ------------------------------------------------------------- Ez az archivum CSAK a vegrehajthato allomanyt tartalmazza. A jatek adatai (grafika, palyak, betukeszletek, hangok) a szerzoi jog tulajdonosainak tulajdonat kepezik, es NEM reszei ennek a csomagnak. Szukseged van az eredeti Polanie CD-re. 1. Masold a kovetkezo allomanyokat ugyanabba a konyvtarba, ahol a Polanie-Amiga is van: graf.dat pal.dat font.dat levels konyvtar (level.dat es level.26 ... level.47) data konyvtar (beleertve a sound.dat fajlt) 2. Hozz letre ugyanebben a konyvtarban egy SETUP.INI nevu fajlt. Pontosan 8 bajt hosszu legyen, es csupa nullat tartalmazzon (ha nem tudod hogyan, vedd fel a kapcsolatot a szerzovel). 3. Inditsd el a Polanie-Amiga programot Shellbol, opcionisan megadva a kivant megjelenitesi modot, peldaul: Polanie-Amiga 320 Az Amiga fajlrendszere nem tesz kulonbseget kis- es nagybetuk kozott, ezert a GRAF.DAT es a graf.dat ugyanazt a fajlt jelenti. ------------------------------------------------------------- IRANYITAS ------------------------------------------------------------- - Bal egergomb - kijeloles, menuk, gombok - Bal egergomb + huzas - tobb egyseg kijelolese kerettel - Jobb egergomb - mozgas parancs / celpont - Kurzor billentyuk - terkep gorgetese - Eger a kepernyo szelein - terkep gorgetese - ESC - jatekmenu (mentes, betoltes, ujrainditas, kilepes) - Bal Amiga + Q - azonnali kilepes ------------------------------------------------------------- TECHNIKAI MEGJEGYZESEK ------------------------------------------------------------- Ez a port az eredeti forraskod (Watcom C++, DOS, 32 bites vedett mod) m68k-amigaos-gcc forditoval torteno ujraforditasaval keszult. A DOS-specifikus reteg (VGA mode 13h, INT33 eger, PIT idozito, CD-hozzaferes es Sound Blaster DMA) helyett natív AmigaOS funkcionalitas kerult hasznalatra: RTG kepernyok es ablakok, IDCMP, timer.device es AHI. Az x86 little-endian es a 68k big-endian architekturak kozotti kulonbsegeket tobb helyen is kezelni kellett: a sprite fejlecekben, a hadjaratok palyafajljaiban, valamint a hangbank indexeben. Emellett figyelembe kellett venni a szoveges fajlok CRLF sorvegeit is, mivel DOS alatt ezek automatikusan kezelesre kerultek. A jatek kizarolag egesz szamu aritmetikat hasznal - FPU nem szukseges. Erdekes felfedezes a portolas soran: az eredeti FreeMemory() fuggvenyben egy forditott feltetel szerepelt, emiatt a sajat 260 KB-os puffere soha nem szabadult fel. DOS alatt ezt senki sem vette eszre, mert a rendszer a program befejezese utan automatikusan visszaadta az osszes memoriat. Amigan ez minden inditasnal memoriaszivargast okozott. Itt ez mar kijavitasra kerult. ------------------------------------------------------------- TAMOGATAS ------------------------------------------------------------- Ez a port hobbi projekt, teljesen ingyenes, es mindig az is marad. Claude AI segitsegevel keszul, aki meglepoen jo partnernek bizonyult a portolas soran. Elolvassa az 1996-os forraskodot, megtalalja az endian csapdakat es a harminc eves hibakat, es soha nem farad el egy ujabb "meg mindig Guru, nezzuk meg ujra" kor utan sem. Ez a segitseg azonban nem ingyenes. Minden munkamenet tokeneket fogyaszt, es ez a projekt mar nagyon sokat felhasznalt beloluk. Ha oromet okoz szamodra, hogy regi lengyel jatekok visszaternek Amigara, es szeretned tamogatni a projekt tovabbi fejleszteset, minden segitseget orommel fogadok. Ha nem, az is teljesen rendben van - egyszeruen csak elvezd a jatekot. Ko-fi: https://ko-fi.com/benedykt BuyCoffee: https://buycoffee.to/benedykt BLIK: 781 518 589 Patronite: https://patronite.pl/benek Suppi: https://suppi.pl/benedykt ------------------------------------------------------------- KOSZONETNYILVANITAS ------------------------------------------------------------- - MDF - az eredeti Polanie jatek megalkotasaert - Az Amiga kozossegnek - a felbecsulhetetlen RTG szoftverekert (CyberGraphX, Picasso96), valamint az AHI-ert Ez egy nem kereskedelmi hobbi projekt. A Polanie jatek es minden adata a jogos tulajdonosaik tulajdonaban marad. Hibajelenteseket, javaslatokat es minden velemenyt mindig orommel fogadok. ---------------------------------