2010-01-22

Codex Chaos Space Marines: Marks of the Dark Gods


Intro
I don't like current Codex Chaos Space Marines, for many-many reasons. One of them - there are too many places where I can't see any logic. Because of this I bought older Codex, written by Andy Chambers, Graham McNeill and others. And that Codex is totally awesome! It's a bit old to play with it though, but there are many things I like. Marks of the Dark Gods for example.

Current Codex, 4th edition
In current Codex, released in 2007, Marks can be used everywhere and by everyone. And as for me it's breaking fluff by all means possible. For example, you can summon pack of Daemonettes without scatter on Mark of Khorne, or put your Sorcerer with Mark of Tzeench with 9 Berzerkers into Land Raider. How powerful and cruel Chaos Lord can allow this to happen? How is it possible when Dark Gods are watching you? I don't know, but it seems to me that Codex' author wanted to play Orks too much, so he made ones, using Chaos kits. But let's return to how Mark works. Summoned Daemons and Terminators can arrive on Mark without scattering, and also Mark somehow is visible from the transport vehicles, and adds some abilities to their bearers. That's it. No more restrictions, no more options, no more advantages.

Codex Chaos Space Marines 2002

In this older Codex everything looks logical and close to perfect, almost like it really would be in Eye of Terror. Do you know that Khorne and Slaanesh are mortal enemies, like Tzeench and Nurgle? So, if your army's leader have Mark of one of four Gods - your army cannot contain any units, dedicated to God's mortal enemy. Of course it can't, just because your leader will kill all those bastards in the name of His favored God!

Next feature, Daemons can be summoned only onto Mark of their God or onto Chaos Undivided Mark. In Codex 2007 I always wondered why my Daemonettes would not attack unit of Berzerkers with Icon that summoned them, or why should they come at all? In Codex 2002 everything is just fine, like it should really be.

And my favorite, Daemon Icon. It's powerful Daemon binding artifact, and single Daemons unit can be nominated as target for this Mark. Then, when time comes, you can free those Daemons without rolling reserves or scatter, they're just coming out at the start of your turn. I like both how it works on the battlefield and how it sounds from the fluff point of view. But where did Chaos Marines lost it in 5 years from 2002 to 2007?...


Summary
Codex 2002 is a bit outdated, and as for me can be fairly used only in combination with Rulebook 4 and older enemy Codexes. It's navigation is not that simple, it's unit costs does not make any sense against Codex Space Marines 2008 or Space Wolves 2009, so heavy refresh is required before making it playable. But it's so awesome when comparing against current Codex Chaos Space Marines, with so many interesting features, and real feeling that it's Chaos Legions, cruel and glorious warriors of the Dark Gods, while current Codex 2007 makes it feel like you're playing some Chaos Orks or something. So I will better wait for Codex Blood Angels and will use it for my Night Lords army until next Chaos Codex will be released. It will represent Night Lords Legion a way better than Codex Chaos Space Orks Marines.

2010-01-19

Chaos Space Marines Weapons


When you'll try to compare Codexes of Space Marines and Chaos Space Marines you will notice that their weapons list is different. But why is it so? They're almost similar armies. Here is the knowledge of different weapon types I know/heard/read about.

Assault Cannon
Assault Cannon is powerful Space Marines, and Chaos have nothing similar. First I thought that it was created after Heresy, and Chaos Marines can't be equipped with those weapons because of this. But then one of Horus Heresy novels about Dark Angels mentioned Assault Cannon on Dreadnought.
It is said that Assault Cannon is not stable weapon and jams from time to time. And in 10.000 years Chaos Marines lost all of their Assault Cannons, using more stable older pattern Autocannons instead.

Autocannon
Autocannon exists in both Codexes, but it looks like only Predators and Dreadnoughts can use it. So, if weapon mentioned in both Codexes - it's obviously pre-heresy weapon. But then Chaos have Autocannon pattern for troops. Looks like this pattern was implemented just before Heresy, and Horus ordered to supply his legions first, then Mars was salvaged and loyal Marines got nothing.

Storm bolter
It's twice as effective as simple bolter, and Loyal Marines have it. It's obvious that it's pattern was found after Heresy, because otherwise Horus' elite terminators would be equipped with those things.

Demolisher Cannon
Vindicators are powered by those huge and extremely powerful cannons. But it's strange that in Codex Space Marines 2004 and Codex Chaos Space Marines 2007 they're the same, but Codex Space Marines 2008 added "Barrage" to them. Why is that? I have no answer. Maybe Matthew Ward thought it is time to modify Demolisher according to 5th edition of Rulebook and made first step like this?...

