Thread: Experimental APIs for FGU
-
February 4th, 2021, 19:54 #31
I'm just not sure the reason why you need the distance between tokens....I'm sure you have one, but if, as JPG said, it is providing the distance to the centers of the nearest squares of each token, then it should be relatively easy to calculate (e.g. subtract 5 feet, or the base unit of measure distance). A creature adjacent to you would have a distance between the tokens of 0, but would be considered within 5 feet reach of each other, and I think that is what it is returning.
aka Laendra
(Discord: Laendra#9660)
Ultimate license (FGC/FGU)
Current Timezone : Central (CDT) (GMT -5)
OP: 3317036507 / 2369539
My opinions are my own and represent no entity other than myself
Extension Support Discord: https://discord.gg/gKgC7nGpZK
Extensions = risk to your gaming experience. If you haven't tested out the extensions in your campaign before your gaming session, turn them off. If you don't backup your campaigns regularly, you're doing it wrong.
-
February 5th, 2021, 18:45 #32My Forge creations: https://forge.fantasygrounds.com/crafter/9/view-profile
My GitHub: https://github.com/MeAndUnique
Buy me a coffee: https://ko-fi.com/meandunique
Discord: MeAndUnique#6805
-
February 5th, 2021, 18:51 #33
Supreme Deity
- Join Date
- Mar 2007
- Posts
- 20,539
Unfortunately, that library is not available yet in the .Net version that Unity engine supports. (which is .Net v4.x option in the Unity build interface)
Regards,
JPG
-
February 5th, 2021, 18:58 #34
Supreme Deity
- Join Date
- Mar 2007
- Posts
- 20,539
Just poked into the Unity forums to investigate this; because I would prefer to use native .Net classes than to import yet another library (like Newtonsoft). Apparently, the Unity team has been slowly working towards .Net 5 / .Net Standard 2.1 over the last 6-9 months; but does not offer support yet.
Regards,
JPG
-
February 5th, 2021, 19:05 #35
Oh, I had assumed FG wasn't on the old framework version given that FGU is relatively new. Out of pure curiosity, what's holding FG back from using .Net Standard 2.0?
My Forge creations: https://forge.fantasygrounds.com/crafter/9/view-profile
My GitHub: https://github.com/MeAndUnique
Buy me a coffee: https://ko-fi.com/meandunique
Discord: MeAndUnique#6805
-
February 5th, 2021, 19:09 #36
Supreme Deity
- Join Date
- Mar 2007
- Posts
- 20,539
The Unity cross-platform engine that we built FGU on uses their own implementation of .Net; and they currently support .Net 2 / .Net v4.x
Regards,
JPG
-
February 5th, 2021, 19:17 #37
Unity also supports .Net Standard 2.0 (as of 2018 iirc), which is easily overlooked given the .Net Framework 2.0 support In the few Unity projects that I've migrated forward from Framework to Standard I haven't encountered more than maybe a day worth of work in converting, but I have heard the rare tale of woe.
My Forge creations: https://forge.fantasygrounds.com/crafter/9/view-profile
My GitHub: https://github.com/MeAndUnique
Buy me a coffee: https://ko-fi.com/meandunique
Discord: MeAndUnique#6805
-
February 5th, 2021, 19:17 #38
Because ALL actions assume distance to the token/npc, not it's "center". When someone quoted "you'd need a reach of 15 ft" I ignored it because I don't play 5e all that often so don't know it's mechanics all that well but when there is 10 foot between targets and you need 15 ft reach to hit, that makes 0 sense to me. All I need is the reach to touch the target, which in the example I gave was 10 ft.
As I showed earlier I already have code to do this w/o the system mentioned here and I'll continue to use it but if we're talking about API code that will more than likely improve performance since the API calls are not encumbered by LUA then... it would be nice for it to function as would be expected. As far as I know there are only 2 of us that actually do this sorta thing as is and the 2E ruleset is one of them. When auras become a thing in FGU natively this will become more apparent.---
Fantasy Grounds AD&D Reference Bundle, AD&D Adventure Bundle 1, AD&D Adventure Bundle 2
Documentation for AD&D 2E ruleset.
Custom Maps (I2, S4, T1-4, Barrowmaze,Lost City of Barakus)
Note: Please do not message me directly on this site, post in the forums or ping me in FG's discord.
-
February 5th, 2021, 19:24 #39
In fact, as I think about it, the only troubles I've encountered personally are when resuscitating Unity projects that hadn't been maintained for a couple years. Had to spend a fair amount of time migrating away from obsoleted Unity API calls, but I can't recall anything from the Framework to Standard conversion itself breaking.
My Forge creations: https://forge.fantasygrounds.com/crafter/9/view-profile
My GitHub: https://github.com/MeAndUnique
Buy me a coffee: https://ko-fi.com/meandunique
Discord: MeAndUnique#6805
-
February 6th, 2021, 02:38 #40
I don't remember the rules for AD&D, but since 3.0, two tokens that are adjacent to each other are considered to be five feet apart, and at melee distance for medium/normal reach creatures.
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.
Thread Information
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks