--- Log opened Sun Jan 06 00:00:46 2019 20190106 07:40:21-!- celticminstrel is now known as celmin|sleep 20190106 08:46:46<+wesdiscordbot> Can I restore give a unit MP ingame? 20190106 08:53:59<+wesdiscordbot> you mean via WML/lua? 20190106 08:55:42<+wesdiscordbot> I guess? I'm playing 'A Whim of Fate' and for some reason the enemy leaders have 0 max MP since turn 0. So they are stuck outside of their encampements and can't recruit... And I'm looking for a way to give them the MP they need to get back. 20190106 08:57:05<+wesdiscordbot> it should be possible with :unit attribute=value 20190106 08:57:15<+wesdiscordbot> so moves in your case 20190106 08:57:24<+wesdiscordbot> https://wiki.wesnoth.org/COMMANDMODE 20190106 08:58:02<+wesdiscordbot> Oh. I tried movementpoints the whole time. xD Thanks. 20190106 08:58:51<+wesdiscordbot> np 20190106 10:27:51< vn971> Konrad2: unit max_moves=100 20190106 10:28:01< vn971> unit moves_left=1000 20190106 10:28:05< vn971> if I remember correctly. 20190106 11:46:14-!- vn971 [~vasilii@2a02:a210:2203:c000:7f64:7780:4177:6131] has quit [Quit: Leaving.] 20190106 13:25:47<+wesdiscordbot> max_moves and moves, what you mean is attacks_left 20190106 13:26:20<+wesdiscordbot> if one is unsure about the keywords, one can always look them uo with :inspect 20190106 13:26:41<+wesdiscordbot> One can also change variation for zombies, quite fun 20190106 13:36:51<+wesdiscordbot> ( I forgot if the variation change takew effect immediately, in case it does not, one can change advanges_to to the current type, and use the :advances=1) 20190106 15:49:32-!- mattsc [~mattsc@wesnoth/developer/mattsc] has joined #wesnoth-umc-dev 20190106 15:53:27<+wesdiscordbot> the addon GUI Debug Tools may help here 20190106 16:31:27-!- celmin|sleep is now known as celticminstrel 20190106 16:36:20-!- zookeeper [~lmsnie@wesnoth/developer/zookeeper] has joined #wesnoth-umc-dev 20190106 18:57:54-!- vn971 [~vasilii@2a02:a210:2203:c000:7f64:7780:4177:6131] has joined #wesnoth-umc-dev 20190106 19:09:53-!- mattsc [~mattsc@wesnoth/developer/mattsc] has quit [Quit: mattsc] 20190106 19:36:31<+wesdiscordbot> What does it mean when my unit has 'image not found' as background? 20190106 19:37:43< Ravana> that you have debug mode on 20190106 19:38:06< Ravana> check log for actual path that is missing 20190106 19:42:07<+wesdiscordbot> Have or had? 20190106 19:43:46< Ravana> technically had I suppose 20190106 19:43:55< Ravana> with debug it loads into image not found 20190106 19:43:58< Ravana> without it loads to empty 20190106 19:44:39<+wesdiscordbot> I guess I can blame the missing eclipse. 20190106 19:44:51< Ravana> that is most common reason yes 20190106 22:46:24<+wesdiscordbot> Any idea why normal text might be considered an 'invalid string'? 20190106 22:49:43<+wesdiscordbot> More context please. A blind guess would be to not encode the file in UTF-8, but … 20190106 22:50:19<+wesdiscordbot> ...what? ._. 20190106 22:50:40<+wesdiscordbot> [story] [part] title= _ "Scenario One: The Outlands Rising Storm" [/part] [part] background = story/landscape-castle.jpg scale_background = yes story = _ " Some are born great. Some achieve greatness. And some have greatness thrust upon them. But beware if you are of the latter... nothing comes without a price And the price of greatness, 20190106 22:50:40<+wesdiscordbot> power, strength, often is your soul." [/part] 20190106 22:51:17<+wesdiscordbot> My log says that all this (and what comes afterwards) is an invalid string. 😦 20190106 22:59:23<+wesdiscordbot> which addon is that @Konrad2 ? 20190106 22:59:49<+wesdiscordbot> The Rulers of Irdya. 20190106 23:00:30<+wesdiscordbot> https://forums.wesnoth.org/viewtopic.php?p=637176#p637176 20190106 23:01:26<+wesdiscordbot> you say TRoI and link to TRoL ? 20190106 23:02:17<+wesdiscordbot> It's a multipurpose thread. TRoI uses TRoL. ^^ 20190106 23:02:33<+wesdiscordbot> so which campaign do I start to reproduce that error? 20190106 23:02:46<+wesdiscordbot> The Rulers of Irdya. 😄 20190106 23:03:39<+wesdiscordbot> I don't get the error 20190106 23:04:20<+wesdiscordbot> That's what the author says as well. :/ 20190106 23:04:21<+wesdiscordbot> Oh 20190106 23:04:29<+wesdiscordbot> Why is there a byte 81 in there ? 20190106 23:04:41<+wesdiscordbot> "invalid string: 0x81 The Rising Storm" 20190106 23:06:48<+wesdiscordbot> Where? I don't see it. 20190106 23:07:32<+wesdiscordbot> I did "Select All" in the forum and copied and I get a byte 81 after "invalid string" 20190106 23:07:47<+wesdiscordbot> but when I edit the file to have a byte 0x81, I get a different error than the one in your log, so probably not related 20190106 23:07:54<+wesdiscordbot> I get a pango utf8 error 20190106 23:07:58-!- zookeeper [~lmsnie@wesnoth/developer/zookeeper] has quit [Ping timeout: 258 seconds] 20190106 23:08:10<+wesdiscordbot> which is expected since 0x81 by itself isn't valid utf8 20190106 23:09:27<+wesdiscordbot> @Konrad2 does it help if you change the UI language ? 20190106 23:09:58<+wesdiscordbot> That's how it looks for me. I guess the kinda non-symbol doesn't get displayed on the forum. 20190106 23:09:58<+wesdiscordbot> https://cdn.discordapp.com/attachments/442775044590927873/531610399838306304/errors.png 20190106 23:11:25<+wesdiscordbot> What does UI mean btw? 20190106 23:11:29<+wesdiscordbot> User Interface 20190106 23:11:41<+wesdiscordbot> I mean, in the title screen click Languages and change the value 20190106 23:12:02<+wesdiscordbot> because the C++ that generates the error is in the translations area of the code 20190106 23:15:04<+wesdiscordbot> Now I'm confused. 20190106 23:15:05<+wesdiscordbot> https://cdn.discordapp.com/attachments/442775044590927873/531611688185888798/what.png 20190106 23:15:18<+wesdiscordbot> No idea whether the text was displayed. xD 20190106 23:15:26<+wesdiscordbot> that happened to me a few days ago 20190106 23:15:29<+wesdiscordbot> couldn't reproduce 20190106 23:15:37<+wesdiscordbot> didn't happen after I restarted wesnoth 20190106 23:16:26<+wesdiscordbot> Did you possibly change your language just before it happened? 20190106 23:16:31<+wesdiscordbot> @Konrad2 shot in the dark but if you delete your wesnoth cache dir ? 20190106 23:16:48<+wesdiscordbot> I think I didnt 20190106 23:16:57<+wesdiscordbot> but I do change the lang sometimes 20190106 23:17:08<+wesdiscordbot> Or maybe I rebuilt the translations or something 20190106 23:17:30<+wesdiscordbot> @josteph I certainly didn't delete anything. Except the add-on. Then I installed it again and started the campaign. 20190106 23:18:21<+wesdiscordbot> @Konrad2 No, I'm not asking if you had done that as a possible cause, I'm suggesting that you do that now as a possible fix 20190106 23:18:50<+wesdiscordbot> For the 'only the line visible' or for the invalid string? 20190106 23:18:59<+wesdiscordbot> If it's the former, restarting helped. 20190106 23:19:21<+wesdiscordbot> Before I forget, changing the language did not help. 😦 20190106 23:19:21<+wesdiscordbot> I suggest that you close wesnoth, delete your cache dir, and see if the invalid string goes away 20190106 23:19:27<+wesdiscordbot> ok 20190106 23:19:57<+wesdiscordbot> another idea, if you move all your add ons aside? 20190106 23:20:22<+wesdiscordbot> or you can start wesnoth --userdata-dir foo instead 20190106 23:20:50<+wesdiscordbot> Is nothing bad going to happen when I delete my cache dir? >.< 20190106 23:21:04<+wesdiscordbot> it'll take a little longer to start 20190106 23:21:07<+wesdiscordbot> that's about it 20190106 23:21:18<+wesdiscordbot> Why though? 20190106 23:21:47<+wesdiscordbot> the cache is just the WML from all add-ons after the pre-processing is done. 20190106 23:22:13<+wesdiscordbot> so the first time after deleting the cache, it'll re-preprocess it 20190106 23:22:54<+wesdiscordbot> is you look at the contents of the cache files, it's all just WML with all the macros substituted out 20190106 23:24:56<+wesdiscordbot> Btw, how many cache files is normal? 20190106 23:27:40<+wesdiscordbot> depends on how many add-ons you have installed. even with only a few though, there can be a lot of files. 20190106 23:28:35<+wesdiscordbot> 110000 is still a lot, right? xD 20190106 23:29:03<+wesdiscordbot> Deleting the cache did not help either. :/ 20190106 23:29:20<+wesdiscordbot> Trying without other add-ons is next on the list. 20190106 23:30:24<+wesdiscordbot> yeah that's still a lot lol 20190106 23:30:37<+wesdiscordbot> maybe old files weren't being deleted or something 20190106 23:34:41<+wesdiscordbot> Apparently. I thought at first that is happened because of the old wesnoth versions, but 30000 were from 1.14.5. 20190106 23:34:55<+wesdiscordbot> Removing add-ons didn't help either. :/ 20190106 23:42:16<+wesdiscordbot> (My log stopped throwing the error messages, but that doesn't stop the bug from happening.) 20190106 23:44:22<+wesdiscordbot> "the bug"? 20190106 23:44:23<+wesdiscordbot> Okaaay. So it works now after removing all other add-ons and deleting all of my cache. 20190106 23:44:32<+wesdiscordbot> The bug = no text 20190106 23:44:44<+wesdiscordbot> Okay, so next question 20190106 23:44:58<+wesdiscordbot> add all addons again, remove the cache, restart wesnoth, does the bug occur again 20190106 23:45:48<+wesdiscordbot> So I guess a cache from some other add-on was responsible..? Maybe? Let's see. 20190106 23:48:17<+wesdiscordbot> Yes. Yes it does. 20190106 23:49:14<+wesdiscordbot> ok 20190106 23:49:23<+wesdiscordbot> @Pentarctagon what's the cache lookup key ? 20190106 23:49:33<+wesdiscordbot> @Konrad2 do you know how to binary search your addons ? 20190106 23:49:47<+wesdiscordbot> I have no idea what binary search means. :/ 20190106 23:50:00<+wesdiscordbot> the what? 20190106 23:50:03<+wesdiscordbot> I guess I'll know in two minutes? 20190106 23:50:50<+wesdiscordbot> @Pentarctagon the thing that's hashed 20190106 23:50:58<+wesdiscordbot> answer, it's the filepath and space-joined defines 20190106 23:51:05<+wesdiscordbot> so it's extremely unlikely to collide by accident 20190106 23:51:17<+wesdiscordbot> extremely unlikely, it really isn't the RNG playing us this time 20190106 23:51:27<+wesdiscordbot> @Konrad2 so, the idea is, let's say you have 50 addons 20190106 23:51:39<+wesdiscordbot> you know the bug happens with all 50 but not with 0 20190106 23:51:47<+wesdiscordbot> There's also a bunch of empty cache files, for whatever reason. no idea where they come from. 20190106 23:51:50<+wesdiscordbot> so you try if it happens with 25 addons installed 20190106 23:52:11<+wesdiscordbot> with the first 25, let's call them A..Y 20190106 23:52:11<+wesdiscordbot> Okay, I know what you mean. 20190106 23:52:16<+wesdiscordbot> right 20190106 23:52:30<+wesdiscordbot> so the idea is to identify which particular other addon is responsiblt 20190106 23:52:35<+wesdiscordbot> responsible 20190106 23:53:26<+wesdiscordbot> I forgot to say here that the hash of the cache file names is sha1 20190106 23:53:32<+wesdiscordbot> that's why it's unlikely to collide etc 20190106 23:54:12<+wesdiscordbot> Oh, that's convenient 20190106 23:54:14<+wesdiscordbot> DBG_CACHE << "Reading checksum: " << fname_checksum << "\n"; 20190106 23:54:27<+wesdiscordbot> @Konrad2 ^ There may be a shorter way 20190106 23:55:04<+wesdiscordbot> @Konrad2 Try installing all addons, removing the cache, and then run wesnoth --log-debug=cache and see if that line shows up 20190106 23:55:31<+wesdiscordbot> How do I 'run' that? Or rather, what does 'run' mean? 20190106 23:55:41<+wesdiscordbot> you open a terminal and type that 20190106 23:56:26<+wesdiscordbot> anyway, if you aren't sure, just go back to the binary search for now, that one is guaranteed to have results 20190106 23:56:57<+wesdiscordbot> But something doesn't add up here. 20190106 23:57:23<+wesdiscordbot> A cache collision is incredibly unlikely and even if it did happen, that wouldn't explain why the campaign name came up empty in your savefile 20190106 23:57:33<+wesdiscordbot> I think there's another factor here... 20190106 23:58:02<+wesdiscordbot> The campaign name was considered an invalid string. Maybe that's why? 20190106 23:59:07<+wesdiscordbot> yeah --- Log closed Mon Jan 07 00:00:00 2019