Giter Club home page Giter Club logo

minimap's Introduction

Minimap

teaser

This module adds a minimap to the UI using the HUD Element system.

M toggles the map visibility.

Number-Pad-Minus and Number-Pad-Plus decrease and increase the zoom factor.

Images

The "Maps Center Direction Icon" image was taken from https://icons8.com/ (Linkware License)

License

This module is licensed under the Apache 2.0 License.

minimap's People

Contributors

anexis45 avatar cervator avatar darkweird avatar darshan3 avatar gooeyhub avatar jdrueckert avatar josharias avatar keturn avatar mayant15 avatar mkienenb avatar mohamedation avatar msteiger avatar naalit avatar pollend avatar skaldarnar avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

minimap's Issues

Cannot destroy blocks on Headless Server due to non-fatal NPE

What you were trying to do

Destroy a block on a client connected to a headless server hosting a world with Minimap enabled (e.g. Metal Renegades).

What actually happened

The block was not destroyed.
The headless server logs showed an NPE but the server didn't crash.

Log Details

12:06:57.169 [main] ERROR o.t.e.network.internal.NetClient - Error processing event
java.lang.NullPointerException: null
        at org.terasology.logic.players.DefaultMinimapSystem.onDestroyBlock(DefaultMinimapSystem.java:119)
        at org.terasology.logic.players.DefaultMinimapSystemMethodAccess.invoke(Unknown Source)
        at org.terasology.engine.entitySystem.event.internal.EventSystemImpl$ByteCodeEventHandlerInfo.invoke(EventSystemImpl.java:379)
        at org.terasology.engine.entitySystem.event.internal.EventSystemImpl.sendStandardEvent(EventSystemImpl.java:244)
        at org.terasology.engine.entitySystem.event.internal.EventSystemImpl.send(EventSystemImpl.java:235)
        [...]
        at org.terasology.engine.entitySystem.entity.internal.BaseEntityRef.send(BaseEntityRef.java:190)
        at org.terasology.engine.logic.health.EntityDestructionAuthoritySystem.onDestroy(EntityDestructionAuthoritySystem.java:24)
        at org.terasology.engine.logic.health.EntityDestructionAuthoritySystemMethodAccess.invoke(Unknown Source)
        at org.terasology.engine.entitySystem.event.internal.EventSystemImpl$ByteCodeEventHandlerInfo.invoke(EventSystemImpl.java:379)
        at org.terasology.engine.entitySystem.event.internal.EventSystemImpl.sendStandardEvent(EventSystemImpl.java:244)
        at org.terasology.engine.entitySystem.event.internal.EventSystemImpl.send(EventSystemImpl.java:235)
        [...]
        at org.terasology.engine.entitySystem.entity.internal.BaseEntityRef.send(BaseEntityRef.java:190)
        at org.terasology.module.health.systems.DamageAuthoritySystem.doDamage(DamageAuthoritySystem.java:103)

Additional Info

The current assumption is that this is due to the fact that the headless server does not have a NuiManager and thus, no HUD elements.
Accordingly, the attempt to access updateLocation on an instance of MinimapHUDElement will result in a null pointer exception.

One possible approach to fix this is to make DefaultMinimapSystem a client-only system such that it will not be present on the headless server in the first place as the headless server in comparison to a headed server does not have a client attached to it.

Minimap remains black on some systems

On some machines, the minimap is not displayed correctly. The terrain area remains black.
Log files are clean - it also doesn't seem to depend on graphics card hardware. It might be the driver though.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.