This commit is contained in:
Alexander Popov 2021-01-09 17:27:44 +03:00
parent e2c7c8c885
commit 409e8b096d
35 changed files with 3407 additions and 50 deletions

8
.gitignore vendored
View File

@ -1,5 +1,7 @@
*_strings.dat.txt
result.txt
strings.dat
.venv/
*.*~
delver/
delver.jar

57
.trash/utils/strPack.py Executable file
View File

@ -0,0 +1,57 @@
#!/usr/bin/env python3
import os
import sys
import json
__author__ = "Alexander Popov"
__version__ = "2.0.0"
__license__ = "Unlicense"
# translateData = dict()
def loadTranslate():
with open("[NEW]_strings.dat.txt", "r", encoding="utf-8") as f:
# translateData = f.read().split('\n\n')
# translateStrings = dict()
# # stringsArray = [row.strip() for row in f]
# for item in translateData:
# text = item.split('\n')
# translateStrings[text[0]] = text[1]
# # print(text)
return json.loads(f.read())
def replaceStrings():
with open(
"mods/delver-pack-ru-ru/data/strings_orig.dat", "r", encoding="utf-8"
) as f:
data = json.loads(f.read())
translatedStings = loadTranslate()
for item in data:
# print(translatedStings[item])
# print(translatedStings[item])
data[item]["localizedName"] = translatedStings[item]["localizedName"]
# print(translatedStings[item])
with open("strings.dat", "w", encoding="utf-8") as f1:
json.dump(data, f1, ensure_ascii=False)
if __name__ == "__main__":
try:
filePath = sys.argv[1]
if os.path.exists(filePath) == True:
print("Ok")
else:
print("Путь неверен.")
except IndexError:
print("Необходимо ввести путь к файлу.")
quit()

12
.trash/notabenoidSplit.py → .trash/utils/strUnpack.py Normal file → Executable file
View File

@ -1,16 +1,18 @@
#!/usr/bin/env python3
import sys
import json
__author__ = 'Alexander Popov'
__version__ = '1.0.0'
__version__ = '2.0.0'
__license__ = 'Unlicense'
exportData = list()
def loadStrings():
with open('strings.dat', 'r', encoding='utf-8') as f:
def loadStrings(file_path):
### ###
with open(file_path, 'r', encoding='utf-8') as f:
jsonData = json.loads(f.read())
for string in jsonData:
@ -30,7 +32,9 @@ def saveStrings():
return('Complete!')
if __name__ == '__main__':
print('Loading strings...', loadStrings())
file_path = sys.argv[1]
print('Loading strings...', loadStrings(file_path))
print('Save strings for notabenoid...', saveStrings())
print('\nComplete!')

View File

