Author Topic: Adding map pieces to SoM  (Read 6745 times)

Offline Verdite

  • VIP
  • Dark Slayer Destroyer
  • *****
  • Posts: 1624
Re: Adding map pieces to SoM
« Reply #10 on: April 01, 2014, 07:17:16 am »
Just to say, John... I looked the thread over again about optimisation, and keeping 'optimise map' unchecked has allowed me to create something I thought wasnt possible. So thanks  :smile:

Offline HwitVlf

  • Dark Slayer Destroyer
  • ****
  • Posts: 1667
Re: Adding map pieces to SoM
« Reply #11 on: April 03, 2014, 04:41:17 pm »
Great! Now I'm curious what you were able to do???? :beerchug:

Offline Holy_Diver

  • Holy Diver
  • Archmage of Light
  • *****
  • Posts: 2280
  • This account won't read/reply to Private Messages
Re: Adding map pieces to SoM
« Reply #12 on: August 03, 2018, 06:46:45 am »
WARNING: x2msm makes HUGE msm files when you drop more than one X file on top of it!

It probably won't be a problem for you, but it will make your folder really big. If you are trying to do quick bulk conversion, better to make a BAT that processes its parameters one at a time.

Below is a BAT that does a lot more than just dropping X files onto x2msm, but you can use it for ideas. (It converts from another format to X and then to MSM and cleans up after itself, and moves the MSMs into the msm folder.)

Quote
@ECHO OFF

mdl2x %*
rm %*

:TOP

IF (%1) == () GOTO END
#x2mhm %1.x
#x2msm has a bug that keeps it from being used this way.
rem it works, but makes huge files
x2msm %1.x
set x=%x% %1.x
 
SHIFT
GOTO TOP

:END
#x2mhm %x%
#x2msm has a bug that keeps it from being used this way.
rem it works, but makes huge files
#rem x2msm %x%
rm *.x
#mv -f *.mhm ../mhm
mv -f *.msm ../msm
ECHO End
« Last Edit: August 03, 2018, 06:48:59 am by Holy_Diver »