09-03-24, 22:43 | #1 |
Member
Joined: Sep 2015
Posts: 100
|
Error: Missing NG string (when it's not missing)
Hi, good people,
I want to have a Diary item in my game. I followed Paolone's tutorial for the Diary to the letter, and also searched this forum and found some additional tutorials (Aky's and Titak's, for instance). Also, Lima is having a Diary in his Dark City 2 game, and I also followed his recommendations. So, I used a Pickup item (Pickup_item1) and defined it as a diary in the Script. The code in the Script looks like this: Code:
Pickup= 1, Diary, $0009,$0300,$0000,$0000,$0000,$0002 ColorRGB= 7, 255, 255, 255; white font color WindowsFont= 2, Tahoma, WFF_LEFT_ALIGN, 22, 7, IGNORE WindowsFont= 3, Tahoma, WFF_LEFT_ALIGN, 14, 7, IGNORE WindowsFont= 4, Tahoma, WFF_LEFT_ALIGN, 12, 7, IGNORE Diary= 1, PICKUP_ITEM1, LDF_SILENT, 1, PL_DOUBLE_PAGE, @pages_1.txt, 2, 3 Code:
ID Hex ExtraNG 24 $018 Tahoma 25 $019 @pages_1.txt Here, in this .txt file, I wrote: Code:
<FORMAT> #TITLE#=Testing the Diary <END_FORMAT> This is my diary However, when I run the game, and select the level, the game crashes during loading. The error log says the following: Code:
Last diagnostic message: ERROR: can't locate extra ng string with index = 24 Also, I transferred the entire project to another PC, and compiled (built) the Script on that other PC. AND EVERYTHING WORKS! Only on my PC, when I compile (build) the Script, the game cannot locate the extra NG string with index 24 and the game crashes. Other (maybe) relevant details: The OS of my PC is Windows 10 64x. The OS of the other PC is Windows 7 64x I must solve this problem somehow. I cannot build the level on that other PC, it's not my PC. I must build it on my PC. But I don't know why this error occurs. I will reinstall the OS if necessary, or even downgrade my OS from Win 10 to Win 7 if necessary. But this would be the last resort. Migrating the hardware from Win 10 to Win 7 is not at all a small and easy task. I would be extremely grateful if you could help me solve this problem without this radical and drastic solution. Thanks in advance! |
09-03-24, 23:25 | #2 |
Member
Joined: Jul 2016
Posts: 1,900
|
From what I remember you must write the font name (in your case Tahoma) inside Strings section of your English.txt file rather than in ExtraNG section
|
09-03-24, 23:40 | #3 |
Member
Joined: Sep 2015
Posts: 100
|
I have tried this.
I overwrote the "Tahoma" entry in English.txt with "to be used later". I added Tahoma entry to Strings (overwrote one of the Strings I'm not using). This time the level loads. Lara picks up the Diary item. I open the Inventory, select the Diary. The name of this item is okay ("Diary"). But when I press Action to "read" the Diary, the game crashes to Desktop. This time the Last Crash Log says "ERROR: can't locate extra NG string with Index 25" (this is the string with @pages_1.txt) I'm completely devastated. I spent hours trying to make the Diary to work. Also, what I noticed last night: I sent my Script to Lima. He has a PC with Windows 7 (64x). He built this same script on his PC and he sent me the Script.dat and English.dat files. I then copied these two .dat files in my main game directory, and everything works. But when I try to build the Script on my PC (with Windows 10, 64x), there is no error during compiling (building), but the game crashes. There must be something wrong with my system. |
10-03-24, 00:02 | #4 |
Member
Joined: Sep 2015
Posts: 100
|
UPDATE:
1) I reinstalled the Tomb Editor and TombIDE. 2) I opened the default Script and English in TombIDE. 3) I pasted the commands from my Script into this default Script. Also, I made the necessary changes to English.txt. Of course, I also added the pages_1.txt in the Script folder. 4) As per LoreRaider's recommendation, I used one Script line for the font name (Tahoma) 5) I added @pages_1.txt string to ExtraNG strings Now the game doesn't crash. Lara picks up the Diary item. I can open it in the Inventory. It's named properly ("Diary"). Then I press Enter to read the diary (first page). The background image loads successfully. But the text doesn't appear on screen at all. I simply press Esc to close the Diary, and the game doesn't crash... But the text is missing So, something has definitely been fixed with this reinstallation of TombIDE (Tomb Editor). Why can't I see the text? Also, I have file font.pc in my Graphics directory, and Font_Graphics in my WAD, if that's of any relevance. |
10-03-24, 00:12 | #5 |
Member
Joined: Jul 2016
Posts: 1,900
|
Have you tried a standard font like Arial or Times New Roman? Font_graphics doesn't matter here, nor font.pc as the Diary won't use those fonts to display your text
You can also see if using no "PL_" flag helps, I had a similar non-showing issue with one of them |
10-03-24, 00:40 | #6 |
Member
Joined: Sep 2015
Posts: 100
|
I tried with Arial, it didn't work.
It did work with Times New Roman, though. I'm really confused. I'm a professional translator, I know how to work with fonts, I know what default fonts are, and I surely have all of them in my Windows folder. So, now it works. The background image loads successfully, the text (Times New Roman) loads successfully. For all those who have similar issues with the Diary, the name of the font you want to use must go in the STRING section of the English.txt, not in ExtraNG section. Thank you sooooo much, LoreRaider |
Thread Tools | |
|
|