Hi list I was trying to improve unit<->building matching what i could not achieve as well as expected. But for other ideas i hope on help by Bradley as I guess they are more promising.
== What I did == first i changed a while(workersNeeded) into a if(workersNeeded) what resulted in a more even distribution of workers. second i didn't prioritize units having the right resource over all other units but rather weighted each case to pick the best (formula made up based on some ideas and tested but surely not perfect although no strange behaviour occured). (third i tried to change unit removal as it only removed one worker that wasn't needed anymore and not all of them but it doesn't get called at the right time. upon delivery of res x all units carrying res x that are no needed anymore should immediately released) All this resulted in a slight improvement when there were -55/140 workers free. in numbers: my version took 110 game seconds version 23 took 130 game seconds to finish all construction sites in a given save game. With 9/218 workers free i got: my version took 40 game seconds version 23 took 40 game seconds to finish all construction sites in a given save game. == What needs to be done == *release all units not needed anymore without waiting for the delivery of an unwanted res. *if there are more jobs than workers, workers should choose job, not the other way round!! in such a condition single units will automatically work for the first building in the line even if there are as important buildings maybe needing the carried resource. I expect a dramatic improvement on large town management by the second change. Greetings, Leo Wandersleb -- -----BEGIN PGP PUBLIC KEY BLOCK----- Version: GnuPG v1.4.6 (GNU/Linux) mQGiBEYcwCIRBACpRpjCQHRHDnl/JERhwmZKkNPlb9D+bpH+46v7ji9LIpwNwZSB aA6GJMdOAYCm7axI14K8M7NMw49M6qkWw9uqbn5kCc4ipftKuRlpUi5h1LmXECgS p9xrjsdZQr9pVayf9oICoK6smPNg2//ej24421gQWEOai3rLX4AP7CTFewCg4HHj /i9CwRtz2qvQjqkC1nhv6ucD/0jZeUQCe2PL3CAf94++SaxVDYTHxL68afqQLC6z I5CeLDgw5ShHETjDkCzs1iUhgzAMs1Sw0rZrJX8JX6PQ/eDvfWI0xbcvI4mtfiR/ IpwIHgLvtsRc2AkLhXNzXFN27AqVZygi8q7BtOZ9Y78bK1uS9fUNUnkGTeS4FCjp 1tuTA/4r8Zzd7xqJI8p4fsuxWipM8wogke3WHSzLV3+J/NWgCXKUmr8yQ4hGiFnr U0f+BDpchmzrk3knGwG1rARDzrASexStqvZnm20Uvaa+7jm7FlAJ1kEz26CN6Z4B +8Vwfy5a6/MF95GF49jsoDVkdUgCXPgPNWoJO+UplMeNEQiQDrQtMjAwNzA0MTFM ZW9XYW5kZXJzbGViIDxMZW8uV2FuZGVyc2xlYkBnbXguZGU+iGYEExECACYFAkYc wCICGyMFCQDtTgAGCwkIBwMCBBUCCAMEFgIDAQIeAQIXgAAKCRBdxVdib5Ra5eyF AKCCPZ9rVpT0OrCcs+NgbyusLGRGJgCg32/EnJR72zX9+tbAv8jsN3AbtlS5AQ0E RhzAIhAEAJi4s80KT6c6jcawUakaAoP4s8h6UUWcERlUXZR7DRUgcp6zSvlhgAye 4Az7e/cLvg1DJwNBX0mIeejtnYsTysdeUFhmitcrd+sarlZAAmDJkZ2AzVLVkGkD OzBVHoAzjNnjcinnLUFLf66lLZN969wLG82UZHai72mo7R/maAbrAAMFA/9DHJiy RdGAI5nYRMytsl5QRu+L8ZaZEdNCrw341ZWhiYtx1KoTOwIq2uf7WiuWoK7tKRa0 a3hedNgN0inp4rIiaiVFAtbwZ64DpNq+VK8tyBCdJeSTcQCOo3uaWEWcPBQkNiYW 2KT38cOIJomFSxqUf0dgvfdcV0FGik/yJ1gN3IhPBBgRAgAPBQJGHMAiAhsMBQkA 7U4AAAoJEF3FV2JvlFrlejUAn0wlhR6SGokl0RkMzlfFeQK7UQozAJ94fT+aAeIS PiUyszNPRs06GjF97Q== =6qMt -----END PGP PUBLIC KEY BLOCK----- _______________________________________________ glob2-devel mailing list [email protected] http://lists.nongnu.org/mailman/listinfo/glob2-devel
