supcom2_replay_parser 0.3.1 → 0.3.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/README.md +23 -12
- data/lib/supcom2_replay_parser/game_options.rb +0 -1
- data/lib/supcom2_replay_parser/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: bd00424d20f5dd51cd1bd0c6be4b81ce112be83ff4c23a12dc056495e7ade01b
|
4
|
+
data.tar.gz: b6f1c18ec1e3bae58b3b064be3554f1cd39340a7cb45a86e9d5d182b0837bddb
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1210921f3e577cd0ddd4a4190eca5708d1a84af10dd19efc4b59228f90e5166c3f124d3b412b440a1c70db76f641cc97806f45d996dc4daa68e2ffd4a35f061d
|
7
|
+
data.tar.gz: 1bfdafd4893ad3a7591cd7947bc8b606631a9c4d97918fd2b457989e9d6bd8280a17c96543333d0a9382afd8edf43f74d154f5dc781e1abeae1e6bbfbef9ddc4
|
data/README.md
CHANGED
@@ -2,6 +2,18 @@
|
|
2
2
|
|
3
3
|
Gem for parsing replays of Supreme Commander 2. It returns all info about players, map and game options from replay
|
4
4
|
|
5
|
+
___
|
6
|
+
#####Parsing Game options
|
7
|
+
FogOfWar
|
8
|
+
NoRushOption
|
9
|
+
TeamSpawn
|
10
|
+
Victory
|
11
|
+
|
12
|
+
#####Parsing players info
|
13
|
+
Nickname
|
14
|
+
Player Color
|
15
|
+
Faction
|
16
|
+
Team
|
5
17
|
## Installation
|
6
18
|
|
7
19
|
Add this line to your application's Gemfile:
|
@@ -26,18 +38,17 @@ replay_info = SupCom2ReplayParser.call(file_path)
|
|
26
38
|
pp replay_info
|
27
39
|
|
28
40
|
###
|
29
|
-
{:game_version=>"Supreme Commander v1.26",
|
30
|
-
:replay_version=>"Replay v1.9",
|
31
|
-
:players_info=>
|
32
|
-
[{:nickname=>"lvl0 <| m.o.b", :color=>:orange, :faction=>:cybran, :team=>1},
|
33
|
-
{:nickname=>"HUECTRUM", :color=>:white, :faction=>:uef, :team=>2}],
|
34
|
-
:game_options=>
|
35
|
-
{"FogOfWar"=>"explored",
|
36
|
-
"NoRushOption"=>"Off",
|
37
|
-
"
|
38
|
-
"
|
39
|
-
"
|
40
|
-
"map"=>"[2] Spring Duel"}}
|
41
|
+
#{:game_version=>"Supreme Commander v1.26",
|
42
|
+
# :replay_version=>"Replay v1.9",
|
43
|
+
# :players_info=>
|
44
|
+
# [{:nickname=>"lvl0 <| m.o.b", :color=>:orange, :faction=>:cybran, :team=>1},
|
45
|
+
# {:nickname=>"HUECTRUM", :color=>:white, :faction=>:uef, :team=>2}],
|
46
|
+
# :game_options=>
|
47
|
+
# {"FogOfWar"=>"explored",
|
48
|
+
# "NoRushOption"=>"Off",
|
49
|
+
# "TeamSpawn"=>"fixed",
|
50
|
+
# "Victory"=>"demoralization",
|
51
|
+
# "map"=>"[2] Spring Duel"}}
|
41
52
|
###
|
42
53
|
```
|
43
54
|
|