Download repack.csx from Cnass/gamemaker: direct link, hf CLI and curl.
- Browser
- Download file 619 Bytes
-
https://huggingface.co/spaces/Cnass/gamemaker/resolve/main/repack.csx
- Command line
-
hf download hf://spaces/Cnass/gamemaker/repack.csx
-
curl -L -o repack.csx https://huggingface.co/spaces/Cnass/gamemaker/resolve/main/repack.csx
619 Bytes
| using System.IO; | |
| using System.Text.Json; | |
| using System.Collections.Generic; | |
| using UndertaleModLib; | |
| string json = File.ReadAllText("strings.json"); | |
| var dict = JsonSerializer.Deserialize<Dictionary<string, string>>(json); | |
| int changed = 0; | |
| foreach (var str in Data.Strings) { | |
| if (dict.TryGetValue(str.Content, out string newStr)) { | |
| if (str.Content != newStr) { | |
| str.Content = newStr; | |
| changed++; | |
| } | |
| } | |
| } | |
| // Düzenlenmiş dosyayı kaydet | |
| using (var stream = new FileStream("repacked_game.droid", FileMode.Create, FileAccess.Write)) { | |
| UndertaleWriter.Write(stream, Data); | |
| } | |