\ No newline at end of file
diff --git a/docs/codox/cc.journeyman.simulated-genetics.launcher.html b/docs/codox/cc.journeyman.simulated-genetics.launcher.html
new file mode 100644
index 0000000..0d308bd
--- /dev/null
+++ b/docs/codox/cc.journeyman.simulated-genetics.launcher.html
@@ -0,0 +1,8 @@
+
+cc.journeyman.simulated-genetics.launcher documentation
\ No newline at end of file
diff --git a/docs/codox/cc.journeyman.simulated-genetics.makehuman-bridge.html b/docs/codox/cc.journeyman.simulated-genetics.makehuman-bridge.html
new file mode 100644
index 0000000..cf615dc
--- /dev/null
+++ b/docs/codox/cc.journeyman.simulated-genetics.makehuman-bridge.html
@@ -0,0 +1,6 @@
+
+cc.journeyman.simulated-genetics.makehuman-bridge documentation
Bridge to MakeHuman, in an attempt to use it to generate character models.
+
NOTE: Currently not under active development. I’ve failed to get this to work, but, even if I succeeded, it would be a very complex and fragile solution.
+
initialise-makehuman!
(initialise-makehuman! mh-path)
Initialise the local instance of MakeHuman. mh-path should be a valid path to the directory in which MakeHuman is installed, i.e. the directory which contains makehuman.py.
\ No newline at end of file
diff --git a/docs/codox/cc.journeyman.simulated-genetics.utils.html b/docs/codox/cc.journeyman.simulated-genetics.utils.html
new file mode 100644
index 0000000..223a739
--- /dev/null
+++ b/docs/codox/cc.journeyman.simulated-genetics.utils.html
@@ -0,0 +1,8 @@
+
+cc.journeyman.simulated-genetics.utils documentation
Number of bits we’re actually using. NOTE THAT as this implementation is based on Java longs, this number must not be more than 63 or else we’ve a lot of rewriting to do.
\ No newline at end of file
diff --git a/docs/codox/intro.html b/docs/codox/intro.html
new file mode 100644
index 0000000..ff3b1cf
--- /dev/null
+++ b/docs/codox/intro.html
@@ -0,0 +1,5 @@
+
+Introduction to simulated-genetics
+
+
diff --git a/project.clj b/project.clj
index cc21e9f..3e428f5 100644
--- a/project.clj
+++ b/project.clj
@@ -1,15 +1,28 @@
(defproject simulated-genetics "0.1.0-SNAPSHOT"
- :description "A lightweight simulation of genetics, for use in games only."
- :url "http://example.com/FIXME"
- :license {:name "GNU General Public License,version 2.0 or (at your option) any later version"
- :url "https://www.gnu.org/licenses/old-licenses/gpl-2.0.en.html"}
+ :cloverage {:output "docs/cloverage"
+ :codecov? true
+ :emma-xml? true}
+ :codox {:froboz.cloverage {:output "docs/cloverage"
+ :codecov? true
+ :html? true
+ :debug? true}
+ :metadata {:doc "**TODO**: write docs"
+ :doc/format :markdown}
+ :output-path "docs/codox"
+ :source-uri "https://github.com/simon-brooke/the-great-game/blob/master/{filepath}#L{line}"}
:dependencies [[clj-python/libpython-clj "2.025"]
[com.taoensso/telemere "1.0.0-beta3"] ;; Peter Taoussanis' new replacement for Timbre
- [jme-clj "0.1.13"]
+ [jme-clj "0.1.13"]
[org.clojure/clojure "1.11.1"]
- [org.clojure/tools.cli "1.1.230"]
+ [org.clojure/tools.cli "1.1.230"]
[org.jmonkeyengine/jme3-core "3.6.1-stable"]]
+ :description "A lightweight simulation of genetics, intended for use in games only."
+ :license {:name "GNU General Public License,version 2.0 or (at your option) any later version"
+ :url "https://www.gnu.org/licenses/old-licenses/gpl-2.0.en.html"}
:main ^:skip-aot cc.journeyman.simulated-genetics.launcher
+ :plugins [[lein-cloverage "1.2.2"]
+ [lein-codox "0.10.8"]]
:target-path "target/%s"
:profiles {:uberjar {:aot :all
- :jvm-opts ["-Dclojure.compiler.direct-linking=true"]}})
+ :jvm-opts ["-Dclojure.compiler.direct-linking=true"]}}
+ :url "http://example.com/FIXME")
diff --git a/src/cc/journeyman/simulated_genetics/makehuman_bridge.clj b/src/cc/journeyman/simulated_genetics/makehuman_bridge.clj
index a512f0f..524a3ec 100644
--- a/src/cc/journeyman/simulated_genetics/makehuman_bridge.clj
+++ b/src/cc/journeyman/simulated_genetics/makehuman_bridge.clj
@@ -1,5 +1,9 @@
(ns cc.journeyman.simulated-genetics.makehuman-bridge
- "Bridge to MakeHuman, in an attempt to use it to generate character models."
+ "Bridge to MakeHuman, in an attempt to use it to generate character models.
+
+ **NOTE**: Currently not under active development. I've failed to get this
+ to work, but, even if I succeeded, it would be a very complex and fragile
+ solution."
(:require [libpython-clj2.require :refer [require-python]]
[libpython-clj2.python
:refer [as-python as-jvm ->python ->jvm get-attr call-attr
@@ -45,7 +49,8 @@
(format "sys.path.append('%s')" mh-path)
(format "exec(open('%s/makehuman.py').read())" mh-path)
"from lib.core import G"
- "G.app.mhapi.internals.getHuman()"
+ "G.app.mhapi.internals.getHuman()"
+ ;; fails here with "AttributeError: 'NoneType' object has no attribute 'mhapi'"
]))
(defmacro initialize-makehuman!