Commit Graph

684 Commits

Author SHA1 Message Date
Enno Rehling 40898eea55 http://eressea.upb.de/mantis/view.php?id=1365
"ALLES funktioniert nicht bei GIB"
- disabling OPTION MATERIALPOOL
2008-02-12 18:26:30 +00:00
Enno Rehling 16c3b68114 http://eressea.upb.de/mantis/view.php?id=1355
"Falsche Regionsbeschreibung"
- removing descriptions from non-land regions.
2008-02-03 22:56:54 +00:00
Enno Rehling 86f89be914 http://eressea.upb.de/mantis/view.php?id=1344
"Kampfallianzen fehlerhaft"
- undeda unit had wrong group
2008-02-03 21:40:45 +00:00
Enno Rehling da5aef2110 http://eressea.upb.de/mantis/view.php?id=1341
"Draigzauber Mächte des Todes ruft Skelette mit Talent Magie"
added some output as well
2008-01-07 20:45:10 +00:00
Enno Rehling e5ce17b6ef http://eressea.upb.de/mantis/view.php?id=1341
"Draigzauber Mächte des Todes ruft Skelette mit Talent Magie"
added a one-time fix
2008-01-07 20:43:16 +00:00
Enno Rehling 167651abab http://eressea.upb.de/mantis/view.php?id=1245
"giving heros to another faction"
2007-12-19 22:11:04 +00:00
Enno Rehling ef77f0ad2b http://eressea.upb.de/mantis/view.php?id=1332
Übergabe von Silber an die Bauern hat nicht funktioniert

- added give-item() functionality to lua
2007-12-18 07:51:04 +00:00
Enno Rehling f0203119ba lua: move ship 2007-12-17 17:55:51 +00:00
Enno Rehling 8dd186d303 illegal memory read, units must be freed very, very late. 2007-12-16 23:18:22 +00:00
Enno Rehling 09a08fb84a fixing the item use functions and making future fuckups less likely 2007-12-03 19:26:17 +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 f8398db851 - compiling in VS2005 on my new PC
- eliminating a couple of warnings
- fixed a crash bug or two in the -x option
- fixed an endless loop in give_item
2007-10-11 21:48:31 +00:00
Enno Rehling 05f56041c4 - fixed a bug in filereader (was reading the eol characters)
- added doug lea allocator
2007-09-11 19:33:00 +00:00
Enno Rehling ef2f892d8a - i18n for unit_dissolve messages 2007-09-03 19:52:51 +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 9af8bbb2bb xmllint should be in pre-commit rules... 2007-09-02 09:36:57 +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 9715493071 null-banners 2007-08-21 21:19:51 +00:00
Enno Rehling a33d59b21a Unicode WIP:
This code did a full run of turn 531, with all reports.

- replace all calls to strlcat with strlcpy
- change strlcpy to return number of bytes written, not input bytes
- fix some buffer sizes
- write UTF8 BOM into all output files that could use them.
2007-08-21 07:04:44 +00:00
Enno Rehling b132ffdd2b Unicode WIP:
- links on Linux (Jamfile changes)
- bugfix latin1/newfactions file
2007-08-19 20:40:42 +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 cae7e67fdf Unicode WIP
- Bugfix region::connect structure not initialized
- set encoding from Lua
2007-08-16 06:53:00 +00:00
Enno Rehling 9c88e406fd - .ini file ssettings for CRT debugging
- quick alloc-optimization for resolve.c
2007-08-15 06:27:40 +00:00
Enno Rehling 67184b0c96 Unicode WIP:
- building name changes
- locale optimization
- fixing some error messages
2007-08-13 07:29:39 +00:00
Enno Rehling dbfb50625e Unicode WIP:
- bugfixes ongoing
2007-08-12 13:02:24 +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 f013ead006 removing old visual studio files 2007-08-05 12:28:15 +00:00
Enno Rehling 8e897d29be movement.h -> move.h 2007-08-05 12:26:46 +00:00
Enno Rehling 55e0656250 unicode branch gets premake 2007-08-05 12:19:56 +00:00
Enno Rehling e63c3dc4a1 Unicode WIP:
- creport.c compiles
2007-07-22 09:31:39 +00:00
Enno Rehling 7031e9d032 Unicode WIP:
- a lot of set_string calls replaced.

