Jump to content


Photo

Tutorial on adding areas to BP-BGT worldmap sought


  • Please log in to reply
3 replies to this topic

#1 TDouglas

TDouglas

    Unwashed Wildling

  • Member
  • 121 posts

Donator

Posted 06 February 2012 - 08:06 PM

Sorry if I've overlooked anything obvious, but I've been to all the modding sites I can think of and haven't been able to find one yet. I've tried my luck with the modmakers instruction guide that ships with, but ended up being more confused than before. For example:
  • ATION_IF FILE_EXISTS ~Worldmap/map_mods_areas.tbl~ THEN BEGIN
  • COPY ~Worldmap/map_mods_areas.tbl~ ~Worldmap~
Correct me if I'm wrong, but isn't this telling Weidu to check if the file is in the Worldmap directory and, if so, to copy it over itself? I'm lost here.

I've tried to reverse engineer entries to the worldmap from other mods .tp2 files (and, suspiciously, have not yet run across the above snippet of code in them), but not really understanding what's going on is a hinderance. From what I've seen in some of them, it seems as though setting locations for entry to an area (from other specified areas) could (in theory) make said area visitable from any phase of the game (BG1 areas returnable even in TOB).

I'm probably misinterpreting here, so if anyone can point me to a good tutorial on the subject I'll put in a good word with Malar for ya :)

#2 Picollo

Picollo
  • Member
  • 65 posts

Posted 07 February 2012 - 12:59 AM

Don't remember next line, but it's problbly APPEND or EXTEND_BOTTOM.

In fact that's correct. This part says, that it should copy itself. And then add lines for new areas. So u finish with modified file. And installing worldmap at the end of instalation will add new areas to worldmap.

#3 TDouglas

TDouglas

    Unwashed Wildling

  • Member
  • 121 posts

Donator

Posted 07 February 2012 - 09:22 AM

Seems a bit redundant tho ... if the file already exists, why am I copying (the exact same file) over itself? Seems better to leave it where it is and just append whatever I'm adding directly to it (it would do exactly the same thing without the extra code).

I'm guessing (from the crickets I seem to have borrowed from Miloch) that there IS no tutorial available?

#4 Wisp

Wisp
  • Modder
  • 1353 posts

Posted 07 February 2012 - 03:40 PM

The "copy it over itself" bit is just how you open a file in-place for reading and writing.

If the .doc file is not doing it for you I do not think there is much else available. There are some comments in the "source" (enclosed) but it is probably just the same as what is in the .doc.

Spoiler

(In actuallity, you do not have to provide all three kinds of files. If you just want to provide links that is fine too.)

Edited by Wisp, 07 February 2012 - 03:43 PM.