Tuldor88' Posted December 24, 2014 Share Posted December 24, 2014 Hello everyone.Before I start, please forgive me my English I've been working on some mod for BGT and I'm facing one little problem:The game is not removing given entries from diary after I'm compliting the task using an alternative way (the way is added by the mod).DO~EraseJournalEntry(%Oczyść magazyn ze szczurów.Reevor raz jeszcze nakłonił mnie do pracy w swoim magazynie. Wszystkie raporty wskazują na to, że nasze kocie siły nas zdradziły, a szczury jeszcze raz przystąpiły do natarcia. Wygląda na to, że to ja jestem ostatnią nadzieją w obliczu takiej potęgi. Żegnaj mój drogi dzienniku... Żegnaj.%)~ //standard text added in BGT after Reevor give us quest to kill rats//doesn't work, BUT DO~EraseJournalEntry(7211)~ works just fine.I don't know why - I'm using ctrl+c and ctrl+v to copy and paste the text from IE (the exact one from string 7211).Do you have any idea of what is going on? Maybe, for some reason, WeiDU doesn't see enter and/or new line in %entries_to_remove%? Of course I can write it as EraseJournalEntry(string_number) but I want to avoid problems of incompatibility...Thanks in advance Link to comment
jastey Posted December 24, 2014 Share Posted December 24, 2014 Hmm, tricky. I would avoid using fixed string numbers, unless your mod is for the BGII-part. But for the BG1 part, it cannot be sure the string number of your install is the same as it will be in someone else's (as you are aware, given your comment about compatibility). It is a fact that the string has to be exact the same for the engine to recognize it, but if you say you copied and pasted... - The only thing you need to check whether the text formatting of your .d-file is the correct one for the game texts? I only know that Polish in BG has different fonts in BG1 and BGII and maybe the format of your file with the texts doesn't match or something? The only workaround for this I can imagine is that maybe there is an original game dialogue state where you can COPY_TRANS the actions from, including the EraseJournalEntry? Link to comment
Tuldor88' Posted December 24, 2014 Author Share Posted December 24, 2014 I just converted .d - to ANSI, then UTF-8, UCS-2 etc... still that the same problem. Link to comment
Tuldor88' Posted December 24, 2014 Author Share Posted December 24, 2014 Mayby I should use some tag between journal title and journal description? Something as [%LNL%%MNL%%TAB% ]* or similar? But I don't have any idea what will be correct... PS: Sorry for post by post but I dont have edit option. Link to comment
Avenger Posted December 25, 2014 Share Posted December 25, 2014 #7211 should be the same in all installs, no? So a fixed number is fine. Link to comment
Tuldor88' Posted December 25, 2014 Author Share Posted December 25, 2014 ehh... Now I see I lost one number in first post - I mean 75211 not 7211. Sorry for confusion, but problem still is that the same (in .d file I have correct string 75211) Link to comment
jastey Posted December 25, 2014 Share Posted December 25, 2014 Now, String reference 75211 s definitely something mod added (it's a Polish string in my case, probably from one of my test installs). Link to comment
Tuldor88' Posted December 25, 2014 Author Share Posted December 25, 2014 That's right Jastey bg2fixpack_v10BGTrilogy_v1.18Lure of Sirine's Call _v13bgmini_quest_encounters_v9BG1UnfinishedBuisness_v13.1BanterPacks_v13BG2UnfinishedBusiness_v25 BGTTweak_v11Almateria's Restoration Project_v8.02 EaseofUse_v33ItemUpgrade_v40Alma_Tweaks_v8Ribalds_Genie_v2.7Sir_Renal_v2.5Rolles_v3XanNpc_v11Khalid NPC v2.00level1npcs_v1.9BG1npc_project_v20Minotaur_and_Lilarcor_v1.6AdalonsBlood_v13Tales of the Deep Gardens_v9.3 Innershade_v6.0ervonyrah_piesn_wladajacej_v1.3.2Tower of Deception_v3.3Niezwykłe Życzenie_v1.62Assassinations_v10AzenMod_v5PLTacticsMod_v25RevisedBattles_v6.3Ascension_v1.4.24Oversight_v13BG2 Enable conversations with charmed creatures_v4Picky_Familiars_v1.1Max HP per Lvl But on 'plain' instalation (only): bg2fixpack_v10 + BGTrilogy_v1.18 string have number #74511 and still don't work correctly... Link to comment
Tuldor88' Posted December 28, 2014 Author Share Posted December 28, 2014 Problem solved by Dradiel from CoB - thank you so much! He checked with the binary editor, what is the difference between the old and the new string. The difference is enters. Specifically, in the last enter.Originally BGT after the title of a journal entry has 2 linux enters, new also has 2 linux enters.Unfortunately, at the end (instead of two linux enters which holds the original string) in the new appears one windows enter. All these enters at the end of a string is not needed for anything but it seems that the problem is they cause - Because the strings that do not end up with enter everything works fine.I'ts propably a weidu-bug.Thanks for everyone, topic to lock Link to comment
Wisp Posted December 28, 2014 Share Posted December 28, 2014 I'ts propably a weidu-bug. Nope. Whitespace counts and whoever started using different newlines messed up. Edit: never mind. Link to comment
Recommended Posts
Archived
This topic is now archived and is closed to further replies.