Showing posts with label balancing. Show all posts
Showing posts with label balancing. Show all posts

22 July 2021

Guild Wars 2 WvW - True Camp Value - Part 1

I've decided to split my World versus World (WvW) research into two posts. I'll talk about how Guild Wars 2 and WvW works. Then explain what I wanted to research, why, and how. Lastly, I'll show the result using the desert map. The second post will contain the other results and the conclusion I drew from them. I still need time as I'm missing six transitions. In the meantime, let's get this post started.


Guild Wars 2 And World Versus World[1][2]

Image Showing The Results For Desert Borderlands
Ill. 1: Approximate Points Per Objective And Dolyak Path
With And Without Buffs ~GreenyNeko & WvW Intel
Guild Wars 2 is an MMORPG that allows players to play on different servers within a region. The server's choice barely plays a role in gameplay. In the game mode World versus World (WvW), however, these servers fight each other every week in a three-way match. Each server is assigned the colors red, blue, and green, given their rank. WvW contains four maps:

  • Desert Borderland for red,
  • two alpine borderlands for green and blue,
  • and the eternal battlegrounds shared by all.

While the borderland maps are biased to their color, the eternal battlegrounds aren't.


Score System[1][2]

The server with the most victory points wins. Servers get these given their war score at the end of a skirmish. There are many ways to get Warscore for the 84 two-hour-long skirmishes. For example, killing another player awards two to five points depending on the buffs. Every five minutes, the game also awards Warscore for each owned object. Type and rank determine the amount, as shown in the following table.

Type Base Secured Reinforced Fortified
Camp 2 3 4 5
Tower 4 6 8 10
Keep 8 12 16 20
Castle 12 18 24 30

Lastly, the game awards one Warscore when an enemy's Dolyak dies or when your Dolyak arrives at its goal. Dolyaks start at a camp and walk to nearby towers and then to nearby larger settlements if a server owns these.

It is similar to owning a street in monopoly, gaining a bonus for the whole alley. That raises the question, how much the bonus is worth and how it compares between the servers.


Approach And Difficulties

To answer these, we must study the Dolyaks in their natural habitat. Specifically, we need to know Dolyaks' speed with and without buffs With this data, we can estimate the time of buffed Dolyaks. Next up, we have to measure how long it takes a Dolyak to reach its destination. It's exhaustive to get this data as the other servers try to conquer as much as possible. Additionally, they try to kill you and the Dolyak you watch. However, your team can screw up your data too by giving swiftness or superspeed to the Dolyaks, giving inaccurate measurements.


Researching Dolyaks

I've already measured the Dolyaks movement speed in an earlier post. So, the next step is to measure how long they travel from their camp to each objective. I used the program Livesplit for this, which speedrunners commonly use for timing speed runs. When the Dolyak spawned, I started the timer and stopped it when the "war score" marker appeared once the Dolyak reached its goal. With the data gathered, we now need to look at two different cases. When the camp and tower are ours but not the keep or castle, the Dolyak will continuously run between the two conquered objectives. However, if we own all three objectives, the Dolyak will despawn after reaching its goal and respawn about seven seconds later. Next up, we get math involved.


Finalization And Representation

By dividing the point we get through the time it took the Dolyak to arrive there, we get the Dolyak's points per second. We can multiply this by five (5*60=300) to compare to objectives. For the visuals, I've linked the camp with the Dolyaks end goal. Now, for visualizing the data, I'm going to mark the objectives with white-filled black circles.  Then I link the camp where the Dolyak starts with its end goal. Lastly, I add the score objectives and Dolyaks give. We can see the result in the illustration for the desert borderland.


For The Future

Once I have gotten all data, I'm going to write the second post. Until then, this has to suffice. Oh, I'll also write the conclusion in the second post. When will it come? Once, WvW is going well enough for me to get the data.


[1] https://wiki.guildwars2.com/wiki/World_versus_World

[2] Guild Wars 2 - ArenaNet






22 May 2018

Balancing in Terraria - Part 1

Balancing in video games is a delicate topic. I've been playing Terraria lot lately - especially modded. I've also started to create a mod with a friend of mine and we're planning on adding new classes and new end-game progression, which requires balancing as well.

First: What is Terraria?

Before going into details let's inform everyone what Terraria is. I don't want to go deep into detail on this one so let's fill you in this way: Terraria can be considered a 2D version of Minecraft in a limited world with a higher focus on equipment progression, much more underground layers and an adventure type of feel with a few elements of hack and slash sprinkled in. At least that's my definition of Terraria.

Basically you start off in a world with a copper pickaxe, short sword, and axe and you have to get new resources, defeat bosses to get better equipment, like mining utilities, armor, weapons and so forth, which increase your stats like maximum health, mana, damage, critical strike chance, critical strike damage, attack speed, life regeneration and more. Of course, you can build houses and other stuff though more enemies are traveling the world than in games like Minecraft, so your building may be interrupted by a horde of zombies and flying eyes at night or slimes at the day.

The Classes

Classes in Terraria are not chosen at the character creation. Instead, they are determined by the items, armor and other equipment you use. Playing Terraria you may come across three to five classes. These classes are categorized by the damage types and the boost given in the game.
  • Melee Damage
  • Range Damage
  • Magic Damage
  • Summon Damage
  • Thrown Damage
