Thread: DOE: Locations Extension
-
March 23rd, 2019, 22:47 #941
Hey there Keraki! Glad to hear that you've got the random inv tables setup. Always nice to have them handy, and I too make that happen via story templates.
It is a pain to have to have results in a story entry and not be able to export to a locations record. That'd be SOOOO ideal! But for the time I take the nicely formatted story result and i copy that into the Main tab as shown in the attached screenshot. I do NOT use the "Notes Tab" as that is visible to the players. Everything goes into the "GM Notes" on the "Main Tab", except for the small description of what the store looks like as the players approach.
screeenshot_018.jpg
-
March 24th, 2019, 02:27 #942
- Join Date
- Jan 2016
- Posts
- 56
Thanks. I was confident there was a way just hadn't found it.
-
May 8th, 2019, 19:05 #943
- Join Date
- May 2016
- Posts
- 63
Has there been any progress in updating the module to correctly handle decimals instead of floats or making the buy/sell work correctly with GP <> gp? I've began tinkering with the extension in an attempt to make it work for me, but it looks like a lot of work that someone may have already tackled. I was able to semi-successfully round the coin value and weight in the shop list, but the uppercase issue is eluding me because I do not know how to validate uppercase in XML.
-
May 8th, 2019, 20:14 #944
Given that Dulux is just getting,got,will be getting out of the hospital this week. I suspect it may take him some time to status this.
Problems? See; How to Report Issues, Bugs & Problems
On Licensing & Distributing Community Content
Community Contributions: Gemstones, 5E Quick Ref Decal, Adventure Module Creation, Dungeon Trinkets, Balance Disturbed, Dungeon Room Descriptions
Note, I am not a SmiteWorks employee or representative, I'm just a user like you.
-
May 8th, 2019, 23:15 #945
- Join Date
- May 2016
- Posts
- 63
Ah, I did not realize it was that serious or still ongoing. I hope he recovers fully.
I did manage to update the extension to deal with buying and selling regardless of GP/gp and remove the floats, though my fixes were pretty ugly I'm sure. I don't think I can figure out the currency conversion for making change though. I'm currently trying to find a way to change the font on the message boxes that pop up for selling confirmation because they are very difficult to read for me.
-
May 28th, 2019, 03:54 #946
- Join Date
- Jul 2014
- Posts
- 129
I'm a total rookie when it comes to lua and xml, but what I've done so far is edit xLocationsStrings.xml in the DOELocations files to strip away some of the text that ends up overlapping with the buy/sell text.
By changing these 3 lines to the following:
<string name="sBuildingNoCoinHeaderStr"></string>
<string name="sBuildingNoCoinStr">Not enough coin! Purchase canceled.</string>
<string name="sBuildingPurchaseOfferHeaderStr"></string>
DOE purchases.jpg
(Edit: this overlapping text is only a problem when using the 5E Wizard theme, of course.)Last edited by Rades; May 28th, 2019 at 04:12.
-
May 28th, 2019, 04:20 #947
-
May 29th, 2019, 17:15 #948
- Join Date
- May 2016
- Posts
- 63
I'll try to explain what I did in detail...
Modify:
IsLocationsManager.lua
Add a round function that was mentioned earlier in this thread:
function round(num, numDecimalPlaces)
local mult = 10^(numDecimalPlaces or 0)
return math.floor(num * mult + 0.5) / mult
end
Add an Upper function:
function ToUpper(str)
return (str:gsub("%a", string.upper))
end
In function fpParseItemCost, change the return line to use round(sCost,0),ToUpper(sCoin)
In function fpGetPriceMarkup, change sPrice to have a round(,) around the nCost calculation
In function fpBulidingSellItems, add ToUpper around the oCoinSlot and Scoin references
IsLocationsPatch.lua
Add function round again
in function fpUpdateBuilding, call round around getValue
xBuildingsWindowClasses.xml
Add function round again
call round each time you see sItemWeightName).getValue()
I THINK that's all the changes I made. I know that's difficult to follow, but I'm not sure if I can share the file changes here without permission.
-
May 30th, 2019, 02:18 #949
Dulux-Oz
√(-1) 2^3 Σ Π
...And it was Delicious!
Alpha-Geek
ICT Professional
GMing Since 1982
NSW, Australia, UTC +10
LinkedIn Profile: www.linkedin.com/in/mjblack
Watch our games on Twitch: www.twitch.tv/dulux_oz
Support Me on Patreon: www.patreon.com/duluxoz
Past Games, etc, on my YouTube Channel: www.youtube.com/c/duluxoz
-
May 30th, 2019, 02:23 #950
Archangel
- Join Date
- Apr 2008
- Location
- Virginia Beach
- Posts
- 3,096
Thanks for posting the outlines. Our good friend dulux has had some setbacks in making fixes on a couple things and this will help anyone brave enough to try on their own. We appreciate it and thanks dulux for letting his outline stand.
Thread Information
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks