Jump to content

Mat Fenric

Vintarian
  • Posts

    13
  • Joined

  • Last visited

Everything posted by Mat Fenric

  1. Unfortunately this program remained at the prototype stage and has not evolved for almost two years. It probably doesn't work with current versions of VS.
  2. In very simple terms, I developed a computer program that analyzes the map data and converts it into an image.
  3. I seem to understand that the situation is difficult regarding the evolution of this mod. I will still try to ask if it will be possible one day to carry the flowerpots (if you break a flowerpot with mushrooms, these can rot). Thank you.
  4. Finally, I have found the solution (not the best I suppose, but it works). Left my image, right VS map.
  5. @DArkHekRoMaNTIt 's not block coordinates but chunk coordinates, so the middle is 15 625 x 15 625 (for 1 024 000 blocks by side map and 32 by side chunk). For everyone, I found a way to read the file. Now I need to know how to transform data like this into pixel color:
  6. I forgot to indicate that I am in a website (ASP.NET, C#), so I do not have access (I suppose) to an "api" object.
  7. Hello I have loaded the source code of VintageStoryAPI, VSEssentialsMod, VSCreativeMod and VSSurvivalMod to find how load a map and generate images for a web site (so, not for a mod). I know that the map is a .db file in the VintagestoryData\Maps directory It's possible to read it with the method OpenOrCreate of a MapBD object, get a MapPieceDB object with GetMapPiece method and read the Pixels int array. But I don't know how to initiate a ILogger object for the MapDB constructor. MapDB mapdb = new MapDB(logger); And I don't know yet how I will be able to read the Pixels int array to tranform the int in pixel data and generate the image. My actual attempt : string errorMessage = null; string mapdbfilepath = @"[...]\VintagestoryData\Maps\[...].db"; //? api.World.Logger - ILogger Logger MapDB mapdb = new MapDB(logger); mapdb.OpenOrCreate(mapdbfilepath, ref errorMessage, false, true, false); Vec2i coord = new Vec2i(0, 0); MapPieceDB piece = mapdb.GetMapPiece(coord); if (piece?.Pixels != null) { lblIntsMap.Text = string.Empty; foreach (int pixel in piece.Pixels) lblIntsMap.Text += pixel.ToString(); } I'm not sure how the coordinates of the Vec2i cord object work... Can you help me ?
  8. I have the basis of my mod. A long work still awaits me. Thank you @l33tmaan for your help.
  9. I had done my research in the wrong directories. Thanks for this lead. cobbleslab.json might be a better option for me.
  10. Hello I have the idea to adapt my old (8 years!) Minecraft mod "Plaques" (plates) (video in french) for Vintage Story. I need to place the plate block, like a slab (horizontal, vertical, left, right, front, back, top or bottom). Could you give me some tips on how to handle this block placement or where to find this information? Thank you
×
×
  • 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.