Merge lp:~widelands-dev/widelands/fix_world_names into lp:widelands

Proposed by GunChleoc
Status: Rejected
Rejected by: GunChleoc
Proposed branch: lp:~widelands-dev/widelands/fix_world_names
Merge into: lp:widelands
Diff against target: 129 lines (+14/-13)
7 files modified
src/map_io/s2map.cc (+2/-2)
world/immovables/seashell1/init.lua (+2/-2)
world/immovables/seashell2/init.lua (+2/-2)
world/immovables/skeleton2/init.lua (+1/-1)
world/immovables/track_winter/init.lua (+1/-0)
world/init.lua (+2/-2)
world/map_generation.lua (+4/-4)
To merge this branch: bzr merge lp:~widelands-dev/widelands/fix_world_names
Reviewer Review Type Date Requested Status
SirVer Needs Fixing
Review via email: mp+226592@code.launchpad.net

Description of the change

Some of the skeletons are actually seashells, so I did some renaming.

To post a comment you must log in.
Revision history for this message
SirVer (sirver) wrote :

Do you really want to do this? I ask because I think that seashells are a kind of skeleton :P.

Also, the implications here are that all maps created between the one world merge and this will be unloadable (and there have been at least 2 linked in the forums already) without adding another layer of compatibility code, which I'd rather avoid.

If you really want to get that in, there need to be changes on the one world legacy table to load old maps and some testing with old maps (from the homepage) need to be done.

review: Needs Fixing
Revision history for this message
Teppo Mäenpää (kxq) wrote :

> another layer of compatibility code, which I'd rather avoid.

Could this be in one of those cases where polishing the English should be done at Widelands-to British/American/whatever translations instead of the Widelands code itself?

Revision history for this message
GunChleoc (gunchleoc) wrote :

If it's creating a problem, leave it - it is not that important.

I will add translator comments instead, so translators will know that it's a seashell if they're paying attention.

Revision history for this message
GunChleoc (gunchleoc) wrote :

I had another idea: what will heppen if I change just the localization string, e.g.

name = "skeleton4",
descname = _ "Seashell",

Will that cause problems?

Revision history for this message
SirVer (sirver) wrote :

No, changing the descname is fine and can be done without issues. I think this is preferable to Teppos suggestion actually.

