The new function interfaces for scripting tool were implemented in r10077 (https://github.com/aburch/simutrans/commit/b70e485741fa600b0c5400f222b8d3e7d9d7c66a), but the parameter conversions for do_work() and mark_tiles() in tool_base.nut are not correct.
The attached patch should fix this problem.
thank you ! in r r10128