Comments (10)
@KD181999 Could you have some patience, please? Thank you.
from animatedframes.
I can confirm this. The issue is probably client side, reconnecting to the server fixes it.
edit: the issue is actually with mapmanager. resending the image content doesn't fix it nor clearing the itemframe
from animatedframes.
@InventivetalentDev Could we have a fix for this?
from animatedframes.
The issue is caused by conflicting map ids across servers. I compiled my own version of mapmanager that used random map ids and the issue is gone, although obviously not a proper solution. is it possible to overwrite the client side cache somehow?
edit: maybe lets just use randomized ids? the chance of a conflict is only 0.0015%
from animatedframes.
So, I've been trying to come up with a solution for this, but the client's map cache seems to have a very odd behaviour. It doesn't seem to care about any content updates for the images.
@dvarnai Random IDs is unlikely to not cause any conflicts with different images if you have multiple frames, which would then lead to currently non-existent issues on servers without Bungeecord. It'd also mess up vanilla map generation once again.
I will keep trying to trick the client into resetting its cache, but I can't provide a solution for this at the moment.
from animatedframes.
@InventivetalentDev what do you mean? id conflicts can still be resolved on the same server, it would only reduce the chance of conflicts network-wide. heres what i did:
public short getNextFreeIdFor(Player player) throws MapLimitExceededException {
Set<Short> occupied = getOccupiedIdsFor(player);
//Add the 'default' occupied IDs
occupied.addAll(OCCUPIED_IDS);
ArrayList<Short> allIDs = new ArrayList<Short>();
for(int i=0;i<=Short.MAX_VALUE;++i) {
allIDs.add((short)i);
}
allIDs.removeAll(occupied);
if(allIDs.size() == 0) {
//If we end up here, this player has no more free ids. Let's hope nobody uses this many Maps.
throw new MapLimitExceededException("'" + player + "' reached the maximum amount of available Map-IDs");
}
return allIDs.get(rng.nextInt(allIDs.size()));
}
from animatedframes.
@dvarnai Ah, I see. I though you were going for completely random ids. I'll give it a try.
from animatedframes.
Any news on this issue?
from animatedframes.
@KD181999 The fourth message above this one.
from animatedframes.
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
from animatedframes.
Related Issues (20)
- Limit on number of tiles HOT 6
- AnimatedFrames Exception in thread "pool-27-thread-1" HOT 4
- Error HOT 3
- Needs update for 1.17 HOT 1
- [Bug] Could not pass event PlayerInteractEvent HOT 1
- Images are not displayed in 1.8 when the server is 1.16.5 HOT 1
- ConcurrentModificationException when teleporting to another world HOT 2
- Issue 1.17.1 HOT 1
- Dependency Dashboard HOT 1
- Creating Frame on Minecraft 1.12.2 throws NullPointerException on 4.13.3 (works on 4.11.5) HOT 4
- Needs update for 1.18 HOT 1
- Plugin dont work on 1.18 HOT 1
- y-Offset sets AnimatedFrames to high HOT 2
- Frame deleting problems (behavior inconsistent).
- Adding itemframe action on click problem (java 17 incompatible?) (its fixed, you can close thx) HOT 1
- On Paper 1.19, I can create frames but not remove them
- Hey would it be possible to get this updated to 1.19? :D HOT 3
- 1.16.5? HOT 1
- Generating Exception in Console while coming in a world with a frame HOT 2
- Hi i cant create frames.like i can but its not creating the gif i wanna HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from animatedframes.