- Apr 10, 2018
- 347
- 510
Note that I did not ment CG but animation, it's not serious to put so much effort into a pixelart and cover it with a text cloudI'll look at what is blocking the text hiding feature tomorrow.
Note that I did not ment CG but animation, it's not serious to put so much effort into a pixelart and cover it with a text cloudI'll look at what is blocking the text hiding feature tomorrow.
Thanks for the help, but unfortunately I don't know anything about Python at all. Are there other solutions that are simpler? If not, you could explain to me step by step how to do it. Thanks in advance for an answer.Python:#!/usr/bin/env python3 import codecs import os import shutil for entry in os.listdir('.'): if(entry.endswith(".sl")): print(entry) with codecs.open(entry, 'r', encoding='utf-8') as f: text = f.read() out = "" for c in text: out += chr((ord(c) ^ 255)) with codecs.open(entry[:-3] + ".txt", 'w', encoding='utf-8') as f: f.write(out) shutil.copystat(entry, entry[:-3]+'.txt')
Python:#!/usr/bin/env python3 import codecs import os import shutil for entry in os.listdir('.'): if(entry.endswith(".txt")): with codecs.open(entry, 'r', encoding='utf-8') as f: text = f.read() out = "" for c in text: out += chr((ord(c) ^ 255)) with codecs.open(entry[:-4]+'.sl', 'w', encoding='utf-8') as f: f.write(out) shutil.copystat(entry, entry[:-4]+'.sl')
Here, I'm going to comment the code to make this easier:Thanks for the help, but unfortunately I don't know anything about Python at all. Are there other solutions that are simpler? If not, you could explain to me step by step how to do it. Thanks in advance for an answer.
#!/usr/bin/env python3
import codecs
import os
import shutil
# for every file in the current directory
for entry in os.listdir('.'):
# if the file ends with .sl
if(entry.endswith(".sl")):
# print the filename
print(entry)
# open the file in utf-8 mode (normal is ascii mode)
with codecs.open(entry, 'r', encoding='utf-8') as f:
# read the file into a variable
text = f.read()
# initialize the output to blank
out = ""
# for every charcater in the input
for c in text:
# Take the input character and run bitwise xor with the value 255
out += chr((ord(c) ^ 255))
# open a file with the same name, ending with .txt instead of .sl in UTF-8 mode
with codecs.open(entry[:-3] + ".txt", 'w', encoding='utf-8') as f:
# Write the data out
f.write(out)
# Copy the modification time/creation time from the source file to the destination
shutil.copystat(entry, entry[:-3]+'.txt')
python <scriptname>
.Is it possible to change the MC's name?
How do I remove message boxes to have a full view of the CG?
This looks to be harder than I thought, it may take a few days to find a good way to add this feature.Note that I did not ment CG but animation, it's not serious to put so much effort into a pixelart and cover it with a text cloud
I appreciate your work, maybe to save yourself the trouble, you would only provide a file that would delete these dialogues entirely for those willing, without modifying the game with additional options.This looks to be harder than I thought, it may take a few days to find a good way to add this feature.
ok i'll try, thanks for the help.Here, I'm going to comment the code to make this easier:
Doing this by hand will be very hard and slow. Or you can install python3 and run it usingPython:#!/usr/bin/env python3 import codecs import os import shutil # for every file in the current directory for entry in os.listdir('.'): # if the file ends with .sl if(entry.endswith(".sl")): # print the filename print(entry) # open the file in utf-8 mode (normal is ascii mode) with codecs.open(entry, 'r', encoding='utf-8') as f: # read the file into a variable text = f.read() # initialize the output to blank out = "" # for every charcater in the input for c in text: # Take the input character and run bitwise xor with the value 255 out += chr((ord(c) ^ 255)) # open a file with the same name, ending with .txt instead of .sl in UTF-8 mode with codecs.open(entry[:-3] + ".txt", 'w', encoding='utf-8') as f: # Write the data out f.write(out) # Copy the modification time/creation time from the source file to the destination shutil.copystat(entry, entry[:-3]+'.txt')
python <scriptname>
.
Attaching a zip file with the directory, decoded files, and scripts. You'll need to encode the files again before you see them in game.
Or can I just translate everything and then send it to you and then you decode that? Are these all the dialogues in the file scennario?Here, I'm going to comment the code to make this easier:
Doing this by hand will be very hard and slow. Or you can install python3 and run it usingPython:#!/usr/bin/env python3 import codecs import os import shutil # for every file in the current directory for entry in os.listdir('.'): # if the file ends with .sl if(entry.endswith(".sl")): # print the filename print(entry) # open the file in utf-8 mode (normal is ascii mode) with codecs.open(entry, 'r', encoding='utf-8') as f: # read the file into a variable text = f.read() # initialize the output to blank out = "" # for every charcater in the input for c in text: # Take the input character and run bitwise xor with the value 255 out += chr((ord(c) ^ 255)) # open a file with the same name, ending with .txt instead of .sl in UTF-8 mode with codecs.open(entry[:-3] + ".txt", 'w', encoding='utf-8') as f: # Write the data out f.write(out) # Copy the modification time/creation time from the source file to the destination shutil.copystat(entry, entry[:-3]+'.txt')
python <scriptname>
.
Attaching a zip file with the directory, decoded files, and scripts. You'll need to encode the files again before you see them in game.
Yes, and sure, I can encode the files for you.Or can I just translate everything and then send it to you and then you decode that? Are these all the dialogues in the file scennario?
Should I send you the file here or privately when I'm done?Yes, and sure, I can encode the files for you.
Yes please.Should I send you the file here or privately when I'm done?
Unfortunately it is more complicated than that.I appreciate your work, maybe to save yourself the trouble, you would only provide a file that would delete these dialogues entirely for those willing, without modifying the game with additional options.
I have now translated about half of it could you encode it so that I can test it? View attachment scenario.zipYes please.
If not, there needs to be.Is there a list of dieselmine games somewhere on this site?
Thank you for your work!I have now translated about half of it could you encode it so that I can test it? View attachment 1127124
No that's the patch from Kagura games. That said there are advantages to the unofficial patch. Mainly the automatons aren't messed up. (If I do say so my self, since I actually fixed the issue rather than making it worse.)the link in the OP which isYou must be registered to see the links, for what? is it for updating the game from 1.0x to v1.01 along with the official translation?
If it come along with the official translation, can I overwrite the official translation with the unofficial one?
Butt stuff is a must.I wished there was some... buttstuff. The game lacks it imo