Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merge in updates for 32/64 data and code cleanup #7

Merged
merged 277 commits into from
Nov 28, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
277 commits
Select commit Hold shift + click to select a range
1e5b59e
refactored report
mdhender Feb 15, 2022
e4b52e2
removed unused C source files
mdhender Feb 15, 2022
cf9f745
created fh dump command
mdhender Feb 16, 2022
4ce6f49
moved dump out of save routines
mdhender Feb 16, 2022
e98a18a
added git attributes file
mdhender Feb 16, 2022
c25d04d
replaced fgets with readln to handle CR+LF issues
mdhender Feb 16, 2022
a70385d
added log random command to help test PRNG
mdhender Feb 16, 2022
e5c76dc
renamed dump to convert
mdhender Feb 16, 2022
eeebc81
added json converter for galaxy and planet data
mdhender Feb 17, 2022
3fcf981
started export for nampla and ship data
mdhender Feb 17, 2022
d068847
renamed convert command to export
mdhender Feb 17, 2022
14bf63a
created export for transaction data
mdhender Feb 17, 2022
86038c1
finished sexpr and json export for nampla data
mdhender Feb 17, 2022
055fc84
removed nampla counter from sexp export
mdhender Feb 17, 2022
18cafd1
finished sexpr export for ship data
mdhender Feb 17, 2022
6ad238e
added links to some interesting pages
mdhender Feb 17, 2022
099f43b
finished json export for ship data
mdhender Feb 17, 2022
e63007f
changed ship vars to int
mdhender Feb 17, 2022
c353e15
deleted obsolete make scripts
mdhender Feb 17, 2022
3018324
moved turn command into fh
mdhender Feb 17, 2022
05599d1
decrement the cmake version for ubuntu 16
mdhender Feb 17, 2022
82d1d32
fix compiler warning about nul bytes in format
mdhender Feb 17, 2022
e76f6b7
added unistd header for unlink
mdhender Feb 17, 2022
c1a68aa
fixed compiler error on const value for last_random
mdhender Feb 17, 2022
f86e7fb
fixed compiler errors and warnings
mdhender Feb 17, 2022
3947006
added header for memset
mdhender Feb 18, 2022
f8ad1fd
added star to fhloc dependencies
mdhender Feb 18, 2022
bdc7317
added ordervars to fhloc dependencies
mdhender Feb 18, 2022
f25e4a6
fixed compiler warnings
mdhender Feb 18, 2022
a48e56b
added planet to fhprod dependencies
mdhender Feb 18, 2022
661e73e
added link to cmake help
mdhender Feb 18, 2022
0ea957f
moved locations command into fh
mdhender Feb 18, 2022
dc7105e
assert that the random seed is non-zero
mdhender Feb 18, 2022
8648547
added output of last_random as debug aid
mdhender Feb 18, 2022
fa06ba6
added second shot guard to catch infinite combat loops
mdhender Feb 18, 2022
fd5d428
added strike flag to fhcombat
mdhender Feb 18, 2022
d7d263a
moved report command into fh
mdhender Feb 18, 2022
1f27f2d
fixed print modifiers for long vs int
mdhender Feb 18, 2022
a439755
added debug for ship status
mdhender Feb 18, 2022
f0ad88b
added debug for report species
mdhender Feb 19, 2022
1afb8d0
started fh set command for planet, species, and star
mdhender Feb 19, 2022
e7d58e1
worked on set species government type
mdhender Feb 19, 2022
c338db2
added checks and save to set species govt-type
mdhender Feb 20, 2022
04da4e0
added more fields to set species
mdhender Feb 20, 2022
54284f6
fixed buffer overflow and format warnings
mdhender Feb 21, 2022
c083320
fixed off by one bug in fetching govt type
mdhender Feb 21, 2022
1366d08
added name and govt to fields copied back to data file
mdhender Feb 21, 2022
1547bba
fixed buffer overflows and writing the wrong data
mdhender Feb 21, 2022
dedfb8e
fixed typo in sizeof call
mdhender Feb 21, 2022
3eb2c31
added recommendation on using ninja-build
mdhender Feb 22, 2022
ce69a2f
added scan command
mdhender Feb 22, 2022
c11e5f0
removed obsolete code and build scripts
mdhender Feb 22, 2022
55a7268
refactored the scan command into separate source files
mdhender Feb 22, 2022
5fc728a
added fh stats command
mdhender Feb 22, 2022
ba9ba82
removed obsolete source and build scripts
mdhender Feb 22, 2022
33ffeb8
refactored fh stats command
mdhender Feb 22, 2022
cc9f33b
added banked economic units to status
mdhender Feb 22, 2022
adcb87b
started on fh create galaxy command
mdhender Feb 22, 2022
3036dbe
renamed Set to SetMain to help refactor fh set command
mdhender Feb 22, 2022
1e91258
refactored set command
mdhender Feb 22, 2022
352786e
added fh list command
mdhender Feb 23, 2022
65bbde4
refactored commands out of fh source file
mdhender Feb 23, 2022
526efd0
refactored 'set' to 'update' to support CRUD naming
mdhender Feb 24, 2022
31220d6
added update ship command for age, type, and tonnage
mdhender Feb 24, 2022
f86155b
fixed format list and added more help text to ships
mdhender Feb 24, 2022
86695a3
added deep orbit ships to scan output
mdhender Feb 24, 2022
f2e8de9
added newline to output
mdhender Feb 24, 2022
a7b2dc8
change opt to opt=val for ship updates
mdhender Feb 24, 2022
ebab193
added name to ship update
mdhender Feb 24, 2022
868734c
added loading and unloading point to list
mdhender Feb 25, 2022
47ba1ea
created fh create-galaxy command
mdhender Feb 25, 2022
6f51a60
added system flag to scan-near command
mdhender Feb 25, 2022
e5311eb
changed types to int
mdhender Feb 25, 2022
e8ee4b6
fixed format for longs
mdhender Feb 25, 2022
1da3e53
added -libm for math functions
mdhender Feb 25, 2022
9c690a7
cleaned up output for scan-near command
mdhender Feb 25, 2022
24518cf
fixed bug in error report
mdhender Feb 25, 2022
59ecdd3
added list galaxy command
mdhender Feb 25, 2022
b7a189c
fixed bug with saving last random seed value
mdhender Feb 26, 2022
b46ea30
added fh create-home-planets command
mdhender Feb 26, 2022
b1b117f
added build steps for cmake
mdhender Feb 27, 2022
eebb567
reworked sections in the readme
mdhender Feb 27, 2022
f2c9824
added documentation on some of the fh commands
mdhender Feb 27, 2022
bed25e7
fixed typo
mdhender Feb 27, 2022
5889615
fixed bug with loading planetary atmosphere
mdhender Mar 1, 2022
e2d4ff6
added isValid flag for no good reason
mdhender Mar 1, 2022
7058334
cleaned up life support calculation
mdhender Mar 1, 2022
b9bd6b4
added hasHomeSystemNeigbor to check for nearby home systems
mdhender Mar 1, 2022
cc24b4b
added link to e-mail script we should merge in
mdhender Mar 1, 2022
74e496e
added command to convert a system to a home system
mdhender Mar 2, 2022
d7d894b
removed obsolete source files
mdhender Mar 2, 2022
81fe89d
updated documentation for fh update home-system
mdhender Mar 2, 2022
c23d112
refactored create-galaxy command into create galaxy
mdhender Mar 2, 2022
52dc31b
refactored create-home-systems into create home-system-templates
mdhender Mar 3, 2022
609028e
add fh create species command
mdhender Mar 8, 2022
9ecd653
changed print_LSN from global to parameter for scan
mdhender Mar 9, 2022
34e75fa
removed obsolete source files
mdhender Mar 9, 2022
c496810
added example config file for creating species
mdhender Mar 9, 2022
f38b2e3
added version flag to fh command
mdhender Mar 9, 2022
e1c077a
added libmath to all executables
mdhender Mar 9, 2022
b067328
added galaxyio to fhprod
mdhender Mar 9, 2022
f0aaf59
added starvars to fhfinish
mdhender Mar 9, 2022
e67f1f8
addes stario to fhfinish
mdhender Mar 9, 2022
e9fd7d9
added star to fhfinish
mdhender Mar 9, 2022
f4371ca
added locationvars to fhfinish
mdhender Mar 9, 2022
d0fd2b7
added ordervars to fhfinish
mdhender Mar 9, 2022
5376d80
fixed printf format compiler warnings
mdhender Mar 9, 2022
5c5b312
removed get_galaxy_data as requirement for creating galaxy
mdhender Mar 9, 2022
e57b6b9
added examples to create a new galaxy and run a turn
mdhender Mar 9, 2022
1954fa5
added inspect command to show sizing
mdhender Mar 9, 2022
e36b68b
fixed printf format compiler warnings
mdhender Mar 9, 2022
cba18b9
added assert against short integers
mdhender Mar 9, 2022
1a60257
merged fhorders into fh create orders
mdhender Mar 9, 2022
eac3958
merge fhpredep into fh pre-departure
mdhender Mar 13, 2022
32ed412
merged fhfinish into fh finish
mdhender Mar 14, 2022
41830ea
added debug to fh export species
mdhender Mar 15, 2022
40b0771
added more debug for species export
mdhender Mar 15, 2022
9142ebf
fixed memory overwrite in species data fetch
mdhender Mar 15, 2022
65c0ace
added check for missing planet_base
mdhender Mar 15, 2022
8e7aa8b
added missing load for system and planet exports
mdhender Mar 15, 2022
8064648
removed debug statements
mdhender Mar 15, 2022
e93deb6
added missing load for system and planet exports
mdhender Mar 15, 2022
3d6222d
added missing load for system and planet exports
mdhender Mar 15, 2022
4f55d41
removed debug statement
mdhender Mar 15, 2022
efa6ba2
commented out shot guard
mdhender Mar 15, 2022
5f90d23
bumped version
mdhender Mar 15, 2022
39d383d
merged fhprod into fh production
mdhender Mar 15, 2022
21cbba1
merged fhpost into fh post-arrival
mdhender Mar 15, 2022
8045e09
bumped version
mdhender Mar 15, 2022
bf3bade
merged fhjump into fh jump
mdhender Mar 16, 2022
61cafde
bumped version
mdhender Mar 16, 2022
d9cc1a3
merged fhcombat into fh combat
mdhender Mar 16, 2022
16e8066
added more commands to help output
mdhender Mar 16, 2022
8c60805
tweaked format of help output
mdhender Mar 16, 2022
5f37a1f
fixed help text for combat options
mdhender Mar 16, 2022
9cdde05
added finish to help output
mdhender Mar 16, 2022
0fe3804
changed default behavior to show help
mdhender Mar 16, 2022
b7ef981
merged ShowGalaxy into fh show galaxy
mdhender Mar 16, 2022
be3b4a0
played with json and sexpr
mdhender Mar 18, 2022
8f4fdca
added dedicated json parser
mdhender Mar 19, 2022
78729c5
fixed error handling in json parser
mdhender Mar 19, 2022
4d50b69
added more fields to json exporter
mdhender Mar 20, 2022
b10a2a0
corrected typo in comment
mdhender Mar 22, 2022
adeabbc
added debug line and reformatted slightly
mdhender Mar 22, 2022
08a4799
fixed printf specifier
mdhender Mar 22, 2022
4192676
fixed printf specifier
mdhender Mar 22, 2022
ffea122
added debug line for SEND command
mdhender Mar 22, 2022
40d8e6c
added debug for send status
mdhender Mar 22, 2022
783bd84
added more debug for send changes
mdhender Mar 22, 2022
3cfe73a
added more debug for send changes
mdhender Mar 22, 2022
6a38650
added more pre-loads to pre-departure
mdhender Mar 22, 2022
d2ccbfc
changed species debug default number
mdhender Mar 22, 2022
0570e5a
added save commands at end of pre-departure
mdhender Mar 22, 2022
fef0548
removed debug output from send command
mdhender Mar 22, 2022
f72a6d8
bumped version number
mdhender Mar 23, 2022
30a1973
added option to clear inventory
mdhender Mar 23, 2022
2544d6d
added gun units to inventory
mdhender Mar 23, 2022
1e6ec7c
changed reset flag to not require amount
mdhender Mar 23, 2022
4993f9b
added missing shield and gun units to inventory
mdhender Mar 23, 2022
5ad4a20
added missing close paren for gun unit type 8
mdhender Mar 23, 2022
4b348bb
added log_printf function
mdhender Mar 24, 2022
9b57ba7
fixed indentation of comment
mdhender Mar 25, 2022
6444423
finished export of system to json
mdhender Mar 25, 2022
f33caf5
finished json export of planet data
mdhender Mar 25, 2022
8d6205c
started json export of colony data
mdhender Mar 25, 2022
81020f3
added more fields to species json export
mdhender Mar 25, 2022
35a139e
added remaining fields to species json export
mdhender Mar 26, 2022
654529f
bumped version and fixed a strcpy error
mdhender Mar 26, 2022
bd5c141
finished json export of ship data
mdhender Mar 26, 2022
f0ed8bb
changed calloc to ncalloc
mdhender Mar 26, 2022
04f8bb6
updated out of memory message
mdhender Mar 26, 2022
b174105
added engine.h to locationio
mdhender Mar 26, 2022
9fbe4fa
added more fields to export of colony data
mdhender Mar 26, 2022
2148aea
finished export of colony data to json
mdhender Mar 26, 2022
f138ecf
changed json print to json marshal
mdhender Mar 26, 2022
bd40aef
refactored marshal and unmarshal
mdhender Mar 29, 2022
b3f800b
added more unmarshal sections
mdhender Mar 29, 2022
e8da326
added more unmarshal species code
mdhender Mar 29, 2022
355134e
added more unmarshal species code
mdhender Mar 30, 2022
1211e5f
finished unmarshal colonies code
mdhender Mar 31, 2022
f4a6b87
finished unmarshal ships code
mdhender Mar 31, 2022
d88d745
fixed loop counting species
mdhender Mar 31, 2022
e814f20
finished unmarshal planets code
mdhender Mar 31, 2022
783d8d3
added filename to export command
mdhender Mar 31, 2022
0c50e68
refactoring export to convert command
mdhender Mar 31, 2022
ee43bc1
added code to convert json data to global data
mdhender Mar 31, 2022
2d4f7ca
added code to convert json planet data to global data
mdhender Apr 2, 2022
434fa68
added base data structures to inspect command
mdhender Apr 2, 2022
2467bab
added uintX_t types to inspect command
mdhender Apr 2, 2022
4cb7248
refactored binary data file structures
mdhender Apr 2, 2022
1ad7ebc
reset planet data modified flag after importing JSON
mdhender Apr 2, 2022
3cfb8bb
added change notes to README
mdhender Apr 3, 2022
b4f9d53
renamed star/system for consistency
mdhender Apr 4, 2022
3f53a75
added conversion of colony and ship data
mdhender Apr 5, 2022
7e75a25
fixed error when copying ship's name from JSON
mdhender Apr 5, 2022
18bbe4a
enhanced check for missing destination
mdhender Apr 5, 2022
5624f8f
added more ship fields for conversion
mdhender Apr 5, 2022
5bf842e
fixed compiler warning on print for invalid homeworld flag
mdhender Apr 5, 2022
e6d37d4
removed files that have been replaced by fh commands
mdhender Apr 5, 2022
4800d4d
removed more files that have been replaced by fh commands
mdhender Apr 5, 2022
467d54f
removed scan sources that have been implemented in fh scan command
mdhender Apr 5, 2022
5ce8fd2
rename script to build PrintMap executable
mdhender Apr 5, 2022
1fa4c3e
implemented show crude galaxy map command
mdhender Apr 5, 2022
ffc9b3d
updated PRNG to return same results on 32- and 64-bit x86 systems
mdhender Apr 6, 2022
928fb14
bumped version
mdhender Apr 6, 2022
37c9e5c
cleaning up and fixing documentation
mdhender Apr 6, 2022
22e7576
moved version option to command
mdhender Apr 8, 2022
7282b71
reformat basic help text
mdhender Apr 8, 2022
6b28272
fixed errors deriving from and to conversion types
mdhender Apr 8, 2022
0f2344b
simplified options to convert command
mdhender Apr 8, 2022
2439a59
fixed error unmarshalling ship minimum age
mdhender Apr 8, 2022
aae2bf8
fixed error fixing previous error
mdhender Apr 8, 2022
297d58c
added missing status codes to unmarshal ship
mdhender Apr 8, 2022
ab71911
added ship class CS to unmarshal ship
mdhender Apr 8, 2022
59c2fd1
fixed error unmarshalling ideal home planet
mdhender Apr 8, 2022
3f63e71
merged 'ravenzachary/master'
mdhender Apr 23, 2022
6d40c73
resolved merge conflicts
mdhender Apr 23, 2022
984a23b
reformatted file
mdhender Apr 23, 2022
58b61c0
Merge branch 'merge/raven' into main
mdhender Apr 23, 2022
caa79a2
merged 'Ramblurr/main'
mdhender Apr 23, 2022
754f436
resolved merge issues
mdhender Apr 23, 2022
1add303
Merge branch 'merge/ramblurr' into main
mdhender Apr 23, 2022
13077ad
Fixed errors in README file.
mdhender Sep 15, 2023
66d68a6
fixed error finding unclaimed systems for species generation
mdhender Sep 23, 2023
f8bfcdf
remove github workflows
mdhender Sep 23, 2023
5a3cf26
updated documentation
mdhender Sep 24, 2023
52d15ab
added skip-log to reports
mdhender Sep 30, 2023
d900d29
update and document export JSON command
mdhender Oct 22, 2023
c3e10de
update and document import JSON command
mdhender Oct 23, 2023
c30bd3d
fixed error saving locations file
mdhender Oct 23, 2023
0e20fc6
added alpha/rebuild.sh to test
mdhender Oct 23, 2023
ec9a166
added show options for version and settings
mdhender Oct 25, 2023
3fa8be8
revert main back to 7.5.1
mdhender Oct 25, 2023
55719b7
Merge branch 'enh/add-show-flags' into main
mdhender Oct 25, 2023
af1994e
moved version into single command
mdhender Oct 25, 2023
a6dbd73
Merge branch 'enh/add-version-command' into main
mdhender Oct 25, 2023
367ae7e
added experimental json configuration
mdhender Oct 26, 2023
cc88c9d
added expermental json configuration
mdhender Oct 26, 2023
fe8cd46
bumped version patch
mdhender Oct 26, 2023
08c342e
removed old export and import code
mdhender Oct 26, 2023
3a54415
updated export to json code
mdhender Oct 26, 2023
de5ac31
Merge branch 'enh/export-json' into main
mdhender Oct 26, 2023
b0f04c4
bump version patch
mdhender Oct 26, 2023
ae50e25
created import json
mdhender Oct 29, 2023
68b14d9
created import json command
mdhender Oct 29, 2023
07b3591
fixed issues with import that caused test to fail
mdhender Oct 29, 2023
ddbdaae
removed debug statement
mdhender Nov 10, 2023
927185f
removed debug statement
mdhender Nov 10, 2023
4424cde
Bug fixes for issue #8 (#9)
gmsshadow Nov 14, 2023
993c57c
replaced strlcat with compat function
mdhender Nov 14, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 10 additions & 1 deletion .gitattributes
Original file line number Diff line number Diff line change
@@ -1,5 +1,14 @@
*.c text eol=lf
*.h text eol=lf
*.md text eol=lf
*.py text eol=lf
*.txt text eol=lf
.gitattributes text eol=lf
.gitignore text eol=lf
CMakeLists.txt text eol=lf
INSTALL text eol=lf
LICENSE text eol=lf
README.* text eol=lf
bash/* text eol=lf
make.all text eol=lf
mk.addsp text eol=lf
Expand Down Expand Up @@ -29,4 +38,4 @@ mk.set text eol=lf
mk.setup text eol=lf
mk.showgal text eol=lf
mk.stats text eol=lf
mk.turn text eol=lf
mk.turn text eol=lf
19 changes: 0 additions & 19 deletions .github/workflows/build.yml

This file was deleted.

21 changes: 0 additions & 21 deletions .github/workflows/manual.yml

This file was deleted.

25 changes: 18 additions & 7 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,19 +3,22 @@ players*.csv
*.pyc
game/
*.backup
bin/
*.swp*
*.kdev4
build/
*.o
*.pyc
*.pdf
*.swp*
doc/manual/manual.pdf
farhorizons.yml
farhorizons.cfg
players*.csv
venv

*.aux
*.bbl
*.blg
*.dvi
*.fdb_latexmk
*.glg
*.glo
*.gls
Expand All @@ -26,17 +29,25 @@ venv
*.lof
*.log
*.lot
*.nav
*.nlo
*.out
*.toc
*.fdb_latexmk
*.pdfsync
*.synctex.gz
*.nav
*.snm
*.synctex.gz
*.toc
*.vrb
/.cproject
/.project
/.settings/
/.pydevproject
/original

# IDE files
.cproject/
.idea/
.project/
.pydevproject/
.settings/
.vs/
cmake-build-debug/
24 changes: 16 additions & 8 deletions AUTHORS
Original file line number Diff line number Diff line change
@@ -1,13 +1,21 @@
Original Far Horizons source code (C):
Richard A. Morneau ([email protected])
http://www.eskimo.com/~ram/

Richard A. Morneau ([email protected]) http://www.eskimo.com/~ram/

Bug fixes and perl utilities:
[email protected]
[email protected]
via http://code.google.com/p/far-horizons/

Bug fixes and python utilites and import into github
Casey Link <[email protected]>
[email protected]
[email protected] via http://code.google.com/p/far-horizons/

Bug fixes and python utilites and import into github repo (https://github.com/Ramblurr/Far-Horizons):

Casey Link <[email protected]>

GitHub updates:

* Casey Link - https://github.com/Ramblurr
* Adam Piggott - https://github.com/ProactiveServices
* Raven Zachary - https://github.com/ravenzachary
* Michael D Henderson - https://github.com/mdhender

See README.md for more information.
Please see the README.md for more information.
100 changes: 100 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,100 @@
# Far Horizons Game Engine
# Copyright (C) 2022 Michael D Henderson
# Copyright (C) 2021 Raven Zachary
# Copyright (C) 2019 Casey Link, Adam Piggott
# Copyright (C) 1999 Richard A. Morneau
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <https://www.gnu.org/licenses/>.

#cmake_minimum_required(VERSION 3.21)
cmake_minimum_required(VERSION 3.5)
project(far_horizons C)
include_directories(src)

set(CMAKE_C_STANDARD 99)

include(CheckLibraryExists)

CHECK_LIBRARY_EXISTS(m sqrt "" HAVE_LIB_M)
if (HAVE_LIB_M)
set(USE_LIB_M m)
endif (HAVE_LIB_M)

add_executable(fh
src/const.h
src/fh.c src/fh.h
src/cfgfile.c src/cfgfile.h
src/combat.c src/combat.h
src/command.c src/command.h
src/commandvars.c src/commandvars.h
src/create.c src/create.h
src/data.c src/data.h
src/dev_log.c src/dev_log.h
src/do.c src/do.h
src/engine.c src/engine.h
src/enginevars.c src/enginevars.h
src/export.c src/export.h
src/finish.c src/finish.h
src/galaxy.c src/galaxy.h
src/galaxyio.c src/galaxyio.h
src/import.c src/import.h
src/intercept.c src/intercept.h
src/item.c src/item.h
src/jump.c src/jump.h
src/jumpvars.c src/jumpvars.h
src/list.c src/list.h
src/location.c src/location.h
src/locationio.c src/locationio.h
src/locationvars.c src/locationvars.h
src/log.c src/log.h
src/logvars.c src/logvars.h
src/marshal.c src/marshal.h
src/money.c src/money.h
src/nampla.c src/nampla.h
src/namplaio.c src/namplaio.h
src/namplavars.c src/namplavars.h
src/orders.c src/orders.h
src/ordersvars.c src/ordersvars.h
src/planet.c src/planet.h
src/planetio.c src/planetio.h
src/planetvars.c src/planetvars.h
src/postarrival.c src/postarrival.c
src/predeparture.c src/predeparture.h
src/prng.c src/prng.h
src/production.c src/production.h
src/productionvars.c src/productionvars.h
src/report.c src/report.h
src/ship.c src/ship.h
src/shipio.c src/shipio.h
src/shipvars.c src/shipvars.h
src/scan.c src/scan.h
src/sexpr.c src/sexpr.h
src/species.c src/species.h
src/speciesio.c src/speciesio.h
src/speciesvars.c src/speciesvars.h
src/show.c src/show.h
src/star.c src/star.h
src/stario.c src/stario.h
src/starvars.c src/starvars.h
src/stats.c src/stats.h
src/transactionio.c src/transactionio.h
src/turn.c src/turn.h
src/unmarshal.c src/unmarshal.h
src/update.c src/update.h
src/version.c src/version.h
src/cjson/cJSON.c src/cjson/cJSON.h
src/cjson/helpers.c src/cjson/helpers.h
src/memsafe.c src/memsafe.h)

target_link_libraries(fh ${USE_LIB_M})
61 changes: 61 additions & 0 deletions INSTALL.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,61 @@
# INSTALLING FAR HORIZONS

# Linux Systems

## Prerequisites

You will need `git` to clone the source files.

You will need a C compiler (`gcc`, for example) and `CMake` to compile the source files.

## Steps

### Clone the repository

~$ mkdir -p src
~$ cd src
~/src$ git clone https://github.com/Ramblurr/Far-Horizons.git

### Compiling

~$ cd ~/src/Far-Horizons/build
~/src/Far-Horizons/build$ cmake ..
-- The C compiler identification is GNU 5.4.0
-- Check for working C compiler: /usr/bin/cc
-- Check for working C compiler: /usr/bin/cc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- Looking for sqrt in m
-- Looking for sqrt in m - found
-- Configuring done
-- Generating done
-- Build files have been written to: ~/src/Far-Horizons/build
~/src/Far-Horizons/build$ cd ~/src/Far-Horizons/build
~/src/Far-Horizons$ cmake --build build

The executables will be created in the `~/src/Far-Horizons/build` directory.

# Windows

These instructions assume that you are using JetBrains' CLion IDE.

### Clone the repository

Use your `git` client to clone the repository `https://github.com/Ramblurr/Far-Horizons.git` to your computer.

### Compiling

Open the project in CLion.

Create a new CMake application using the `CMakeLists.txt` file in the root of the repository.

Compile.

## Problems?


## Running a Game
The Gamemaster should read the `README.md` file in the root of this repository.
It provides a brief description of the steps needed to start and run a game.
Loading