Additional Info
|
The Ignorant Masses Posted on: 01/26/2015 10:33am Fortifying doesn't effect geo-eff, so it's not recaltulated here. Do you calculate the tiles every time an attack/evac is done? I mean do you load every tile and look at its faces or just the 5 that you actually need. If you attack or evac its always just 1 tile that changes plus the 4 connecting ones. No matter how big a nation is this should take the same time. // ON SUCCESSFUL ATTACK If you are already doing it this way forget what i just wrote. I just think this action should take the same time no matter whom is attacking here. |
Level: 1
ADR Info
Additional Info
|
Right now, I'm doing entire re-calcs. I pull everything and run with it. There's a few more mechanics that I planned on running with later that will require some extra calcs.
|
Level: 1
ADR Info
Additional Info
|
FUCK.....
|
Additional Info
|
Well, if more than one tile changes you could always call the calculation for each changed tile. I think you'd have to do it twice on an successful attack anyways, once for the attacker and once for the defender. |
Level: 1
ADR Info
Additional Info
|
Yup. A successful counter attack on a person using geo relocation would throw things way off as well. Would I run these before updating the map record, after, both?
|
Additional Info
|
Neat, there's a thread talking about this (I'd mentioned it on the side in a PM). You don't want to do global recalcs, they're too expensive. The system ZuckeR noted (and I noted in the PM) is the right way to do stuff like this. Subroutines are 'nation gains tile' and 'nation loses tile', successful attack calls lose (if not open land) then gain. Evac, or failed attack with successful counter calls lose. Failed attack with successful counter-and-invade calls lose then gain. |
Additional Info
|
As far as i understood TIM he wants to do some more complicated calculations later on. If that involves the shape of the whole country or something like that he might still want to pull the a complete list of occupied tiles. The question would be what he wants to do and maybe if that could be a special routine that might take longer but does not run as often. Just as abandoning a huge nation will take huge amounts of time. |
Additional Info
|
Hmm, I'd started working up a complex-but-theoretically-more-real-results algorithm, but I came to the conclusion that that wasn't what TIM was looking for, and I *think* the way it's being done now is localized. Perhaps we should wait for him to weigh in. |
Additional Info
|
This game is quite fun and strategic. energy system sounds quite good in my opinion. it adds diversity to the game. |
Level: 1
ADR Info
Additional Info
|
Hmm, I'd started working up a complex-but-theoretically-more-real-results algorithm, but I came to the conclusion that that wasn't what TIM was looking for, and I *think* the way it's being done now is localized. Perhaps we should wait for him to weigh in.
|