PDA

View Full Version : Problem with Custom Decks



lozanoje
February 24th, 2020, 20:05
Hi:

I've created a Custom Deck, and I dont know why, when a client connect and uses a card, when I click in the link of the chat, the card does not show (image 3).

When its me the one who owns the character with the card, I can see it perfectly (image 2).

https://i.ibb.co/WfFwBY1/screenshot-26.png (https://ibb.co/QMnRY1G)
https://i.ibb.co/sWG61kJ/screenshot-27.png (https://ibb.co/QDRCHzj)
https://i.ibb.co/myksKY2/screenshot-28.png (https://ibb.co/Ydm9SK1)

If anyone can check it, this is the extension and module files:

https://drive.google.com/open?id=1Oljb70fDtcEySVAMmaHoZJr_3gcTGMFW
https://drive.google.com/open?id=13N-hTmX6aHBUqDI0SgszCF45rB0bnNFU

lozanoje
March 4th, 2020, 20:20
No clues?

Ikael
March 5th, 2020, 06:12
All clients must have individually loaded module that contains adventure deck images. If you haven't done module but only extension, then that is a quirk because image are shared from database nodes that are accessible by GM and one player.

lozanoje
March 5th, 2020, 19:03
All clients must have individually loaded module that contains adventure deck images. If you haven't done module but only extension, then that is a quirk because image are shared from database nodes that are accessible by GM and one player.

I've shared both (google drive links above), the ext and the mod file, so, yes, I've created the module and I've loaded it in the client side when testing.

The error shows when the client drops a card in the chat, neither client or server is able to click in the chat link.

When the server drops the card to the chat, then the server is able to click the link with no issues.

g0ntzal
March 12th, 2020, 20:07
Same problem here. Exactly the same behaviour.

lozanoje
March 12th, 2020, 20:10
Same problem here. Exactly the same behaviour.

Thanks for trying it out, looks like there is something I miss in the ext/module creation, maybe the references to the larger images.

lozanoje
March 12th, 2020, 20:53
[ext file] adventuredeck.lua

CustomDeck_maz = {
["maz_carta01"] = { name = "As", effect = "aaa.", image = "refimage.cards.maz_carta01@Mazo de aventuras SWEA"},

[mod file] definition.xml

<root>
<name>Mazo de aventuras SWEA</name>

[mod file] client.xml and common.xml

<refimage>
<cards>
<maz_carta01>
<name type="string">As</name>
<cardId type="string">maz_carta01</cardId>
<type type="string">adventurecard</type>
<image type="image">
<bitmap>images/465x650/Mazo de aventuras SWEA/Carta01.jpg</bitmap>
</image>
</maz_carta01>