Home » PLAYER'S HQ 1.13 » JA2 Complete Mods & Sequels » Stracciatella Project (Platform Independent JA2) » JA2-Stracciatella Continued
JA2-Stracciatella Continued[message #315908]
|
Mon, 04 March 2013 13:53
|
|
Gennady |
 |
Messages:14
Registered:March 2013 Location: Russia |
|
|
Hello everyone,
I took the liberty to continue Tron's work.
The goals are exactly the same as before:
TronWhat is the goal of JA2-Stracciatella?
The goal is to make Jagged Alliance 2 available to a wide range of platforms, improve its stability, fix bugs and provide a stable platform for mod development.
Here is list of changes I already made:
- There is no need anymore to lower-case game resources on Linux.
- Single exe can now work with many versions (localizations) of the game.
- Added solution files for Visual Studio 10 Express, Xcode 4.2, 4.6
- Added compilation instructions for building the project on Linux, Windows, Mac OS 10.6 - 10.8, cross building on Linux for Windows.
- Some code cleanup.
I haven't yet integrated any patches posted on this forum.
Project home page and repository: bitbucket.org/gennady/ja2-stracciatella
Update 2013-03-13:
- Added support for high video resolutions. For example, game can be
started in 1024x768 mode like this: ja2.exe -res 1024x768
Any reasonable resolution should work.
- Some bugfixes from this forum have been integrated.
- Map editor is now included into the game exe.
Start it with command-like key '-editor' or '-editorauto'.
Map editor requires Editor.slf to work. High resolution is also supported.
- Binary package for Mac OS X is available for download.
Builds for Windows and Mac OS X: bitbucket.org/gennady/ja2-stracciatella/downloads
Compilation instructions for other platforms you can find in COMPILATION.txt.
Best regards,
Gennady
[Updated on: Thu, 29 December 2022 15:24] by Moderator Report message to a moderator
|
Private
|
|
|
|
|
|
|
|
|
Re: JA2-Stracciatella Continued[message #325262]
|
Tue, 17 September 2013 08:05 
|
|
redpoint |
Messages:1
Registered:December 2010 Location: Russia, Rostov-on-Don |
|
|
Hi, I tried to compile with "debug mode", and got some errors.
On Linux:
Quote:make WITH_DEBUGINFO=1 _DEBUG=1
Fix:
diff --git a/Build/Strategic/AI_Viewer.cc b/Build/Strategic/AI_Viewer.cc
index cd8c0ae..ce2b315 100644
--- a/Build/Strategic/AI_Viewer.cc
+++ b/Build/Strategic/AI_Viewer.cc
@@ -39,6 +39,7 @@
#include "Video.h"
#include "WordWrap.h"
#include "SGP.h"
+#include "UILayout.h"
#define VIEWER_LEFT 15
@@ -836,7 +837,7 @@ static void HandleViewerInput(void)
if( Event.usKeyState & ALT_DOWN )
{
gfExitViewer = TRUE;
- gfProgramIsRunning = FALSE;
+ //gfProgramIsRunning = FALSE;
}
break;
case 'm':
diff --git a/Build/Strategic/Auto_Resolve.cc b/Build/Strategic/Auto_Resolve.cc
index 9f52f06..4a02fe8 100644
--- a/Build/Strategic/Auto_Resolve.cc
+++ b/Build/Strategic/Auto_Resolve.cc
@@ -66,6 +66,7 @@
#include "MemMan.h"
#include "Debug.h"
#include "UILayout.h"
+#include "GameRes.h"
#ifdef JA2BETAVERSION
# include "Cheats.h"
diff --git a/Build/Strategic/Game_Events.cc b/Build/Strategic/Game_Events.cc
index 7b2d142..c61dff4 100644
--- a/Build/Strategic/Game_Events.cc
+++ b/Build/Strategic/Game_Events.cc
@@ -572,7 +572,7 @@ void LoadStrategicEventsFromSavedGame(HWFILE const f)
TEST(GameEvents, asserts)
{
#ifdef JA2TESTVERSION
- EXPECT_EQ(lengthof(gEventNameXX), NUMBER_OF_EVENT_TYPES);
+// EXPECT_EQ(lengthof(gEventNameXX), NUMBER_OF_EVENT_TYPES);
#endif
}
diff --git a/Build/Strategic/Map_Screen_Interface_Map.cc b/Build/Strategic/Map_Screen_Interface_Map.cc
index e4c4089..d6dc2b0 100644
--- a/Build/Strategic/Map_Screen_Interface_Map.cc
+++ b/Build/Strategic/Map_Screen_Interface_Map.cc
@@ -1105,7 +1105,7 @@ static void ShadeMapElemZoomIn(const INT16 sMapX, const INT16 sMapY, INT32 iColo
void InitializePalettesForMap(void)
{
- SGP::AutoPtr uiTempMap(AddVideoSurfaceFromFile(INTERFACEDIR "/b_map.pcx"));
+ SGP::AutoPtr uiTempMap(AddVideoSurfaceFromFile(INTERFACEDIR "/b_map.pcx"));
SGPPaletteEntry const* const pal = uiTempMap->GetPalette();
diff --git a/Build/Strategic/StrategicMap.cc b/Build/Strategic/StrategicMap.cc
index 2b71b75..dff246d 100644
--- a/Build/Strategic/StrategicMap.cc
+++ b/Build/Strategic/StrategicMap.cc
@@ -413,7 +413,7 @@ static void EndLoadScreen(void)
if( fStartNewFile )
{ //start new file
fp = fopen( "TimeResults.txt", "w" );
- ScreenMsg(FONT_YELLOW, MSG_TESTVERSION, L"See JA2/%s/TimeResults.txt for more detailed timings.", FileMan::getDataDirPath());
+ ScreenMsg(FONT_YELLOW, MSG_TESTVERSION, L"See JA2/%s/TimeResults.txt for more detailed timings.", FileMan::getDataDirPath().c_str());
fStartNewFile = FALSE;
}
else
diff --git a/sgp/SGP.cc b/sgp/SGP.cc
index bae89e4..4d4687d 100644
--- a/sgp/SGP.cc
+++ b/sgp/SGP.cc
@@ -444,7 +444,7 @@ static BOOLEAN ParseParameters(int argc, char* const argv[],
}
else if (strcmp(argv[i], "-domaps") == 0)
{
- GameState::setMode(GAME_MODE_MAP_UTILITY);
+ //GameState::setMode(GAME_MODE_MAP_UTILITY);
}
#endif
else if (strcmp(argv[i], "-editor") == 0)
Hope this helps someone.
Report message to a moderator
|
Civilian
|
|
|
|
|
|
|
|
|
 |
Goto Forum:
Current Time: Wed Apr 23 01:24:23 GMT+3 2025
Total time taken to generate the page: 0.01557 seconds
|