Plasma cannon
Chaos Marines can take Plasma cannons only for Dreadnoughts, and while their Dreadnoughts are a bit crazy - I never thought about it as about viable solution. But loyal Marines can give those fearsome template weapons even to simple tactical squads and Devastators. Why is that? I see 2 possible solutions:
1. All Chaos Plasma cannons got hot, and Dark Mechanicus don't want to build more of them. Well, it doesn't looks like true, because Plasma guns are still used in Chaos forces, and effectiveness of weapon worth the risks of using it.
2. Troop option appeared after Heresy, the same as Autocannon but from the other side.
Still, I am not sure, if you know something or have some ideas - comment please.

Multi-melta
Those things are accessible for Chaos Dreadnoughts too, but only for them. Maybe the story here is the same as with Plasma cannon? I'm not sure...

Still have no info
I have no info about some weapons, so if you know why they are accessible to first but not accessible to second - please tell me. They are:
Cyclone Missile launcher
Havoc Launcher

2010-01-16

Warhammer 40k Wounds Allocation


Summary
This article is about Wounds Allocation in Warhammer 40.000. Inspired by BoLS article on the same topic and contains some my ideas and suggestions on how to improve current wound allocation rules.

4th edition
Previous edition of Warhammer 40.000 rulebook used different wound allocation strategy. For instance, we have Chaos Space Marines squad of 5, without any special features.
a) We got 3 wounds. Nothing special here, we will just take 3 saves and will remove those who failed.
b) We got 5 wounds, and our opponent can choose who will take individual save. But all models are the same, so no need to choose between them. Each model will take exactly 1 save, so we have 0.33 chance to lose all our models.
c) We got 15 wounds. Book states that we will roll all the saves at the same time. And statistically 15 * 0.33 = 5 and all models will be lost. But it looks like the story of Schrödinger's cat, statistics can only show us probability and all 5 models somewhere between life and death. How will it look like if we have only 1 dice?
0. Each model have to roll 3 saves, so it still can be saved.
1. First roll - 2. First model is dead.
2. Second roll - 1. Second model is dead.
3. And NOW they all will surely die, becase 3 models will roll other 13 dices.



5th edition
5th edition came with new wounds allocation system, that from the one hand can help you to save few more units and from the other hand - risk to loose special model is higher.
For example, we have Chaos Space Marines squad of 5, with Aspiring Champion and Meltagun.
a) We got 3 wounds. We will allocate them on simple models, so Champion and Meltagun will surely live.
b) We got 5 wounds. Now we must allocate them on all models, and Champion and Meltagun will take their own saves, while other 3 wounds will go to simple models. In this case chance to lose Champion or Meltagun is much higher than in 4th edition, where opponent was able to choose only one of them to pass it's own save.
c) We got 15 wounds. Now we will allocate 3 wounds on each model. Statistically all the squad will die, but being Warhammer 40.000 player will you just remove all the squad without rolling dices? Dice does matter. We will roll for the Champion, then for Meltagun, and then - gues what - we will roll other 9 dices for 3 models similar to 4th edition!
Why is it so? It's only half solution of 4th edition, it's not complete working system.

Apply "special model" rules to everyone
The first solution that comes in mind - let's roll separately for each model. Statistically it will lead us to the same result, but it will save us from problems of 4th edition. We will just roll 3 dices for each model, and that's it, some of them will get their chance to live another minute.
But now imagine we have squad of 10 models, with Champion and Meltagun. Now you have to roll 10 times instead of 3 as in original 5th edition. And some Orkz will better lose few models more than rolling 20-30 separate rolls...

Minimize time wasting
Well, we have working solution, now let's think about how to save some time.
Here is my suggestion:
1. Roll first line of saves and remove failed with all their other wounds:



2. Roll second line of saves and remove failed with all their other wounds:



3. Roll last line of wounds as normal, now each model have it's last roll, without taking rolls for their long-dead brothers. In my examples it's obvious that we just saved 3 of our Marines from another line of 3 wounds, minimizing chance to lose them by 0.33.



Maybe you have better suggestions? It would be great to improve current systems, to make them closer to perfect.

2009-12-25

Browsers usage share


Remind me, what did they said about the most used browser? My Google Analytics is sure that the most popular browser is Firefox with almost 55%, than Chrome with 23.7%, and only then IE. And I am happy at last Konqueror got into list, with 0.67% share.

Homegrown projects: versioning


From time to time you need to set up some project at home. There are plenty of reasons: you are starting new opensource project, want to write few HelloWorlds with new frameworks, or you just don't want to go to office today.

And of course you want to use some VCS with your project, because it allows you to perform development in steps, plus standard VCS features like revert/diff.

I worked with CVS, SVN, Perforce and a tiny bit with VSS. And few days ago I tried Mercurial. Mostly because great support from NetBeans. But now Mercurial is total winner for home usage, only two simple steps and your repository is up and ready to be used from your favorite IDE. With Mercurial you don't need to start servers, use network connection, configure some system files using root privileges, just install and init project. And enjoy lightweight source control system that will provide you with all benefits of versioning.

