Jump to content


Photo

Non-bug Mod Conflict


  • Please log in to reply
No replies to this topic

#1 Sasha Al'Therin

Sasha Al'Therin
  • Modder
  • 615 posts

Posted 15 August 2008 - 10:20 AM

When playing Beyond The Law with the E-Series AI party scripts, there is a conflict in the hotkey assignments. E-Series uses the letter F to change preferred weapon from melee to ranged. BTL uses the letter F to fix text strings. The unfortunate combination means that while I am attempting to switch Kiyone's sword for her bow she fixes her text instead.

I can solve the problem locally by changing the hotkey assignment for one of the mods scripts.

As a future solution, BTL could look for the presence of the e-series and use a different letter and vice versa for the eseries. However an easier solution could be to ask the user what letter they would like to use for the given hotkey. Here is some psuedo code for your mod.

PRINT ~Do you wish to reassign the Hotkey for the string fixer?
Default hotkey is (F)
[1] YES  [2] NO~
ACTION_READLN ~hk~
OUTER_WHILE ((%hk% != 1) AND (%hk% != 2)) BEGIN
 PRINT ~Invalid Response. Please try again.~
 PRINT ~Do you wish to reassign the Hotkey for the string fixer?
Default hotkey is (F)
[1] YES  [2] NO~
 ACTION_READLN ~hk~
END
OUTER_SPRINT hotkey ~D~
ACTION_IF (%hk% = 1) THEN BEGIN
 PRINT ~Please Enter the new hotkey and press ENTER~
 ACTION_READLN ~hotkey~
 OUTER_WHILE !(~%hotkey%~ STRING_COMPARE_REGEXP ~[A-Z]~ =0) BEGIN
  PRINT ~Invalid Response. Please try again.~
  PRINT ~Please Enter the new hotkey and press ENTER~
  ACTION_READLN ~hotkey~
 END
END
The variable ~hotkey~ would then be put into the baf file like so:
IF
HotKey(%hotkey%)
etc...
and compiled with the EVALUATE_BUFFER tag

Of course, it's your mod and so your decision. Like I said at the beginning, I can solve the issue locally by just changing the letter. I just want you to be aware of it.

My working mods:
an AI Party Script for BG2 game engine DOWNLOAD LINK ONLY!
Interactive Tweaks for BG series with some IWD support. DOWNLOAD LINK ONLY!
Rest For 8 Hours an IWD mod
-------------------------------------------
My contributions: BG1Fixpack, BG1Tweaks
On Hold: Solestia an NPC for SOA
-------------------------------------------
My website: http://sasha-altheri...s.com/index.htm