The source code to X-Force: Fight for Destiny was up until now succesfully compiled with the following delphi versions:
- Delphi 5 Enterprise
- Delphi 5 Enterprise with Service Pack 1
- Delphi 6 Personal
- Delphi 6 Enterprise
- Delphi 2005 Personal
For installation the following steps have to be done:
- Install the latest X-Force version and get the available updates via the online updater.
You should perhaps install the version 910 to the directory C:\xforcev910 .
- Download the source code (SVN-directory source) and save it to an arbitrary directory. The directory structure has to be mantained.
Suggestion: Use the directory c:\xforce-sandbox
- Then the most recent files from the SVN archive bin directory have to be installed.
- These are more recent language files which are eventually needed for a new xforce.exe. Just copy them to the X-Force directory into the appropriate structure.
- Install the Patch for Delphi2005 Personal (german - manual is on the linked page, just rename the file and copy it).
- Install JEDI Visual Component Library. The download can be found here:
JVCL331CompleteJCL199-Build2551.zip extract file, e.g. to c:\delphi.
Then start c:\delphi\jcl\install.bat, this file installs JCL
Switch to the tab 'Delphi 2005'
click Install
Confirm everything
After thath, start c:\delphi\jvcl\install.bat and let it install
- Download Pascal Script 3.0.19.565 from Homepage
Hint: Compatibility to this Pascal Script version was done.
Hint 2: On the remobjects webpage are more recent versions, which compatibility wasn't checked.
The older version will somewhen later be made accessible on our webpage. Until than you can ask for it via email (4 MB)
RemObjects Pascal Script - 3.0.19.565.exe will be installed to the directory "C:\Program Files\RemObjects Software\Pascal Script for Delphi". Just click 'next' until the installation starts, then 'finish'.
Hint: Depending on the windows version, the path can also be "c:\programme\remobjects Software\Pascal Script for Delphi". In this case, adjust the path description further down accordingly.
- Pay attention to the readme.txt within the changethirdparty directory
Copy all files from C:\xforce-sandbox\game\source\changethirdparty to "C:\Program Files\RemObjects Software\Pascal Script for Delphi\Source".
Start Delphi 2005 Personal, choose 'install packages' from the menu 'components', find 'Rem Objects' and remove them.
After that close with 'OK'. "Open project", choose the file "C:\Program Files\RemObjects Software\Pascal Script for Delphi\Source\BuildPackages_D9.bdsgroup".
- Compile and install Package PascalScript_Core_D9.dpk
- Do not install PascalScript_RO_D9
- The directory "C:\Program Files\RemObjects Software\Pascal Script for Delphi\Dcu\D9" from Pascal Script has to be included as library path.
Extract (Utility Library v.2.0.10 utils_2_0.zip) to c:\delphi entpacken.
Create directory C:\delphi\Utilities\dcu
Open C:\delphi\Utilities\Utilities_D2005.dpk
Choose Project\Options
Directories/Conditions
Enter dcu in 'Ouput for Units' and press 'ok'
Install the package
Save changings
In Tools\Optionen choose the environmentoption Delphi-Options\Bibliothek-Win32
and add ';C:\delphi\Utilities\dcu' to the library path. 'OK'
- Projektgruppe für die entsprechende Delphi Version öffnen (xforce_delphix.bpg)
C:\xforce-sandbox\game\source\xforce_delphi2005.bpg öffnen
- Projektverwaltung anzeigen (Ansicht->Projektverwaltung) (wenn nicht sichtbar)
- Package delphix_forx.dpr in der Projektverwaltung aktivieren und installieren.
delphix_for2005.dpr
Die Datei C:\xforcev910\bass.dll ins "C:\Program Files\Borland\BDS\3.0\Bin" (oder PATH-Variable ergänzen, das diese Datei von Delphi gefunden wird)
kd4dx_delphi2005.dpr aktivieren und installieren.
- Projekt X-Force aktivieren
- Projektoptionen aufrufen
- unter Verzeichnisse/Bedingungen folgende Optionen anpassen
- Ausgabeverzeichnis: Hier muss nun das Installationsverzeichnis von X-Force angegeben werden, damit die EXE direkt dort erstellt wird.
- Projekt X-Force kompilieren und hoffen.
- Wenn alles geklappt, müsste X-Force kompiliert sein und du kannst mit den Arbeiten beginnen.
Empfehlenswert ist es unter Tools->Debugger-Optionen->Sprachexceptions die Option "bei Delphi-Exceptions stoppen" zu deaktivieren. Dadurch wird verhindert, dass X-Force stehen bleibt, sobald eine Exception auftritt.
Und noch ein wichtiger Tipp: Aktiviert das Auto-Speichern. Nichts ist schlimmer als ein Absturz nach dem man längere Zeit Programmiert hat und nicht gespeichert hat.