[crossfire] Combat simulator

Nicolas Weeger nicolas.weeger at laposte.net
Sat Mar 5 16:40:20 CST 2011


Hello.


I've added a "player versus monster" basic simulator to CRE, to check what 
happens in "real" fight conditions.

It's available from "Reports" -> "Player vs monsters".


WARNING: do NOT use this command before the background map parsing has finished 
(when "finished browsing maps" appears on the status bar, then it's ok ; or as 
long as there is something at bottom right, then it's NOT ok).
The reason is that the simulator will load or create maps, if the background 
process loads maps too, there can be data corruption (Crossfire's code is not 
thread-safe for that).


WARNING: the simulation takes quite some time to run. There is no way to pause 
or stop it. There is no progress indication except your CPU working. You have 
been warned.




Some results are visible at http://nicolas.weeger.org/monsters-hth.html

The player is a dwarf without any special equipment, low stats, so results are 
probably wrong. This will be improved someday maybe (even if that means more 
processing time).



Comments and suggestions welcome, of course :)



Nicolas
-- 
Mon p'tit coin du web - http://nicolas.weeger.org
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 490 bytes
Desc: This is a digitally signed message part.
URL: <http://mailman.metalforge.org/pipermail/crossfire/attachments/20110305/a4810e57/attachment.pgp>


More information about the crossfire mailing list