Jump to content

[V1.15.5] ProspectorInfo


P3t3rix

Recommended Posts

Took over Maintenance from capsup again. Thanks for adding in features and maintaining it.

68747470733a2f2f692e696d6775722e636f6d2f524241474242672e706e67.png.cd39d898c58ca43030b6bc4a5db42351.png.393cef7f1e8823caf9d94b42f1883aaa.png

--------------------

Commands

  • .pi - main command for the mod and the default sub-command is to 'showoverlay', which will toggle the rendering of the texture on the map
  • .pi showoverlay [true,false] - Sending no arguments will simply toggle the value of the RenderTexturesOnMap config option. Sending either true or false, will set the config option to the appropriate value
  • .pi setcolor [0-255] [0-255] [0-255] [0-255] - Set's the value of the TextureColor field in the config & rebuilds the texture.
  • .pi setbordercolor [0-255] [0-255] [0-255] [0-255] - Set's the value of the BorderColor field in the config & rebuilds the texture.
  • .pi setborderthickness [number] - Set the BorderThickness value in the config & rebuilds the texture.
  • .pi toggleborder [true,false] - Set's the `RenderBorder` value in the config & rebuilds the texture.

Configuration

  • TextureColor [0-255] [0-255] [0-255] [0-255] - The default color to use for the texture. Default: 7 52 91 50
  • BorderColor [0-255] [0-255] [0-255] [0-255] - The default color to use for the border texture. Default: 0 0 0 200
  • BorderThickness [number] - The thickness, in pixels, of the border color. Default: 1
  • RenderBorder [true,false] - Whether or not to render the border at all. Default: true
  • AutoToggle [true,false] - Whether or not to toggle the texture on map automatically, based on the player equipping/unequipping a prospecting pick. Default: true

Usage

Whenever you finish prospecting a chunk, the data is saved into the ModData folder and added to the chunk info of the world map. This is just a 1:1 parsing of the chat message that the prospecting pick sends. 

The mod renders a transparent square of all chunks that have been prospected. If a chunk is re-prospected, the message is simply overwritten. The rendering of these squares can be toggled with the .pi command.

 

 

SourceCode: https://github.com/p3t3rix-vsmods/VsProspectorInfo

Download: https://mods.vintagestory.at/show/mod/1235

 

1.0: initial release

1.1: embedded dependency to allow mod to work even if the library mod is not installed on the server.

2.0: Updated to VintageStory 1.13.1

3.0: took over maintenance again, this is a continuation of capsups work (https://www.vintagestory.at/forums/topic/3496-vsprospectorinfo-conveniently-store-prospecting-pick-results-directly-in-your-map-data/)

Edited by P3t3rix
  • Like 5
  • Thanks 4
Link to comment
Share on other sites

  • 1 month later...
  • 2 months later...

I love the mod. Can you please update it? It was working with 1.13.0, but it crashes when I join a world with version 1.13.1:

20:02:51 [Client Fatal] Version: v1.13.1 (Stable)8/26/2020 8:02:51 PM: Critical error occurred
System.MissingMethodException: Method not found: bool Vintagestory.GameContent.IWorldMapManager.RemoveMapData(Vintagestory.GameContent.MapComponent)
  at Vintagestory.GameContent.WorldMapManager.ToggleMap (Vintagestory.API.Client.EnumDialogType asType) [0x0018f] in <4a603c2be2a84566ac69cabed3bca206>:0
  at Vintagestory.GameContent.WorldMapManager.OnLvlFinalize () [0x00055] in <4a603c2be2a84566ac69cabed3bca206>:0
  at (wrapper delegate-invoke) <Module>.invoke_void()
  at Vintagestory.Client.NoObf.ClientEventAPI.TriggerLevelFinalize () [0x0000a] in <82c6a7885c424e2c89d8e57dcd2c20dc>:0
  at Vintagestory.Client.NoObf.GeneralPacketHandler.HandleLevelFinalize (_eWn6D9wP3GwFhkhsZpBDKFOPTli packet) [0x0003d] in <82c6a7885c424e2c89d8e57dcd2c20dc>:0
  at Vintagestory.Client.NoObf.ProcessPacketTask.ProcessPacket (_eWn6D9wP3GwFhkhsZpBDKFOPTli packet) [0x00016] in <82c6a7885c424e2c89d8e57dcd2c20dc>:0
  at Vintagestory.Client.NoObf.ProcessPacketTask.Run () [0x00000] in <82c6a7885c424e2c89d8e57dcd2c20dc>:0
  at Vintagestory.Client.NoObf.ClientMain.ExecuteMainThreadTasks (System.Single deltaTime) [0x000c2] in <82c6a7885c424e2c89d8e57dcd2c20dc>:0
  at _xWlYI0mi012s6XVbYh4qv3UnJwE._Q7eJG4PJjIdrQF6o2HEiKvpRGUG (System.Single ) [0x00410] in <82c6a7885c424e2c89d8e57dcd2c20dc>:0
  at _qjy3zfvf890vO3wXpmycZO4rYmd._3t9nsC1wk33LZun7TJ6ZiUcWUXH (System.Single ) [0x001b4] in <82c6a7885c424e2c89d8e57dcd2c20dc>:0
  at _qjy3zfvf890vO3wXpmycZO4rYmd._O2A5G76Bx6tOsvPPuqsEcuyBD6A (System.Single ) [0x000c2] in <82c6a7885c424e2c89d8e57dcd2c20dc>:0
  at Vintagestory.Client.NoObf.ClientPlatformWindows.window_RenderFrame (System.Object sender, OpenTK.FrameEventArgs e) [0x00147] in <82c6a7885c424e2c89d8e57dcd2c20dc>:0
  at (wrapper delegate-invoke) System.EventHandler`1[OpenTK.FrameEventArgs].invoke_void_object_TEventArgs(object,OpenTK.FrameEventArgs)
  at OpenTK.GameWindow.OnRenderFrame (OpenTK.FrameEventArgs e) [0x00000] in <7ef43334b29e406ba375449554b0451a>:0
  at OpenTK.GameWindow.OnRenderFrameInternal (OpenTK.FrameEventArgs e) [0x00010] in <7ef43334b29e406ba375449554b0451a>:0
  at OpenTK.GameWindow.RaiseRenderFrame (System.Double elapsed, System.Double& timestamp) [0x0000c] in <7ef43334b29e406ba375449554b0451a>:0
  at OpenTK.GameWindow.DispatchRenderFrame () [0x00038] in <7ef43334b29e406ba375449554b0451a>:0
  at OpenTK.GameWindow.Run (System.Double updates_per_second, System.Double frames_per_second) [0x00104] in <7ef43334b29e406ba375449554b0451a>:0
  at OpenTK.GameWindow.Run () [0x00000] in <7ef43334b29e406ba375449554b0451a>:0
  at _uZ6HGHKReeiiB9LfjjkLo7ZjCzJ._xV6aEHjVQGyTKdkpWWvDkiPmtZG (_HHDDpmRo3wAcwk1CwOBy6ExXq4P , System.String[] ) [0x00342] in <426232f7c96948d38677e70fbb895bfd>:0
  at _uZ6HGHKReeiiB9LfjjkLo7ZjCzJ+_sT4KYUn3vZyTEMX4pkKBFIdAhby._G6n5nUPDsKjatYat28ixoBW69go () [0x00000] in <426232f7c96948d38677e70fbb895bfd>:0
  at _2CycPlXbvsFGFF0F3qbUypri7GzA._xV6aEHjVQGyTKdkpWWvDkiPmtZG (System.Threading.ThreadStart ) [0x00007] in <82c6a7885c424e2c89d8e57dcd2c20dc>:0

 

Edited by Kyle Stemen
Link to comment
Share on other sites

  • 4 weeks later...
  • 4 weeks later...
On 9/24/2020 at 3:29 PM, EreticKB said:

VS 1.13.4 I dunno can you solve it or not, but results shows on map only after reload world.

I can't get it to work on 1.13.4. I can see it in the mod manager and it is turned on, the tool tip just never shows up. I also don't see the datafile it is supposed to create. 

What did you mean by reloading the world? I have restarted the program, but no luck.

Link to comment
Share on other sites

  • 3 weeks later...
  • 2 weeks later...
On 11/7/2020 at 8:26 AM, SergScorp said:

How can data be reset?

As @Londor said it's %appddata%\VintagestoryData\ModData\<<Your World Seed>>\PospectorInfo.prospectorMessages.json

On 11/18/2020 at 9:57 PM, Londor said:

 Is there any plans to color the prospekted Chunks to see which are prospected? Or is there an option for this, which i didn't find ? 
 

No, i am currently busy and don't have time to play/mod the game and just irregularly check the forums, so no new features and just bug fixes when they crop up and are easy to fix. The code is open-source though if anyone wants to fork it/create a pull-request he is more than welcome :)
 

Link to comment
Share on other sites

  • 4 weeks later...
  • P3t3rix changed the title to [V1.15.5] ProspectorInfo
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.