The forum has been set to read-only mode. For community discussion and questions, head over to our Discord: https://discord.taleoftwowastelands.com

Bug Fixes with installing Optional Files

Have something to say about Tale of Two Wastelands or have an idea for a new feature? Let us know here.
Post Reply
MANDAL0R3
Posts: 3
Joined: Sun Jul 19, 2015 11:34 am

Bug Fixes with installing Optional Files

Post by MANDAL0R3 » Sun Jul 19, 2015 11:50 am

First i would like to say i am not entirely sure this is where i should place this post mostly due to this actually being one of my first post on a website... ever, but i would like share what i found to fix a bug when trying to install any of the Optional Files.


The bug i faced while trying to install them was each files Description and Image not showing. 


To fix this problem i opened up the script for Tale of Two Wastelands - Optional Files in Fomm's Package Manager


Then at Code lines 135 and 136 i changed the following code 


pic_Optional.Image = GetImageFromFomod("Optional Files/" + currentOption + "/Image.bmp");


txt_Optional.Lines = GetStringsFromFile("Optional Files/" + currentOption + "/Description.txt");   


to              


pic_Optional.Image = GetImageFromFomod(currentOption + "/Image.bmp");


txt_Optional.Lines = GetStringsFromFile(currentOption + "/Description.txt");  


and every Optional Files description and Image(if they had one that wasn't pure white) showed for me.  


I should also mention that i am using Fomm v0.14.11.12



JaxFirehart
Posts: 3003
Joined: Wed Sep 12, 2012 12:33 am

Thank you for the post, that

Post by JaxFirehart » Sun Jul 19, 2015 5:00 pm

Thank you for the post, that's a minor problem. 


Users on NMM have no trouble seeing the pictures (which are actually still just white banners) and reading the descriptions.


So it would appear that we need to mess with the code. If you want to look into it I'd appreciate it. Otherwise, IDK if it will ever get fixed.



MANDAL0R3
Posts: 3
Joined: Sun Jul 19, 2015 11:34 am

Ok so i have fixed the error

Post by MANDAL0R3 » Mon Jul 20, 2015 3:53 am

Ok so i have fixed the error and added a Message Box with some detailed info if one of the Optional Files fails to install near the stage of activating them. Here is my modified version of script.cs



TJ
Posts: 2181
Joined: Mon Sep 17, 2012 1:06 pm

So I'm probably going to use

Post by TJ » Mon Jul 20, 2015 1:49 pm

So I'm probably going to use this fix for our next release. While it's nice and all that NMM users can see the white image and read the discription, we don't support NMM and 95% of the time people can't install the mod with NMM.


My project Dash is on Kickstarter!



MANDAL0R3
Posts: 3
Joined: Sun Jul 19, 2015 11:34 am

I'm just glad i could help

Post by MANDAL0R3 » Mon Jul 20, 2015 7:15 pm

I'm just glad i could help such a great project



Post Reply