Author Topic: Tileset merging  (Read 485 times)

Legacy_Vincent07

  • Jr. Member
  • **
  • Posts: 77
  • Karma: +0/-0
Tileset merging
« on: April 10, 2014, 01:05:48 am »


               

I've been working on a rather large update for my server, an run into a bit of a snag.  That snag being merging .set files to combine multiple alterations to the MicroSet tileset.


 


The first being Worms' Wagon interiors: http://nwvault.ign.c...d=59802&id=7797


 


The second, his stomach interior from the Sept 11 CCC: http://nwvault.ign.c....Detail&id=8095


 


I tried one .set editor I found on the vault, but it would not let me copy the entry from one file to the second.  The other editor I found didn't even let me edit anything.


 


So, does anyone have either an already merged file for these, or a better editor somewhere?



               
               

               
            

Legacy_henesua

  • Hero Member
  • *****
  • Posts: 6519
  • Karma: +0/-0
Tileset merging
« Reply #1 on: April 10, 2014, 01:12:48 am »


               

i use a text editor, and merge it manually in these cases. Its not that many tiles to merge. 10 maybe in total.


 


Do you have any idea what you need to do in a merge?



               
               

               
            

Legacy_MerricksDad

  • Hero Member
  • *****
  • Posts: 2105
  • Karma: +0/-0
Tileset merging
« Reply #2 on: April 10, 2014, 01:13:37 am »


               

Working on one, but I can't get it ready in any good time at the moment.



               
               

               
            

Legacy_Vincent07

  • Jr. Member
  • **
  • Posts: 77
  • Karma: +0/-0
Tileset merging
« Reply #3 on: April 10, 2014, 01:17:29 am »


               

Tilesets are one of the things I've not messed with at all.   I've added overrides to pretty ours up, added new ones.  Never done any merging though.



               
               

               
            

Legacy_henesua

  • Hero Member
  • *****
  • Posts: 6519
  • Karma: +0/-0
Tileset merging
« Reply #4 on: April 10, 2014, 01:34:46 am »


               

well to get you started: open up the set file in a text editor and take a look at it.


 


You'll have a section called [TILES]  and a section called [GROUPS]. Those are I believe the only sections that will change in this merge. You will also need to edit the ITP (palette definitions) using a GFF editor, and I don't have time to explain that to ya right now. Right now just get familiar with the SET file. Read what I ramble on about here. And then get a GFF editor so you can also edit the ITP file.


 


RAMBLE ABOUT SET FILE STUFF:


As in most computer crap, its all just sequential lists with an index number to keep track of it. TILE1 TILE2 TILE3 … TILE1353 etc… So open the SET file that you want to merge the tiles into. in that file find the end of the tiles list. that is where you will paste the tiles you want to add. its called "appending", adding on to the list. Then you will need to change the numbering of them so that they are sequential. So say the last TILE in the wagon's microset is ID'd 19. The four stomach tiles will need to be added in order 20 21 22 23.  Make sure they are just the stomach tiles and not some duplicate tiles in the microset. Then after you have the last tile aded, you need to check the number, and go to the top of the list. At the top is a TILE Count. You'll want to update it. Basically change the number to the last tile in the sequence - 1. It is one less than the ID of the last tile because the count starts at 0. Typical computer crap thing. Counting begins at 0 instead of 1. Its actually a groovy way to count, but takes getting used to.


 


OK. GROUPS. I forget exactly which tiles are the stomachs, BUT you can find out which ones they are in the stomach SET file. Go to the GROUPS section in that set, and look for the stomach groups. They'll have a group definition and list of tiles, each one with a number of the tile in the stomach SET. Those are the tiles you want to copy. AND you want to copy the group definitions to the other SET file too, but make adjustments like the actual TILE id and group ID and group count etc...


 


 


This is a very fast run down. Just start byopening the SET file and looking at it. Much of this might be self-explanatory once you poke around to see for your self how the file is set up.



               
               

               
            

Legacy_Vincent07

  • Jr. Member
  • **
  • Posts: 77
  • Karma: +0/-0
Tileset merging
« Reply #5 on: April 10, 2014, 03:02:37 am »


               

Thank you!  Got the .set stuff done.  That was rather simple actually.


 


.itp remains.  I seem to recall having issues trying to alter an .itp file before.    Fun.



               
               

               
            

Legacy_Vincent07

  • Jr. Member
  • **
  • Posts: 77
  • Karma: +0/-0
Tileset merging
« Reply #6 on: April 10, 2014, 03:30:26 am »


               

Well, that was tedious, but I think I have it sorted out. 


 


Now my players will have both caravan rides ... and be able to be eaten and swallowed by large things.  '<_<'


 


FUN FOR ALL.



               
               

               
            

Legacy_henesua

  • Hero Member
  • *****
  • Posts: 6519
  • Karma: +0/-0
Tileset merging
« Reply #7 on: April 10, 2014, 03:44:52 am »


               

I love that stomach. its the lobby for a module i am working on. '<img'>



               
               

               
            

Legacy_Vincent07

  • Jr. Member
  • **
  • Posts: 77
  • Karma: +0/-0
Tileset merging
« Reply #8 on: April 10, 2014, 03:47:31 am »


               

I plan to custom script the Purple Worm models to actually grab and eat players.



               
               

               
            

Legacy_Pstemarie

  • Hero Member
  • *****
  • Posts: 4368
  • Karma: +0/-0
Tileset merging
« Reply #9 on: April 10, 2014, 11:02:15 am »


               


I plan to custom script the Purple Worm models to actually grab and eat players.




 


You can't do that...it'd be...too dastardly  '<img'>


 


I'd love to see that script when you get it done.


               
               

               
            

Legacy_MerricksDad

  • Hero Member
  • *****
  • Posts: 2105
  • Karma: +0/-0
Tileset merging
« Reply #10 on: April 10, 2014, 12:14:02 pm »


               

Doesn't the Set Editor (http://nwvault.ign.c...r.detail&id=620) still have a button that automatically exports a proper ITP file for your set? I had been using that after running my custom tileset maker for years.