Enno Rehling
c124702ffe
merge order_id branch
2017-11-26 15:20:38 +01:00
Enno Rehling
599efb2e76
remove lomem code, it was a bad idea
2017-11-25 20:24:57 +01:00
Enno Rehling
2224b59ff9
organize database drivers in their own directory
2017-11-18 12:55:07 +01:00
Enno Rehling
d2356d9e4f
fix name of config variables.
2017-11-12 14:32:08 +01:00
Enno Rehling
9f778c0ae9
fix symetric db_open and db_close calls.
2017-11-09 20:17:06 +01:00
Enno Rehling
35742e8870
BUG 2376: Abtreiben zeigt immer Nordwesten an.
2017-10-30 18:01:33 +01:00
Enno Rehling
d959fe657c
make --version exit immediately after (short) version info
2017-03-28 16:01:10 +02:00
Enno Rehling
7ee5a3624e
allow game.start in ini file
2017-03-27 08:57:35 +02:00
Enno Rehling
733c754e0f
rename some configuration options.
...
add them to the valid keys for eressea.ini, too.
2017-03-25 14:15:01 +01:00
Enno Rehling
ba3f3a17d3
require that main.c declare any ini variables that we might expect.
2017-03-12 21:03:38 +01:00
Enno Rehling
4b88a5abc7
BUG 2301: validate [game] section in eressea.ini
...
load_inifile is old stuff, should use config_get instead.
2017-03-12 19:48:44 +01:00
Enno Rehling
4e5f1d05ce
Be very strict about C standards.
...
Compile with -std=c89 in gcc.
remove all // comments (they are nice, but unnecessary).
variables only declared at start of block.
various pedantery.
backwards compatible va_copy for pre-C99 gcc.
2017-02-18 21:15:14 +01:00
Enno Rehling
17ff2ead41
make_locales from config_get
2017-02-12 05:52:46 +01:00
Enno Rehling
9f3f1bf41d
fix runtests.bat experience (doh!)
2017-02-02 19:30:29 +01:00
Enno Rehling
e9a5a79c65
make my visual studio debugging experience the same as before (-r is like -c)
2017-02-02 19:28:46 +01:00
Enno Rehling
ae83448e4a
Deveron is now just E3 with a different name.
...
remove a lot of duplication.
add a -c option to specify a path for eressea.ini
2017-02-02 10:10:21 +01:00
Enno Rehling
ebbe4fa4ac
issue #629 : fix eressea.ini config
...
fixed reading of ini data into config (keys have a . here, not a :).
added a test.
removed obsolete global.inifile variable.
2017-01-21 19:53:47 +01:00
Enno Rehling
23e0943baa
read game configuration data from .ini file
2017-01-21 18:54:08 +01:00
Enno Rehling
1b2bfc7995
rename [eressea] section to [game]
2017-01-20 19:43:53 +01:00
Enno Rehling
a4d8d36aec
issue #621 : delete battledebug code
2017-01-11 14:53:35 +01:00
Enno Rehling
e52cf75c59
remove autoconf.h from platform.h, fix lots of includes
2016-11-25 20:15:11 +01:00
Enno Rehling
a601a675f6
reduce config.h even more.
...
let's get all those global variables out of there.
2016-11-17 10:42:20 +01:00
Enno Rehling
f1d07fb647
I no longer use CRTDBG to find bugs. Valgrind rules.
2016-10-29 10:53:18 +02:00
Enno Rehling
318cf68e1b
move version string into a single object file
2016-09-16 16:30:17 +02:00
Enno Rehling
0124bafdc4
delete dead code
2016-09-11 16:44:35 +02:00
Enno Rehling
7807f83830
fix compilation (buildno.h is gone)
2016-09-10 17:43:06 +02:00
Enno Rehling
e200952e87
new version numbering in version.h
...
eliminate buildno.h
TODO: update build scripts
2016-09-10 17:41:44 +02:00
Enno Rehling
c352ab9f8e
move game-version information fom version.h to gamedata.h
2016-09-10 17:21:17 +02:00
Enno Rehling
731238dfb1
support different editor codepages
2016-08-07 19:19:35 +02:00
Enno Rehling
c5d266ff72
better defaults for logging to file and stderr.
...
https://bugs.eressea.de/view.php?id=2224
2016-08-05 22:15:41 +02:00
Enno Rehling
eebdcf5d93
control log level from command line (with -l, like -v)
...
make newplayer.lua use the autoseed module, eliminate duplication
seeding new players is broken
Conflicts:
src/gmtool.c
src/main.c
src/util/log.c
src/util/log.h
2016-07-30 22:46:57 +02:00
Enno Rehling
8a3bb35987
eliminate global log_flags, revert the mode arguments for fopen.
...
turns out that text is default, and windows hates it if I open a binary file without 'b'
standardize on using join_path to create filenames
(use backslash on windows, even though fopen doesn't seem to care).
2016-02-05 23:10:05 +01:00
Enno Rehling
2f2bbb16ab
remove wild mkdir calls all over the code, catch EEXIST errors
...
use join_path more consistently
fix a test that's intermittent on windows because fopen(..., "wb") fails, why?
2016-02-01 09:26:24 +01:00
Enno Rehling
3e57b19d62
stop duplicate parsing of arguments
2016-01-31 21:36:01 +01:00
Enno Rehling
8f4e6475c7
complete redesign of the log library (almost finished?)
2016-01-31 19:54:49 +01:00
Enno Rehling
b05fe9316a
introducing config_set and config_get so we don't have to refer to globals.parameters everywhere
2015-11-22 10:33:31 +01:00
Enno Rehling
a027139057
remove global variable `verbosity` in favor of static in main.c (use log_* functions everywhere)
2015-09-12 20:58:09 +02:00
Enno Rehling
06a04d0e20
fix logging for sp_igjarjuk, temporarily set log-levels for the game to error|warn|info
...
remove some code that accesses `verbosity` variable (todo: hide it more, fix logging)
2015-09-12 19:48:03 +02:00
Enno Rehling
7087c0e0ab
Update to latest submodules, fix iniparser and critbit.
...
I did this before, must have lost it in the merge. Crazy.
2015-07-12 10:38:01 +02:00
Enno Rehling
80deef30b0
additional clang warning for tautological comparisons.
...
added to catch a /Wall VS warning in Travis builds.
2015-06-01 08:04:46 +02:00
Enno Rehling
c54cbfd472
fix copyright notice
2015-01-30 22:10:29 +01:00
Enno Rehling
abca25d1d5
fix indentation in every file
...
fix copyright date
remove vi ts=2 code
remove a couple of superfluous extern declarations
2015-01-30 20:37:14 +01:00
Enno Rehling
798b3d6ad6
Implement tests for magicpath. They are failing (Bug 2066).
...
Also move spell and race initialization code from being server-only into game_init, where tests can use it.
2015-01-12 08:18:41 +01:00
Enno Rehling
3428f40f81
load inifile in main, it is only used by the server.
...
this should fix the broken CI build.
2014-12-09 06:01:10 +01:00
Enno Rehling
49493fa630
fix typo in last commit.
...
package is a standard lua module, not a good variable name.
log name of script.
2014-11-06 07:53:15 +01:00
Enno Rehling
1af315ebf2
move magic out of kernel, into src.
...
clean up/remove a ton of includes, especially of types.h (include in header if you need it, not in every .c file).
2014-11-01 12:57:01 +01:00
Enno Rehling
81bfb598d0
refactoring modules, cleaning out the config.c kitchen sink.
...
- cansee_* rules to laws.c
- translations to language.c
- stealth to attributes/,
- rename build.h -> buildno.h
2014-11-01 12:09:56 +01:00
Enno Rehling
932a615837
refactoring: special directions into their own file (vortex.c).
...
moving spells.c out of spells.
figured that movewhere should be in move.c
2014-08-27 21:30:24 +02:00
Enno Rehling
7d17cafdd6
simple tests for build().
...
cleaning up the code to give it a common setup function.
change the golem code to use flag, not hard-coded race.
unify the golems, make code more readable, kill a block of unused code.
2014-08-24 17:09:32 +02:00
Enno Rehling
afd41286b5
config file reading based on game name and install location.
2014-08-03 20:37:05 +02:00