Thread: The weight of the coins
-
April 27th, 2018, 23:34 #31
-
April 28th, 2018, 08:33 #32
Hey Zuger i have made a small coding tutorial video and I have extended this extension as the content of the video. It addresses in a very basic way one method of being able to track carried and non carried treasure.
https://youtu.be/x4leZBomtOc
And the extension is here - feel free to use or not.
coinweight.jpg
Also any comments about splitting the code into different files are personal preference and not a criticism.
-
May 2nd, 2018, 20:27 #33
Awesome job
Also any comments about splitting the code into different files are personal preference and not a criticism.
-
November 21st, 2018, 01:31 #34
- Join Date
- Jul 2015
- Posts
- 143
I am getting the following error when using the original extension.
When i try and change the amount in the coins section I get the following:
Script Error: [string "scripts/coins_weight.lua"]:52: attempt to perform arithmetic on a string value
Any idea why?Last edited by frostbyte000jm; November 21st, 2018 at 01:34. Reason: Because I didn't leave enough information.
-
November 21st, 2018, 02:23 #35
- Join Date
- Jul 2015
- Posts
- 143
Weird. ok I had to do a check on the coin to see if it is returning a number, if so then do the weight. I think something got stuck on this character sheet and I couldn't see it. It is working now, but I needed to revise the code. What I did was garbage trying to figure it out. I will try again in the morning with not 2 - 13 hour days of work brain.
-
November 22nd, 2018, 12:14 #36
-
November 22nd, 2018, 13:02 #37
- Join Date
- Jul 2015
- Posts
- 143
Yes, my problem was an old character sheet. I have been training myself on development in FG by rebuilding extenstion and I forgot to delete and build a new character when I started looking into yours.
There was a coin box with a nil value in it and your ext didn’t like that. Rookie mistake on my part. The moment I deleted the character sheet and started a new one, everything worked as expected.
Thanks for reaching out.
-
November 26th, 2018, 20:55 #38
Thank you for your reply. This could help somebody having the same issue.
-
November 26th, 2018, 21:26 #39
IIRC, 3.3.7 has some kind of currency manager being introduced which may/may-not deal with weight. I glossed over it as I was just merging 3.3.7 with some of my personal extensions.
-
November 26th, 2018, 22:06 #40
Supreme Deity
- Join Date
- Mar 2007
- Posts
- 20,546
It does not deal with weight, just adds the idea of campaign-specific currency settings. This may eventually lead to more advanced features, such as weight and/or conversion calculations; but there are no plans at this point.
Regards,
JPG
Thread Information
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks