Sign in to follow this  
_Q_

Minimap refresh for clinets/ Wormhole Marks mod

Recommended Posts

_Q_    644

Here is the mod updated to caves beta version:

http://forums.kleientertainment.com/files/file/1329-wormhole-marks-dst/

 

If you are host both wormholes gets changed icons visible on minimap.

If you are client you only can see the exit wormhole changed icon and the entrance icon is the same till you jump back or go near it on foot.

@Ipsquiggle

Any idea how to get it working on client the same way it works for the host?

Is this some case of minimap not refreshing on client side, or I need to use net vars to get clients know that icon updated?

Share this post


Link to post
Share on other sites
Ipsquiggle    8265

So it looks like it's a minimap caching issue. Did this work before?

 

The problem is that the entrance wormhole on the client is no longer in range, so it stops being syncronized with the client. The client won't get any updated info about it until they next stand near it.

 

I don't recall the code off the top of my head, but a few things come to mind:

 

1) Color the wormholes from the start, rather than when they are jumped through.

2) Color the wormhole slightly before it is jumped through (for example on the JUMPIN action)

Share this post


Link to post
Share on other sites
_Q_    644

So it looks like it's a minimap caching issue. Did this work before?

 

The problem is that the entrance wormhole on the client is no longer in range, so it stops being syncronized with the client. The client won't get any updated info about it until they next stand near it.

 

I don't recall the code off the top of my head, but a few things come to mind:

 

1) Color the wormholes from the start, rather than when they are jumped through.

2) Color the wormhole slightly before it is jumped through (for example on the JUMPIN action)

It never worked, on clients, thats why I had to ask about it.

Is there some list of minimap functions?

I saw some stuff called in the player prefab, but can't find the file with all functions in it.

 

Will try to change the way coloring is handled for now.

Thanks for help.

 

Share this post


Link to post
Share on other sites
Ipsquiggle    8265

MiniMapEntity is a c-side component so there's no list available, but a quick check looks like:

:SetIcon(texture)

:SetEnabled(bool)

:DrawOverFogOfWar(bool)

:SetPriority(layer)

 

 

Share this post


Link to post
Share on other sites
_Q_    644

MiniMapEntity is a c-side component so there's no list available, but a quick check looks like:

:SetIcon(texture)

:SetEnabled(bool)

:DrawOverFogOfWar(bool)

:SetPriority(layer)

 

Using events did the trick and its finally working like it should for clients.

Since this is c-side code I bet there is no functions to manipulate the color of minimap image either.

I will have to add more icons for use with custom and ginat maps then.

 

Thanks.

 

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this