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
cae7e67fdf
Unicode WIP
...
- Bugfix region::connect structure not initialized
- set encoding from Lua
2007-08-16 06:53:00 +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
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
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
857df3f300
Unicode WIP, does not compile.
...
- removed a lot more localized text.- currently working on combatspells (buf usage and German text removal)
2007-06-27 20:39:49 +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
96a2b1c779
Include cleanup.
2007-06-20 00:34:02 +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
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
226e29d040
small fixes to at_direction.
2007-02-11 22:33:35 +00:00
Enno Rehling
88ecdd173a
http://eressea.upb.de/mantis/view.php?id=959
...
"Eisberg treibt ab und angelandetes Boot nimmt Schaden"
as mentioned in the bug, regions get their neighbor-relations screwed after icebergs drift. in runhash(), I'm removing the relationships so that they are getting rebuilt properly.
Issue: 959
2006-07-24 20:35:30 +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
e936284347
Massive changes:
...
- removed all hadcoded weapons
- added code to put resources like iron&wood in XML
- added laen & wood to XML
- fixed damage for mallorn lance
- removed the old entrise code
- added new ent code in lua, eressea-only
2006-02-11 16:11:16 +00:00
Enno Rehling
3efd05206e
replacing read/write_default with a function that doesn't abuse layout of the union or endianness. new savefile-format
...
removeing some old attributes that were never used.
2006-02-10 19:48:43 +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
Enno Rehling
b2f1b213d4
Regionsalter auf Startwert setzen
2006-01-01 20:56:11 +00:00
Enno Rehling
5c07121a9f
http://eressea.upb.de/mantis/view.php?id=775
...
Berge ohne Eisen (und generell Regionen ohne Resourcen).
2005-12-19 17:31:27 +00:00
Enno Rehling
4635c46ec2
- dice_rand kann einfaches multiplizieren
...
- als dice_roll nach lua exportiert
- equipment kann in inventories getan werden
- region::land bekommt ein inventory
- terraform legt equipment in neue regionen
kingdoms:
- neues terrain berge.
2005-12-11 09:58:17 +00:00
Enno Rehling
531115b392
- spawning new dragons and undead is now optional (lua function)
...
- battle-effect on peasants is configurable (by XML param)
2005-11-26 11:00:20 +00:00
Enno Rehling
ba2e0fef8c
more code that fails when there are no luxuries
2005-11-26 01:24:28 +00:00
Enno Rehling
38062fa990
more code that fails when there are no luxuries
2005-11-26 01:16:55 +00:00
Enno Rehling
f0ce33304b
kingdoms: handling lack of luxuries
2005-11-26 00:08:47 +00:00
Enno Rehling
40ef16c53f
removed warnings
2005-11-20 14:50:15 +00:00
Enno Rehling
7783077517
simplified the work() functions
...
splitting more functionality from process_orders into separate functions
2005-11-20 12:58:59 +00:00
Enno Rehling
2380573d77
crashfix terraform w/ oldterrain==NULL
2005-11-14 18:58:09 +00:00
Enno Rehling
29b84b640e
More gentle terraforming: If a region is terraformed and has the same size as before, no need to change the trees. No need to change peasants or money either
2005-11-11 22:53:58 +00:00
Enno Rehling
68433ad0d1
Der Eressea-Code hat jetzt auch extern definierte Terrains. Ich war so gründlich wie es ging dabei, die alten T_ Konstanten zu entfernen, aber einzelne Regeln sind ziemlich hardgecodet (wo Drachen geboren werden, usw), und benötigen daher noch das terrainid.h include, in das der alte enum verfrachtet ist.
...
Konfigurierbarkeit ahoi.
2005-10-25 12:38:01 +00:00
Enno Rehling
4ce88dad13
removing the old NEW_RESOURCEGROWTh macro
2005-10-24 20:06:40 +00:00
Enno Rehling
bcf0b8d446
removed the old GROWING_TREES macro.
...
Also, made sure starting regions always have at least a few trees and horses, because I'm sick and tired of the complaints.
2005-09-10 21:09:51 +00:00
Enno Rehling
70413bb43c
Noch einmal Strassen reparieren.
2005-06-12 09:48:19 +00:00
Enno Rehling
1a1dc417c4
misc. memory leaks removed
2005-06-11 08:09:55 +00:00
Enno Rehling
8242e9ed41
Eressea ist 64-bit ready. Denke ich jedenfalls.
2005-06-09 22:10:35 +00:00
Enno Rehling
c1e86e4fa0
- asserting on valid return values from recruit-function
...
- fixing crashbug with --lomem)
2005-06-04 01:43:38 +00:00
Enno Rehling
b4acb828d7
Ein bischen aufraeumen am Schluss kann nicht wehtun. Nicht doll.
2005-05-07 13:38:46 +00:00
Enno Rehling
8fd95421ca
firstregion/lastregion beschleunigungen und bugfix
2005-04-27 21:03:08 +00:00
Enno Rehling
48141abc65
Nachbesserung an Fix für create_teleport_plane
2005-01-01 17:14:51 +00:00
Enno Rehling
df26ef19be
special_direction jetzt von LUA aus benutzbar. Neuer Testcode für special directions.
2005-01-01 11:48:36 +00:00
Enno Rehling
5296949c1b
Alle Hashfunktionen mit Primzahlen, evtl. bessere Performance.
2004-05-26 06:42:58 +00:00
Enno Rehling
9ef7e473d8
- http://eressea.upb.de/mantis/bug_view_page.php?bug_id=0000053
...
Verflucht komplizierter Fix in movement. Das kann eigentlich nur schiefgehen.
Bei der Gelegenheit mal in movement etwas Code-Massage betrieben. Das ist zwar grundsätzlich ein hoffnungsloser Fall, aber ich kann's nicht lassen.
2004-04-12 16:21:23 +00:00
Enno Rehling
3101acdb83
fix project file, some indenting
2004-04-09 01:32:06 +00:00
Enno Rehling
406e30468a
- http://eressea.upb.de/mantis/bug_view_page.php?bug_id=0000062
...
Bugfix Chaostor
- http://eressea.upb.de/mantis/bug_view_page.php?bug_id=0000067
bugfix Blick in die Realitaet
Zusätzliche asserts in xmlreader
Entferne den 'askalon' code
2004-04-09 01:23:54 +00:00
Enno Rehling
6ccb1b9bf6
Code-Vereinfachung: regionlist und region_list zu einem Typ gemerged
...
Code-Beschleunigung: Pathfinding schneller und schlauer
2004-02-21 12:18:29 +00:00
Enno Rehling
32659cddb6
jam rules for profiling, warnings fixed
2004-01-12 16:22:14 +00:00
Enno Rehling
9fef5c651f
FAST_CONNECT: regionen speichern ihre nachbarn, das beschleunigt hoffentlich das verfluchte pathfinding.
2004-01-12 15:49:34 +00:00