Now I mostly have to work on the report-writing code and this is done.
2007-07-21 15:35:07 +00:00
Enno Rehling d2094d6205 Unicode WIP:
- completed i18n for combatspells and battle
adding the filereader header (the implementation is on my PC which is still in transit to Germany)
2007-07-20 07:28:11 +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 39ce1bd0dd Unicode WIP, does not compile.
- xmlStr functions have bad signatures, replacing them with defines in config.h
- more removal of buf[] usage
2007-06-27 00:08:46 +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 e3496dd9e9 gcc doesn't like __cdecl. why was this here? 2007-06-20 00:45:22 +00:00
Enno Rehling 96a2b1c779 Include cleanup. 2007-06-20 00:34:02 +00:00
Enno Rehling 878914636d include not necessary 2007-06-13 19:29:26 +00:00
Enno Rehling 4614664164 Invalid format specifier 2007-06-13 12:39:09 +00:00
Enno Rehling 9d72640755 Compiles with LUA 5.0, too 2007-06-11 23:56:04 +00:00
Enno Rehling 8c57e05798 Made Eressea compile and run with lua 5.1 2007-06-11 23:00:15 +00:00
Enno Rehling 54446e0a1e RTS/Archetypes (WIP):
- tested and fixed archetype-recruiting
2007-05-28 19:45:08 +00:00
Enno Rehling e639f53ea8 last commit didn't compile 2007-05-28 16:51:23 +00:00
Enno Rehling b27da8c056 Archetypes (WIP): "RECRUIT 15 knight"
creates XML-configurable pre-skilled units for game variants with faster reinforcements.
Speeding up locale-string lookup a little bit, and making it more unified for different classes of strings (so new ones are easily added).
2007-05-28 16:03:48 +00:00
Enno Rehling fa6192daf9 Christmas update: we celebrate Knut. 2007-05-27 21:48:29 +00:00
Enno Rehling 27110e7e26 http://eressea.upb.de/mantis/view.php?id=1191
- trying another peasant migration algorithm

also:
- battle log optional (debug = 0 in the .ini file)
2007-05-27 21:20:06 +00:00
Enno Rehling 9671629f47 Jamfile optimization 2007-05-03 11:08:51 +00:00
Enno Rehling c36b14e9e0 Nur Boote und Langboote koennen per Zauber fliegen.
Ein Item fuer den Flug von anderen Schiffen.
2007-04-22 01:10:38 +00:00
Enno Rehling af0a7b225a curse-flags funktionieren jetzt anders, und koennen per curse-type gesetzt werden so dass der spell es nicht tun muss, aber dann vom spell ueberschrieben werden (passiert per XOR). 2007-04-21 23:04:24 +00:00
Enno Rehling 6283910959 - Fehlermeldungen ueber fehlende item-infos und Rasseninfos entfernt
- Falsche Rasseninfos (Attacken) aus strings.xml entfernt
2007-04-08 08:24:09 +00:00
Enno Rehling f9a39f6717 bugfix 2007-03-11 21:46:45 +00:00
Enno Rehling e9feec08ba Routine fuer "Teure Fremde" hat auch Untote korrigiert. 2007-03-11 20:52:09 +00:00
Enno Rehling fc121f99a6 command line parsing starts after the - 2007-03-01 07:55:44 +00:00
Enno Rehling 3428e5bb93 Exporting score (was used for HSE4) 2007-02-28 22:15:23 +00:00
Enno Rehling f1a2a355d0 speedup for is_guarded(), which is more important with new combat code. 2007-02-25 13:35:52 +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 a615089853 compile-fixes 2007-02-23 21:22:14 +00:00
Enno Rehling 61a479ad3f More English translations for spells and other parts of the code (addmessage replacements FTW) 2007-02-23 21:18:35 +00:00
Enno Rehling d86835900f argh. lomem settings falschrum 2007-02-18 10:32:39 +00:00
Enno Rehling 96302d39b4 http://eressea.upb.de/mantis/view.php?id=1130
"Schattendämonen/-meister"

Es gibt ein neues Rassen-flag, dass das bestehelen fuer eine Rasse unterbindet. Wird eingesetzt fuer SD/SM.

