Login
Username:

Password:

Remember me



Lost Password?

Register now!

Sections

Who's Online
97 user(s) are online (44 user(s) are browsing Forums)

Members: 0
Guests: 97

more...

Headlines

 
  Register To Post  

(1) 2 »
Porting Augustus (Caesar 3) to AmigaOS4
Not too shy to talk
Not too shy to talk


See User information
@all

After Vanilla Conquer (C&C), I am now working on Augustus (open source new version of Ceaser 3 strategy game)

https://github.com/Keriew/augustus

I am able to compile the executable with latest SDL 2.24 and SDL2 Mixer.

I am able to compile AmigaOS executable with newlib (I don't have the all libraries compiled for clib2 yet)

Now I have compiled Augustus port for OS4 and I have Ceaser3 data files (GOG version).

However when I run the game, Snoopy (SnoopDOS) shows that Amiga executable is adding "./" to in front of data files.

E.g. "./c3.eng" instead "c3.eng).

Any ideas how to solve it ? What am I doing wrong ?

The file related sources are in this directory

https://github.com/Keriew/augustus/tree/master/src/core


Edited by SinanSam460 on 2022/8/30 9:26:05
Sinan - AmigaOS4 Beta-Tester
- AmigaOne X5000
- AmigaOne A1222
- Sam460ex
Go to top
Re: Porting Augustus (Caeser 3) to AmigaOS4
Not too shy to talk
Not too shy to talk


See User information
I am not expert with coding, but linux operates / and // in path the same way.
I.e.: path/path2 = path//path2, /path = //path

Can be possible that somewhere in the code "/" is added in case the path is not specified correctly (i.e. is without /)?

AmigaOS3: Amiga 1200
AmigaOS4: Micro A1-C, AmigaOne XE, Pegasos II, Sam440ep, Sam440ep-flex, AmigaOne X1000
MorphOS: Efika 5200b, Pegasos I, Pegasos II, Powerbook, Mac Mini, iMac, Powermac Quad
Go to top
Re: Porting Augustus (Caeser 3) to AmigaOS4
Home away from home
Home away from home


See User information
There is already a port for MorphOS, maybe can help you

https://github.com/BeWorld2018/augustus

Go to top
Re: Porting Augustus (Caeser 3) to AmigaOS4
Just can't stay away
Just can't stay away


See User information
@SinanSam460

Just link the executable with -lunix and it will fix those pathing issues.

Go to top
Re: Porting Augustus (Caeser 3) to AmigaOS4
Just popping in
Just popping in


See User information
@SinanSam460

static const char *get_case_corrected_file(const char *dir, const char *filepath)
{
    static 
char corrected_filename[FILE_NAME_MAX];
    
corrected_filename[FILE_NAME_MAX 1] = 0;

    
size_t dir_len 0;
    
size_t dir_skip 0;
    if (!
dir || !*dir) {
        
dir ".";
        
dir_skip 2;
    }
    
dir_len strlen(dir);
    
strncpy(corrected_filenamedirFILE_NAME_MAX 1);
    if (
dir_len) {
        if (
dir[dir_len 1] != '/') {
            
corrected_filename[dir_len] = '/';
            
dir_len++;
        }
    }


do note that this isn't the only place probably but you have to #ifdef __amigaos4__
around for instance if (!dir||!*dir)
remove the dir = "." and check the remaining parts

Go to top
Re: Porting Augustus (Caeser 3) to AmigaOS4
Not too shy to talk
Not too shy to talk


See User information
@SinanSam460

You sir are a rock star! Caesar 3 is my fav city building/management game, and I was always hoping someone will look into Augustus and port it to AOS 4.1. Thank you! Gameplay of Augustus is awesome, bugs fixed, improvements to the original game added. I've completed Augustus, both military and economic missions last year, but I am ready for a new campaign!

Go to top
Re: Porting Augustus (Caeser 3) to AmigaOS4
Not too shy to talk
Not too shy to talk


See User information
@salass00

Thanks it worked..

I got it working based on BeWorld's MorphOS port.. I'll test it and will post a video soon.

If all goes well, I will upload it to OS4Depot.

Sinan - AmigaOS4 Beta-Tester
- AmigaOne X5000
- AmigaOne A1222
- Sam460ex
Go to top
Re: Porting Augustus (Caeser 3) to AmigaOS4
Quite a regular
Quite a regular


See User information
Wow, that is excellent news! Well done, SinanSam460! Looking forward to give it a try!

Go to top
Re: Porting Augustus (Caesar 3) to AmigaOS4
Not too shy to talk
Not too shy to talk


See User information
@all

Augustus is now available on OS4Depot.net

http://www.os4depot.net/?function=sho ... ame/strategy/augustus.lha

Here is a short video of Augustus on Sam460:




Installation and Running Instructions:
---------------------------------------------
1) Purchase Ceaser III from GOG or Steam
https://www.gog.com/game/caesar_3
and install the game on Windows

2) Copy the Caesar III directory to AmigaOS 4.

3)Please download and unpack open sources assets archive:
https://augustus.josecadete.net/download/latest/release/windows

