Jump to content


Automatically Recharge Spells & Traps


  • Please log in to reply
20 replies to this topic

#1 -Kashya-

-Kashya-
  • Guest

Posted 20 August 2004 - 07:32 AM

Hello,
I'm new here and I don't know the first thing about modding games, so I don't know how to do this, or even if it's possible. But is there any way that one of you wonderfully clever people could make a mod for BG2 that will automatically recharge all known spells and traps after a few seconds (the same way the Stealth button works)?

I'm trying to play solo with a bounty hunter (after trying with a sorcerer) and I'm finding it impossibly frustrating with the current way that spells and traps recharge (ie; having to rest).

To give you an example of how unbearable it is, I've just completed the 'Slaver's quest' in chapter two. After setting 6 traps in the Slaver's HQ, I try to rest to recharge my supply, but I'm told that I cannot rest here, I must return to the Inn.

That's right! I have to walk all the way back to the Inn and pay for a room to recharge my traps, and I have to do this EVERY time I want to set more traps. It took me over an hour just to complete this one section, I set 6 traps, kill a few baddies, walk back to the Inn to rest, walk back to my last location, rinse and repeat, over and over. Horrible!

If it's not possible to make this kind of mod, is it possible to make a 'Rest Anywhere' mod, that will at least let character's rest anywhere they like (yes, even in the middle of a town) and that will remove those hateful random encounters?

I honestly think that some kind of mod that added recharging abilities for spell casters and trappers would be the greatest thing ever invented for BG2, it could be packaged along with Weimer's brilliant 'Ease of Use' mod, to make playing the game bearable for all singleplayer solo players (and anybody else for that matter) who don't want to follow the fighter path.

So I'm on my knees begging you folks, pretty please can somebody create a mod like this? It's all I want for Christmas, and I promise I'll never ask you for another thing :love:.

Cheers,
Kashya

#2 Galactygon

Galactygon

    Modding since 2002

  • Member
  • 938 posts

Posted 20 August 2004 - 08:18 AM

You might try typing this into the baldur.bcs file (at the end of the file, of course):

IF
  Hotkey(Z)
THEN
  RESPONSE #100
    ActionOverride(Player1,Rest())
    ActionOverride(Player2,Rest())
    ActionOverride(Player3,Rest())
    ActionOverride(Player4,Rest())
    ActionOverride(Player5,Rest())
    ActionOverride(Player6,Rest())
END

You can use DLTCEP to open and edit the file. You can download it here.

After typing and saving the script (DLTCEP automatically compiles the script), go into the game and press the letter 'z' whenever you wish to rest. Sometimes it will say 'you may not rest here' or something similar, but it rest, regardless of the text.

-Galactygon
Posted Image

#3 -Guest-

-Guest-
  • Guest

Posted 20 August 2004 - 08:38 AM

Bless you Galactygon! I've downloaded DLTCEP and I desperately want to try your solution. But I don't know how to use DLTCEP.

When I double click it's icon it asks me to run setup and I have no idea what it wants me to do.

Do you know where I can find a tutorial to teach me how to use it?

Cheers,
Kashya

#4 Valheru

Valheru

    Ancient One

  • Member
  • 120 posts

Posted 20 August 2004 - 10:21 AM

To run setup you need to click on a button called setup at the bottom of the window (in DLTCEP) the you need to choose from several drop-down lists which game you are editing and you will possibly need to select your game path. Once you have run setup you can select a number of things from the EDIT menu at the top though you might need Weidu to edit the script aswell not sure though.

Edited by Valheru, 20 August 2004 - 10:23 AM.

Thanks for picture Immy :)

#5 Xander77

Xander77

    Freak Boy

  • Member
  • 436 posts

Posted 20 August 2004 - 10:35 AM

You can also use the "Dual-class then regret at the last moment" to recharge your traps.

Might as well cheese it all the way...
Мы должны как раз дать эту хромающую страну к русским. Они awesome! Идет Nader! Кустик и Kerry имеют придурковатые weasels в их кальсонах!

#6 -Kashya-

-Kashya-
  • Guest

Posted 20 August 2004 - 10:54 AM

Ok, I've been wrestling with the DLTCEP setup for the past hour or so and this is as far as I've gotten:

Compatibility Options

Setup Name: I'm assuming that I can call it anything I want, so I typed in Rest Anywhere.

Game Type: I selected BaldursGate II (no problems here).

Location of chitin.key: c:\program files\black isle\bgii-soa\chitin.key (no problems here).

IEEP Effect Descriptions (effects.dat): This is where I come undone. I've looked in every BG2 folder, but I can't find anything that says IEEP Effect Description .dat.

Below these fields is a host of entries with empty check boxes beside them, as I have no idea what they are, should I just check them all? I'll list them in the hopes that somebody can tell me which ones I need to edit the baldur.bcs file:

