Natomiast jeśli chodzi o kod źródłowy do 1.13 (2085) ten, który też jest w dziale download to kompiluje mi się bez większych problemów. Jest co prawda kilkanaście ostrzeżeń (warnings) ale nie wpływają one na szczęście na końcowy efekt w postaci pliku exe. Tutaj używam do kompilacji pliku "ja2_2005Express.sln" oraz Visual studio 2005 i wszystko kompiluje się bez problemu.
Wracając do kodów źródłowych do JA2 oraz do JA2 UB to najprawdopodobniej czegoś nie wiem, albo coś pomijam ponieważ w obydwu wypadkach pojawiają się dokładnie te same błędy i jest ich naprawdę dużo bo ponad 300.
Co prawda jest instrukcja jak wykonać kompilację ale niestety muszę coś źle wykonywać bo ani razu nie udało mi się skompilować kodu źródłowego.
How to pisze:
1: Extract the included files
2: Copy the "ja2" and "Standard Gaming Platform" directories into c:\
3: Set up the include directories in VC6 to include the Build directory as well as subdirectories, and the "Standard Gaming Platform" on the list
4: Include the "Standard Gaming Platform" path in the library paths
5: Go to Build->Set Active Configurations and chose Win32 ja2.exe release
6: Build the projects (press "Build ja2.exe")
7: Wait for 5 minutes, serve when ready
Please note that it's preferable to open the source by opening the workspace in the Build directory
If something's difficult to understand, find Digicrab (me) on the http://www.ja-galaxy-forum.com and ask nicely for help. Bring cookies.
Co do błędów to to jak wspominałem wszystkie są takie same. Poniżej jest przykład z JA2 UB. Tutaj do kompilacji używam pliku "JA2.vcproj" i Visual Studio Net 2003.
Zrzut VS NET 2003 pisze:
------ Build started: Project: Tactical, Configuration: Release Win32 ------
Compiling...
World Items.c
GENERATED PCH FOR TACTICAL PROJECT.
e:\JA2 UB\Build\Tactical\Tactical All.h(6) : fatal error C1083: Cannot open include file: 'sgp.h': No such file or directory
Weapons.c
GENERATED PCH FOR TACTICAL PROJECT.
e:\JA2 UB\Build\Tactical\Tactical All.h(6) : fatal error C1083: Cannot open include file: 'sgp.h': No such file or directory
Vehicles.c
GENERATED PCH FOR TACTICAL PROJECT.
e:\JA2 UB\Build\Tactical\Tactical All.h(6) : fatal error C1083: Cannot open include file: 'sgp.h': No such file or directory
UI Cursors.c
GENERATED PCH FOR TACTICAL PROJECT.
e:\JA2 UB\Build\Tactical\Tactical All.h(6) : fatal error C1083: Cannot open include file: 'sgp.h': No such file or directory
Turn Based Input.c
GENERATED PCH FOR TACTICAL PROJECT.
e:\JA2 UB\Build\Tactical\Tactical All.h(6) : fatal error C1083: Cannot open include file: 'sgp.h': No such file or directory
TeamTurns.c
GENERATED PCH FOR TACTICAL PROJECT.
e:\JA2 UB\Build\Tactical\Tactical All.h(6) : fatal error C1083: Cannot open include file: 'sgp.h': No such file or directory
Tactical Turns.c
GENERATED PCH FOR TACTICAL PROJECT.
e:\JA2 UB\Build\Tactical\Tactical All.h(6) : fatal error C1083: Cannot open include file: 'sgp.h': No such file or directory
Tactical Save.c
GENERATED PCH FOR TACTICAL PROJECT.
e:\JA2 UB\Build\Tactical\Tactical All.h(6) : fatal error C1083: Cannot open include file: 'sgp.h': No such file or directory
Structure Wrap.c
Compiling...
World Items.c
GENERATED PCH FOR TACTICAL PROJECT.
e:\JA2 UB\Build\Tactical\Tactical All.h(6) : fatal error C1083: Cannot open include file: 'sgp.h': No such file or directory
Weapons.c
GENERATED PCH FOR TACTICAL PROJECT.
e:\JA2 UB\Build\Tactical\Tactical All.h(6) : fatal error C1083: Cannot open include file: 'sgp.h': No such file or directory
Vehicles.c
GENERATED PCH FOR TACTICAL PROJECT.
e:\JA2 UB\Build\Tactical\Tactical All.h(6) : fatal error C1083: Cannot open include file: 'sgp.h': No such file or directory
UI Cursors.c
GENERATED PCH FOR TACTICAL PROJECT.
e:\JA2 UB\Build\Tactical\Tactical All.h(6) : fatal error C1083: Cannot open include file: 'sgp.h': No such file or directory
Turn Based Input.c
GENERATED PCH FOR TACTICAL PROJECT.
e:\JA2 UB\Build\Tactical\Tactical All.h(6) : fatal error C1083: Cannot open include file: 'sgp.h': No such file or directory
TeamTurns.c
GENERATED PCH FOR TACTICAL PROJECT.
e:\JA2 UB\Build\Tactical\Tactical All.h(6) : fatal error C1083: Cannot open include file: 'sgp.h': No such file or directory
Tactical Turns.c
GENERATED PCH FOR TACTICAL PROJECT.
e:\JA2 UB\Build\Tactical\Tactical All.h(6) : fatal error C1083: Cannot open include file: 'sgp.h': No such file or directory
Tactical Save.c
GENERATED PCH FOR TACTICAL PROJECT.
e:\JA2 UB\Build\Tactical\Tactical All.h(6) : fatal error C1083: Cannot open include file: 'sgp.h': No such file or directory
Structure Wrap.c
Czy mógłby ktoś doświadczony w kompilowaniu kodów źródłowych wytłumaczyć co wykonuje nie tak lub o czym zapomniałem.