Loading...
play.ccnetmc.com
Click to copy IP
Loading...
discord.gg/Xn35DhyPQq
Click to join
Avatar
Welcome to CCNet!
To join our community, please login or register!
Internet Explorer: Internet Explorer is not supported. Please upgrade to a more modern browser.
Experimental Plugin Dev Blog #1: CampaignWar 1
galacticwarrior9 Admin Member
36 posts
20 topics
4 months ago

In the previous announcement, I mentioned that several experimental plugins were in development. Today, I would like to reveal the first - a side project of ours which has been in the making since the beginning of 2023, and is slowly approaching fruition: CampaignWar (CW), an attempt to design a war system that combines the strengths of the various existing Towny war plugins.

In its current form, CW is not designed for Nations. It will be tested on its own gamemode¹ at an indeterminate point in the future, alongside several other experimental plugins. It may then transpire that these plugins are fundamentally flawed in some fashion and will need to be scrapped or reworked. But such is the nature of game development: you cannot know if you do not test.

 

Provinces

To understand CW, we need to understand the intended map: a continental non-Earth world divided into provinces. There are two types of provinces: ocean and land. For now, we are only interested in land provinces. Each land province can accommodate one town, and only that town is permitted to claim inside it.

Attacking Provinces

During a war, the objective is to capture enemy land provinces. To attack an enemy province, you need to capture or own an adjacent province. Which enemy provinces you choose to attack might be influenced by the war goals, which we’ll discuss another time.

When a province attack (“PA”) starts, the province is assigned HP. HP consists of:

  • A base value that is shared by all towns
  • A bonus number that depends on the town's number of residents and claimed chunks

The attackers’ goal is to deplete the province’s HP by killing enemies and capturing chunks inside the province. If the HP reaches 0, the attackers win the PA. Defenders, on the other hand, heal the province’s HP by killing attackers and recapturing chunks.

Capturing Chunks

Capturing chunks is the main method of depleting a province’s HP. All chunks inside the province can be captured, but some chunks are worth more HP than others: the homeblock is worth the most, then regular claimed chunks, followed by Wilderness. 

You can only capture a chunk if you have captured an adjacent chunk, or if the chunk is adjacent to the province’s border. That means attackers must invade the province from the border at the beginning of the PA.

Above is an example. Yellow captured chunks in Red, advancing from the border. However, Red then recaptured some of these, leaving many of Yellow’s gains isolated.

Capturing a chunk is simple: place an obsidian block (a “flag”) inside the chunk, and prevent the enemy from breaking it for 60 seconds. As long as friendly players are close to the flag, enemy players will suffer from Mining Fatigue while trying to break it.

Some automatic rules are enforced on flag placement. Notably, they can be placed neither underground nor underwater. Moreover, when defenders counter-attack a captured chunk, the flag will be moved to where the attackers originally placed it. This prevents defenders from placing flags in strange areas unreachable to attackers, such as inside town buildings or on top of tall towers. And to discourage defenders from boxing in attackers, they have a cooldown between placing blocks inside the town if its claims are under attack.

To maintain the flow of battles inside towns, attackers can place scaffolding and ladders inside chunks they are attacking or have captured. They can also use doors, trapdoors, etc in these chunks.

Tools

Both sides can attack three chunks simultaneously. “But won’t this get overwhelming?”, you may reasonably ask. Fortunately, there are tools to help with orientation and coordination.

The first is the war map. Here’s the war map HUD (/warmap hud) from inside Red’s town. Enemy-controlled chunks appear as red, while friendly-controlled chunks appear as green. The darker chunks are claims; the lighter chunks are Wilderness. I’m a member of Yellow, so the chunks that Red controls appear as red.

Chunks under attack have a special icon, and the compass directions will change colour if there is an attack in that direction. In this case, my side’s attack is west of me, so W appears as green. If it was an enemy attack, it would have appeared as red.

Furthermore, attacked chunks have a particle border and their flag block will glow. The colour of the glow and particles depends on whether the attack is hostile or friendly: red = hostile, blue = friendly.

Lastly, players with the relevant nation rank can broadcast a priority message (/prioritymsg) to all friendly players inside the province.

FOBs

Deaths are frequent in these fast-paced wars, yet it is critical for attackers to maintain momentum. To address this, they can designate any of their captured Wilderness chunks as a Forward Operating Base (/fob) and teleport to it. It will appear as a tent on the war map.

FOBs are immune to explosion block damage and defenders cannot place, break or open blocks inside them (except flags, scaffolding and ladders). But if defenders recapture the FOB's chunk, the FOB is destroyed and attackers will no longer be able to teleport to it.

Citadel Plots

For this war system to work, every province must be attackable. They will therefore need fortifications, but we do not want to force every town to become a Nations-style fort². Citadel plots are our solution.

Citadel plots are special town plots in which explosions will not do block damage - up to a certain point. Every citadel plot has armour points (AP) which are depleted when an explosion takes place inside them. The amount of AP lost depends on the cannon projectile used. For example, tank MG shells do nothing while HE shells inflict heavy damage. Once a citadel plot runs out of AP, it will no longer prevent explosion block damage.

AD_4nXfKNPS2gpmuvtciMpGGUv1h_jFGEwwFGt_mDDjG2EqRhacAbfzJoXZn3kiKZLgS1ZT7WdKkuxrCS5uRgiGtK5ETtuDuJrFqw_bAWoG7CWlMHg6CpsaLqIl7TI7kc3qs3meGirgbl2rrrqkt22SHfiwhqIo?key=RaCX2QmzFHIBahMG4RkQbg

