Author Topic: [WB] Global Map Visualiser  (Read 7768 times)

0 Members and 1 Guest are viewing this topic.

neostralie

  • Sergeant
  • *
    • View Profile
  • Faction: Nord
  • MP nick: Neostralie
[WB] Global Map Visualiser
« on: April 16, 2014, 04:55:26 PM »
I am currently working on a map visualiser/modifier/creator for M&B Warband (because only tested on Warband map.txt and parties.txt)

Currently I am able to read map.txt and parties.txt but I don't realy understand all the data provided by theses files. I will continue to work with map.txt but will instead use parties.py for the generation and update of the objects of the map.

Current Download :
Version A.0.3a
Note : use 7zip to unzip the file

Actual ScreenShot :
Image 1
Image 2
Image 3
Image 4
Image 5

Miles stones :
Done :
  • Loading map.txt mesh information
  • Loading parties.txt
  • Rendering color shaded terrain
  • Rendering Texture shaded terrain

In Progress
  • Rendering trees
  • Flat triangle map

Todo
  • Modification of the map file
    • Triangle modification
    • Vertex modification
    • Edge modification
  • Loading OBJ files for map
  • Loading parties.py
  • Saving map.txt
  • Saving parties.txt
  • Saving parties.py

Planed
  • Creating a map from a flat mesh
  • Loading BRF
First build : Version A.0.1

What is it doing?
- Read the map.txt and parties.txt located in the map folder.
- Use zqsd to mouve and a,e to rotate. (sorry for the french keyboard).

Known issue :
There is a limitation of 65000 vertex for the map. I'll try to find a way to bypass this limitation.

Old version :
Version A.0.1
Version A.0.3
« Last Edit: July 29, 2014, 05:08:36 PM by neostralie »

Blobmania

  • Grandmaster Knight
  • *
  • Damn Sexy
    • View Profile
  • Faction: Neutral
  • MP nick: Blobmania
  • WBNW
Re: [WB] Global Map Visualiser
« Reply #1 on: April 16, 2014, 04:58:04 PM »
Nice. Are you planning this as a full map editor like Thorgrim's?
... stop living near me or I'm moving away.

neostralie

  • Sergeant
  • *
    • View Profile
  • Faction: Nord
  • MP nick: Neostralie
Re: [WB] Global Map Visualiser
« Reply #2 on: April 16, 2014, 05:10:26 PM »
Nice. Are you planning this as a full map editor like Thorgrim's?

Indeed, I'm planing to do a full editor.

Currently, i'm working on the interpretation of the parties.txt file because the map.txt is already completely interpreted.

map.txt is quite simple to interpret. There is two parts in the file.
The first one is the vertex list starting by the numbers of vertex of the mesh.

The second one is the polygon list starting by the numbers of polygons. It's simply list of vertex painting information (first 3 numbers) and triangle constitution (3 last numbers).
Currently, i'm just taking the triangle constitution information. I'm planing to add the vertex painting information to the elements.

The Bowman

  • Count
  • *
  • A random scener.
    • Steam - thebowmantw
    • View Profile
  • Faction: Khergit
  • MP nick: The_Bowman
  • WBM&BVCNWWF&S