Ausserdem: Eine Menge falsch gesetzter XML-tags repariert
2007-02-17 12:34:07 +00:00
Enno Rehling 8e9fb0f25b old command line option removed 2007-02-10 12:28:30 +00:00
Enno Rehling 4f5c8e1878 - removing demonfix
- adding ship.maxsize to lua interface
2007-02-07 17:58:31 +00:00
Enno Rehling 8c82b2815e more crashes caused by shipowner==NULL 2007-02-04 13:30:06 +00:00
Enno Rehling bb374629ba Angepasste Jamfiles 2007-02-03 15:26:28 +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 3b180b2980 gmtool compilation problem fixed. 2007-01-30 22:58:49 +00:00
Enno Rehling 2eb2bf56a9 Piraterie Crashfix 2007-01-21 09:25:23 +00:00
Enno Rehling e0f05aa9fd LUA: get_season() function 2007-01-13 21:34:32 +00:00
Enno Rehling 3067eb51ea region-keys and some renaming. 2007-01-13 21:29:57 +00:00
Enno Rehling 97342e5b81 http://eressea.upb.de/mantis/view.php?id=1096
Bergwächter können auch ohne Waffen bewachen.
2007-01-01 12:06:29 +00:00
Enno Rehling 96ef8640f3 verbosity in inifile
remove dead binding.
2006-11-22 22:17:15 +00:00
Enno Rehling 39d4c22186 Making this thing compile on windows. 2006-11-22 21:59:24 +00:00
Enno Rehling 71470c7fe2 added an ini-file reader to gmtool and server (the command line gets too damn long) 2006-11-22 21:07:48 +00:00
Enno Rehling 00d0bbc3b6 Removing some defines that have long become the norm for all games. 2006-11-04 21:38:25 +00:00
Enno Rehling fb63929d81 http://eressea.upb.de/mantis/view.php?id=1045
Einheit besitzt "-1 Sternenstaub"?

lua interface benoetigt Zugriff auf den Regionspool um use_-Funktionen korrekt zu implementieren.
Issue: 1045
2006-10-28 07:45:59 +00:00
Enno Rehling d8cff1f61f lua functions:
message_unit
  message_region
  message_faction
2006-10-04 22:25:39 +00:00
Enno Rehling c3e4e828a8 NMR-Zaehlung auch fuer LUA 2006-08-20 13:32:03 +00:00
Enno Rehling ed70863843 Total ohne Not mal wieder eine grosse Umstellung gemacht: Diesmal am Parser.
Okay, natuerlich habe ich damit was im Sinne: Das ist eine Vorbereitung auf voll geskriptete, neu zugefuegte Befehle und anderes Processing (aus Skripten). Fuer ein neues Spiel.

Hoffen wir, dass nicht zuviel kaputtgeht :-)
2006-08-12 19:15:16 +00:00
Enno Rehling 80e445fe96 guessing the name of the order file if it isn't specified. 2006-07-28 22:08:00 +00:00
Enno Rehling da6e342ff3 Lua extension: ships get a weight and capacity property. 2006-07-25 09:57:47 +00:00
Enno Rehling 19870b9b2b Distanzberechnungen in Lua 2006-07-24 23:18:38 +00:00
Enno Rehling 6b835e9b82 - Making the new highlight/select bindings work
- script to move selected regions
2006-05-25 22:34:58 +00:00
Enno Rehling 964387c834 Erweiterung, um aus einem vom gmtool heraus aufgerufenen Skript Regionen zu highlighten oder zu selektieren. Noch ungetestet. 2006-05-25 14:56:10 +00:00
Enno Rehling d72c0ab07e LUA: region.herbtype 2006-05-08 20:28:53 +00:00
Christian Schlittchen 10b1306b30 Diverse wdw-Fixes 2006-05-07 21:11:49 +00:00
Enno Rehling 978242f52c böser fehler in der fix_familiar() routine von letzter woche. 2006-04-22 18:43:58 +00:00
Enno Rehling da12fb8586 lua properties for get/set familiar. 2006-04-22 11:32:28 +00:00
Enno Rehling 4c3e912a30 added the forgotten bindings to gamecode 2006-04-17 10:08:13 +00:00
Enno Rehling 4d82a5eca3 saving also on 'S' (since F2 isn't reliable) 2006-04-16 17:26:50 +00:00
Enno Rehling 7c80bbfebb lua-skripting für gmtool fertig 2006-04-16 16:32:14 +00:00
Enno Rehling 1e5aeac0e5 familiarmage attribute in CR
bindings for the GM tool (selection, current region)
2006-04-16 16:11:16 +00:00
Enno Rehling 288961e38a lua bindings:
- moved gamecode-related ones to a new object file
- added bindings to the gmtool
- fixed scripts that used set_brain()
2006-04-16 14:18:09 +00:00
Enno Rehling ec1f6c9963 lua-gmtool kompiliert unter linux 2006-04-16 13:04:52 +00:00
Enno Rehling 4316903e9a lua for the gmtool 2006-04-16 12:48:55 +00:00
Enno Rehling 573d283e92 'H': highlight (by terrain/units/faction/ships/none)
'T': tag (by terrain/units/faction/ships/none)
't': tag/untag current region
2006-04-14 16:56:48 +00:00
Enno Rehling 5e57e78818 fix familiar-fixes 2006-04-09 19:19:18 +00:00