• 🏆 Texturing Contest #33 is OPEN! Contestants must re-texture a SD unit model found in-game (Warcraft 3 Classic), recreating the unit into a peaceful NPC version. 🔗Click here to enter!
  • It's time for the first HD Modeling Contest of 2024. Join the theme discussion for Hive's HD Modeling Contest #6! Click here to post your idea!

Editing map data outside of Editor

Status
Not open for further replies.
Level 13
Joined
Oct 18, 2013
Messages
691
I have an alpha tile in my map, but as shown in this thread, (Alpha Tile for Dummies) The order of the tiles matters. Unfortunately when I edit my tileset, units/doodads are deleted and the triggers related to those objects are as well. Can I just sneakily edit the tile order without these issues? Or is my best bet to just redo some terrain?
 

Chaosy

Tutorial Reviewer
Level 40
Joined
Jun 9, 2011
Messages
13,183
I think it is possible, but I don't know how.

Back in the day when JNGP was the go-to editor it was the only way to add tiles, and it was always added at the very end. I'd bet a small amount of money they could have put it anywhere. So if you dig into the source code for that, maybe you can find out how.
 

Chaosy

Tutorial Reviewer
Level 40
Joined
Jun 9, 2011
Messages
13,183
There is no public github for it, I think.

There is still a download in the hive tool section, a lot of the code is in .lua files so you can open them no worries.
There was also the hosted project WEX which replaced JNGP for a while. Not sure if the author is still active.

Another possible solution, ugly but maybe?
What if you juggle the tiles.

If I have the tiles added to my map in the following order:
A B C D E

and I want to replace B with a new tile, X.

Add X:
A B C D E X

Remove B
A C D E X

Remove C D E
A X

Add C D E
A X C D E
 

Dr Super Good

Spell Reviewer
Level 64
Joined
Jan 18, 2005
Messages
27,198
Use a hex editor. The custom tileset data is listed near the front of the w3e file inside the map archive/folder. It is loaded in order of implicit cliff associated tile types followed by explicit tile types with duplicates removed. There is no limit to how many can be defined here, however only the first 16 tile types and first 2 cliff types can be used due to other limits. Each tile type is a 4 character code, and they could be swapped around as required.

Technically up to 16 cliff types can also be used, however another internal limit means that meshes for only the first 2 work correctly in game, with all others repeating those or appearing square.
 
Status
Not open for further replies.
Top