Revision history for this message
GunChleoc (gunchleoc) wrote :

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'src/map_io/s2map.cc'
2--- src/map_io/s2map.cc 2014-07-05 14:22:44 +0000
3+++ src/map_io/s2map.cc 2014-07-12 20:29:25 +0000
4@@ -785,8 +785,8 @@
5 case BOB_STANDING_STONES7: bobname = "sstones7"; break;
6
7 case BOB_SKELETON1: bobname = "skeleton1"; break;
8- case BOB_SKELETON2: bobname = "skeleton2"; break;
9- case BOB_SKELETON3: bobname = "skeleton3"; break;
10+ case BOB_SKELETON2: bobname = "seashell2"; break;
11+ case BOB_SKELETON3: bobname = "skeleton2"; break;
12
13 case BOB_CACTUS1:
14 bobname = m_worldtype != S2_Map_Loader::WINTERLAND ? "cactus1" : "snowman";
15
16=== renamed directory 'world/immovables/skeleton4' => 'world/immovables/seashell1'
17=== modified file 'world/immovables/seashell1/init.lua'
18--- world/immovables/skeleton4/init.lua 2014-05-03 08:40:59 +0000
19+++ world/immovables/seashell1/init.lua 2014-07-12 20:29:25 +0000
20@@ -1,8 +1,8 @@
21 dirname = path.dirname(__file__)
22
23 world:new_immovable_type{
24- name = "skeleton4",
25- descname = _ "Skeleton",
26+ name = "seashell1",
27+ descname = _ "Seashell",
28 editor_category = "miscellaneous",
29 size = "none",
30 attributes = {},
31
32=== renamed directory 'world/immovables/skeleton2' => 'world/immovables/seashell2'
33=== modified file 'world/immovables/seashell2/init.lua'
34--- world/immovables/skeleton2/init.lua 2014-05-03 08:40:59 +0000
35+++ world/immovables/seashell2/init.lua 2014-07-12 20:29:25 +0000
36@@ -1,8 +1,8 @@
37 dirname = path.dirname(__file__)
38
39 world:new_immovable_type{
40- name = "skeleton2",
41- descname = _ "Skeleton",
42+ name = "seashell2",
43+ descname = _ "Seashell",
44 editor_category = "miscellaneous",
45 size = "none",
46 attributes = {},
47
48=== renamed directory 'world/immovables/skeleton3' => 'world/immovables/skeleton2'
49=== modified file 'world/immovables/skeleton2/init.lua'
50--- world/immovables/skeleton3/init.lua 2014-05-03 08:40:59 +0000
51+++ world/immovables/skeleton2/init.lua 2014-07-12 20:29:25 +0000
52@@ -1,7 +1,7 @@
53 dirname = path.dirname(__file__)
54
55 world:new_immovable_type{
56- name = "skeleton3",
57+ name = "skeleton2",
58 descname = _ "Skeleton",
59 editor_category = "miscellaneous",
60 size = "none",
61
62=== modified file 'world/immovables/track_winter/init.lua'
63--- world/immovables/track_winter/init.lua 2014-05-03 08:40:59 +0000
64+++ world/immovables/track_winter/init.lua 2014-07-12 20:29:25 +0000
65@@ -2,6 +2,7 @@
66
67 world:new_immovable_type{
68 name = "track_winter",
69+ -- TRANSLATORS: This track is made of footprints in the snow
70 descname = _ "Track",
71 editor_category = "miscellaneous",
72 size = "none",
73
74=== modified file 'world/init.lua'
75--- world/init.lua 2014-06-22 10:58:43 +0000
76+++ world/init.lua 2014-07-12 20:29:25 +0000
77@@ -93,10 +93,10 @@
78 include "world/immovables/ruin3/init.lua"
79 include "world/immovables/ruin4/init.lua"
80 include "world/immovables/ruin5/init.lua"
81+include "world/immovables/seashell1/init.lua"
82+include "world/immovables/seashell2/init.lua"
83 include "world/immovables/skeleton1/init.lua"
84 include "world/immovables/skeleton2/init.lua"
85-include "world/immovables/skeleton3/init.lua"
86-include "world/immovables/skeleton4/init.lua"
87 include "world/immovables/track_winter/init.lua"
88
89 -- Standing Stones
90
91=== modified file 'world/map_generation.lua'
92--- world/map_generation.lua 2014-06-10 18:02:00 +0000
93+++ world/map_generation.lua 2014-07-12 20:29:25 +0000
94@@ -111,7 +111,7 @@
95 {
96 name = "wasteland_doodads",
97 immovables = {
98- "skeleton1", "skeleton2", "skeleton3", "cactus1",
99+ "seashell2", "skeleton1", "skeleton2", "cactus1",
100 "cactus2", "fallentree", "deadtree1", "deadtree2",
101 "deadtree3", "deadtree4"
102 },
103@@ -299,7 +299,7 @@
104 {
105 name = "wasteland_doodads",
106 immovables = {
107- "skeleton1", "skeleton2", "skeleton3", "cactus1",
108+ "seashell2", "skeleton1", "skeleton2", "cactus1",
109 "cactus2", "fallentree", "deadtree1", "deadtree2",
110 "deadtree3", "deadtree4"
111 },
112@@ -469,7 +469,7 @@
113 {
114 name = "wasteland_doodads",
115 immovables = {
116- "skeleton1", "skeleton2", "skeleton3", "cactus1",
117+ "seashell2", "skeleton1", "skeleton2", "cactus1",
118 "cactus2", "fallentree", "deadtree1", "deadtree5",
119 "deadtree6", "deadtree4"
120 },
121@@ -656,7 +656,7 @@
122 {
123 name = "wasteland_doodads",
124 immovables = {
125- "skeleton1", "skeleton2", "skeleton3", "deadtree1",
126+ "seashell2", "skeleton1", "skeleton2", "deadtree1",
127 "deadtree2", "deadtree3", "deadtree4"
128 },
129 critters = {},

Subscribers

People subscribed via source and target branches

to status/vote changes: