Skip to content

[MOD IDEA] Porting Modron Maze from PSTEE to BG2EE

argent77argent77 Member Posts: 3,478
edited April 2018 in General Modding
I've been thinking for quite some time if there is a way to port the Modron Maze, which is unique in the whole series of IE Engine games, from PST to BG(2)EE or IWDEE. The biggest (but by no means only) hurdle is the hardcoded way how the maze is implemented in PST(EE). Not all of it can be emulated by clever use of scripts or other features of the game engine. Other issues, such as the different scale of maps or PST-exclusive creature animations, are still a challenge but can be solved.

A couple of weeks ago I have started working on a new mod that attempts to ports modron maze functionality and resources to BG2EE. The plot will be different (i.e. there will be a proper story), but the maze itself will be implemented as faithfully as possible. I can't fully simulate the randomized nature of the maze, but I can provide a dozen or more pre-made configurations, so that the maze still feels like a randomized construct.

Until now I have ported the whole maze (with some adjustments), which includes the engine room, dungeon entrance, the partially disintegrated area where you would meet Nordom in PST, the boss room, and of course the actual maze areas. The mod will also provide a great number of new creature animations. Some animations are from PST, some have been imported from other games. The plot has been outlined, but not yet implemented.

I plan to turn the mod into a testing ground - or arena - where the party can (theoretically) battle an endless amount of opponents in an ever-shifting maze, earn XP and loot collectibles that can be traded into useful items. Number and types of opponents are determined randomly whenever you enter a new map. Difficulty of battles will be adapted somewhat, based on average party level. And all of it is connected to a nice little quest with its own rewards.

As this is my first mod that focuses mainly on combat challenge, what do you think is important or desirable to keep battles challenging and interesting?



First "work in progress" release of the mod is now available for testing.

Project: https://github.com/Argent77/A7-TestYourMettle/tree/devel

WIP download: https://github.com/Argent77/A7-TestYourMettle/archive/devel.zip (32 MB)

