-
October 5th, 2022, 18:33 #11
My personal suspicion is that FGU has the Token.setSize tied to the image and if its not around - it does not get updated based on the creature size. I'm not ready to go store all the original sizes and then restore them after the token is replaced at this stage just to compensate for a generic issue with not having the map open in FGU base code.
Free(Forums/Forge) Extension(FGU 5E):
Paid (Forge) Extension(FGU 5E):
-
October 5th, 2022, 23:46 #12bmos' extensions
he/them
-
October 6th, 2022, 00:41 #13
So you know how to do an onDrop from client into map that is not open on host? I mean obviously you could not do it from the host as that is the map that has to be closed to duplicate this. I stand ready for enlightenment how this is accomplished!
As I said - I have no way of doing this that I know of.Free(Forums/Forge) Extension(FGU 5E):
Paid (Forge) Extension(FGU 5E):
-
October 6th, 2022, 15:07 #14
Ah, it needs to initiated by the client?
I was confused as you said
Since you could just close the map on host and trigger CombatManager.replaceCombatantToken from the CT, that appeared to satisfy your request. I see in a prior post you specify that "from a client" is not merely an example (as said by "ie" in the post I just quoted) but a requirement (which I now see you specify in the first post).bmos' extensions
he/them
-
October 6th, 2022, 15:56 #15
It would work purely from host if you can trigger it on a map that is not open. How do I trigger replace of a token from CT without a map? Maybe that is the solution - I just don't know how to do that. Do you have an example? As if the map is "open" then the token will be replaced correctly. It requires the token operation to occur while the map is closed on the host. Even if you just have a host. Per my example with Death Indicators - but that requires and extension as it triggers off of wounds value changing and is not dependent on dropping anything on an active map. I mean to replace a token it already has to be on the map obviously.
Last edited by SilentRuin; October 6th, 2022 at 16:00.
Free(Forums/Forge) Extension(FGU 5E):
Paid (Forge) Extension(FGU 5E):
-
October 6th, 2022, 20:04 #16bmos' extensions
he/them
-
October 6th, 2022, 20:10 #17
Confirmed. CombatManager.replaceCombatantToken is called when you do this (without any extensions):
1. Open map
2. Open CT
3. Add ct actor to map
4. Close map
5. Drag new token onto actor in combat tracker
6. Re-open map and note token is a different size
and actually, the token is replaced with a token of a different size when you do it with the map closed even with a medium creature (although it's more subtle with a medium creature as it just gets a bit bigger).
So I guess this is your reproducible test scenario, Moon.Last edited by bmos; October 6th, 2022 at 22:42.
bmos' extensions
he/them
-
October 6th, 2022, 20:23 #18Free(Forums/Forge) Extension(FGU 5E):
Paid (Forge) Extension(FGU 5E):
-
October 8th, 2022, 01:55 #19
Supreme Deity
- Join Date
- Mar 2007
- Posts
- 20,596
This should be addressed in the Test channel. Thanks to @bmos for recreating so succinctly.
Regards,
JPG
-
October 8th, 2022, 03:03 #20
@SR, in case you are interested:
The change seems to have occurred in manager_image.lua in the onTokenAdd function.bmos' extensions
he/them
Thread Information
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks