Library

Discussion and information relevant to creating special missions, new ships, skins etc.

Moderators: another_commander, winston

User avatar
phkb
Impressively Grand Sub-Admiral
Impressively Grand Sub-Admiral
Posts: 5587
Joined: Tue Jan 21, 2014 10:37 pm
Location: Writing more OXPs, because the world needs more OXPs.

Re: Library

Post by phkb »

Krager wrote: Sun Jan 11, 2026 11:00 pm
Нашёл кусочек текста, не вынесенный в missiontext.plist.

Текст `Desc`
Файл `Lib_Config.js`
Строка `493`

Будете что нибудь менять и это тоже поменяйте пожалуйста.
Change line 493 to this:

Code: Select all

txt += "\n" + expandMissionText("[LIB_CONFIG_LINE_DESC]", { desc: "\n" + final }) + "\n";
And see if that fixes the issue. If so, I'll include it in the next release.
User avatar
Krager
Deadly
Deadly
Posts: 253
Joined: Wed Dec 11, 2024 9:44 pm
Location: Russian

Re: Library

Post by Krager »

phkb wrote: Mon Jan 12, 2026 1:42 am
Не работает. Выводит вместо описания слово `null`

Пока просто изменил в тексте.

Code: Select all

			txt += "\nОПИСАНИЕ:\n" + final + "\n"; // was inf.toString().substr(0, 240) (ie only 240 characters)
User avatar
phkb
Impressively Grand Sub-Admiral
Impressively Grand Sub-Admiral
Posts: 5587
Joined: Tue Jan 21, 2014 10:37 pm
Location: Writing more OXPs, because the world needs more OXPs.

Re: Library

Post by phkb »

Krager wrote: Mon Jan 12, 2026 12:35 pm
Не работает. Выводит вместо описания слово `null`
Oops. My bad. Try this instead:

Code: Select all

txt += "\n" + expandMissionText("LIB_CONFIG_LINE_DESC", { desc: "\n" + final }) + "\n";
User avatar
Krager
Deadly
Deadly
Posts: 253
Joined: Wed Dec 11, 2024 9:44 pm
Location: Russian

Re: Library

Post by Krager »

phkb wrote: Tue Jan 13, 2026 5:16 am

Code: Select all

txt += "\n" + expandMissionText("LIB_CONFIG_LINE_DESC", { desc: "\n" + final }) + "\n";
Так работает, всё хорошо, благодарю!
Post Reply