Skip to content

Commit 92f5289

Browse files
committed
Update All resources to 5.0
1 parent c62b468 commit 92f5289

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

61 files changed

+14042
-502
lines changed

Source/GrasscutterTools/Game/CutScene/CutSceneItem.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,10 +17,12 @@
1717
*
1818
**/
1919

20+
using GrasscutterTools.Game.Data;
2021
using Newtonsoft.Json;
2122

2223
namespace GrasscutterTools.Game.CutScene
2324
{
25+
[ResourceType("CutsceneExcelConfigData.json")]
2426
internal class CutSceneItem
2527
{
2628
[JsonProperty("id")]

Source/GrasscutterTools/Game/Data/GameResources.cs

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
using System.Linq;
2626
using System.Text;
2727
using System.Threading;
28-
28+
using GrasscutterTools.Game.CutScene;
2929
using GrasscutterTools.Game.Data.Excels;
3030
using GrasscutterTools.Game.Inventory;
3131
using GrasscutterTools.Game.Props;
@@ -70,6 +70,7 @@ internal class GameResources
7070
public TextMapData TextMapData { get; set; }
7171

7272
public List<WeatherData> WeatherData { get; set; }
73+
public List<CutSceneItem> CutSceneData { get; set; }
7374

7475
public GameResources(string resourcesDirPath, TextMapData textMapData)
7576
{
@@ -431,6 +432,21 @@ public void ConvertResources(string projectResourcesDir)
431432

432433
#endregion Scene
433434

435+
#region CutScene
436+
437+
// CutScene
438+
File.WriteAllLines(
439+
Path.Combine(dir, "Cutscene.txt"),
440+
CutSceneData.Select(it =>
441+
{
442+
var text = GameData.CutScenes[it.Id];
443+
return text == ItemMap.EmptyName
444+
? $"{it.Id}:{it.Path.Substring(it.Path.IndexOf('/') + 1)}"
445+
: $"{it.Id}:{text}";
446+
}), Encoding.UTF8);
447+
448+
#endregion CutScene
449+
434450
#region Weapon
435451

436452
// Weapon

Source/GrasscutterTools/Game/Inventory/MaterialType.cs

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,9 @@ internal enum MaterialType
6565
MATERIAL_REMUS_MUSIC_BOX = 53,
6666
MATERIAL_GREATEFESTIVALV2_INVITE = 54,
6767
MATERIAL_PHOTOGRAPH_POSE = 55,
68+
MATERIAL_FIRE_MASTER_AVATAR_TALENT_ITEM = 56,
69+
MATERIAL_PHOTOV5_HAND_BOOK = 57,
70+
MATERIAL_AVATAR_TRACE = 58,
6871
}
6972

7073
internal static class MaterialTypeExtension
@@ -125,6 +128,9 @@ internal static class MaterialTypeExtension
125128
[MaterialType.MATERIAL_REMUS_MUSIC_BOX] = "音乐盒",
126129
[MaterialType.MATERIAL_GREATEFESTIVALV2_INVITE] = "邀请函",
127130
[MaterialType.MATERIAL_PHOTOGRAPH_POSE] = "照相姿势",
131+
[MaterialType.MATERIAL_FIRE_MASTER_AVATAR_TALENT_ITEM] = "燧原矿",
132+
[MaterialType.MATERIAL_PHOTOV5_HAND_BOOK] = "回忆相册",
133+
[MaterialType.MATERIAL_AVATAR_TRACE] = "游迹",
128134
};
129135
private static readonly Dictionary<MaterialType, string> TextMapEN = new Dictionary<MaterialType, string>
130136
{
@@ -182,6 +188,9 @@ internal static class MaterialTypeExtension
182188
[MaterialType.MATERIAL_REMUS_MUSIC_BOX] = "MusicBox",
183189
[MaterialType.MATERIAL_GREATEFESTIVALV2_INVITE] = "Invitation",
184190
[MaterialType.MATERIAL_PHOTOGRAPH_POSE] = "Photograph_pose",
191+
[MaterialType.MATERIAL_FIRE_MASTER_AVATAR_TALENT_ITEM] = "Fire_master_avatar_talent_item",
192+
[MaterialType.MATERIAL_PHOTOV5_HAND_BOOK] = "Photov5_hand_book",
193+
[MaterialType.MATERIAL_AVATAR_TRACE] = "Avatar_trace",
185194
};
186195

187196
public static string ToTranslatedString(this MaterialType materialType, string language)

Source/GrasscutterTools/Pages/PageTools.Designer.cs

Lines changed: 0 additions & 13 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Source/GrasscutterTools/Pages/PageTools.cs

Lines changed: 1 addition & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,6 @@
2727

2828
using GrasscutterTools.Game;
2929
using GrasscutterTools.Game.Activity;
30-
using GrasscutterTools.Game.CutScene;
3130
using GrasscutterTools.Game.Data;
3231
using GrasscutterTools.Properties;
3332

@@ -101,27 +100,6 @@ private void BtnUpdateResources_Click(object sender, EventArgs e)
101100
}
102101
}
103102

104-
private void BtnConvertCutScene_Click(object sender, EventArgs e)
105-
{
106-
var src = new OpenFileDialog
107-
{
108-
Title = "请选择 Json 格式的 Cutscene.txt",
109-
Multiselect = false,
110-
};
111-
if (src.ShowDialog() != DialogResult.OK)
112-
return;
113-
try
114-
{
115-
var cutScenes = JsonConvert.DeserializeObject<List<CutSceneItem>>(File.ReadAllText(src.FileName));
116-
File.WriteAllLines(src.FileName, cutScenes.Select(it => $"{it.Id}:{it.Path.Substring(it.Path.IndexOf('/') + 1)}"));
117-
MessageBox.Show("OK", Resources.Tips, MessageBoxButtons.OK);
118-
}
119-
catch (Exception ex)
120-
{
121-
MessageBox.Show(ex.ToString(), Resources.Error, MessageBoxButtons.OK, MessageBoxIcon.Error);
122-
}
123-
}
124-
125103
private bool CheckInputPaths()
126104
{
127105
if (string.IsNullOrEmpty(TxtProjectResRoot.Text) || string.IsNullOrEmpty(TxtGcResRoot.Text))
@@ -177,7 +155,7 @@ private void BtnUpdateActivity_Click(object sender, EventArgs e)
177155

178156
TextMapData ??= new TextMapData(TxtGcResRoot.Text);
179157

180-
UpdateActivityForLanguage(activityItems, "TextMapCHS", "zh-cn");
158+
// UpdateActivityForLanguage(activityItems, "TextMapCHS", "zh-cn");
181159
UpdateActivityForLanguage(activityItems, "TextMapCHT", "zh-tw");
182160
UpdateActivityForLanguage(activityItems, "TextMapEN", "en-us");
183161
UpdateActivityForLanguage(activityItems, "TextMapRU", "ru-ru");

Source/GrasscutterTools/Resources/AvatarColor.txt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -83,3 +83,7 @@
8383
1096:5
8484
1097:4
8585
1098:5
86+
1099:5
87+
1100:4
88+
1101:5
89+
1102:5

Source/GrasscutterTools/Resources/SceneTag.txt

Lines changed: 84 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -262,6 +262,10 @@
262262
1396:HdjV4_Ylb
263263
1397:Combine_AlchemySim01
264264
1398:Combine_CookGame
265+
1401:NT_PSSNCD
266+
1402:NT_ALPHA (Default)
267+
1403:NT_JYZMSY (Default)
268+
1421:NT_JYZM_P4
265269
1422:LY_YUNQI_01 (Default)
266270
1423:LY_YUNQI_02 (Default)
267271
1424:LY_YUNQI_03 (Default)
@@ -272,13 +276,62 @@
272276
1429:Alc_BaseGrass
273277
1430:Combine_GreatFesV2
274278
1431:FD_QZLQ_01
279+
1436:NT_JBCSZD_P1 (Default)
280+
1437:NT_JBCSZD_P2
275281
1438:TrpgGame
276282
1439:Combine_FD_QZLQ_01
277283
1440:Combine_XM_TomatoFarm
284+
1441:NT_JSLY_P1 (Default)
285+
1442:NT_JSLY_P2
278286
1445:NT_YSKJ_P1 (Default)
279287
1446:NT_YSKJ_P2
280288
1447:Combine_WishPond_mx
289+
1448:NT_QSYS_Before (Default)
290+
1449:NT_QSYS_After
291+
1450:Mihai_P0 (Default)
292+
1451:Mihai_P1
293+
1452:Mihai_P2
294+
1453:Mihai_P3
295+
1471:NT_HGJT_AF
296+
1472:NT_HMS_P1 (Default)
297+
1473:NT_HMS_P2
298+
1475:Combine_NT_HMS_P2
281299
1476:Combine_TrpgGame
300+
1481:BigWorld_-2_10_BaseTerrain
301+
1482:BigWorld_-2_10_BaseGrass
302+
1486:NT_JSLY_SpVo
303+
1487:NT_Yyj0 (Default)
304+
1488:NT_Yyj1
305+
1489:NT_Yyj2
306+
1490:NT_Yyj3
307+
1491:NT_Qqfw_BF (Default)
308+
1492:NT_Qqfw_AF
309+
1493:Combine_NT_PSSNCD (Default)
310+
1494:BigWorld_-2_10_01_BaseGrass
311+
1495:BigWorld_-2_10_02_BaseGrass
312+
1496:BigWorld_-2_10_03_BaseGrass
313+
1497:Nt_XKLCamp
314+
1498:NT_TKC_Bf (Default)
315+
1499:NT_TKC_Af
316+
1500:NT_TKC_Dr
317+
1501:NT_AX_P1 (Default)
318+
1502:NT_AX_P2
319+
1503:NT_AX_P3
320+
1504:NT_XKLDusk
321+
1505:Combine_NT_XKLDusk (Default)
322+
1506:NT_HookTribal
323+
1507:NT_AQ_HDD_AF
324+
1509:Combine_NT_AQ_HDD_AF
325+
1512:NT_JSLY_SpVo02
326+
1515:NT_JSLY_P1_L (Default)
327+
1516:NT_OfferingTemple_max
328+
1517:NT_TKC_Fd (Default)
329+
1520:Mihai_P4
330+
1525:NT_HJCSX_01 (Default)
331+
1526:NT_HJCSX_02
332+
1527:NT_HJJSY_01 (Default)
333+
1528:NT_HJJSY_02
334+
1559:NT_AQ_ANH
282335
// 4
283336
106:SummerTime
284337
108:SummerTime_High
@@ -562,6 +615,24 @@
562615
1392:LY_Yunbao_4
563616
1399:LY_Yunbao_5
564617
1400:LY_Yunbao_6
618+
// 100
619+
1404:FB_GKXH
620+
1405:FB_FTXH_BF (Default)
621+
1406:FB_FTXH_AF
622+
1407:FB_JMPB_BF (Default)
623+
1408:FB_JMPB_AF
624+
1409:FB_JMCZ_BF (Default)
625+
1410:FB_JMCZ_AF
626+
1411:FB_JMYL_AF
627+
1412:FB_ZZSL_BF (Default)
628+
1413:FB_ZZSL_AF
629+
1414:FB_FTYD_BF (Default)
630+
1415:FB_FTYD_AF
631+
1483:FB_LZGS_BF (Default)
632+
1484:FB_LZGS_AF
633+
1485:FB_XLZT_AF
634+
1510:FB_WISH_BF (Default)
635+
1511:FB_WISH_AF
565636
// 20208
566637
1432:Nihil_P1 (Default)
567638
1433:Nihil_P2
@@ -594,3 +665,16 @@
594665
1468:MVM_DEF_03 (Default)
595666
// 35987
596667
1469:MVM_DEF_04 (Default)
668+
// 20220
669+
1477:FB_LDCKD_BF (Default)
670+
1478:FB_LDCKD_AF
671+
// 20221
672+
1479:FB_LDCCZ_BF (Default)
673+
1480:FB_LDCCZ_AF
674+
// 1095
675+
1508:NT_AQ_HSD_AF (Default)
676+
// 20229
677+
1513:Nyx_Light_AF (Default)
678+
1514:Nyx_Light_BF
679+
1518:Nyx_Light_Dark
680+
1521:Nyx_TalkLight

Source/GrasscutterTools/Resources/WeaponColor.txt

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@
3333
11427:purple
3434
11428:purple
3535
11429:purple
36+
11431:purple
3637
11501:yellow
3738
11502:yellow
3839
11503:yellow
@@ -74,13 +75,15 @@
7475
12425:purple
7576
12426:purple
7677
12427:purple
78+
12431:purple
7779
12501:yellow
7880
12502:yellow
7981
12503:yellow
8082
12504:yellow
8183
12510:yellow
8284
12511:yellow
8385
12512:yellow
86+
12513:yellow
8487
13101:blue
8588
13201:blue
8689
13301:blue
@@ -105,6 +108,7 @@
105108
13425:purple
106109
13426:purple
107110
13427:purple
111+
13431:purple
108112
13501:yellow
109113
13502:yellow
110114
13504:yellow
@@ -113,6 +117,7 @@
113117
13509:yellow
114118
13511:yellow
115119
13512:yellow
120+
13513:yellow
116121
14101:blue
117122
14201:blue
118123
14301:blue
@@ -140,6 +145,8 @@
140145
14424:purple
141146
14425:purple
142147
14426:purple
148+
14427:purple
149+
14431:purple
143150
14501:yellow
144151
14502:yellow
145152
14504:yellow
@@ -151,6 +158,7 @@
151158
14513:yellow
152159
14514:yellow
153160
14515:yellow
161+
14516:yellow
154162
15101:blue
155163
15201:blue
156164
15301:blue
@@ -182,6 +190,7 @@
182190
15425:purple
183191
15426:purple
184192
15427:purple
193+
15431:purple
185194
15501:yellow
186195
15502:yellow
187196
15503:yellow

0 commit comments

Comments
 (0)