A PHP Error was encountered

Severity: 8192

Message: Creation of dynamic property CI_URI::$config is deprecated

Filename: core/URI.php

Line Number: 101

A PHP Error was encountered

Severity: 8192

Message: Creation of dynamic property CI_Router::$uri is deprecated

Filename: core/Router.php

Line Number: 127

A PHP Error was encountered

Severity: 8192

Message: Creation of dynamic property Blog::$benchmark is deprecated

Filename: core/Controller.php

Line Number: 75

A PHP Error was encountered

Severity: 8192

Message: Creation of dynamic property Blog::$hooks is deprecated

Filename: core/Controller.php

Line Number: 75

A PHP Error was encountered

Severity: 8192

Message: Creation of dynamic property Blog::$config is deprecated

Filename: core/Controller.php

Line Number: 75

A PHP Error was encountered

Severity: 8192

Message: Creation of dynamic property Blog::$log is deprecated

Filename: core/Controller.php

Line Number: 75

A PHP Error was encountered

Severity: 8192

Message: Creation of dynamic property Blog::$utf8 is deprecated

Filename: core/Controller.php

Line Number: 75

A PHP Error was encountered

Severity: 8192

Message: Creation of dynamic property Blog::$uri is deprecated

Filename: core/Controller.php

Line Number: 75

A PHP Error was encountered

Severity: 8192

Message: Creation of dynamic property Blog::$exceptions is deprecated

Filename: core/Controller.php

Line Number: 75

A PHP Error was encountered

Severity: 8192

Message: Creation of dynamic property Blog::$router is deprecated

Filename: core/Controller.php

Line Number: 75

A PHP Error was encountered

Severity: 8192

Message: Creation of dynamic property Blog::$output is deprecated

Filename: core/Controller.php

Line Number: 75

A PHP Error was encountered

Severity: 8192

Message: Creation of dynamic property Blog::$security is deprecated

Filename: core/Controller.php

Line Number: 75

A PHP Error was encountered

Severity: 8192

Message: Creation of dynamic property Blog::$input is deprecated

Filename: core/Controller.php

Line Number: 75

A PHP Error was encountered

Severity: 8192

Message: Creation of dynamic property Blog::$lang is deprecated

Filename: core/Controller.php

Line Number: 75

A PHP Error was encountered

Severity: 8192

Message: Creation of dynamic property Blog::$load is deprecated

Filename: core/Controller.php

Line Number: 78

A PHP Error was encountered

Severity: 8192

Message: Creation of dynamic property Blog::$db is deprecated

Filename: core/Loader.php

Line Number: 396

A PHP Error was encountered

Severity: 8192

Message: Creation of dynamic property CI_DB_mysqli_driver::$autoinit is deprecated

Filename: database/DB_driver.php

Line Number: 371

A PHP Error was encountered

Severity: 8192

Message: Creation of dynamic property Blog::$email is deprecated

Filename: core/Loader.php

Line Number: 1283

A PHP Error was encountered

Severity: 8192

Message: Return type of CI_Session_database_driver::open($save_path, $name) should either be compatible with SessionHandlerInterface::open(string $path, string $name): bool, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice

Filename: drivers/Session_database_driver.php

Line Number: 129

A PHP Error was encountered

Severity: 8192

Message: Return type of CI_Session_database_driver::close() should either be compatible with SessionHandlerInterface::close(): bool, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice

Filename: drivers/Session_database_driver.php

Line Number: 280

A PHP Error was encountered

Severity: 8192

Message: Return type of CI_Session_database_driver::read($session_id) should either be compatible with SessionHandlerInterface::read(string $id): string|false, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice

Filename: drivers/Session_database_driver.php

Line Number: 151

A PHP Error was encountered

Severity: 8192

Message: Return type of CI_Session_database_driver::write($session_id, $session_data) should either be compatible with SessionHandlerInterface::write(string $id, string $data): bool, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice

Filename: drivers/Session_database_driver.php

Line Number: 208

A PHP Error was encountered

Severity: 8192

Message: Return type of CI_Session_database_driver::destroy($session_id) should either be compatible with SessionHandlerInterface::destroy(string $id): bool, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice

Filename: drivers/Session_database_driver.php

Line Number: 297

A PHP Error was encountered

Severity: 8192

Message: Return type of CI_Session_database_driver::gc($maxlifetime) should either be compatible with SessionHandlerInterface::gc(int $max_lifetime): int|false, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice

Filename: drivers/Session_database_driver.php

Line Number: 335

A PHP Error was encountered

Severity: Warning

