Commit graph

143 commits

Author SHA1 Message Date
Enno Rehling
b63200adf9 Eressea can now be compiled and debugged with Eclipse CDT
Several changes to config.h mean that I probably broke compilation on some platforms. That really needs cleaning up.
2008-04-20 14:48:15 +00:00
Enno Rehling
3e475d63ad SIMPLE_ESCAPE and SIMPLE_COMBAT no longer needed. 2008-03-29 09:15:14 +00:00
Enno Rehling
73f354be90 http://eressea.upb.de/mantis/view.php?id=1201
- "n" wird nicht mehr als NAECHSTER erkannt.

also:
- misc fscanf() tests.
- fixing --noreports
2008-01-08 20:00:19 +00:00
Enno Rehling
06e15c24d5 - fixing snprintf calls gone wild 2007-12-17 23:56:53 +00:00
Enno Rehling
a5d98c8efe fix missing regions 2007-12-09 10:40:45 +00:00
Enno Rehling
c2c276e0d3 converting output to stdio for windows CP1252 2007-10-28 23:05:47 +00:00
Enno Rehling
81de21fcb8 Cache Optimizations:
- do prepare_reports simultaneously
- make battle-sides more cache-local
- avoid dereferencing bfaction for the faction
- avoid dereferencing side for the index
2007-10-27 15:09:36 +00:00
Enno Rehling
79dc9acf5f - fixing race prefixes
- fixing some latin1 loading
- improved the spell-syntax writer
- replaced my email address
2007-09-02 18:11:17 +00:00
Enno Rehling
46df3bca2a fixes for the previous hasty commit 2007-09-02 16:24:34 +00:00
Enno Rehling
af36f06b15 i18n progress: moved all curseinfo messages to XML file, removed info_str 2007-09-02 15:42:48 +00:00
Enno Rehling
a1865ee2fa - Undo modifications to strlcpy from rev 3631
- Many more warnings when buffers too small.
2007-09-01 23:40:58 +00:00
Enno Rehling
28fa9e5d81 - bugfixes for snprintf, warnings for overflowing static buffers
- some English messages
2007-09-01 21:52:13 +00:00
Enno Rehling
c3283925b6 Unicode QA:
- irritating comma in HELP status- 
- localized roads in NR
- new function for trails
- lua fix get_resource(horse)
2007-08-28 06:19:31 +00:00
Enno Rehling
8fbb513b63 Unicode WIP:
- NR is being written
- NR and Template get a UTF8 BOM

I'm running out of ideas. I must be nearly ready.
2007-08-19 17:30:40 +00:00
Enno Rehling
28921d4e3d Unicode WIP: we're compiling on Linux 2007-08-18 14:54:35 +00:00
Enno Rehling
d4d6776b50 Unicode WIP, backward compat:
- latin1 reader for datafile
- latin1 reader for orders

a number of minor conversion bugs fixed, this version can now run a turn and write reports, it seems.
2007-08-12 09:51:26 +00:00
Enno Rehling
b837248601 !this commit does not compile!
Unicode WIP:
- removed xmlChar and returned everything to char * again, now that conversion is complete.
- added option to specify orderfile and daatafile encoding in .ini file

currently: implementing reading of latin1 datafiles for backward compatibility
2007-08-10 07:03:23 +00:00
Enno Rehling
6acb1e22c5 - fixed the summary.c
- implemented unicode_utf8_strcasecmp function
- fixed some xml files
- code compiles and runs on the console

TODO:
* switch from xmlChar to char again
* eliminate remaining warnings
* report.[hc] are still disabled

OPTIONAL:
* handle latin1 input?
2007-08-09 06:42:37 +00:00
Enno Rehling
940d236edc - filereader.c rewritten since the initial implementation is in the moving van.
- moved some summary functionality (emails, aliases) to Lua code
- made default.lua an include for all the different run-scripts

