Deck Codes explained

Wookimonsta
Corporal
Posts: 27
Joined: Wed 12 Feb 2014 19:43
Contact:

Deck Codes explained

Postby Wookimonsta » Fri 27 Feb 2015 19:47

Hey everybody,
I was recently going through my server files, and I wanted to see how many different kinds of decks are being used. I saw that the deck strings are saved in the log, and I was wondering if someone could explain to me how to read the Deck Nationality and Theme.

User avatar
The W:AB Noob
Lieutenant General
Posts: 4569
Joined: Fri 12 Jul 2013 22:29
Location: United States, Central Time Zone
Contact:

Re: Deck Codes explained

Postby The W:AB Noob » Fri 27 Feb 2015 20:12

Is the file described part of your dedicated server? If so, you should post in the Dedicated Server section of the Forums in Tech Support.

Also, can you copy-paste the code in the file or send us a download link?
W:RD Sandbox Mod 5.4.4 Click -> Image

Wookimonsta
Corporal
Posts: 27
Joined: Wed 12 Feb 2014 19:43
Contact:

Re: Deck Codes explained

Postby Wookimonsta » Fri 27 Feb 2015 20:23

Oh, the codes are the same as the deck export codes:

jKgMS1KwlqVhYJ5yhhWE3ysJzvOgfQPpSkpSAZAMgMQGJUBNQmosOWHIolKSlRTMiSXXK+kMiHxesvWpAMfyX5L5lVOKHIDfByTR4A==

Basically I was hoping someone could tell me how to figure out the nationality and theme from this.

User avatar
erkkituo
Corporal
Posts: 38
Joined: Thu 4 Jul 2013 11:19
Contact:

Re: Deck Codes explained

Postby erkkituo » Fri 27 Feb 2015 20:45

Wookimonsta wrote:Oh, the codes are the same as the deck export codes:

jKgMS1KwlqVhYJ5yhhWE3ysJzvOgfQPpSkpSAZAMgMQGJUBNQmosOWHIolKSlRTMiSXXK+kMiHxesvWpAMfyX5L5lVOKHIDfByTR4A==

Basically I was hoping someone could tell me how to figure out the nationality and theme from this.


Looks like Base64 encoded data to me. Can't decode it to a clean string though, so they probably just dump the deck in binary format.

Wookimonsta
Corporal
Posts: 27
Joined: Wed 12 Feb 2014 19:43
Contact:

Re: Deck Codes explained

Postby Wookimonsta » Sat 28 Feb 2015 15:19

that's what I figured, but I don't know the meaning of that data either.

User avatar
Buck Turgidson
Second-Lieutenant
Posts: 941
Joined: Tue 20 Mar 2012 12:55
Location: Finland
Contact:

Re: Deck Codes explained

Postby Buck Turgidson » Sat 28 Feb 2015 15:42

I was interested in the same once and sniffed around a bit.
Once you decode it, the two first bytes tell you which nation/coalition and which specialization the deck has.
You can basically map them by creating different deck types and then extracting the first two bytes from each base64 decoded deck code. I have no idea about the actual contents of the deck though, I recall the whole byte sequence was changing when I tried adding an extra unit to a deck...
ImageImage

Wookimonsta
Corporal
Posts: 27
Joined: Wed 12 Feb 2014 19:43
Contact:

Re: Deck Codes explained

Postby Wookimonsta » Sat 28 Feb 2015 15:53

Buck Turgidson wrote:Once you decode it, the two first bytes tell you which nation/coalition and which specialization the deck has.


Yeah this is the conclusion I came to as well. Guess I'll map that shit one by one.

What I came up with is that the first byte is the faction, second byte is theme and third byte is era. However, it seems to work differently for coalitions.

For example: a German Armored deck has:
HJg
a German armored from 1985 has
HJQ
a German armored from 1980 has
HJA

The theme seems to be universal. g = cat A, Q = cat B and A = cat C.

Nationalities
USA = B
UK = D
France = F
Germany = H
Canda = J
Denmark = L
Sweden = N
Norway = P
ANZAC = R
Japan = T
South Korea = V

When using national decks, the theme deck also seems the same.
Motorized= I, Armored = J , Support= K, Marines = L, Mechanized = M and (I guessed these) Airborne = N & Navy = O with No Theme = P

Coalitions look a bit different, with neither theme nor date.
EuroCorps = WH
Scandinavia = WP
Commonwealth = WX
Blue Dragons = Wf
Landjut = W3
Norad = XH

EuroCorps Motorized starts with WA, armored being WB and so on. Therefore a Scandinavian Motorized would be WI.
Basically just use the Base64 index table on Wiki http://en.wikipedia.org/wiki/Base64, where the deck with no theme is the last value and count backwards from that.
I haven't done RedFor yet, but I'll get into that later.

User avatar
The W:AB Noob
Lieutenant General
Posts: 4569
Joined: Fri 12 Jul 2013 22:29
Location: United States, Central Time Zone
Contact:

Re: Deck Codes explained

Postby The W:AB Noob » Sat 28 Feb 2015 21:11

I also think that each = sign at the end is a different edit?
W:RD Sandbox Mod 5.4.4 Click -> Image

Tharhof
First Sergeant
Posts: 245
Joined: Sat 2 Mar 2013 02:09
Contact:

Re: Deck Codes explained

Postby Tharhof » Sat 28 Feb 2015 22:43

The W:AB Noob wrote:I also think that each = sign at the end is a different edit?


I think the equal signs (" = ") are just padding in base64. Have you seen any deck codes with more than 2 equal signs at the end?
Image

Wookimonsta
Corporal
Posts: 27
Joined: Wed 12 Feb 2014 19:43
Contact:

Re: Deck Codes explained

Postby Wookimonsta » Sun 1 Mar 2015 14:14

Tharhof wrote:
The W:AB Noob wrote:I also think that each = sign at the end is a different edit?


I think the equal signs (" = ") are just padding in base64. Have you seen any deck codes with more than 2 equal signs at the end?


As far as I recall, that is correct.

Return to “Wargame : Red Dragon”

Who is online

Users browsing this forum: No registered users and 44 guests