Message: ini_set(): Session ini settings cannot be changed after headers have already been sent

Filename: Session/Session.php

Line Number: 282

A PHP Error was encountered

Severity: Warning

Message: session_set_cookie_params(): Session cookie parameters cannot be changed after headers have already been sent

Filename: Session/Session.php

Line Number: 289

A PHP Error was encountered

Severity: Warning

Message: ini_set(): Session ini settings cannot be changed after headers have already been sent

Filename: Session/Session.php

Line Number: 314

A PHP Error was encountered

Severity: Warning

Message: ini_set(): Session ini settings cannot be changed after headers have already been sent

Filename: Session/Session.php

Line Number: 315

A PHP Error was encountered

Severity: Warning

Message: ini_set(): Session ini settings cannot be changed after headers have already been sent

Filename: Session/Session.php

Line Number: 316

A PHP Error was encountered

Severity: Warning

Message: ini_set(): Session ini settings cannot be changed after headers have already been sent

Filename: Session/Session.php

Line Number: 317

A PHP Error was encountered

Severity: Warning

Message: ini_set(): Session ini settings cannot be changed after headers have already been sent

Filename: Session/Session.php

Line Number: 375

A PHP Error was encountered

Severity: Warning

Message: session_set_save_handler(): Session save handler cannot be changed after headers have already been sent

Filename: Session/Session.php

Line Number: 110

A PHP Error was encountered

Severity: Warning

Message: session_start(): Session cannot be started after headers have already been sent

Filename: Session/Session.php

Line Number: 143

A PHP Error was encountered

Severity: 8192

Message: Creation of dynamic property Blog::$session is deprecated

Filename: core/Loader.php

Line Number: 1283

A PHP Error was encountered

Severity: 8192

Message: Creation of dynamic property Ion_auth_model::$columns is deprecated

Filename: models/Ion_auth_model.php

Line Number: 73

A PHP Error was encountered

Severity: 8192

Message: Creation of dynamic property Ion_auth_model::$identity_column is deprecated

Filename: models/Ion_auth_model.php

Line Number: 75

A PHP Error was encountered

Severity: 8192

Message: Creation of dynamic property Ion_auth_model::$store_salt is deprecated

Filename: models/Ion_auth_model.php

Line Number: 76

A PHP Error was encountered

Severity: 8192

Message: Creation of dynamic property Ion_auth_model::$salt_length is deprecated

Filename: models/Ion_auth_model.php

Line Number: 77

A PHP Error was encountered

Severity: 8192

Message: Creation of dynamic property Ion_auth_model::$meta_join is deprecated

Filename: models/Ion_auth_model.php

Line Number: 78

A PHP Error was encountered

Severity: 8192

Message: Creation of dynamic property Blog::$ion_auth_model is deprecated

Filename: core/Loader.php

Line Number: 358

A PHP Error was encountered

Severity: 8192

Message: Creation of dynamic property Ion_auth::$message_start_delimiter is deprecated

Filename: libraries/Ion_auth.php

Line Number: 98

A PHP Error was encountered

Severity: 8192

Message: Creation of dynamic property Ion_auth::$message_end_delimiter is deprecated

Filename: libraries/Ion_auth.php

Line Number: 99

A PHP Error was encountered

Severity: 8192

Message: Creation of dynamic property Blog::$ion_auth is deprecated

Filename: core/Loader.php

Line Number: 1283

A PHP Error was encountered

Severity: 8192

Message: Creation of dynamic property Blog::$adminmodel is deprecated

Filename: core/Loader.php

Line Number: 358

A PHP Error was encountered

Severity: 8192

Message: Creation of dynamic property Blog::$debug is deprecated

Filename: core/MY_Controller.php

Line Number: 47

A PHP Error was encountered

Severity: 8192

Message: Creation of dynamic property Blog::$blogmodel is deprecated

Filename: core/Loader.php

Line Number: 358

A PHP Error was encountered

Severity: 8192

Message: Creation of dynamic property CI_Loader::$page is deprecated

Filename: core/Loader.php

Line Number: 931

A PHP Error was encountered

Severity: 8192

Message: Creation of dynamic property CI_Loader::$benchmark is deprecated

Filename: core/Loader.php

Line Number: 931

A PHP Error was encountered

Severity: 8192

Message: Creation of dynamic property CI_Loader::$hooks is deprecated

Filename: core/Loader.php

Line Number: 931

A PHP Error was encountered

Severity: 8192

Message: Creation of dynamic property CI_Loader::$config is deprecated

Filename: core/Loader.php

Line Number: 931