report.c is the last file that needs some work, everything else should be fine. Most importantly, all the messages are not internationalized, so that means just about no more German in the code. Yay!
2007-08-08 07:43:24 +00:00
Enno Rehling
55e0656250 unicode branch gets premake 2007-08-05 12:19:56 +00:00
Enno Rehling
d48d8ec348 Unicode WIP:
- Visual C++ 2005 project files
- Savegames
- i18n for many more spells
2007-07-17 15:33:48 +00:00
Enno Rehling
260d518fa1 WIP, does not compile: Unicode (UTF8) conversion of absolutely everything. Mi'kmaq hieroglyphic writing FTW! 2007-06-26 09:32:28 +00:00
Enno Rehling
25cd0e4b66 added an option to have certain races supply a description without a need to
set u->display everywhere. This was costing 24 MB of memory just for the
braineaters alone, a terrible waste.
2007-06-25 01:50:34 +00:00
Enno Rehling
96a2b1c779 Include cleanup. 2007-06-20 00:34:02 +00:00
Enno Rehling
41a9ffb7b3 compile fixes, report fixes 2007-03-09 23:38:13 +00:00
Enno Rehling
1030e44c07 - All the cinfo_* functions will now return a message * object, which is nicer than using buf[].
- Some English translation.
2007-03-09 21:30:00 +00:00
Enno Rehling
da224f6670 Cleanup in cinfo_ code, although I would prefer that it doesn't write into buf but returns a message *. sometime later. 2007-03-07 22:38:04 +00:00
Enno Rehling
07ecc3e517 calling getplane() and rplane() is a real waste of cycles (and happens enough to shortcut it) 2007-03-01 21:51:35 +00:00
Enno Rehling
523f47eb58 maximum backup (2 minutes) 2007-02-25 12:58:53 +00:00
Enno Rehling
546d3a2e1d sleep/retry when errno during report writing, small fix 2007-02-25 11:52:56 +00:00
Enno Rehling
27c188ea1c report directory in .ini file
sleep/retry when errno during report writing.
2007-02-25 11:10:13 +00:00
Enno Rehling
602853f0e2 Message-fixes 2007-02-25 09:02:43 +00:00
Enno Rehling
6c74bce4cd Khadar-induced translations of mostly combat stuff. 2007-02-22 22:53:53 +00:00
Enno Rehling
3567e3f783 http://eressea.upb.de/mantis/view.php?id=1141
"Partei fehlt im Report"

Behandlung von Turmregionen. Hoffentlich richtig.
2007-02-21 19:59:27 +00:00
Enno Rehling
67fd90f3fc http://eressea.upb.de/mantis/view.php?id=1136
"Großteil der Parteinamen fehlt im Report"

Auf-/Absteigende Reihenfolge der see_* Prioritaeten verwechselt.
2007-02-18 11:28:38 +00:00
Enno Rehling
05087b6d8e wrong region used 2007-02-14 22:47:38 +00:00
Enno Rehling
2220f4b2c3 http://eressea.upb.de/mantis/view.php?id=1043
"Partei fehlt im cr"

Bei Einheiten, die auf der Durchreise (auf dem Ozean) gesichtet wurden fehlte manchmal der entsprechende Partei-Block im cr.

Das gehoert getestet, glaube ich :-)
2007-02-14 22:06:06 +00:00
Enno Rehling
91e7829b3c http://eressea.upb.de/mantis/view.php?id=975
"SPIONIERE bringt durchwegs falsche Resulate"

Falsche Schleife. Bei der Gelegenheit Spionage nach spy.c verlegt, und das ganze wegen der Sprueche die es brauchen in ein anderes Directory verschoben, auch wenn ich eigentlich meine, da gehoert es nicht hin...

Jamfile-Anpassungen kommen gleich.
2007-02-03 14:09:03 +00:00
Enno Rehling
94966e8eda sanity-checks for potential divisions by zero (u->number) 2006-10-15 14:09:59 +00:00
Enno Rehling
ae41442b01 Fix der NMR-Berechnung 2006-08-20 16:23:46 +00:00
Enno Rehling
c3e4e828a8 NMR-Zaehlung auch fuer LUA 2006-08-20 13:32:03 +00:00
Enno Rehling
b89721873c http://eressea.upb.de/mantis/view.php?id=905
"fehlende Info bei OPTION TALENTVERSCHIEBUNG mit Dämonen"
Anzeige von Daemonentalenten mit OPTION TV, auch wenn sie auf 0 gefallen sind.
2006-08-01 22:35:26 +00:00
Enno Rehling
7b76da7c39 count_unit(u) bestimmt, welche einheiten zum partei-limit gezaehlt werden. Das sollten alle sein, sind's aber vorlaeufig nicht.
ausserdem ein bischen code-cleanup.
2006-07-29 14:04:49 +00:00
Enno Rehling
3fb3e7b201 New way of storing attrib-lists should make it faster to find a specific one and jump over entire classes of attribs. 2006-02-25 00:12:48 +00:00
Enno Rehling
b7552f0d06 - New random number generator
- Faster get_pooled/use_pooled
- faster peasants()
- faster plagues()
- faster horses()
2006-02-19 22:43:56 +00:00
Enno Rehling
dceb83c6a7 The incomplete fspecial functions cause quite a bit of attribute-lookups, so I'm putting them in a #define until they get implemented (if ever).
#define KARMA_MODULE is you want to use fspecial in the future.
2006-02-17 22:59:03 +00:00
Enno Rehling
61a6a52665 Bessere hashgröße für seenhash 2006-02-14 23:03:49 +00:00
Enno Rehling
bc2cedd34f fix invalid create_mage calls
prepare to re-enable worldmap
remove some dead code
2006-01-29 08:50:53 +00:00
Enno Rehling
64318eaab3 ugroups code entfernt:
- Es ist unwahrscheinlich, dass er je genutzt wird,
- Er ist nicht vollständig
- Er ist gründlich veraltet
2006-01-22 23:29:15 +00:00
Enno Rehling
55b9af27c2 http://eressea.upb.de/mantis/view.php?id=787
Signifikanter CR/NR-Unterschied 

- das Regionsintervall wurde in write_plaintext() nicht korrekt benutzt.
2006-01-21 08:34:01 +00:00