[solved] Qrc files: changes are not displayed

Discuss translation of Daggerfall Unity and the required Daggerfall installation. Help other communities learn how to translate Daggerfall using any available tools and processes.
User avatar
Interkarma
Posts: 7236
Joined: Sun Mar 22, 2015 1:51 am

Re: [solved] Qrc files: changes are not displayed

Post by Interkarma »

Yep, just quests for now. If you have the means to edit text.rsc and books, I should be able to support these as well. It might even "just work" with the encoding changes I made but no guarantees. Supporting factions and hard strings (from fall.exe) will be a problem all to themselves. We just need to focus on one thing at a time...

No problems for the extra work so far, these were only minor changes on my end (literally a few lines of code). I'll be slower on more difficult items.

Don't forget to look after your eyes! :)

User avatar
delvisomanda
Posts: 84
Joined: Mon Jan 08, 2018 4:29 pm
Location: Argentina

Re: [solved] Qrc files: changes are not displayed

Post by delvisomanda »

Well, i'm using this programs to translate the game.

DFBOOEDT : To edit the files BOOKS.TXT
DFBSAEDT : To edit the files MAPS.BSA and MONSTER.BSA
DFDATEDT : To edit the file NAMEGEN.DAT
DFDEFEDT : To edit the file MAGIC.DEF
DFEXEEDT : To edit the file FALL.EXE
DFQRCEDT : To edit the quest files *.QRC. (now obsolete with your work)
DFRSCEDT : To edit the file TEXT.RSC
DFSTDEDT : To edit the file SPELLS.STD
DFFNTEDT: To edit the fonts

Of course, i only proved a few in daggerfall unity that work, like DFBSAEDT and DFRSCEDT. But first i wanted to focus on the quests and the text.rsc
Currently translating Daggerfall into Spanish.

User avatar
Interkarma
Posts: 7236
Joined: Sun Mar 22, 2015 1:51 am

Re: [solved] Qrc files: changes are not displayed

Post by Interkarma »

Translating Quests

You can now give this a go using test builds below. I won't publish these to the Live Builds page as they're only intended to test this specific change. Test builds below will be removed once available on Live Builds.

For anyone coming in fresh, this change is for quest scripts only at this time.

Windows x86
Windows x64
Linux Universal
Mac Universal

Testing Process
  1. Download and unzip build for your system.
  2. Download replacement FONT0003.FNT file by delvisomanda here.
  3. Go to DaggerfallUnity_Data\StreamingAssets\Fonts and replace FONT0003.FNT with the file downloaded in previous step.
  4. Go to DaggerfallUnity_Data\StreamingAssets\Quests and open S0000999.txt in a good text editor like Notepad++.
  5. You might need to convert file to UTF-8 before making any edits. In Notepad++ this is Encoding > Convert to UTF-8. I think the quest files from builds are already in UTF-8 format, but just keep this in mind for new quest scripts that UTF-8 is the best format.
  6. Make some edits to a quest, such as inserting ¡¿áéíóúñ!? to Message 1010 in quest S0000999 above.
  7. Open game and use console to "startquest s0000999" for example then test text.
  8. When distributing your changes to others, give them your replacement quest scripts and font files and tell them where to unzip in StreamingAssets.
Let me know how you go with it. I don't expect miracles for a first-pass solution, but hopefully it will help you start making progress. I'll do what I can to solve any problems in a timely manner.

If you guys need any help editing quests or understanding the format, Jay_H is a straight up expert in this field. Please feel free to start a Spanish translation thread somewhere in the modding forums. :)

Note: Quest save/load should also work OK with these changes. Don't forget that previously saved quests are read from save data (not from source). You will need to clear quests and use "startquest xxxxxxxx" again to get fresh changes from modified quest script. Jay should be able to assist with this.

User avatar
Jay_H
Posts: 4062
Joined: Tue Aug 25, 2015 1:54 am
Contact:

Re: [solved] Qrc files: changes are not displayed

Post by Jay_H »

Interkarma hears about the problem in the morning, has a new build out in the afternoon... :lol: I know it's simpler than it sounds but really!
Interkarma wrote:If you guys need any help editing quests or understanding the format, Jay_H is a straight up expert in this field. Please feel free to start a Spanish translation thread somewhere in the modding forums. :)

Note: Quest save/load should also work OK with these changes. Don't forget that previously saved quests are read from save data (not from source). You will need to clear quests and use "startquest xxxxxxxx" again to get fresh changes from modified quest script. Jay should be able to assist with this.
Yes, I'm happy to help in whatever I can. My real-time testing is limited right now due to other commitments, but I prefer to field questions over Interkarma, in spite of his continual willingness to help :)

User avatar
delvisomanda
Posts: 84
Joined: Mon Jan 08, 2018 4:29 pm
Location: Argentina

Re: [solved] Qrc files: changes are not displayed

Post by delvisomanda »

It works! But the fonts need more work, so I'll have to keep modifying them.

Image

pd: the format of the quests txt are on UTF-8 without BOM
Currently translating Daggerfall into Spanish.

User avatar
Interkarma
Posts: 7236
Joined: Sun Mar 22, 2015 1:51 am

Re: [solved] Qrc files: changes are not displayed

Post by Interkarma »

Yay! Looks like a great start. :) Good luck with the other changes. At least once pixel font is perfect, you won't need to worry about it any more.

Cool, I thought they would be UTF-8 from builds. You would then just need to check this when creating whole new quest scripts from scratch. The framework will do its best to convert encoding from source text to something Daggerfall's pixel fonts can use, but it won't always succeed. UTF-8 (text editor) to Latin-1 (Daggerfall UI) should be a good mix most of the time however.

Post Reply