A PHP Error was encountered

Severity: 8192

Message: Creation of dynamic property CI_Loader::$log is deprecated

Filename: core/Loader.php

Line Number: 931

A PHP Error was encountered

Severity: 8192

Message: Creation of dynamic property CI_Loader::$utf8 is deprecated

Filename: core/Loader.php

Line Number: 931

A PHP Error was encountered

Severity: 8192

Message: Creation of dynamic property CI_Loader::$uri is deprecated

Filename: core/Loader.php

Line Number: 931

A PHP Error was encountered

Severity: 8192

Message: Creation of dynamic property CI_Loader::$exceptions is deprecated

Filename: core/Loader.php

Line Number: 931

A PHP Error was encountered

Severity: 8192

Message: Creation of dynamic property CI_Loader::$router is deprecated

Filename: core/Loader.php

Line Number: 931

A PHP Error was encountered

Severity: 8192

Message: Creation of dynamic property CI_Loader::$output is deprecated

Filename: core/Loader.php

Line Number: 931

A PHP Error was encountered

Severity: 8192

Message: Creation of dynamic property CI_Loader::$security is deprecated

Filename: core/Loader.php

Line Number: 931

A PHP Error was encountered

Severity: 8192

Message: Creation of dynamic property CI_Loader::$input is deprecated

Filename: core/Loader.php

Line Number: 931

A PHP Error was encountered

Severity: 8192

Message: Creation of dynamic property CI_Loader::$lang is deprecated

Filename: core/Loader.php

Line Number: 931

A PHP Error was encountered

Severity: 8192

Message: Creation of dynamic property CI_Loader::$load is deprecated

Filename: core/Loader.php

Line Number: 931

A PHP Error was encountered

Severity: 8192

Message: Creation of dynamic property CI_Loader::$db is deprecated

Filename: core/Loader.php

Line Number: 931

A PHP Error was encountered

Severity: 8192

Message: Creation of dynamic property CI_Loader::$email is deprecated

Filename: core/Loader.php

Line Number: 931

A PHP Error was encountered

Severity: 8192

Message: Creation of dynamic property CI_Loader::$session is deprecated

Filename: core/Loader.php

Line Number: 931

A PHP Error was encountered

Severity: 8192

Message: Creation of dynamic property CI_Loader::$ion_auth_model is deprecated

Filename: core/Loader.php

Line Number: 931

A PHP Error was encountered

Severity: 8192

Message: Creation of dynamic property CI_Loader::$ion_auth is deprecated

Filename: core/Loader.php

Line Number: 931

A PHP Error was encountered

Severity: 8192

Message: Creation of dynamic property CI_Loader::$adminmodel is deprecated

Filename: core/Loader.php

Line Number: 931

A PHP Error was encountered

Severity: 8192

Message: Creation of dynamic property CI_Loader::$debug is deprecated

Filename: core/Loader.php

Line Number: 931

A PHP Error was encountered

Severity: 8192

Message: Creation of dynamic property CI_Loader::$blogmodel is deprecated

Filename: core/Loader.php

Line Number: 931

Succession Wars : ScrapYardArmory.com

The Succession Wars by ScrapYardArmory

Log In | Register

2017-04-11

Post-Update Update - Combat with no Defender


Part of the latest update (2017.04.08) that was coded way back in late July of 2016 was meant to clean up the combat logs so players who are not involved in combat don't have to click done. Sounds quite simple, right? Well, it was simple, but also too effective. It even prevented combat in regions where there were no defending units.

Martin brought the bug to our attention late Sunday night. Brian figured out the extent of the problem and even identified the line of code causing the problem. As I was falling asleep I pseudo coded an IF statement on my phone for Brian. Of course, it was garbage as most code I do late at night. lol But, I was on the right track.

Monday, I then went a completely different direction and crafted an elegantly looking database query that solved the problem with minimal code. But, it was rather CPU hungry as it cherry picked though some of our largest database tables. Brian realized we had already gotten all the data we need from the database (just hidden in arrays crafted by loops earlier in the function meant for other checks) and crafted a clever CPU friendly IF / IF ELSE statement to keep your games running smoothly.

Mind you, this is just a bit more added on top of all the last minute bug fixing Brian does right before an update as we go through a long list of test cases to try out all the new code. ...In addition to some live fixes Brian does when the server automatically updates jquery which suddenly no longer supports a function we use to make the very pretty and mesmerizing mouseover region highlighting. (Does anyone else sometimes just roll the mouse over the map in figure 8's and lose all focus while staring at it?)


Posted by Saxywolf