@ -1,5 +1,5 @@
# Russian language pack for [Delver](http://www.delvergame.com/)
**(В процессе)**
**(В процессе)**
![Delver](https://github.com/iiiypuk/delver-pack-ru-ru/raw/master/logo.png)
# Notice

3
TODO.md Normal file
View File

@ -0,0 +1,3 @@
[ ] скрипт для формирования директории мода
[ ] add GitHub cover

View File

@ -0,0 +1,11 @@
{
messages: [
[
"We're doomed. There was sound and shaking unlike anything I can describe and a wave of heat that blistered exposed skin.",
"Now we're trapped. The main paths up to the city are covered in rock... I don't know how we can survive down here much longer.",
"We found something! The quake shook out a section of the sewer's retaining wall, it exposed something else.",
"Parts of some kind of structure? How could something like that exist way down here? It must be ages old.",
"It's decided, we're going to go down there. Maybe there is another way out."
]
]
}

View File

@ -0,0 +1,9 @@
{
repeats: true,
messages: [
[
"It's right where they said it was, these look like old mage empire ruins. Seems likely from what's left anyway.",
"Rumor says that in their constant striving for more power, they made their own undoing here. I say, more for us. -N"
]
]
}

View File

@ -0,0 +1,15 @@
{
repeats: true,
messages: [
[
"Notes on Battle, Third Edition
1: A focused attack will always hit, even in battle a little planning goes a long way.",
"(focus an attack by holding down the attack button until fully charged, then release)",
"2: Take stock of your belongings before charging ahead. put things on a belt for easy access in battle.",
"(drag items to your belt at the top of the screen for quick access)",
"3: Always have an exit, and know where you are. keep a map to avoid getting lost.",
"(use your map and minimap to view where you have been already, and where to go next)"
]
]
}

View File

@ -0,0 +1,9 @@
{
repeats: true,
messages: [
[
"The others went inside, against my arguments to proceed more cautiously. I fear for the worst. The only thing to do now is to wait for their return.",
"No word yet from the rest but I've been trying to continue my studies in their absence. So far nothing seems fixed here, no observations have remained stable."
]
]
}

View File

@ -0,0 +1,9 @@
{
repeats: true,
messages: [
[
"This place is perfect! Even more artifacts than I hoped!",
"Getting access to them is going to be difficult though. Maybe we can let these dumb adventurers go collect them for us, and scoop them up off of their valiant corpses."
]
]
}

View File

@ -0,0 +1,24 @@
{
repeats: false,
messages: [
[
"What do we have here, another treasure hunter?",
"You won't listen to me, they never do, but the best thing for you is to leave.",
"Not many who go in ever leave that place. Even less with their wits.",
],
[
"I'm a scholar, I was sent here by the guild to study this place but I just have more questions so far.",
"What happened to the people that lived here?",
"Why are people drawn here?",
"Why are my dreams so strange here? I've barely been able to sleep at all."
],
[
"Are you going in there?",
"I'm not going to stop you, but I warned you."
],
[
"You look familiar...",
"Have you been this way before?"
]
]
}

View File

@ -0,0 +1,13 @@
{
repeats: false,
messages: [
[
"You're back! There is more to you than it appears it seems.",
"Our records seem to indicate that the inhabitants of this place exported a unique crystal, and this business made them extremely wealthy.",
"Did you find those mines? I would expect there to be quite a large network of them."
],
[
"Did you find the mines? I would expect there to be quite a large network of them."
]
]
}

View File

@ -0,0 +1,17 @@
{
repeats: false,
messages: [
[
"Hello again. It's been awhile... and I must say that I feared the worst.",
"While you are here, I can catch you up on our research.",
"We think that the convergence of magic energies here must act as a beacon to those sensitive in the arcane.",
"Older books of ours indicate that this place has been inhabited for much longer than just this castle here.",
"Could you look for evidence of there being older structures here, under the castle?",
"Places this powerful have likely been inhabited multiple times over the ages."
],
[
"Could you look for evidence of there being older structures here, under the castle?",
"Places this powerful have likely been inhabited multiple times over the ages."
]
]
}

View File

@ -0,0 +1,15 @@
{
repeats: false,
messages: [
[
"Somehow, you always manage to return to us.",
"I've been doing more research in your absence, with some intriguing findings.",
"It's just a theory, but I have a feeling that this was the location of the lost city of Vyr. That city has no mention of being in the mountains, however.",
"My thinking is that these mountains are a more recent addition to this landscape. It would take quite an event to raise a mountain chain like this though."
],
[
"What we know of Vyr is that it rested on an island in a lake.",
"If this is the place, then whatever happened here was an extremely violent event."
]
]
}

View File

@ -0,0 +1,17 @@
{
repeats: false,
messages: [
[
"Well well. Welcome back to us, delver.",
"Doing any more of your scholarly research at swordpoint?",
"I would be careful proceeding any further than you have. Something bad happened here in the past. Something powerful.",
"It wasn't just one time either. There is a unique pattern of disasters happening here.",
"My opinion in this matter is changing. Now I think the best thing we could probably do is to leave this place.",
"We should leave while we can, and never look back."
],
[
"There is a unique pattern of disasters happening here.",
"We should probably leave this place and never come back."
]
]
}

View File

@ -0,0 +1,65 @@
{
repeats: false,
messages: [
[
"A game by Chad Cuddigan",
"and Joshua Skelton"
],
[
"Engine, Game Design and Programming by",
"Chad Cuddigan"
],
[
"Art, Programming, and Community Management",
"Joshua Skelton"
],
[
"Music by",
"White Wolf",
"Nathan Antony",
"Gordon McGladdery"
],
[
"Sound by",
"Power Up Audio"
],
[
"Character Animation by",
"Hunter Russel"
],
[
"Graphic Design by",
"SamCube"
],
[
"Special thanks to",
"The Unofficial Delver Discord",
"TigSource",
"Andy Sum",
"Ben Porter"
],
[
"siskavard",
"Arsenio Dev",
"Hawaii_Beach",
"Pixel Profligate",
"Drakensin",
"Mike Ratzlaff"
],
[
"And many more than we can mention here."
],
[
"But most importantly, you!"
],
[
"Thanks for playing! <",
],
[
"",
],
[
"The dungeon is becoming angrier..."
]
]
}

View File

@ -0,0 +1,75 @@
{
repeats: true,
pickRandom: true,
messages: [
[
"Matz, things further inside the ruins seem to be intact - it's just as we hoped! The location is off from where the old maps said that the mage king's tower would,",
"and only the lower floors and basements are left intact, but all of the things we're finding indicate that this is indeed the place."
],
[
"Send back word to the Heralds, those scholars actually found the place. We'll sneak down ahead of the main group, if this tower is here that means one of the artifacts is likely here as well."
],
[
"Nobody has been in these ruins for centuries, what a find! The mountains ringing the tower have kept people away, the kingdom probably had portals to get here easier than we did."
],
[
"Send some men back up to move the expedition supplies, they'll be safer in here than sitting outside in the rain."
],
[
"We've found some intact libraries but the intact books are written in something that looks like Oldhand, translation will be slow going."
],
[
"Jeran, some of our porters have gone missing. Did you send them on some errand? We're going to need them back to clear out some of this rubble."
],
[
"Expedition supply tally: 5 crates of salted pork, 6 bundles of trail bread, and 4 cases of barley ale."
],
[
"Exploring the ruins has been slow going as of yet, I fear we're pushing the men too hard. Some have already left us, probably to head back home.",
"If only we could get a good nights sleep, things would go faster. Everyone is so on edge that they're jumping at shadows."
],
[
"I don't care what that so called scholar Matz says, something is alive down here and I don't mean those insufferable bats.",
"Last night I heard scraping at the door of the barracks we had set up in, but whatever it was cleared out as soon as I set out after it."
],
[
"Start lighting the torches as we go, exploring will be easier if we can see without these lanterns and we can keep track of where we've been."
],
[
"I haven't had one good night of sleep since stepping foot in this place, I'm getting so frayed that I keep hearing whispers, even when nobody is around."
],
[
"Jeran, one of the guardsman went berzerk! He started yelling about how we were all going to die, and cut down two men before escaping further into the ruins.",
"One of the victims died immediately, we've bandaged up the other but he's going to need one of those potions from the emergency supplies to keep infections away."
],
[
"We were right! Those fools at the Imperium can eat a boot, this one mage king did rule over all of the free cities of the time.",
"There must have been portals open to all of the cities, making this tower the center of trade."
],
[
"Jeran's team found the entrance to what appears to be the mines under the basements. Those will probably be worth exploring later.",
"For now, lets focus on the areas that were inhabited. There's enough there to keep us busy for weeks."
],
[
"Watch out for traps! Some of these passages have floor plates linked to some sort of arcane security system.",
"Bron stepped on one and dissapeared in a flash of light, thankfully we ran into him later unharmed just very confused."
],
[
"Any news on that missing group? We checked outside and things looked clear, maybe they started back home."
],
[
"This place begs so many questions, the university will have a presence here for a long time once the news gets out."
],
[
"We found some evidence of the first expedition, they definitely made it here. We've found scraps of their notes scattered about and some of their supplies, but no bodies so far. It's like they just vanished."
],
[
"Stay away! This place is a nightmare, we should have never come. The things we're stirring up here should have stayed buried forever.",
"Most of the expedition is missing now, the rest of us are slowly losing our minds. We tried to turn back, but the passages themselves taunt us now."
],
[
"All of our maps are useless! We carefully marked our path on the way in but on the way back out nothing is matching up.",
"This place does not want us to leave!"
]
]
}

View File

@ -0,0 +1,12 @@
{
repeats: true,
messages: [
[
"Now you have walked the paths of the many, and learned much. You have seen a multitude of futures that could have been.",
"Where is here? Or when? The Yithidians learned to warp and mix the planes of existence.",
"Only the knowledge gained here in your trial can leave with you.",
"Remember what you have learned, and use it well.",
"Because somewhere, in some life, those skills and persistence will be needed again."
]
]
}

View File

@ -0,0 +1,10 @@
{
messages: [
[
"The inscription is too worn to make out."
],
[
"Who was this?"
]
]
}

View File

@ -0,0 +1,15 @@
{
repeats: false,
messages: [
[
"Ahhhh... it seems we have a visitor. Yes we do.",
"It does not look like a traveller of the deep roads... but it is not under a thrall like the others here, is it? How curious.",
"Long ago I watched those like you dig deep into the earth here, disturbing that which should have been left forgotten. Their work lies ahead down this path.",
"Anyway, it is not here for stories... Perhaps it would like to trade instead?",
"We have studied those lost magics that reach beyond this dimension. I can offer this, for a price of course."
],
[
"Ahhh... it returns. Does it have need to pierce the veils of worlds?"
]
]
}

View File

@ -0,0 +1,12 @@
{
repeats: false,
messages: [
[
"The traveler is back... Perhaps it is in need of our assistance?",
"We have traveled the multitudes ourselves. I can offer this knowledge, for a price of course."
],
[
"Ahhh... it returns. Does it have need to pierce the veils of worlds?"
]
]
}

View File

@ -0,0 +1,18 @@
{
repeats: false,
messages: [
[
"Ahhhh... it seems we have met it again.",
"It must be a tenacious thing to make it this far into the earth.",
"Anyway, it is not one for musing... Perhaps it would like to trade instead?",
"We have for sale words from dead stars. Even gone their stories are powerful."
],
[
"Is it a Guardian? There are stories of fading worlds and those who tried to help them.",
"Unlikely. The energies are wrong. Anyway, does it have need of more stories?",
],
[
"Ahhh... it returns. Does it have need of more stories?"
]
]
}

View File

@ -0,0 +1,13 @@
{
repeats: false,
messages: [
[
"Hey buddy! Did you meet my brother Joff outside?",
"I'm Jeff! The 9th most important rule of business is to be bold, so I'm running our new startup location down here.",
"All of our weapons and magical artifacts are locally sourced!"
],
[
"All of our weapons and magical artifacts are locally sourced!"
]
]
}

View File

@ -0,0 +1,15 @@
{
repeats: false,
messages: [
[
"Hey buddy! Nice to see you around!",
"Don't tell Joff, but it's nice to see anyone around. This place doesn't get a ton of foot traffic.",
"Those folk upstairs don't seem to take kindly to my snooping around... and taking their stuff... so I mostly stick around here with the weird robed guy.",
"He's not one for conversation. Mostly sticks to his books. Strange fellow, but he hasn't tried to murder me yet!",
"Sorry for talking your ear off. Want to buy something?"
],
[
"All of our weapons and magical artifacts are locally sourced!"
]
]
}

View File

@ -0,0 +1,14 @@
{
repeats: false,
messages: [
[
"You again? I didn't expect to see you. Not many return customers around here.",
"To be honest, it's kind of lonely down here...",
"I wish I could talk to Joff again. He always knew what to say. I kind of messed that up though.",
"But there's no way out of here that I've found, could you let me know if you find a way?",
],
[
"There's no way out of here that I've found, could you let me know if you find a way?",
]
]
}

View File

@ -0,0 +1,13 @@
{
repeats: false,
messages: [
[
"Hey adventurer! Are you planning on going into those ruins? It's dangerous!",
"If I were you, I'd want to be stocked up on supplies before going into that place...",
"Thankfully, your pal Joff here sells everything you could possibly need!"
],
[
"Fortune favors the prepared! Supplies are limited."
]
]
}

View File

@ -0,0 +1,12 @@
{
repeats: false,
messages: [
[
"Hey adventurer, Didn't you go into those ruins?",
"Anyways, welcome back! You better stock up while you are here."
],
[
"Fortune favors the prepared! Supplies are limited."
]
]
}

View File

@ -0,0 +1,14 @@
{
repeats: false,
messages: [
[
"Hey... Did you ever run into my brother while you were down there?",
"We had a bit of a falling out... and he decided to try his luck inside.",
"I haven't seen him since then. People that go in there don't tend to leave, like you can.",
"It would be nice to see him again someday... Anyway, want to buy something?"
],
[
"It would be nice to see Jeff again someday... Anyway, want to buy something?"
]
]
}

View File

@ -0,0 +1,11 @@
{
repeats: true,
messages: [
[
"It has done well to find us. The place is right, but the time is not.",
"This place... it is not where things started, but it is here where they were given shape.",
"For now the gate holds back the cold and the dark, but no door can stay sealed forever.",
"And forever is not that long a wait, for things such as us."
]
]
}

View File

@ -0,0 +1,8 @@
{
repeats: true,
messages: [
[
" ..."
]
]
}

View File

@ -0,0 +1,8 @@
{
repeats: true,
messages: [
[
"- four days northwest, up old mountain trail\n- ravine at end of lake, statues and ruins\n- buyer back in Kyr?"
]
]
}

View File

@ -0,0 +1,14 @@
{
repeats: false,
messages: [
[
"Hello traveler. I didn't see you arrive.",
"This place has always been a beacon for those properly attuned. Do you feel it too?"
"For the more magically inclined, such as myself, this is a great place to enchant scrolls and artifacts.",
"I have some scrolls prepared that I could part with, for the right price. Otherwise, please let me return to my meditations."
],
[
"I have some more scrolls prepared that I could part with, for the right price."
]
]
}

View File

@ -0,0 +1,12 @@
{
repeats: false,
messages: [
[
"Welcome back.",
"I have some more scrolls prepared, if you're in need of some arcane intervention."
],
[
"I have some more scrolls prepared, if you're in need of some arcane intervention."
]
]
}

File diff suppressed because it is too large Load Diff

View File

@ -1,42 +0,0 @@
#!/usr/bin/env python3
import json
__author__ = 'Alexander Popov'
__version__ = '1.0.0'
__license__ = 'Unlicense'
# translateData = dict()
def loadTranslate():
with open('[NEW]_strings.dat.txt', 'r', encoding='utf-8') as f:
# translateData = f.read().split('\n\n')
# translateStrings = dict()
# # stringsArray = [row.strip() for row in f]
# for item in translateData:
# text = item.split('\n')
# translateStrings[text[0]] = text[1]
# # print(text)
return(json.loads(f.read()))
def replaceStrings():
with open('mods/delver-pack-ru-ru/data/strings_orig.dat', 'r', encoding='utf-8') as f:
data = json.loads(f.read())
translatedStings = loadTranslate()
for item in data:
# print(translatedStings[item])
# print(translatedStings[item])
data[item]['localizedName'] = translatedStings[item]['localizedName']
# print(translatedStings[item])
with open('strings.dat', 'w', encoding='utf-8') as f1:
json.dump(data, f1, ensure_ascii=False)
if __name__ == '__main__':
replaceStrings()