- Joined
- Sep 27, 2011
- Messages
- 26
- Reaction score
- 3
naaxt420So i managed to make a quest work as it should but something still bugs me ...
The part of .lua quest file related to text string looks like this:
Code:InsertQuestMenuStringList("NPC_CH_SMITH", 8, "BASIC_MENUSTRING_GREETING", "SN_NPC_CH_SMITH_QS", "BASIC_MENUSTRING_REQUEST_ACCEPT_QUEST", "SN_TALK_QNO_DAILY_TEST_1_01", "BASIC_MENUSTRING_AT_ACCEPT", "SN_TALK_QNO_DAILY_TEST_1_02", "BASIC_MENUSTRING_AT_DENY", "SN_TALK_QNO_DAILY_TEST_1_03", "BASIC_MENUSTRING_NOT_ACHIEVED", "SN_TALK_QNO_DAILY_TEST_1_04", "BASIC_MENUSTRING_ACHIEVED", "SN_TALK_QNO_DAILY_TEST_1_05", "BASIC_MENUSTRING_ACHIEVED_NOW", "SN_TALK_QNO_DAILY_TEST_1_06", "BASIC_MENUSTRING_COUNT_LIMIT", "SN_TALK_QNO_DAILY_TEST_1_07")
textquest_queststring.txt part looks like this
Code:1 SN_TALK_QNO_DAILY_TEST_1_01 0 0 0 0 0 0 Basic accept quest. 0 0 0 0 0 0 0 1 SN_TALK_QNO_DAILY_TEST_1_02 0 0 0 0 0 0 At accept quest. 0 0 0 0 0 0 0 1 SN_TALK_QNO_DAILY_TEST_1_03 0 0 0 0 0 0 At deny quest. 0 0 0 0 0 0 0 1 SN_TALK_QNO_DAILY_TEST_1_04 0 0 0 0 0 0 Not achieved. 0 0 0 0 0 0 0 1 SN_TALK_QNO_DAILY_TEST_1_05 0 0 0 0 0 0 Achieved finished quest. 0 0 0 0 0 0 0 1 SN_TALK_QNO_DAILY_TEST_1_06 0 0 0 0 0 0 Achieved now quest. 0 0 0 0 0 0 0 1 SN_TALK_QNO_DAILY_TEST_1_07 0 0 0 0 0 0 Count limit quest. 0 0 0 0 0 0 0
So, everything else works as it should but this part of the Quest text string, the message that should be in the quest description, etc, etc. it doesn't show up.
The accept, deny, ok, cancel buttons appear, there are no 0's also there are no errors.
When you press Q, the quest shows us perfectly, the count works, the title and so on.
Anyone got any idea how can i make this part of text string work ? Or, what i'm doing wrong ?
Your strings are fine, I think your problem is that your text editor is using the Unix Format for your EOL settings. You should keep the original sro file settings on your media's .txt files (UCS-2 Little Endian under Windows Format) in order to avoid anoying problems like the one you have.
For example, if you are using Notepad++ you can go to (View -> Show Simbol -> Show All Characters) and you can start to see some simbols at every End Of Line of your .txt
For your lines, you should see the Unix EOL format ("LF")
For the rest of the lines, you should see the Windows EOL format ("CR LF")
So you have to convert your EOL format into Windows EOL format.
On Notepad++, just go to (Edit -> EOL Conversion -> Convert to Windows Format) to fix your EOL's
And that is all, if you success fixing your EOL your strings will appear ingame.
-- Update
Take care when converting the EOL of (textuisystem.txt). Your launcher wont start if you change all the EOL of the file. When working with the (textuisystem.txt) I suggest you to edit line by line.
Last edited: