--- Log opened Wed Jun 19 00:00:56 2019 20190619 02:22:10-!- celmin|away [~celmin@unaffiliated/celticminstrel] has quit [Quit: And lo! The computer falls into a deep sleep, to awake again some other day!] 20190619 11:13:59-!- zookeeper [~lmsnie@wesnoth/developer/zookeeper] has joined #wesnoth-umc-dev 20190619 12:40:27-!- celticminstrel [~celmin@unaffiliated/celticminstrel] has joined #wesnoth-umc-dev 20190619 12:58:13-!- celticminstrel is now known as celmin|away 20190619 19:32:54<+wesdiscordbot> Is there any way to elaborate on the "Failed to Load Scenario" message? 20190619 19:33:13<+wesdiscordbot> I keep getting it and then the game just returns me to the Mainmenu 20190619 19:36:25< Soliton> perhaps there are messages printed to stderr before that happens. 20190619 19:42:26<+wesdiscordbot> Nope. Nothing relating to my UMC crashing there. 20190619 19:43:22<+wesdiscordbot> Would you like to examine the repo files for the fault? I am sorta rusty since I am back to code for Wesnoth again so might be my syntax or an overlooked error? 20190619 19:45:27<+wesdiscordbot> @knyghtmare most of the time for me when i get that message, it's the one small typo i have somewhere in my file 20190619 19:45:46<+wesdiscordbot> it's kinda frustrating to have to go through the file to try and find it 20190619 19:45:56< Soliton> an actual syntax error would probably give a different error but showing your code is certainly the best way to get help. 20190619 19:46:33<+wesdiscordbot> https://github.com/knyghtmare/Skirmish_in_the_Sands 20190619 19:46:33<+wesdiscordbot> but usually, unless otherwise specified by the error message, it could be a typo or something 20190619 19:46:48<+wesdiscordbot> I am pretty sure it's the scenario file or the main.cfg file 20190619 19:47:33<+wesdiscordbot> Rest of them are copy/pasted from UtBS and i don't expect those to have errors. 20190619 19:51:09<+wesdiscordbot> What's that tool that fixes incorrect ifdefs again? 20190619 19:53:06< Soliton> wmllint probably 20190619 19:55:43<+wesdiscordbot> Okay, i think i solved my bug. Thanks for the insights @PastaSaucey Guess...knyght's old XD 23 and I feel like 49 right now XD Now, to code the rest of this scenario 20190619 19:56:01<+wesdiscordbot> no problem 20190619 19:56:05<+wesdiscordbot> i'm new to coding as well 20190619 19:56:08<+wesdiscordbot> Thanks @Soliton too 20190619 19:56:35<+wesdiscordbot> I was active from 2010 to 2012...but life kicked in 20190619 19:56:50<+wesdiscordbot> Now, that university's finally over..I can get back to Wesnoth 20190619 19:57:01<+wesdiscordbot> yeah, i was coding last month i think and i ran into a few problems 20190619 19:57:08<+wesdiscordbot> so i took a break 20190619 19:57:13< Soliton> i guess you found that define= and your #ifdef don't match. 20190619 19:57:59<+wesdiscordbot> Yeah, I knew it was the _main.cfg...but was overlooking the campaign attributes and was focusing on any faults inside the #ifdef 20190619 19:59:26< Soliton> seems like the error message could be improved at least. 20190619 20:00:29<+wesdiscordbot> Yeah, it was rather vague and superficial 20190619 20:00:36<+wesdiscordbot> hardly gave me any clue where I went wrong 20190619 20:02:47<+wesdiscordbot> Okay, I am gonna ask the same question I asked back in 2011, but now that I understand python code...I can finally act on it: How do I run wmlindent? 20190619 20:04:43< Soliton> wmlindent file? 20190619 20:06:10<+wesdiscordbot> I wanna run the tool on the scenario file I am coding since the indention makes it rather irritating 20190619 20:07:20< Soliton> wmlindent Skirmish.cfg 20190619 20:10:10<+wesdiscordbot> Fixed file path and then python3 says that wmlindent doesn't exist 20190619 20:10:46< Soliton> fixed what file path? 20190619 20:10:53<+wesdiscordbot> Skirmish.cfg 20190619 20:11:40<+wesdiscordbot> you need to add wmlindent to the PATH variable 20190619 20:12:04< Soliton> no, but the dir it is in should be in PATH. 20190619 20:12:44< Soliton> otherwise you can just use the path to it. 20190619 20:13:07< Soliton> if you want more specific help you need to show some details though. 20190619 20:13:20<+wesdiscordbot> https://wiki.wesnoth.org/Maintenance_tools Doesn't give me much since I don't use Linux or Windows 20190619 20:13:28< Soliton> what exactly do you call? what is the exact error message, etc. 20190619 20:13:57< Soliton> what os do you use? 20190619 20:14:17<+wesdiscordbot> Mac OS Mojave 20190619 20:16:19< Soliton> can you answer the other questions as well? 20190619 20:16:24<+wesdiscordbot> https://cdn.discordapp.com/attachments/442775044590927873/590998329383714836/Screenshot_2019-06-20_at_02.15.36.png 20190619 20:16:46<+wesdiscordbot> The reds are my username 20190619 20:16:57< Soliton> you need to quote the path to wmlindent. 20190619 20:17:28< Soliton> you can see from the error message that python did not get the path you hoped it would. 20190619 20:17:35<+wesdiscordbot> add quotation marks to the wmlindent? Okay 20190619 20:18:52< Soliton> on the command line commands and arguments are separated by spaces. if an argument has spaces in it you have an issue. thus there are ways to quote arguments so they can contains spaces. 20190619 20:19:31< Soliton> using an image to show a line of text is a little silly, btw. ;-) 20190619 20:20:27< Soliton> the path to your scenario config also contains spaces so either cd to the dir it's in or quote that argument as well. 20190619 20:21:20<+wesdiscordbot> Okay, it worked now. Thank you. I wished I learned to use the tools sooner. Makes coding campaigns a lot easier 20190619 20:22:11< Soliton> it would help to have instructions on how to easily use them on all the OSes. 20190619 20:22:50< Soliton> i'm sure you can add some GUI way to call wmlindent on a file from finder or however that works on macos. 20190619 20:24:03<+wesdiscordbot> I just use the Atom Editor now. Has a feature to generate file paths and copying that to the clipboard with a click. 20190619 20:24:26<+wesdiscordbot> Better than the default TextEdit, I guess 20190619 20:47:32-!- zookeeper [~lmsnie@wesnoth/developer/zookeeper] has quit [Ping timeout: 245 seconds] 20190619 20:47:41< Ravana> you know the red lines don't actually hide the text 20190619 21:25:58<+wesdiscordbot> I know 😦 --- Log closed Thu Jun 20 00:00:06 2019