The colour of the firework changes as the citadel loses AP.

The number and types of blocks inside the citadel plot do not affect its AP. This is to ensure builders can design aesthetically pleasing fortifications without having to sacrifice defensive capability.

Citadel plots have some limitations. Firstly, they won’t protect piloted crafts and cannons that are being actively fired. Secondly, towns have a limit on the number of citadel plots they can have, which increases proportionally to their number of claims. Finally, there is a limit on how many citadel plots can be adjacent to one another and it is possible they will have to be adjacent to Wilderness.

Conclusion

To keep this digestible, many details have been omitted such as the intended combat system and how wars themselves work. These deserve their own posts, which will be released in the future.

In the meantime, if you are interested in testing CW, please let me know by replying to this post. While several playtests have already been held, I would like to hold a large-scale battle to test the pace of attacks and how larger groups cope with coordinating in this environment.

If you have any questions, feedback or concerns about CW, feel free to also reply. Your input is valuable and may reveal areas for improvement that have not yet been thought of.

 


¹ Which will not be Nations 3.. sorry, reset fans. It also won't replace Nations, or anything like that. Think of it as a giant experiment.

² The Block HP system on Nations is actually a holdover from our Factions gamemode, which ended well over five years ago. Yikes!

 

 



Last edited: 4 months ago x 5
Mangoooishere Member
4 posts
0 topics
4 months ago

Hello! This system looks very interesting and I would love to help test it out



Last edited: 4 months ago
Fury_Phoenix1 Member
2 posts
0 topics
4 months ago

Mining Fatigue reduces attack speed, no? Will combatants items attack speed be modified to compensate for this?



galacticwarrior9 Admin Member
36 posts
20 topics
4 months ago
Fury_Phoenix1:

Mining Fatigue reduces attack speed, no? Will combatants items attack speed be modified to compensate for this?

The Mining Fatigue only applies if you are breaking the flag with flag-defenders nearby. If you stop breaking it, the Mining Fatigue ends immediately.



Last edited: 4 months ago
greymesa Member
20 posts
3 topics
4 months ago

I have a question. If new players were to join a full map how would they create a new town if all provinces are occupied? It seems like there would be a hard cap to how many towns could exist simultaneously, which may turn off new players.



“The True North Strong and Free!”

galacticwarrior9 Admin Member
36 posts
20 topics
4 months ago
greymesa:

I have a question. If new players were to join a full map how would they create a new town if all provinces are occupied? It seems like there would be a hard cap to how many towns could exist simultaneously, which may turn off new players.

 

Good question - this is a problem I'm also thinking about. What I will say is that if this ever became a permanent gamemode (which is far too early to say), the map would probably be very large and so will the number of provinces. There are currently 868 towns in Nations, so we would aim for a number of land provinces higher than that.

But I also think the nature of CW will incentivise some nations to consolidate into fewer towns where possible (i.e. 'play tall' rather than 'play wide'). This is something that needs to be confirmed empirically, however.



Last edited: 4 months ago x 1
greymesa Member
20 posts
3 topics
4 months ago
galacticwarrior9:
greymesa:

I have a question. If new players were to join a full map how would they create a new town if all provinces are occupied? It seems like there would be a hard cap to how many towns could exist simultaneously, which may turn off new players.

 

Good question - this is a problem I'm also thinking about. What I will say is that if this ever became a permanent gamemode (which is far too early to say), the map would probably be very large and so will the number of provinces. There are currently 868 towns in Nations, so we would aim for a number of land provinces higher than that.

But I also think the nature of CW will incentivise some nations to consolidate into fewer towns where possible (i.e. 'play tall' rather than 'play wide'). This is something that needs to be confirmed empirically, however.

I see.

A possible solution may be having a dynamic scaling map (unlike Nations) that expands as more players join the community. 

Also, automatic province wipes after a certain period of inactivity may coincide with that well.

For example: 

Using the activity system implemented in Nations currently, the rank of province leader could be automatically given to town members in order of town rank scaled by activity given a certain period of inactivity (3 months as a basis carried over from nations).

Ideally, should this be implemented, town members would be skipped over to be given the leadership position if they also reached a period of inactivity.

Let's say that I lead a province and I happen to go inactive for three months, I have three co-leaders: EkkoTheEcho, Tre_2020, and Jakers1700. The leadership position would fall on the co-leader with the highest activity; let's say Ekko in this case. But oh no! Ekko is only the most active because he hasn't logged on in three months versus Tre's four and Jakers' five. They would then be skipped over because they fall under the three-month threshold for activity and leadership would be given to the next highest-ranking member with the most activity compared to other members with the same rank.

With such a system I feel that members of a province won't be weighed down by inactivity, as if the leader is inactive- the role will be passed down.

That being said, I believe that should no other candidates for leader be found after a point of inactivity. The province should be wiped and re-genned for someone more active- or even new players to take over.



“The True North Strong and Free!”

masterbigbear Member
2 posts
1 topics
4 months ago

ooh this might actually make wars interesting enough for me to bother fighting in them 😛. I'd love to help test



greymesa Member
20 posts
3 topics
4 months ago

Also, I'd love to help test.



“The True North Strong and Free!”

Ashes43 Member
34 posts
9 topics
4 months ago

I would also enjoy testing this, specifically the movecraft.