Orkfia weekly #5
Hello and welcome to Orkfia weekly #5 – Staff edition
What you might say to yourself, nothing about the wars this last week? Well there has unfortunately been no wars at all this last week. So get a grip everyone, war more!
An issue which has been identified is the lack of communication from staff to the players, this easily leads to misconceptions regarding changes etc etc. To try and void this I’ll try to summarize whats been going on in staff during this current age (40).
Starting of, here is a copy of the current change log over at the development server where we are working with the game. – means added to the development server (will be referred to as dev) and waiting to be added to the live server (will be referred to as live), + means added to both dev and live. I’ll exclude some information like which files was altered and such.
We are since around the time age 40 started collaborating through svn.
Now then, here is the change log:
AGE 40
+ Updated LE desc (added BC info).
+ Updated desc. for when using Pillage on a tribe out of range (50% to 70%).
+ Changed the “Awarded by Martel” to “Awarded by HaRRy”
+ Added Venom attack to the mystic page (isn’t optimized but works correctly, added another if cause of venom being not race nor self type).
+ Updated the random event 17, to let the user recieve a minimum of 3 thieves instead of 1
+!Need to be verifed. Updated so LB works a tick into the retreat when the first half of the army already has returned
+ Changed the icon bg set for li .donate to users.png
+ Sorted the pre military/citz loss from lack of cr/food.
+ Sorted some warnings in the reset account caused by using quote_smart and single quotes in the query
+!This fix assumes that markets and barracks are supposed to hold atleast 15 citz apart from what else it holds. Sorted the issue with markets not giving the right ammount of citz. It didnt add the 15 extra citz supposed to exist for all non housing buildings and it only added 85 for dwarves instead of 100. (this section of the code needs to be re done at some point.
+ Sorted where dead tribes would recieve money while green.
+ Added so that it checks the number of tribes in the target alli aswell other then just the own alli before a merg request can be made.
+ Sorted some grammar issues.
+ Lightning bolt not affected by damage modifiers
+ Param $user in function check_to_update may now be a clsUser-object
+ Param $target in function make_magic2 may now be a clsUser-object
+ Errorlogging to live enabled
+ Now using clsUser-object instead of id as param in call to check_to_update
+ Now using clsUser-object instead of id as param in call to check_to_update
+ Now using clsUser-object instead of id as param in call to check_to_update and make_magic2
+ Now using clsUser-object instead of id as param in call to check_to_update
+ Now using clsUser-object instead of id as param in call to check_to_update and now creates new clsUser-objects instead of reusing one in function obj_test_for_kill
+ Changed the market buy on the construction site to buy only whats needed (such a bad desc. I know^^)
+ Moved to svn
+ Added factory method to class clsRaces
+ Now using factory method instead of ‘new’ to get races everywhere (except archived files)
+ Removed 2 calls to deprecated function
+ Fixed bug: death by age not showing in news
+ Scanning new resort tools now ignore all file/folders starting with a dot
+ Added 2 new methods to clsUser: isDead() and isReset(). Also commented away some code that could never run.
+ Refactoring, created a new class, “Successrate”, ment to replace some logic in magic/thievery/etc functions.
+ Renamed “Between Ages Time” to “Time Between Ages”
+ Added “fame” and “protection” categories for the suggestion tracker
- Added a link to the Banner archive on the gallery page and changed an if statement to avoid bad practice
+ Changed so that FO and IS isn’t possible throw on your own alliance.
+ Fixed (i think) multiple updates when entering vm
+ Failed testSetAndReset (fixed)
+ using new Successrate class when doing spells/ops
+ added class for research
+ Using new research class
+ small bugfix
+ added methods isInWar() and isInWarAgainst() to clsAlliance
+ Fixed bug: elder can defect tribe during war (should not be possible). fix depends on above addition to clsAlliance
+ Updated to use new methods (depends on change to clsAlliance)
+ Fix bug causing fatal error
+ removed old unused functions and flagging another one as deprecated
+ clsAlliance rewritten to php5, also added a couple of methods getWarTarget() and getTribes() + bug fix in get_wars()
+ Moved a trailing space in the layout which made the hover tooltip display on the space aswell (top alliance info)
+ improved normalize name method
+ Added header for p3p thing before setting cookies on IE to be able to login while working with an iframe
+ Hover on links. Color change instead of bold.
+ Removed autostore(file seemed to be saved wrong last time)
+ Removing goods on death
+ MySQL error on tribename with quotes on reset tribe(not perfect but at least it doesn’t crash the system)
+ clsUser->get_strength() now correctly returns int instead of float
+ Added the 80% building cost for wood aswell for Dwarves
+ Refactoring
+ Sorting some strict standard warnings
+ did the same as above but also renamed the var to $arrResearch which for some reason was named $arrResearchMod in the file
+ redid what I did earlier and instead fixed the function itself (thx max), also renamed $arrResearchModifier to $arrResearch in research.inc.php
+ Harmless-bug -fix (used a temporary undeclared class member?!)
- Bugfix getMaxPopulation didnt always check if tribe had specific unit-type
-!? Performance improvement in clsUser class: get_populations(), set_builds()
- Now using clsUser-object instead of id as param in call to check_to_update (should be the last of them)
- Strict Standards: Non-static method clsArchive::delete_tribe_intel() should not be called statically. All clsArchive methods are now static (thats how they are used everywhere). Instances of clsArchive are still created here and there but are not being used…
Same goes for clsBlock
- Added method setRace() to clsUser
- Using safe method setRace() instead of set_stats() to change race
- Don’t reuse a clsUser object for different tribes
- Added an if statement to display “Only elders may declare war” for non elders/coelders when there is alliances in range
- Don’t reuse a clsAlliance object for different alliances
- Added TESTING_SERVER constant
AGE 41
- No size penalty on intel-spells
That was the current change log.
There is more activity in staff then just coding, the staff channel on irc is getting more and more busy which is nice to see and lets us discuss stuff in more a free form compared to forums etc.
Most of the changes and fixes so far involves game mechanics and not really that much regarding the races. This does not mean that we have forgotten about races, in fact the chatter regarding races is increasing the closer we are coming to the end of the age. Somewhat obvious I guess but still^^.
I feel that this post is getting quite lengthy and there is more to cover regarding staff, changes etc so I’ll dedicate the next Orkfia weekly to this subject as well.
Until next the, take care, war a lot and contact me for suggestions on what I should write about.
Cheers
~Acwder
Issue image by myself for once^^