Edit DialogF instead
PST style variable management (var.var)
BG1 style dialogs (no freezing dialog type flag)
BG1 style are header (direction exits)
IWD2 style structures (additional bytes in header)
Extended itemtypes
No compressed bams
No weapon proficiency
Has XPVAR.2DA
DLTC specific
TOB specific

There are also several buttons and I don't know which ones to click, they are:

Setcheck Options
Set Edit Options
Set WeiDU Options

Add setup
Remove setup
Cancel

I guess that I'll leave the 'Global Preferences' as they are. I'm assuming that the 'Save & Back' button on the bottom left is what I click to execute the setup and return to the main Editor screen.

Now, once setup is all finished, I'm guessing that these are the next steps that I'll need to follow:

Find the baldur.bcs file and open it. I'm guessing that it's a script, so I'll click the Find scripts button and then I suppose that I'll have to type baldur.bcs somewhere and tell the program to search for it. Once it's found, I'll tell it to open, then type Galactygon's code at the end of the file and save it. Hopefully that's all I have to do and I can now close the program, fire up BG2 and play away to my heart's content.

Does this sound right? Or have I totally messed up the procedure? If anyone can help and advise me on this I'd be overwhelmingly grateful.

Cheers,
Kashya

#7 japheth

japheth

    Codewalker

  • Member
  • 317 posts

Posted 20 August 2004 - 11:26 AM

Here you go.  I had a couple minutes to kill at work and coded this "mod" up for you.

You should be able to rest anywhere after installing it... but I haven't tested it or anything.

Extract to BGII directory, double-click on setup-restanywhere.exe, blah, blah.  Same old drill.

Oh yeah, you can download it here.


japh
Check out BG1Tutu.

#8 SConrad

SConrad

    I swear to drunk I'm not God

  • Administrator
  • 11148 posts

Posted 20 August 2004 - 01:49 PM

I had the same idea as Japh when I read this post this afternoon. Didn't get as far as doing the mod, though.

I got stuck on the original *.are from the game. None of them has the "Can rest"-flag on, so I wondered if this actually could work.

I also checked 2da's and various scripts. So I wonder where the flags really are. Hardcoded?

So, anyway, I wonder if the flagging actually works.

Great coding, btw. Though I'm curious if BOIIC is really needed...

Posted Image Khadion NPC mod - Team leader, head designer
Posted Image Hubelpot NPC mod - Team leader, coder
Posted Image NPC Damage - Coder
Posted Image PC Soundsets - Coder, voice actor
Posted Image Brythe NPC mod - Designer
Posted Image DragonLance TC - Glory of Istar - Designer
Posted Image The NPC Interaction Expansion Project - Writer for Cernd, Sarevok
Posted Image The Jerry Zinger Show - Producer

Iron Modder 5 - Winner


#9 jester

jester

    biased bystander

  • Member
  • 1476 posts

Posted 20 August 2004 - 02:11 PM

The cheat from Xander is actually working fine. Yoshimo is finally useful. All you do is pretend to dual him and when you are finally asked, if you really want to, just say no and all your traps are back. :D
"It's 106 miles to Arroyo, we got a full fusion cell, half a pack of RadAway, it's midnight, and I'm wearing a 50-year old Vault 13 Jumpsuit. Let's hit it!" -The Chosen One

Free your mind

#10 japheth

japheth

    Codewalker

  • Member
  • 317 posts

Posted 20 August 2004 - 02:27 PM

I got stuck on the original *.are from the game. None of them has the "Can rest"-flag on, so I wondered if this actually could work.


Sure they do.  Check out AR1305.are for instance.

Great coding, btw. Though I'm curious if BOIIC is really needed...


Maybe I'm missing something, but what the heck is BOIIC?
Check out BG1Tutu.

#11 SimDing0

SimDing0

    GROUP ICON

  • Member
  • 1654 posts

Posted 20 August 2004 - 02:32 PM

I'd imagine BOIIC is BUT_ONLY_IF_IT_CHANGES. In which case the answer is "yes", because it avoids areas where you can already rest being copied to the override for no reason.
Repeating cycle of pubes / no pubes.

A Comprehensive Listing of IE Mods

#12 japheth

japheth

    Codewalker

  • Member
  • 317 posts

Posted 20 August 2004 - 02:33 PM

Just tested it, and it seems to work.

I loaded up a game, MoveToArea'd to AR1610, tried to rest and was told I had to find an Inn or a field.

I then threw on the Can Rest flag on AR1610, loaded up another game, MoveToArea'd to AR1610 and was able to rest with no problems.
Check out BG1Tutu.

#13 SConrad

SConrad

    I swear to drunk I'm not God

  • Administrator
  • 11148 posts

Posted 20 August 2004 - 02:47 PM

Great, then. I stand in awe. ;)

In which case the answer is "yes", because it avoids areas where you can already rest being copied to the override for no reason.

Yes, of course, that's obvious. I based the question on my wrong assumption that no areas had that flag checked. I just didn't check all of them, only compared a few areas where I knew you could rest and a few where I know you couldn't. :)

I still wonder where the flags really are, though.

Posted Image Khadion NPC mod - Team leader, head designer
Posted Image Hubelpot NPC mod - Team leader, coder
Posted Image NPC Damage - Coder
Posted Image PC Soundsets - Coder, voice actor
Posted Image Brythe NPC mod - Designer
Posted Image DragonLance TC - Glory of Istar - Designer
Posted Image The NPC Interaction Expansion Project - Writer for Cernd, Sarevok
Posted Image The Jerry Zinger Show - Producer

Iron Modder 5 - Winner


#14 hlidskialf

hlidskialf

    Incarnation of the Eternal Ale Warrior

  • Modder
  • 2510 posts

Posted 20 August 2004 - 02:53 PM

They're on the area files themselves. A listing of flags is in the AreaType.IDS. Check out the DLTC forums for explanations on how to expand on this. B)

The great wolf Fenrir gapes ever at the dwelling of the gods.


#15 SConrad

SConrad

    I swear to drunk I'm not God

  • Administrator
  • 11148 posts

Posted 20 August 2004 - 03:12 PM

:blink:

Nice, very nice. I see it now, yes... ;)

So, as far as I understand, the game actually USES this flag. Brilliant. :bash:

Posted Image Khadion NPC mod - Team leader, head designer
Posted Image Hubelpot NPC mod - Team leader, coder
Posted Image NPC Damage - Coder
Posted Image PC Soundsets - Coder, voice actor
Posted Image Brythe NPC mod - Designer
Posted Image DragonLance TC - Glory of Istar - Designer
Posted Image The NPC Interaction Expansion Project - Writer for Cernd, Sarevok
Posted Image The Jerry Zinger Show - Producer

Iron Modder 5 - Winner


#16 -Kashya-

-Kashya-
  • Guest

Posted 21 August 2004 - 05:29 AM

Japheth, I am beyond awe. Words are simply not enough to thankyou properly. I cannot believe that this only took you a few minutes, it's been two days and I still can't figure out how to even make the darn DLTCEP setup run :rolleyes:.

I've downloaded and installed your mod, and it works beautifully. Thankyou so much for this, because I don't think that I could ever have managed it on my own.

I'm also pretty sure that I'm not the only BG2 player who will love this mod, so with your permission, I'd like to tell everybody on the official Bioware Baldur's Gate II forum about it and give them the download link.

Big hugs, kisses and thankyous to everybody here who tried to help me, you are the absolute best :love: .

Cheers, from a very grateful,
Kashya

#17 -Kashya-

-Kashya-
  • Guest

Posted 21 August 2004 - 07:01 AM

Oops, I forgot to ask, will this wonderful mod also work with the TOB expansion?
If it does, I think I'll now buy the expansion too :D.

I stongly believe that this is how the game should have been made in the first place. It's such a little thing, but it makes an enormous difference to the games enjoyability.

Thanks again.


Cheers,
Kashya

#18 -Kashya-

-Kashya-
  • Guest

Posted 21 August 2004 - 07:52 AM

Oh Drat! I've jinxed myself :(.

I've been playing the game for a while and I've run into a problem with the mod. Now, whenever I bring up the map in town and hover the cursor over one of the name markers, the game crashes to desktop.

Also, whenever I try to sleep in town, that pesky Amnish soldier keeps awakening me and telling me that I cannot rest here, so it usually takes two or three Z presses to finally get it to work, but I can live with that, because it seems to work just fine when I'm indoors.

Any ideas what might be causing the map crashes, and is there any way to fix it?
Cause I really love this little mod and I don't think that I can play without it.

Cheers,
Kashya

#19 SConrad

SConrad

    I swear to drunk I'm not God

  • Administrator
  • 11148 posts

Posted 21 August 2004 - 08:51 AM

I think it might have something to do with flagging an area with two flags. I mean, all outside-areas should now have two flags, one outside, and one "Can rest"-flag.

AFAIK - "normal" areas don't have any flags, while city or outdoor-areas are already flagged.

Can this be the problem?

Posted Image Khadion NPC mod - Team leader, head designer
Posted Image Hubelpot NPC mod - Team leader, coder
Posted Image NPC Damage - Coder
Posted Image PC Soundsets - Coder, voice actor
Posted Image Brythe NPC mod - Designer
Posted Image DragonLance TC - Glory of Istar - Designer
Posted Image The NPC Interaction Expansion Project - Writer for Cernd, Sarevok
Posted Image The Jerry Zinger Show - Producer

Iron Modder 5 - Winner


#20 japheth

japheth

    Codewalker

  • Member
  • 317 posts

Posted 21 August 2004 - 09:49 AM

Kashya can you make a save in the area that's crashing on you and send it to me?

(Just zip up the whole directory.  It'll be found in your save directory.)

Send it to japh@pocketplane.net

Thanks,


japh
Check out BG1Tutu.