Enno Rehling
f2c02232cd
http://bugs.eressea.de/view.php?id=2207
...
check that there are any regions that we can seed new factions into
don't run into endless loop
2016-07-30 22:01:10 +02:00
Enno Rehling
f97b6c9821
bug: learn_skill was not learning the right skill
...
refactor: further reduce learn_skill_depr usage
2016-03-24 13:01:42 +01:00
Enno Rehling
b5a4faa745
deprecate learn_skill taking a double
...
- introduce days-based learn_skill
- add a simple test
2016-03-24 12:51:21 +01:00
Enno Rehling
02cfacd7f8
refactorings
...
- learn_skill from unit.c to study.c
- add academy.c module
2016-03-09 14:52:50 +01:00
Enno Rehling
01e864273a
crash with an assert if Lua code has syntax errors.
...
this addresses issue #474
also, correct capitalization of Lua.
2016-02-09 21:34:24 +01:00
Enno Rehling
1201a6b739
unused variable, bad version check
2016-02-09 07:06:07 +01:00
Enno Rehling
0189111876
update key attribute api
...
prepare to replace at_key. do not return the internals. add basic test.
2016-02-09 06:43:19 +01:00
Enno Rehling
91f894b290
teleport.c is the astral space implementation, and it is not one of the core concepts, so move it out of the kernel/ directory
2016-01-28 12:25:16 +01:00
Enno Rehling
4f7b274bf6
Merge branch 'master' into develop
...
Conflicts:
res/core/messages.xml
src/buildno.h
2016-01-01 16:38:57 +01:00
Enno Rehling
e1f3b3cdcf
passing order object into lua use-functions, so we can use them in error messages.
2015-12-30 21:20:59 +01:00
Enno Rehling
a4cb5e2906
replace all get_param_* for global.parameters with config_get_*
2015-11-22 10:44:46 +01:00
Enno Rehling
87a47e241c
CID 22479 Dereference after null check
...
CID 22478 Dereference after null check
CID 22477 Dereference after null check
CID 22476 Dereference after null check
CID 22475 Dereference after null check
2015-11-04 11:23:57 +01:00
Enno Rehling
09efd9c2a9
fix anything that uses the calendar module. opps.
2015-09-12 12:54:49 +02:00
Enno Rehling
9312b44f8e
move seen_region logic to a separate seen.[hc] module for testing.
...
currently failing test:
1) Failure (tests.report.test_lighthouse):
./scripts/tests/common.lua:1051: true expected but was false
2015-09-08 09:56:56 +02:00
Enno Rehling
4c32fe19ee
eliminate some dead code that was still marked with TODO.
2015-08-21 10:54:09 +02:00
Enno Rehling
083c848db1
merge with latest hotfix
2015-07-12 04:53:10 +02:00
Enno Rehling
7906d4469d
return to old mechanism of equipping the first unit, and give some basic necessities to special races.
2015-07-05 16:40:49 +02:00
Enno Rehling
4e33e59d64
more lua_pushinteger conversion for lua 5.3
2015-06-08 21:19:17 +02:00
Enno Rehling
2967cd59cf
replace pushnumber with pushinteger where applicable (prep for Lua 5.3).
...
also kill an unreferenced string.
2015-06-08 20:53:40 +02:00
Enno Rehling
70eda58604
Merge branch 'develop' of github.com:eressea/server into develop
...
Conflicts:
src/CMakeLists.txt
2015-05-17 17:52:41 +02:00
Enno Rehling
177d1c701f
Merge branch 'lua-test-framework' of https://github.com/badgerman/eressea into badgerman-lua-test-framework
...
Conflicts:
src/kernel/region.c
src/util/log.h
2015-05-17 17:39:10 +02:00
Enno Rehling
df325b243a
enable stricter conversion checking for gcc < 4.9, fix code
2015-05-15 20:35:36 +02:00
Enno Rehling
42783ff02c
binding a magician's spellbook to Lua, with test.
2015-05-05 08:44:58 -07:00
Enno Rehling
e2421b3fe7
make lua errors show up on stderr, always (log_fatal).
...
this could have been prettier. log.c could use some loving.
2015-02-23 02:47:08 +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
7bfb14b4e6
Resolve naming confusion, rename object and bind_hashtable.
...
They implement a dict-style thing, so let's call it that.
2015-01-17 13:34:48 +01:00
Enno Rehling
23b8f2bc8a
call init_locales after parse_json from Lua, downgrade missing string warnings during that to DEBUG (because it's quite common not to have them).
...
also, these int to bool conversion warnings made a good point, even if I could not reproduce them.
2015-01-08 20:55:29 +01:00
Enno Rehling
9453aff7f5
fix running game-specific tests for E3, add them to the test suite.
2014-12-31 21:07:42 +01:00
Enno Rehling
5b9eb9080f
refactoring: move all monster-related code into monster.c
...
make some features depend on being NPCs, not monster faction.
2014-11-11 16:53:56 +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
526c561b90
some minor cleanup in laws.h
2014-10-29 21:08:16 +01:00
Enno Rehling
ae9ed99cd9
fixing linux build
2014-08-29 07:47:47 +02:00
Enno Rehling
a9a0455207
reorganized directory structure.
...
flattening the directory structure, moving some modules to the src/ directory.
making stealth a separate file, under test.
more tests for some stuff.
2014-08-27 06:40:35 +02:00
Enno Rehling
920902f8eb
replace resource_type::_name array with a single string.
2014-08-24 23:58:30 +02:00
Enno Rehling
4c00777553
make race::_name a string, not an array of strings. add a test for rc_name.
2014-08-24 23:58:29 +02:00
Enno Rehling
804734d013
MSVC: disable level 4 warning C4100 for tolua-generated code (unused variable)
...
make a single object from all generated binding code.
this setup is unusual, but easier to maintain.
2014-08-14 19:39:17 +02:00
Enno Rehling
afd41286b5
config file reading based on game name and install location.
2014-08-03 20:37:05 +02:00
Enno Rehling
d9457a2488
rewrite of the Lua module system.
...
At this time, only E2 is working.
Fixing a lot of old code (monster is no longer id 0).
package.paths configured from eressea.ini
install directory configured from eressea.ini
moving building_action into a seaprate module (it's deprecated)
2014-07-26 22:52:25 +02:00
Enno Rehling
44327d91f6
setting the rules directory with -r (overrides config.rules from eressea.ini)
2014-07-23 15:44:57 +02:00
Enno Rehling
bff25f3c51
move skill_t into a separate file, give it unit tests.
...
name functions the same as we did for keyword/direction earlier.
to do: json configuration and lua test.
2014-06-20 23:59:04 -07:00
Enno Rehling
eb567918e5
forgot to init the bindings for game.pkg
...
next problem to solve: skills
2014-06-17 23:50:13 -07:00
Enno Rehling
64e0c221ec
directions can now be read from json configuration.
...
rename a couple of functions for more consistency across modules.
2014-06-15 22:17:08 -07:00
Enno Rehling
812cb98dff
begin binding locales (need to init_locales in the right place, still).
...
fix indentation in some places.
add some assertions.
2014-06-14 07:52:32 -07:00
Enno Rehling
e27bde06ac
bindings for error logging, phase 1.
...
better error reporting for json parse errors.
2014-06-13 13:02:03 -07:00
Enno Rehling
d503937999
working on making json config understand ships and buildings.
...
new tests in progress.
remove giveitem.c attribute, the name clashed with a trigger,
and it was only part of an arena that is gone from the game, I think.
2014-06-12 22:14:07 -07:00
Enno Rehling
b84bf7ba56
add json configuration parser to lua bindings.
2014-06-12 17:39:09 -07:00
Enno Rehling
fa98528d72
remove old SQL patch code, we have sqlite now.
...
rearrange the SlickEdit projects.
2014-06-11 22:21:52 -07:00
Enno Rehling
28726e2bea
update cmake to compile without sqlite3, curses or libxml2 installed.
...
This is not actually recommended, but your system may not have
this,and you should still be able to contribute. also, libxml2 is on
the way out, I am beginning to really hate it.
Moving a couple of files around.
2014-06-11 20:30:34 -07:00
Enno Rehling
3c4b6b9dd4
rename message.[hc] to messages.[hc] in kernel because of naming conflict with util/
...
begin json config files (WIP)
2014-06-09 09:56:49 -07:00
Enno Rehling
19a21772e4
stop tests from crashing
2014-05-04 15:54:56 -07:00