Though, you may find some inconsistency between classes. This is because the summon class was added later in development and the thrown damage class was discontinued or abandoned. The reason for the latter is the similarity to range. The former is noticeable as there are hardly any - if at all - summon items in the early game.

Balancing Procedure

So we have five classes now and the easiest way to balance these would be to make them all equal. Ah, that would be too simple. I said balancing is a delicate thing. If you make every class equal, good job you balanced it mathematically, but it's no fun. Games are all about fun, even if it's in weird ways sometimes. Well, our classes should be different. Going by common logic and our three main classes we have a melee that most likely needs to be near enemies and bosses most of the time a ranger that stays at a distance and has to aim whilst consuming ammunition and last but not least a mage or wizard that uses mid to far distance high damage weapons whilst consuming a rechargeable resource.

Applying the Definition

Step 1: Create a Basic Relationship of Defense

By the definition of our melee class, they'll need a lot of defense as they're near the opponent and most likely to get hit. In comparison, the magic and range classes can avoid any contact with the opponent if their maneuverability is good so they don't need that much defense. So, let's check our current state.

Defense: Melee > Range = Magic
Damage: Melee = Range = Magic

Step 2: Build on the Basic Relationship

Another thing we defined is that magic damage is the highest of all in nearly all games, unfortunately, this comes at a cost. For a mage or wizard to be strong they need to be able to use their spells and mana most efficiently. This requires certain clothing, that is light and can be easily imbued. At least that's a common belief, so, let's go with this! We increase the damage of the magic class, decreasing the defense at the same time to keep it balanced.

Also, we're putting range above melee as range has it harder to hit the enemy, due to aiming.
 Our new state is:

Defense: Melee > Range > Magic
Damage: Magic > Range > Melee

Keep in mind this is just an approximation. Even though balancing via formulas and calculation isn't all, it still helps a lot when balancing details.

Adding the Other Two Classes

Step 3: Adding Our Thrown Class

Don't forget about the thrown and the summon class! These are very specific so we have to go with what is in Terraria to get an idea of how they were planned or implemented. The thrown class uses consumables that can be thrown and ammunition consuming items to throw a gravity affected object. Additionally, there are thrown weapons that have been assigned to the melee class instead like infinite daggers to throw, lances and boomerangs and similar. Something noticeable here is that all thrown items do not allow for a distance that's as far as the range class. This limit plays a huge role. We're dealing with a mid-range class. As such they need either more damage to compensate for damage taken than the range class or more defense. Giving them increased damage instead of defense allows for a hit and run styled gameplay that may match something like a ninja, so let's go with that.

With our relationship updated:

Defense: Melee > Range > Thrown > Magic
Damage: Magic > Thrown > Range > Melee

Step 4: Adding Our Summon Class

The way the summoning class has been introduced into Terraria makes it tedious to balance. A summoner uses the same resource as a mage but only once per summon - on the same note: Summons have no time limit, they age until you die or dispel it by right-clicking. They can summon up to 9 or 11 minions depending on the platform you play on and whether or not you use buffs. The problem here is the balancing of the armor. Let's illustrate the issue mathematically...

Natural Diminish Returns on Summoner Minions
x-Axis: Number of MInions
y-Axis: Damage increase in %
If you have a summon weapon that deals 24 damage and you summon one minion you deal 100% damage. That's the base damage. If you summon another minion you have two that both deal 24 damage so in total 48. That's 200% - your damage has been doubled. Now with the next minion, you deal an additional 24 damage, that's 3 * 24 = 72 damage. This is 300% of the damage compared to one minion but it's only a damage increase of 50% since we had 48 damage with two and got only half, 24 damage, with the third. 

This behavior should be familiar to people who know this or read this blog for a longer time. The behavior is called Natural Diminishing Returns. Basically the more you get the harder it is to keep on doubling the effect. I'm not going into detail on this here, but the graph to the left shows the behavior.

By the way, the point where the increase is half of the 100% damage you should check if you find any damage bonuses that give higher damage increase. For example, if you have four minions your next minion will increase your damage by 6.25%. Some armors give nearly or more than that. 

Another factor is that while the minions do the job the summoner can use other weapons in the meantime. This further increases the damage. At the same time since those minions are taking care of the enemy automatically, the summoner can focus on dodging and avoiding attacks. Thus they don't need as much defense as the magic, melee, ranged and thrown classes need. Additionally, due to the advantages, I mentioned here the damage should be far lower per single minion. The total damage should be lower than the magic class, as they aren't forced to embrace the enemy, but with the low armor, it should be higher than the rangers. Also, the minion attack range plays a role here. From what I've seen in Terraria it is about mid-range.

Phew, so, this gives us this relationship:

Defense: Melee > Range > Thrown > Magic > Summon
Damage: Magic > Summon > Thrown > Range > Melee

Preview

Now we've got the basic relation between defense and damage of the classes done. In the next post, we're going to compare the actual in-game defense and damage to check how the balancing has been done in-game and where breakpoints and power spikes are hidden. Additionally, we're gonna compare and assume where the thrown and beginning of the summon class should be.

Until then, GreenyNeko, out.



About Me

My photo
I'm a M.Sc. Games Engineer and I created this blog to share my ideas, theorycrafting, thoughts and whatever I'm working on or doing.