I'm a newbie but I like the idea as much as you guys and wil try to code a solution.
I think for a start we need 2 typs of positioning:
a) from some graphics file (I will stick to .ppm because that's what is allready implemented)
b) from some list (formated readible textfile)
So the creating process looks like this:
1.draw heightmap from .ppm
2. - n. draw objects from further .ppm files or place them directly from some list (it shouldn't matter wether it's a river or something else)
Right now I'm trying to find the locations where the mapcreator is creating the heightmap from the graphic file.
Thats how far I've got up to now:
welt.cc, l564-570 -> start MapCreator komp==&start_game
welt.cc l565 load_heightfield(default_settings)
onwards everything in simworld.cc
-> l6359 load_heightfield(settings_t* const sets)
-> l6366 init(default, z)
-> l1457 init(settings_t* const sets, sint8 const* const h_field)
-> l1532 init_felder()
-> l899 init_felder() -> l913 get_karte()->init() just update relief?
-> l1534 enlarge_map(default, z) extending map?
-> l1547 fabrikbauer_t::neue_karte() placing factories
-> l1570 fabrikbauer_t::verteile_tourist(...) placing attractions
So where is the command for creating all points from the .ppm file?
Thanks to any help on this.