Headers in HTD files

Results 1 to 6 of 6
  1. #1
    Valued Member HealthCard is offline
    MemberRank
    Sep 2008 Join Date
    141Posts

    Headers in HTD files

    Im working on creating new maps through HTD files and in Farbod's tutorial we need to replace the header in the r32 file we made using l3dt with a header of an existing map.

    Seeing as im only able to find HTD maps in the sizes of 256x256 and 512x512 I was wondering if its possible to create your own header for a new file

    The maps that are 256x256 have a common header which is
    Code:
    01 02 01 00
    and the maps that are 512x512 have a the common header
    Code:
    01 04 04 00
    I was wondering if its possible to create a new header for other map sizes (64x64,128x128,1024x1024 and so on)

    and if the numbers have a meaning what do they mean

    The numbers Mason, what do they mean


  2. #2
    əʇılə ɯɐ ı fiestanerd69 is offline
    MemberRank
    Jun 2009 Join Date
    958Posts

    Re: Headers in HTD files

    Did you test it? Try changing the header and loading into the game. Try using a 512 header on a 256 map. See what happens.

  3. #3
    Valued Member HealthCard is offline
    MemberRank
    Sep 2008 Join Date
    141Posts

    Re: Headers in HTD files

    Quote Originally Posted by MrFarbodD View Post
    Did you test it? Try changing the header and loading into the game. Try using a 512 header on a 256 map. See what happens.
    I tried it and it throws the Failed to load map data or whatever error and sends you back to the character select screen.

  4. #4
    əʇılə ɯɐ ı fiestanerd69 is offline
    MemberRank
    Jun 2009 Join Date
    958Posts

    Re: Headers in HTD files

    I wasn't able to figure it out from a quick look but it might be related to the size or something like that.

    There is a header for 951x476 for the client which supports rectangular maps.
    Code:
    44 E8 06 00
    There is also one for 476x476.
    Code:
    10 75 03 00
    It's the one used for the bottom part of adealia. It wasn't in the official files as it was created by @Lugapha so maybe he knows more about this, or maybe @aqua512 can find out for you. Possibly @wervgfhjg knows more about this?

  5. #5
    Valued Member HealthCard is offline
    MemberRank
    Sep 2008 Join Date
    141Posts

    Re: Headers in HTD files

    I was mostly curious cause I was thinking if making a 1024x1024 map would work it could hold roughly 3-4 towns in one map, but im also concerned if itll be too much to load since i think it loads all the data (nifs/effects), if itll cause too much lag for the game

  6. #6
    əʇılə ɯɐ ı fiestanerd69 is offline
    MemberRank
    Jun 2009 Join Date
    958Posts

    Re: Headers in HTD files

    I'm curious too, it would be pretty cool to have a map like that, I was thinking about doing something like that before with the adealia map. I don't think it'll be a big issue lag wise.

    I think it should not render anything that is outside of the draw distance, although it may be loaded in memory it shouldn't affect fps wise. Though, we are talking about OnsOnSoft here so nothing is outside the scope lol.



Advertisement