Jump to content


Photo

Removing Area links


  • Please log in to reply
4 replies to this topic

#1 Picollo

Picollo
  • Member
  • 65 posts

Posted 12 July 2010 - 03:25 AM

As I've posted somewhere else, I've been thinking about making mod that would add transition areas to BG2. This mod should be compatibile to Worldmap mod, so I'm posting my question here. How can I remove links area to area? I do not want that it would be able to travel from City Gates to d"Arnise, Trademeet, and others. Only to my area, that will lead to another, and at the end to Trademeet. In instruction for mod makers there is instruction to replace links, but it seems to not work for me correctly (maybe I'm doing something wrong). But after all I to not want to replace all 12 links from City Gates to all areas to 12 links to my area.
So, how I can remove those links, and how keep it still compatibile with Worldmap?

#2 Wisp

Wisp
  • Modder
  • 1353 posts

Posted 12 July 2010 - 05:18 AM

From what I recall of the Worldmap mod code there isn't much you can do to be compatible with it, other than maybe mandating that your mod be installed after the Worldmap mod. The Worldmap mod deletes the worldmap file and rebuilds it based on information contained within the Worldmap mod. Consequently it needs to be updated to be compatible with new worldmap-altering mods.

Reservations for errors. It been a long time since I looked at the Worldmap mod code.

Edited by Wisp, 12 July 2010 - 05:23 AM.


#3 Picollo

Picollo
  • Member
  • 65 posts

Posted 12 July 2010 - 08:08 AM

Worldmap has great tutorial for adding new locations to the worldmap.

You can easily add new mods to it, change location, where each location is placed, and change existing links. That all can be easily done, and needs to be done BEFORE installing Worldmap (You just need to place some code in .tp2 and create/append specified files.). But question is, that is it possible to place some code that Worldmap could recognize it, and Worldmap itself would remove unnecesary links? Because I know, that removing links via weidu can be done, but if that, my mod would require to be installed after Worldmap, what i would like to avoid. I just want to give modders much more space to place new adventures, and make it possible, that not every new NPC would need to start in Atkhatla/Trademeet/Underdark. And if my mod would be required to be installed after Worldmap, than it's very late in BWP instalation, and it could even more complicate whole instalation.

#4 Miloch

Miloch

    Barbarian

  • Modder
  • 6573 posts

Posted 15 July 2010 - 05:46 AM

Do you really want to remove the area links, or just replace them with links to other areas? The latter is much easier to do, as you can just replace one area code with another in the .are file. The former can still be done, but is more complex, as you'd have to delete all the travel region vertices, the region itself, and then update all the offsets accordingly. As for the Worldmap mod specifically, I don't know much about it, but you should be able to write your code so that it works with or without the Worldmap mod.

Infinity Engine Contributions
Aurora * BG1 NPC * BG1 Fixpack * Haiass * Infinity Animations * Level 1 NPCs * P5Tweaks
PnP Free Action * Thrown Hammers * Unique Containers * BG:EE * BGII:EE * IWD:EE
================================================================
Player & Modder Resources
BAM Batcher * Creature Lister * Creature Checker * Creature Fixer * Tutu/BGT Area Map & List * Tutu Mod List
================================================================
"Infinity turns out to be the opposite of what people say it is. It is not 'that which has nothing beyond itself' that is infinite, but 'that which always has something beyond itself'." -Aristotle


#5 Picollo

Picollo
  • Member
  • 65 posts

Posted 15 July 2010 - 06:29 AM

Replacing is quite easy, and deleting is much diffrent, I know. But there is 12 links from City Gates in vanilla game. But I want to make it BG1-like style. I do not want to allow player from City Gates to Trademeet, but make it, that we need to go there by visiting some cross areas before reaching Trademeet. When area links remains, Player can just skip those areas, and go to destination point.

But you are probably right, Miloch, probably I just need to add code with, or without Worldmap. Right now I should probably check Worldmap code, and try do check possible making it with Worldmap.

If I find something, I'll post it here.