Results 1 to 5 of 5

Thread: port CTP2 Source Code for AmigaOS4 (ppc)

  1. #1
    afxgroup
    Settler
    Join Date
    04 Sep 2010
    Posts
    3
    Country
    This is afxgroup's Country Flag
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Local Date
    April 25, 2014
    Local Time
    02:39

    port CTP2 Source Code for AmigaOS4 (ppc)

    Hi,
    i'm trying to port CTP2 for AmigaOS4 that is a PPC OS.. i'm doing an huge work to convert all routines that needs endianess conversion..
    I've converted almost all functions and now the game starts correctly even if i have some problems..

    First of all. The graphics is not displayed correctly. Or better, not always.
    For example: the main menu:


    seems correct

    but the game itself:



    shown the problems i'm try to fix. The cursor has wrong colors, and also some items. I'm pretty sure there is a function that is not loading correctly the colors. Or better it needs to convert 15RGB to 16BGRA..
    Any help is appreciated..

    Andrea Palmatè
    http://www.amigasoft.net
    Last edited by afxgroup; December 3, 2010 at 12:40.

  2. #2
    Martin Gühmann
    Administrator Martin Gühmann's Avatar
    Join Date
    02 Mar 2001
    Location
    Tübingen, Germany
    Posts
    7,254
    Country
    This is Martin Gühmann's Country Flag
    Thanks
    2
    Thanked 4 Times in 4 Posts
    Local Date
    April 25, 2014
    Local Time
    00:39

    Post

    Why do you start with an outdated version of the game and not with the latest version of the source code you can download from the repository?

    If I remember correctly the Linux guys had also some trouble with colors.

    -Martin
    Civ2 military advisor: "No complaints, Sir!"

  3. #3
    afxgroup
    Settler
    Join Date
    04 Sep 2010
    Posts
    3
    Country
    This is afxgroup's Country Flag
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Local Date
    April 25, 2014
    Local Time
    02:39
    mine is one of the latest (if not the latest) and contains also some patches for the colors but i think it is a problem on endianess. A linux ppc would be great so i could try myself..

  4. #4
    Martin Gühmann
    Administrator Martin Gühmann's Avatar
    Join Date
    02 Mar 2001
    Location
    Tübingen, Germany
    Posts
    7,254
    Country
    This is Martin Gühmann's Country Flag
    Thanks
    2
    Thanked 4 Times in 4 Posts
    Local Date
    April 25, 2014
    Local Time
    00:39

    Post

    Well, the latest version does not contain this start up screen you are showing. It was replaced by another one to simplify the design some 800 revisions, ago. Well, unless your code is based on some Linux branch. But I think we removed that old screen before we got the SVN server. So then it should also be gone from the Linux branch.

    -Martin
    Civ2 military advisor: "No complaints, Sir!"

  5. #5
    afxgroup
    Settler
    Join Date
    04 Sep 2010
    Posts
    3
    Country
    This is afxgroup's Country Flag
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Local Date
    April 25, 2014
    Local Time
    02:39
    yes, iirc it needs some file to be replaced but i never replaced them just because i want to test the game. Indeed the Linux version i've compiled contains all new data files. I never copied that files on my Amiga box but the svn code contains all patches in the code tree. Now i'm cross compiling CTP2 from a Mac machine to AmigaOS. I'm pretty sure there are 2-3 functions that needs some endianess fix but i'm lost in that tons of functions.. Keep in mind that i've lost almost 2 days to fix a bug that was a "char" instead of "int" than on an endian machine has a different way of works..

Similar Threads

  1. Get the CTP2 source code
    By DarkDust in forum CtP2 Source Code Project
    Replies: 35
    Last Post: February 20, 2010, 15:40
  2. CtP2 Source Code Project FAQ (v2)
    By Locutus in forum CtP2 Source Code Project
    Replies: 32
    Last Post: October 1, 2005, 16:53
  3. Source code for ctp2?
    By bushybonbon in forum CtP2 Source Code Project
    Replies: 16
    Last Post: May 24, 2005, 10:37
  4. Ctp2 Source Code To Be Released
    By st_swithin in forum Off-Topic-Archive
    Replies: 140
    Last Post: August 4, 2003, 13:03

Visitors found this page by searching for:

amigaos4 ppc

civilization v amiga port

ppc source code

amiga OS4

amiga os4 ppc

amigaos 4 ppc

ppc games source code

ppc code game

Bookmarks

Posting Permissions