2009-12-24

JPA 2.0 migration experience

Java EE 6 specification released not so long ago, and now includes release of JPA 2.0 specification. Obviously, you'd like to use JPA 2.0 for your new project. But the problem is, how to choose good implementation and where to get it?

First you will go to Sun's persistance page. You'll read a bit and click on "download" link that will take you on Glassfish Persistance page. But the problem is, you will not find JPA 2.0 reference implementations on that page.

Ok, next step - ask google. Google sais that EclipseLink is reference implementation for JPA 2.0, and wikipedia confirms. Let's go to EclipseLink downloads. Yea, there are some files to download, but again everything is packed into single huge JAR with dozens of features we don't really need (yea, I have "classpath paranoia"), and the main component is missing - sources for JPA 2.0 API, that can be added to NetBeans libraries to read javadocs and to help it with method argument names (do you remember that Library Manager in NetBeans?).

We must not give up. Let's go to JSR page and take a look. Wikipedia states it's JSR 317. After clicking on "Download" link we can see another link, that will direct us to "EclipseLink's Reference Implementation Downloads". After downloading both and taking a look inside of each package we can see that "EclipseLink 2.0.0 - minimal bundles that are shipped in the Java EE6 RI" is what we really need. Finally, everything we may need and packed in separate small JARs, so we can include only features we need.

Now, let's make it work. I have project that used JPA 1 with EclipseLink 1.2.0. I removed all EclipseLink libraries, added javax.persistence_2.0.0.v200911271158.jar (JPA 2.0 API) and org.eclipse.persistence.jpa_2.0.0.v20091127-r5931.jar (one that contains org.eclipse.persistence.jpa.PersistenceProvider). First few starts of application ClassNotFound were reported, I searched for required classes and added their JARs. Finally, here is the full list of JARs you need to work with standard JPA 2.0 feature set:
javax.persistence_2.0.0.v200911271158.jar
org.eclipse.persistence.jpa_2.0.0.v20091127-r5931.jar
org.eclipse.persistence.core_2.0.0.v20091127-r5931.jar
org.eclipse.persistence.asm_2.0.0.v20091127-r5931.jar
org.eclipse.persistence.antlr_2.0.0.v20091127-r5931.jar

and files to add to Sources tab (NetBeans will be able to show you sources, javadocs and read method argument names from those sources):
javax.persistence.source_2.0.0.v200911271158.jar
org.eclipse.persistence.jpa.source_2.0.0.v20091127-r5931.jar
org.eclipse.persistence.core.source_2.0.0.v20091127-r5931.jar
org.eclipse.persistence.asm.source_2.0.0.v20091127-r5931.jar
org.eclipse.persistence.antlr.source_2.0.0.v20091127-r5931.jar

That's all. Use JPA 2.0 with pleasure, support new versions and software evolution, because otherwise we all will become stupid monkeys and will return back on palms.

2009-12-15

GWT EventDispatch and widgets width and height


When you're constructing Widget in GWT - it's size is 0 until it's rendered. It's different from Swing, Swing assumed that you're working in EventDispatcher and calculated all sizes instantly. It is not announced but looks like GWT have it's event dispatcher too, and you can use DeferredCommand class to place Command into events loop. Using this approach you can construct Widget, place it into some Container, and then add some Command to DeferredCommand to work with widget's size after current construction operation will be complete and Widget will get it's size.

It looks like problem of all young widget toolkits, like Swing itself many years ago. They are showing it, its simple, its cool. But when you start coding real application using that toolkit - you'll get many problems, many different "hidden" features and many tricks and workarounds. After many years they'll tell you about EventDispatcher, then they'll implement different kinds of BackgroundWorkers, and different rules how to "use correctly" this toolkit. You can remember situation with "EventDispatcher rule" of Swing and how it was changed from Java5 to Java6 (while nothing inside was changed). Now we can see similar situation with JavaFX, and GWT goes the same way.

2009-12-11

NetBeans 6.8 has come


NetBeans 6.8 is just released, introducing many new features. It's pity there is nothing interesting for me as for Java-GWT developer. And even nothing interesting for other guys I worked with - they are still using MyFaces 1.1 for some reason, OpenJPA 0.9.7 bundled with WebLogic 10.0.0.0.0, and other EE4 or EE5 stuff. New JIRA plugin can't authentificate into my JIRA server, and I'll better wait for next GWT4NB version, which I hope will support GWT 2.0 and NetBeans 6.8.

Honestly, it's a pity that the most powerful Java IDE/editor is not improving it's Java stack, but working on some thirdparty features like Kenai, PHP, Ruby...