(Download links to the raw mod archive. You can find the required WeiDU binary here: http://www.weidu.org/~thebigg/ . Simply rename it to "setup-A7-TestYourMettle.exe".)

It is pretty much complete content-wise, i.e. you can play the whole quest from beginning to end, with complete dialogs, journal entries, quest rewards, etc.

For the combat in the dungeon maze there is certainly room for further improvement. As I rarely play the games with AI enhancement mods myself I am very interested in your feedback. Is combat too easy/difficult? Does it get boring too fast? What combat AI improvements you would like to see? Is there anything else that can be improved?
Post edited by argent77 on
«1

Comments

  • ArunsunArunsun Member Posts: 1,592
    What makes for an interesting battle IMHO is:

    -A battle that is designed for a certain level, but can be overcome at a slightly lower level with clever use of strategy, but without cheesing. For instance, I find the final battle in Rasaad's SoA questline to be rather poorly designed in that regard, because there are tons of enemies, and in the end it boils down to either being high level enough that the enemies will look like clowns, or cheesing the battle with either AI exploit or quaffing 10k potions and hoping for the best.


    -If there are mid-battle events, like, say, a second phase which changes the way to battle an enemy, that's more interesting too. To some extent, Kangaxx fills that criterion. Except Vanilla demi-lich Kangaxx is just an imprisonment machine gun. But once you've installed SCS it's a great, enjoyable fight.

    -Not too long, repetitive and tedious. Having a wizard that has a very limited number of offensive spells but 10k defensive spells isn't fun, because once that wizard is out of offensive spells, he'll just run around casting stoneskins. Not quite fun



    By the way, I don't know how you intend to do your preconfigurations, but one way I could think of to make a randomized maze would be using a timer that loops, and transitions from one area to another will be based on the current value of the timer.
    For example, let's say you have 16 different areas, and from the area you are in you want to have a 1/15th to go to each other area. Just make a timer with 15 ticks, when it's down to 0 it's sent back up to 15, and the transition is to area 1-15 based on the value of the timer at the time of the transition.
    I honestly don't know how viable a solution this can be in this case though, but it's just a suggestion. If nothing displays the current timer on screen it will essentially appear to be random for anyone using it.
  • argent77argent77 Member Posts: 3,478
    edited April 2018
    Thank you.
    Arunsun said:

    -A battle that is designed for a certain level, but can be overcome at a slightly lower level with clever use of strategy,...

    Setting the right balance is probably the most difficult aspect to make battles interesting. I'm currently using three different ratings - for low, mid-level and high-level parties. The script checks only average party level, so one could make combat even more challenging by further reducing party size.

    Another aspect is combat AI. If opponents are too predictable combat will become boring. I've borrowed some ideas from SoD's combat scripts, which are more sophisticated compared to the default BG1/BG2 combat scripts.

    Arunsun said:

    -If there are mid-battle events, like, say, a second phase which changes the way to battle an enemy, that's more interesting too.

    I have added a few surprises already, but I'll see if I can spice up the battles a bit more.

    Arunsun said:

    -Not too long, repetitive and tedious.

    If you know the Modron Maze from PST, you will also know that it IS repetitive to a certain degree. The whole maze consists only of three different-looking maps.
    I have randomized a lot of aspects of the battles, which will hopefully keep them interesting enough even after conquering the maze once or twice. In any case, they should be more interesting than the original PST maze battles.


    For the different configurations of the maze I have written a small WeiDU mod that converts simple color-coded 8x8 bitmaps into BAF scripts with the logic to activate the right transitions per configuration. For now I have added 16 different maze configurations that way. Even with fewer configurations the player shouldn't really notice any difference, as each maze consists of an 8x8 grid of areas connected in different ways.
  • AedanAedan Member, Translator (NDA) Posts: 8,551
    I would just say DO IT.
    I adore your mods and this idea is just brilliant. YOU ROCK!
  • AquadrizztAquadrizzt Member Posts: 1,069
    edited April 2018
    @argent77 , is this intended to be supplementary to the main campaign, or as an alternative campaign accessible through a UI addition such as EET? Either is fine, but it definitely means that the whole mod has a different goal depending on whether it's meant as a side quest or as the main thing. I've been poking around with making procedurally generated content in the Infinity Engines for a while (as one of a rotating set of side projects), so some of my thoughts:

    Random modifiers (a la Path of Exile and Diablo) would certainly help variety, and would require occasional change in tactics. A modifier that caused eliminated enemies to explode dealing substantial AoE damage would require a change in tactics (*glares at Volatible Flameblood mod from Path of Exile). These modifiers could also be basic stuff like "resistance to Cold, deals bonus cold damage with attacks."

    There is an elephant in the room with any combat experience for BG2/ToB, and it's magic users. Having every single high level fight start with the exact same Time Stop + Contingency for Globe of Invulnerability + Mirror Image + Stoneskin + PfMW gets tiresome after about... 2 fights. I think if you very aggressively themed spellcasters, it would make them feel more unique (e.g. "oh this Cleric is a Warpriest, so they're gonna be combat focused" or "oh this is a high tier transmuter, we better look out for Disintegrate and Flesh to Stone").

    I think having certain rooms be designated check points/rest areas would also make resource management a bit more important. While 1 in 8 rooms may be check points, the path to the next checkpoint could be many more than that. This allows you to provide more of a risk/reward style of play for this kind of content. EDIT: If you want this to be *really* challenging, don't allow players to save outside of checkpoints zones AND don't let them retrace their steps to get out; players can only save, rest, and leave the construct at designated checkpoints.

    Have mini-bosses and main bosses that are drawn from a larger list, and prevent exiting their arenas (which should be themed towards the boss, a Dryad Grove for an Evil fey for example), so players can't prebuff too much. Also on this note, maybe instead of having the same square room, have a variety of rooms using existing map tilesets from all of the games. As long as each room could support between 2 and 4 exits, the underlying code could be the same, but you aren't running through the same grey and brown square rooms until you find one of the two rooms that are interesting. This also means that rooms can be of different sizes/layouts (or even multiple levels in the same room) as long as they have the necessary number of exits.

    I'm curious as to what (other than XP) you think the rewards should be? You can easily have WeiDU generate a set of random magical weapons (e.g. Axe/Warhammer/whatever of Frost/Radiance/Fire/Undead-bane). Random items for a random maze would probably be fine.
  • argent77argent77 Member Posts: 3,478
    The mod is thought as an addition to the main game. It's actually designed in a similar way as Trials of the Luremaster for IWDEE. Although this mod allows you to return to the main game any time you wish. The whole ride starts in the Planar Sphere in the Slums.
    Balance is still an issue though, as you can theoretically earn an endless amount of XP. Not sure if I should keep monster XP at a realistic level or reduce it to a marginal amount.

    The maze is still thematically related to modrons (and the backstory I came up with), so the enemies you will encounter will be different from the rest of the game. I can probably experiment with variations in monster behavior. But there is a limit, as the monsters should still be identifiable as per description in the D&D monster manuals.

    It took me a while to come up with a method to reset the maze areas without having to clean up defeated enemies or removing dropped loot whenever the configuration changes. The method I'm using has its own weaknesses, but it works well enough with the setting I have designed. One side effect is you can't save while in the maze, regardless of whether enemies are in sight or not. However, you can always return to a safe location if you need to.

    The loot system will also be special. I have briefly mentioned it in my first post. Remember the bogus items you could loot from defeated constructs in PST? This mod will provide the same items. However, they will have a use now. At the dungeon entrance there is a device where you can exchange them into useful items. Turning in more treasure from the maze means getting better items back as a result.
  • AquadrizztAquadrizzt Member Posts: 1,069
    edited April 2018
    I mean, part of the problem of the Modron Maze in PST is that it is slowly getting corrupted by Limbo right? Why not have zones get progressively more "Chaotic" (read: more random modifiers or whatever) as you get farther into the Maze?

    And funny you say that about the bogus items in PST. I was planning on adding a small mod that adds a Merchant that allows you to trade those items for actually useful things to the Modron Maze.
  • argent77argent77 Member Posts: 3,478

    I mean, part of the problem of the Modron Maze in PST is that it is slowly getting corrupted by Limbo right? Why not have zones get progressively more "Chaotic" (read: more random modifiers or whatever) as you get farther into the Maze?

    Not in the setting for this mod. There will be modrons, but they have problems of a different kind. Because of this the maze will be populated with a much greater variety of monsters. Still, I can add a few variations to some of the monsters to make combat more interesting.
  • UlbUlb Member Posts: 295
    Balance is still an issue though, as you can theoretically earn an endless amount of XP. Not sure if I should keep monster XP at a realistic level or reduce it to a marginal amount.


    I think you should at least offer an option to tune down monster XP.
    I wouldn't worry about people "abusing" your mod for XP farming, you can already do that by using the "Rest" button. The problem is if monsters yield full XP people might feel compelled to stop playing the mod just so they avoid outleveling other content, despite them enjoying it. (That, or having to cheat down XP.)

    Really looking forward to this one. Your mods are always high quality and highly entertaing!

  • Mantis37Mantis37 Member Posts: 1,177
    edited April 2018
    One option could be to have a decent sized quest rewards for tasks in the maze but relatively low construct xp. Dealing with the quests might affect the types of monsters/ treasures encountered as well, so players are rewarded in terms of variety and challenge for completing quests as well as in xp terms.
  • AquadrizztAquadrizzt Member Posts: 1,069
    I agree with Mantis. Offer decent XP for the questline and pitiful at best experience from the monsters themselves.
  • argent77argent77 Member Posts: 3,478
    That should be no problem for the constructs. Afaik, they are not mentioned in any D&D Monster Manuals. However, there are other types of monsters which are described in detail in the manuals. In these cases it would feel awkward to be rewarded with a paltry amount of XP when you get tons of XP for similar monsters in other places of the game. But I can certainly provide an optional component to reduce XP.

    In any case, thank you for your feedback. It has given me a lot of food for thought. I will try to implement at least some of it.
  • argent77argent77 Member Posts: 3,478
    Random modifiers to monsters have been implemented. I have created about two dozens of bonus effects that will be randomly applied to make combat more interesting. Mostly stat bonuses, like AC/THAC0/Damage modifiers, special hit effects or various resistances/immunities. I might also implement a couple of aura-like effects, such as bad luck or slow, when I can find some good animations to make them visually appealing.

    Story and dialogs have been fleshed out as well. I will soon be able to publish a first beta.
  • GwendolyneGwendolyne Member Posts: 461
    Do you need new monsters animations?
  • argent77argent77 Member Posts: 3,478

    Do you need new monsters animations?

    I'm currently using two modron animations from PST (quadrone-style) and another one from the IA package (monodrone). I would like to use even more types, such as a pentadrone or of even higher ranks.

    Apart from that I'm also looking for interesting devil animations (e.g. barbazu or spinagon). The animations I'm using are currently all from the IE games.
  • GwendolyneGwendolyne Member Posts: 461
    I have already ported modrons and other PsT animations into IA. If you intend to release your mod both for classical and EE games, I will give you the registered slots.
    I have also ported almost all the Diablo II demons. If you need them, I can share them. They will be implemented into the next IA release.
  • argent77argent77 Member Posts: 3,478
    edited April 2018
    The mod will only be available for EE games patched to 2.0 or higher, unfortunately. I'm making heavy use of new engine features and externalizations.

    I would be interested if some of your animations resemble a barbazu (kind of a bearded demon) or spinagon (looks like a porcupine or gargoyle, depending on D&D edition).
  • GwendolyneGwendolyne Member Posts: 461
    I will have a look. For sure, gargoyles are ready to use (the sleep animation turns them into stone)!
  • smeagolheartsmeagolheart Member Posts: 7,963
    I thought about this years ago but I'm not the coder you are for sure and I didn't get far integrating the assets.

    Another idea I had was adding an opportunity to the trials of the luremaster guy to the tavern chapter 2of bg2. The luremaster adventure is pretty standalone. For that matter Heart of Winter is pretty standalone though somewhat more tied to IWD.
  • argent77argent77 Member Posts: 3,478
    I think IWDEE, including TotLM/HoW, is planned as an expansion for the EET mod (eventually).
  • smeagolheartsmeagolheart Member Posts: 7,963
    edited April 2018
    That may be so, I just felt that the adventures seemed kind of plug and play like they could fit with any IE game, the modron maze feels the same way like it could fit anywhere.
    Post edited by smeagolheart on
  • The user and all related content has been deleted.
  • bob_vengbob_veng Member Posts: 2,308
    integrated black pits sounds like an optimal choice at this moment to me
  • UlbUlb Member Posts: 295
    I'd also like to integrate Black Pits into BGEE... There too, someone has already done it for EET megamod installs, but a simpler standalone version would be nice.


    Can you give me a link for that?
    There was talk on the EET form about integrating BP once but I thought the idea was abandoned?

    I've asked over at G3 if anyone has access to any of the IWD-in-EET code - no sense reinventing the wheel, it should be possible to get a big jump-start on this by looking at what's already been done. But k4thos is not around, and nobody who might have access to an alpha version has volunteered to let ne look at the code.


    I would totally wait for 2.5 before going at it. I think it's rather likely Kathos will be back and IWD-in-EET released.
  • Mantis37Mantis37 Member Posts: 1,177
    It's in Sandrah's saga I think.
  • [Deleted User][Deleted User] Posts: 0
    edited April 2018
    The user and all related content has been deleted.
  • smeagolheartsmeagolheart Member Posts: 7,963
    I agree with you doc, in the old days NEJ brought IWD to BG2 but it changed so much that it ruined it for me. I don't want to have to put up with a bunch of potentially questionable mod added stuff just to get BP in the main game. Best like you said add a actor that will take you there and change as little as possible
  • ArunsunArunsun Member Posts: 1,592
    Mantis37 said:

    It's in Sandrah's saga I think.

    Indeed it is. You may access these from Waterdeep's Fish market
  • UlbUlb Member Posts: 295
    @argent77
    I'm itching to try this but I don't want to do a new install since I've just made one.
    Do you forsee any major issues with just adding it at the end of a big EET installation?
  • argent77argent77 Member Posts: 3,478
    Ulb said:

    I'm itching to try this but I don't want to do a new install since I've just made one.
    Do you forsee any major issues with just adding it at the end of a big EET installation?

    You should be able to install the mod in any order and at any time, as long as you haven't visited the Planar Sphere yet.

    The mod is pretty much separate from the rest of the game. The only common link is a minor modification in the first level of the Planar Sphere. It's actually only a change of a single spawn script.
Sign In or Register to comment.