Release Call to Power 2


ptitSeb

Serial Porter
Joined
Aug 15, 2012
Messages
9,306
Age
51
Location
France, near Lyon
Here is Call to Power 2, the commercial Civilisation-like game whose engine has been open source by Activision
preview3.png

You'll need data from the full game to play this pnd. Either copy "ctp2_data", "ctp2_program" and "Scenarios" from an existing CtP2 install to appdata/ctp2 or, if you own the GoG version, just copy the setup exe and the start script will take care of the extraction.

The game use sdl, mith omapdss to have a virtual size of 800x600, that is the minimum to have a useable GUI.
This linux port is now up-to-date with mainstream Apolyton Windows port

Also, the engine now plays both CD Audio music for now or ripped tracks (so music with GoG version).

History log
=========

Build 03
-------------

  • New build, based on latest sources
  • New system to avoid filename case issue
  • Added support to Ripped CD Audio
Build 02
-------------

  • Fixed renaming issue (for Ext filesystem)
  • Extraction of data now have a real percentage bar
Build 01
-------------

  • Initial build

Source of the port can be found here: https://github.com/ptitSeb/ctp2
 
Last edited:
yes! some more grade A software! thanks a bunch man... I think at some point I need to visit you in France and get you a shitload of beers! Just bought this about a short while back on gog!
 
hmm it doesn't work for me. I copied the gog setup exe into the appdata folder and it gets extracted properly as far as I can tell. when I want to start the game however it throws two error messages and goes back to desktop.

I don't know the exact wording of the error messages right now, I'll add that later. first one is about a missing file (some editor?) and the second says there is a scripting error.
 
hmm it doesn't work for me. I copied the gog setup exe into the appdata folder and it gets extracted properly as far as I can tell. when I want to start the game however it throws two error messages and goes back to desktop.

I don't know the exact wording of the error messages right now, I'll add that later. first one is about a missing file (some editor?) and the second says there is a scripting error.
No :(. I have to test again, but I'm sure it was working for me (unless I have messed up good and bad confing data).
Your SDCard is formated as Fat32 or Ext?

*EDIT* @xnopasaranx : can you copy/paste the /tmp/pndrun_ctp2.out here also, if you can?

*EDIT2* @xnopasaranx ; don't bother, I reproduce the issue on a Ext formated partition. I'll fix that now.
[doublepost=1458039607,1458027303][/doublepost]Ok, I have uploaded a new pnd on the repo, and it works on case sensitive file system.
Note that it's recommended to use a Fat32 filesystem (case insensituve) for this game.

Build 02
-------------

  • Fixed renaming issue (for Ext filesystem)
  • Extraction of data now have a real percentage bar
 
Last edited:
wow... once again you were quicker than I could react. thanks a lot! I think I can test this on my train ride in a couple of minutes if I can get a decent connection over tethering.
[doublepost=1458145322,1458141677][/doublepost]had to extract the data a second time for the renaming script to work correctly and now the game starts and plays as it should! thanks so much ptitSeb! Some of my favorite games have been brought to pandora. I was always hoping for a more modern civilization clone as freeciv just doesn't feel right to me. ctp2 is better than anything I could've hoped for (playing civ2 on psx sucks...)
 
Okay, tried playing it today on a trainride, but it crashes very often for me.
It happens sometimes when moving units using the Goto function.
It suddenly shuts down when you do that.

It even is reproducable, saving just before that happens will cause it again each time when you just loaded the game.
The solution is to move that unit manually, that works all of the time without issues.
And after you did that, you can use the goto function again (until that happens again).

It also crashed each time you load a game while already playing one.
 
@EvilDragon : I didn't reproduce both crash.
I can Load a game while ingame fine (but I did correct a file naming, the Load/Save screen was not working on Ext filesystem).
I didn't understood the "Goto" function. I only have a "Move" command for the units, or is it something else?
 
@EvilDragon : I didn't reproduce both crash.
I can Load a game while ingame fine (but I did correct a file naming, the Load/Save screen was not working on Ext filesystem).
I didn't understood the "Goto" function. I only have a "Move" command for the units, or is it something else?

I'm doing this with drag and move to the space where they should move to, or by using the arrow in the command list and giving them a spot where they should move to.
I'll make a savegame with that and will send it to you.

Strikes me: How much memory does the game need, do you have any swap file setup on your unit?
I don't, and I was playing music with mplayer in the background, maybe it just ran out of memory (didn't give an error message though)
 
I test it on my dev. Gigahertz unit, and yes, there is swapfile of 4GB all the time. I haven't checked the memory needed by the game, maybe it's memory, but in that case, you should see a "Killed" in the pndrun_ctp2.out logfile.

On very rare occasion, I have got a "double free of corruption" kind of error. But I cannot reproduce it. I've started using valgrind to track memory error, but it's super slow and making the game difficult to play. I've recompiled with "-g" o have more effective output and will continue some valgrind sanitazing...
 
If you like, I can also test the one with more log output and post whatever I can find.
 
New build on the repo.
This build is based on a new port, based on latest Apolyton windows sources. This now port looks stable, but it's still young so may crash. If it does crash, try to find a reproduceable way, so I can fix the bug.

This new build can also now used Rpiied CD Track audio. If you have the GoG version, you'll have music automatically.


Build 03
-------------

  • New build, based on latest sources
  • New system to avoid filename case issue
  • Added support to Ripped CD Audio

I put a link to my github of the linux sources in first link, for tose who want to try it on their linux box.
 
Back
Top