Permalink
Browse files

* All creature related parameters are tuneable without recompiling. …

…For example: creature_config.runner_speed = 400. See creature_config.gperf for the full list of variables.

 * 'lio' command renamed to 'bio'
 * The command line options of infond are available in the global variable 'argv'. You can use it in config.lua.
 * 'get_hitpoints' and 'get_attack_distance' deprecated. Use creature_config if you need them.
 * New 'hint' command. If you have other hints you would like to see here, contact me!


git-svn-id: http://infon.googlecode.com/svn/trunk@205 8171fb75-e542-0410-96e4-03d5dd800671
  • Loading branch information...
1 parent 602d98d commit f5b20d72226c2621b5292830b21520c45002edee @dividuum committed Jun 15, 2007
Showing with 344 additions and 194 deletions.
  1. +7 −2 Makefile
  2. +19 −4 config.lua
  3. +130 −158 creature.c
  4. +4 −2 creature.h
  5. +68 −0 creature_config.gperf
  6. +4 −0 demo-decode.rb
  7. +1 −0 game.c
  8. +35 −0 hints.lua
  9. +11 −2 infond.c
  10. +23 −3 infond.lua
  11. +3 −18 player.c
  12. +18 −0 player.lua
  13. +21 −5 server.lua
View
@@ -153,7 +153,7 @@ dist:
$(MAKE) clean
$(MAKE) linux-server-dist
-source-dist: REVISION
+source-dist: REVISION creature_config.h
tar cvzh -C.. --exclude ".svn" --exclude "infon-source*" --file infon-source-r$(REVISION).tgz infon
win32-client-dist: $(INFON_EXECUTABLE) $(SDL_RENDERER) $(GL_RENDERER)
@@ -199,6 +199,11 @@ $(GL_RENDERER): gl_video.o gl_gui.o gl_mdl.o misc.o
$(LILITH_RENDERER): lilith_gui.o misc.o lilith/lilith/liblilith.a
$(CC) $^ $(LDFLAGS) -shared -o $@
+creature.c: creature_config.h
+
+creature_config.h: creature_config.gperf
+ gperf --output-file=$@ -c -C -t $^
+
infon.res: infon.rc
$(WINDRES) -i $^ -DREVISION="\\\"$(REVISION)\\\"" --input-format=rc -o $@ -O coff
@@ -219,4 +224,4 @@ clean:
distclean: clean
$(MAKE) -C $(LUA) clean
- -rm -f infon*.zip infon*.tgz *.orig *.rej infond-*.demo infond-wrapper REVISION
+ -rm -f infon*.zip infon*.tgz *.orig *.rej infond-*.demo infond-wrapper REVISION creature_config.h
View
@@ -83,6 +83,16 @@ debugger = false
-- disabled on a public server.
speedchange = false
+-- Use this section to automate competitions. information about
+-- the fight will be written into 'log'. the bots in 'bots' will
+-- automatically join the game. Each of them takes the same
+-- parameters as shown in the autoexec example below.
+-- Set the parameters 'maps', 'time_limit', 'score_limit' as you
+-- wish. 'listenaddr' should be set to nil so nobody can join
+-- this server. the server will terminate once all maps were
+-- played once. The infond command line options are available
+-- in the table 'argv'.
+--
-- competition = {
-- log = "competition.log";
-- bots = {
@@ -101,10 +111,15 @@ speedchange = false
-- Things to do once after the first game started
--
-- function autoexec()
--- start_bot{ source = "contrib/bots/easybot.lua",
--- name = "foo",
--- password = "secret",
--- api = "state" }
+-- -- Change runner speed
+-- creature_config.runner_speed = 1000
+--
+-- -- Join a bot
+-- start_bot{ source = "contrib/bots/queener.lua",
+-- name = "Queener",
+-- password = "topsecret",
+-- log = "queener.log",
+-- api = "oo" }
-- end
-- function checking user/password combinations.
Oops, something went wrong.

0 comments on commit f5b20d7

Please sign in to comment.