4) Please copy the "assets", "maps", "manual" folders (from the archive you just have downloaded) to Caeser III folder on AmigaOS 4

5) Please copy augustus and augustus.ini to file to same directory on AmigaOS 4.

6) Run the game

Sinan - AmigaOS4 Beta-Tester
- AmigaOne X5000
- AmigaOne A1222
- Sam460ex
Go to top
Re: Porting Augustus (Caesar 3) to AmigaOS4
Home away from home
Home away from home


See User information
@Sinan
Seems works on my x5000 as well:






Did you use newlib in end or afxgroup's clib2 ? If newlib, which ones 3d party libs you miss for clib2 ?

Btw, what i noticed, that when you move window, output flooded with SDL information about "window move to coordinates blblabla", maybe worth to disable ?


Edited by kas1e on 2022/8/30 10:32:21
Edited by kas1e on 2022/8/30 10:59:06
Join us to improve dopus5!
AmigaOS4 on youtube
Go to top
Re: Porting Augustus (Caesar 3) to AmigaOS4
Site Builder
Site Builder


See User information
@SinanSam460
Great work. Well done man.
And of course thanks to BeWorld for helping out and Capehill for his continuous work on SDL

Quote:
when you move window, output flooded with SDL information about "window move to coordinates blblabla", maybe worth to disable ?


Yeah, that would be great to be disabled, because output like that steals frames from the games.

Follow me on
Ko-fi, Twitter, YouTube, Twitch
Go to top
Re: Porting Augustus (Caesar 3) to AmigaOS4
Not too shy to talk
Not too shy to talk


See User information
@SinanSam460

Very nice work! And many thanks...
I will test on X1000 and Sam440ep-flex (there I wonder if it will be playable)

I see on video that speed on Sam460ex is sufficient.

AmigaOS3: Amiga 1200
AmigaOS4: Micro A1-C, AmigaOne XE, Pegasos II, Sam440ep, Sam440ep-flex, AmigaOne X1000
MorphOS: Efika 5200b, Pegasos I, Pegasos II, Powerbook, Mac Mini, iMac, Powermac Quad
Go to top
Re: Porting Augustus (Caesar 3) to AmigaOS4
Not too shy to talk
Not too shy to talk


See User information
@walkero

Thanks for nice words.

I have disabled SDL_Log during gameplay, so these messages won't be displayed.

New V1.01 archive is at OS4Depot Upload section:

http://www.os4depot.net/index.php?function=uploads

Sinan - AmigaOS4 Beta-Tester
- AmigaOne X5000
- AmigaOne A1222
- Sam460ex
Go to top
Re: Porting Augustus (Caesar 3) to AmigaOS4
Not too shy to talk
Not too shy to talk


See User information
@kas1e

I used newlib this time..

For Clib2, I think I am missing tinyfiledialogs and expat libraries.

Sinan - AmigaOS4 Beta-Tester
- AmigaOne X5000
- AmigaOne A1222
- Sam460ex
Go to top
Re: Porting Augustus (Caesar 3) to AmigaOS4
Home away from home
Home away from home


See User information
@Sinan
expat ones are ./configure;make , and tinyfiledialogs as i can see just a .c file you linked with, not a stub lib ?

Join us to improve dopus5!
AmigaOS4 on youtube
Go to top
Re: Porting Augustus (Caesar 3) to AmigaOS4
Not too shy to talk
Not too shy to talk


See User information
@kas1e

Do you think clib2 version will improve the performance ?

Sinan - AmigaOS4 Beta-Tester
- AmigaOne X5000
- AmigaOne A1222
- Sam460ex
Go to top
Re: Porting Augustus (Caesar 3) to AmigaOS4
Home away from home
Home away from home


See User information
@Sinan
Probabaly not, just it can be another test case to be sure clib2 is ok to be used in bigger projects :) But in terms of port, if everything fine already and good enough, then it will be not better with lib2 probabaly.

Join us to improve dopus5!
AmigaOS4 on youtube
Go to top
Re: Porting Augustus (Caesar 3) to AmigaOS4
Just popping in
Just popping in


See User information
Caesar III with german language patch including german voice output
Great work, many thanks for the Port.
Running perfect on my X5K.

Resized Image

Go to top
Re: Porting Augustus (Caesar 3) to AmigaOS4
Just can't stay away
Just can't stay away


See User information
@kas1e

Couldn’t help but notice the OpenClaw drawer in your video.
Did you ever make any progress here?

AmigaOne X1000.
Radeon RX550

http://www.tinylife.org.uk/
Go to top
Re: Porting Augustus (Caesar 3) to AmigaOS4
Home away from home
Home away from home


See User information
@ddni
Quote:

Couldn’t help but notice the OpenClaw drawer in your video.
Did you ever make any progress here?


Were stopped in 2019 with, and the latest progress were there (if anyone willing to finish it):
https://github.com/pjasicek/OpenClaw/issues/142

Join us to improve dopus5!
AmigaOS4 on youtube
Go to top

  Register To Post
(1) 2 »

 




Currently Active Users Viewing This Thread: 1 ( 0 members and 1 Anonymous Users )




Powered by XOOPS 2.0 © 2001-2023 The XOOPS Project