Re: [WB] Global Map Visualiser
« Reply #3 on: April 16, 2014, 05:14:23 PM »
That would be a Godsend. You can make it possible to edit the map like the AI mesh somehow (select vertex/edge and move them as you like.
Coming soon since 2012. Click on the picture below to expand your expectations.


Native Scene Replacement Pack. [AKA coolest mod ever]
New release (17.07.2017).

Michadr

  • Grandmaster Knight
  • *
  • Perisno Lead Developer
    • Steam - http://steamcommunity.com/id/michadr
    • Twitter - @realmichadr
    • Twitch.tv - http://www.twitch.tv/michadr/
    • YouTube - michaeldecker7
    • View Profile
    • Perisno
  • Faction: Nord
  • MP nick: Michadr
  • WBM&BVC
Re: [WB] Global Map Visualiser
« Reply #4 on: April 16, 2014, 05:23:17 PM »
How about making a option to read files off of the module system instead of .txt like swyter's cartographer?
But good luck!

neostralie

  • Sergeant
  • *
    • View Profile
  • Faction: Nord
  • MP nick: Neostralie
Re: [WB] Global Map Visualiser
« Reply #5 on: April 16, 2014, 05:34:20 PM »
I'm just at the beginning of the project.

The first release will come with the reader of the two files to have an overview of the world map.
I'm working with the native map and parties files.

Feel free to provide me with other files.

Blobmania

  • Grandmaster Knight
  • *
  • Damn Sexy
    • View Profile
  • Faction: Neutral
  • MP nick: Blobmania
  • WBNW
Re: [WB] Global Map Visualiser
« Reply #6 on: April 16, 2014, 07:23:17 PM »
Well, I can admit to being pretty excited about this. I always tend to avoid Singleplayer mods because of the map making implications, but I may well get back involved if this ends up as good as I hope it will.
... stop living near me or I'm moving away.

Ra'Jiska

  • Napoleonic Wars Moderator
  • *
    • Steam - rajiska
    • View Profile
    • Github
  • Faction: Rhodok
  • MP nick: Dodo
  • WF&SWBNWM&BVC
Re: [WB] Global Map Visualiser
« Reply #7 on: April 16, 2014, 07:50:00 PM »
Looks great !
Just out of curiosity, what are you coding it with ?
Flamer (n) : (pejorative): A very flamboyant, effeminate gay male.

neostralie

  • Sergeant
  • *
    • View Profile
  • Faction: Nord
  • MP nick: Neostralie
Re: [WB] Global Map Visualiser
« Reply #8 on: April 16, 2014, 10:03:31 PM »
Looks great !
Just out of curiosity, what are you coding it with ?

I'm coding it with Unity 3D.

First build : Version A.0.1

What is it doing?
- Read the map.txt and parties.txt located in the map folder.
- Use zqsd to mouve and a,e to rotate. (sorry for the french keyboard).

Known issue :
There is a limitation of 65000 vertex for the map. I'll try to find a way to bypass this limitation.

Version A.0.1

neostralie

  • Sergeant
  • *
    • View Profile
  • Faction: Nord
  • MP nick: Neostralie
Re: [WB] Global Map Visualiser
« Reply #9 on: April 16, 2014, 11:37:16 PM »
Hum...
Working on the vertex color shader to have an overview of the map textures but it's quite confusing me.

The data are organise like this :
4 0 3 5208 5248 5207

The 3 first numbers should be the vertex color information because the 3 last are the triangle.
But on the native map.txt, only the first number change so it's probably not a vertex color information but a triangle color information. I don't know how to deal with this.

Found the informating i've needed in the 0.6 changelog of Thorgrim's map editor : "   - Can now double click a face in face mode to select all adjoining faces of the same texture (like fill)"

The first number is the texture of the triangle.

Blobmania

  • Grandmaster Knight
  • *
  • Damn Sexy
    • View Profile
  • Faction: Neutral
  • MP nick: Blobmania
  • WBNW
Re: [WB] Global Map Visualiser
« Reply #10 on: April 16, 2014, 11:47:15 PM »
Someone should write a wiki with all this stuff.
... stop living near me or I'm moving away.

DerGreif

  • Sergeant Knight
  • *
    • View Profile
  • Faction: Neutral
  • WBVC
Re: [WB] Global Map Visualiser
« Reply #11 on: April 17, 2014, 02:20:33 AM »
Hum...
Working on the vertex color shader to have an overview of the map textures but it's quite confusing me.

The data are organise like this :
4 0 3 5208 5248 5207

The 3 first numbers should be the vertex color information because the 3 last are the triangle.
But on the native map.txt, only the first number change so it's probably not a vertex color information but a triangle color information. I don't know how to deal with this.

Found the informating i've needed in the 0.6 changelog of Thorgrim's map editor : "   - Can now double click a face in face mode to select all adjoining faces of the same texture (like fill)"

The first number is the texture of the triangle.
Maybe swyter can help you out? He created already a map visualiser which can read map.txt and parties.py, import .obj and export a map to .obj, save a map.txt and parties.py, as well as moving and rotating parties on the map. Map textures are read, too, but no icons. You can also look at his program, see here: swyter's cartographer
   

MickDick

  • Knight at Arms
  • *
  • Goin for 900,000...
    • View Profile
  • Faction: Sarranid
Re: [WB] Global Map Visualiser
« Reply #12 on: April 17, 2014, 02:26:39 AM »
Well, I can admit to being pretty excited about this. I always tend to avoid Singleplayer mods because of the map making implications, but I may well get back involved if this ends up as good as I hope it will.
This, so much this, assuming you mean what I think you do.  native still has a few areas where this occurs as well.  Very irritating when you're trying to run away from something.
snap, crackle, pop.


ElPadrino

  • Sergeant Knight at Arms
  • *
  • Cartoon & 2D Art
    • YouTube - ElPadrino Moddeur
    • View Profile
  • Faction: Neutral
Re: [WB] Global Map Visualiser
« Reply #13 on: April 17, 2014, 07:28:16 AM »
I try it !
It looks nice, Thorgrim was not very good with Warband.

Cap.Nikollas

  • Sergeant
  • *
    • View Profile
  • Faction: Rhodok
Re: [WB] Global Map Visualiser
« Reply #14 on: April 18, 2014, 03:01:54 PM »
You could provide your editor in .rar package? It is easier to download this form. If you need a site to upload the archive use www.4shared.com  :mrgreen: Congratulations for your work!