Jump to content


Photo

Movement rate penalty


  • Please log in to reply
21 replies to this topic

#1 gellie

gellie
  • Member
  • 6 posts

Posted 27 May 2009 - 05:40 AM

Hi,

I installed a Mega-mod installation (70% of all)

I wonder if it is possible to remove "movement rate penalty", you get from larger body armors?

If not, does anyone know what mod/tweak it comes from, so I can uninstall it?

regards,

gellie

edit: btw I only have bg2 + ToB installed

Edited by gellie, 27 May 2009 - 05:43 AM.


#2 Jarno Mikkola

Jarno Mikkola

    The Imp in his pink raincoat.

  • Member
  • 10911 posts

Posted 27 May 2009 - 06:19 AM

I installed a Mega-mod installation (70% of all)... I wonder if it is possible to remove "movement rate penalty", you get from larger body armors?

It's comes from the Item Revision... just edit the BiG World Install.bat not to use the component and that's it, you edit with Notepad.
Uninstalling it won't probably work cause you have way too many mods on the way, so bad things are bout happen when you uninstall them.

So you just replace this line:
%IFS%item_rev%S%item_rev%L%0%SK% 3 7 9 10 11 12 13 14 15 16 17 18 --logapp | %M%
With this:
%IFS%item_rev%S%item_rev%L%0%SK% 3 8 9 10 11 12 13 14 15 16 17 18 --logapp | %M%

Or you could use this:
%IFS%item_rev%S%item_rev%L%0%SK% 3 9 10 11 12 13 14 15 16 17 18 --logapp | %M%


PS: All this info can be read from the manual, so I would suggest to read it.

Edited by Jarno Mikkola, 27 May 2009 - 06:22 AM.

Deactivated account. The user today is known as The Imp.


#3 gellie

gellie
  • Member
  • 6 posts

Posted 27 May 2009 - 06:37 AM

I installed a Mega-mod installation (70% of all)... I wonder if it is possible to remove "movement rate penalty", you get from larger body armors?

It's comes from the Item Revision... just edit the BiG World Install.bat not to use the component and that's it, you edit with Notepad.
Uninstalling it won't probably work cause you have way too many mods on the way, so bad things are bout happen when you uninstall them.

So you just replace this line:
%IFS%item_rev%S%item_rev%L%0%SK% 3 7 9 10 11 12 13 14 15 16 17 18 --logapp | %M%
With this:
%IFS%item_rev%S%item_rev%L%0%SK% 3 8 9 10 11 12 13 14 15 16 17 18 --logapp | %M%

Or you could use this:
%IFS%item_rev%S%item_rev%L%0%SK% 3 9 10 11 12 13 14 15 16 17 18 --logapp | %M%


PS: All this info can be read from the manual, so I would suggest to read it.



Do I have to run the entire batch, which will take those 8+ hours? or?

#4 Jarno Mikkola

Jarno Mikkola

    The Imp in his pink raincoat.

  • Member
  • 10911 posts

Posted 27 May 2009 - 06:51 AM

Do I have to run the entire batch, which will take those 8+ hours? or?

Yes. Unless you have managed by some miracle to have a backup from the files before the IR installation.

Edited by Jarno Mikkola, 27 May 2009 - 06:53 AM.

Deactivated account. The user today is known as The Imp.


#5 gellie

gellie
  • Member
  • 6 posts

Posted 27 May 2009 - 07:01 AM

Do I have to run the entire batch, which will take those 8+ hours? or?

Yes. Unless you have managed by some miracle to have a backup from the files before the IR installation.


IR? Item Revision... nvm

Edited by gellie, 27 May 2009 - 07:01 AM.


#6 Icendoan

Icendoan

    "An Infinite Deal of Nothing"

  • Member
  • 1723 posts

Posted 27 May 2009 - 07:16 AM

Well, I found it useful to edit out the parts of the batch file I didn't need, because I find that rebooting if the installer stops for more than 20mins works.

Also, since you only want to uninstall one component, and not several, just run setup-item_rev.exe. WeiDU will automagically uninstall every component before yours, and then reinstall just the way you left it, meaning the uninstallation/reinstallation process is actually quicker. :)

Icen
Proud member of the 'I HATE Elminster!' Club!

Mods in development: Keeping Yoshimo

#7 Miloch

Miloch

    Barbarian

  • Modder
  • 6579 posts

Posted 28 May 2009 - 10:26 AM

Of course, you can also change all the armours with an editor like NearInfinity or DLTCEP and just delete that equipping effect (movement modifier) if you don't feel like reinstalling.

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


#8 GeN1e

GeN1e

    A very GAR character

  • Modder
  • 1604 posts

Posted 29 May 2009 - 03:42 AM

That would be really painful, since I can foresee there're a bunch of new armors, with names different from chain**, leat***, plat***.

If reinstalling is not an option, then this should do the trick
BACKUP ~No movement penalties~
AUTHOR ~Spellhold Studios~
BEGIN ~Remove movement penalties from armors~
COPY_EXISTING_REGEXP GLOB ~.*\.itm~ ~override~
READ_SHORT 0x1c type
PATCH_IF type=2 BEGIN
READ_LONG 0x6a eff_off
READ_SHORT 0x70 eff_num
FOR (i=0;i<eff_num;i+=1) BEGIN
READ_SHORT (eff_off+i*0x30) opcode
READ_LONG (eff_off+i*0x30+0x4) value
PATCH_IF (opcode=126 OR opcode=176) AND (value < 0) BEGIN
WRITE_LONG (eff_off+i*0x30+0x4) 0
END
END
END
BUT_ONLY_IF_IT_CHANGES


The usage is simple, put the code into .txt file and save as setup-no_movement_penalties.tp2. Then make a copy of weidu and rename into setup-no_movement_penalties.exe. Install.

Edited by GeN1e, 30 May 2009 - 06:15 AM.

Retired from modding.


#9 Jarno Mikkola

Jarno Mikkola

    The Imp in his pink raincoat.

  • Member
  • 10911 posts

Posted 29 May 2009 - 04:54 AM

... save as setup-no_movement_penalties.tp2. Then make a copy of weidu and rename into setup-no_movement_penalties.exe. Install.

... save as "setup-no_movement_penalties.tp2". Then make a copy of the "WeiDU.exe" in the game directory so it's will be named "WeiDU - copy.exe" and then rename that as "setup-no_movement_penalties.exe", and then double click it to run it.

Edited by Jarno Mikkola, 29 May 2009 - 04:56 AM.

Deactivated account. The user today is known as The Imp.


#10 Miloch

Miloch

    Barbarian

  • Modder
  • 6579 posts

Posted 29 May 2009 - 08:09 AM

If reinstalling is not an option, then this should do the trick

BACKUP ~No movement penalties~
AUTHOR ~Spellhold Studios~
BEGIN ~Remove movement penalties from armors~
COPY_EXISTING_REGEXP GLOB ~.*\.itm~ ~override~
  READ_SHORT 0x1c type
  PATCH_IF type=2 BEGIN
	READ_LONG 0x6a eff_off
	READ_SHORT 0x70 eff_num
	FOR (i=0;i<eff_num;i+=1) BEGIN
	  READ_SHORT (eff_off+i*0x30) opcode
	  READ_LONG (eff_off+i*0x30+0x4) value
	  PATCH_IF (opcode=126 OR opcode=176) AND (value < 0) BEGIN
		WRITE_LONG (eff_off+i*0x30+0x4) 0
	  END
	END
  END
BUT_ONLY_IF_IT_CHANGES

You probably want to designate a valid BACKUP directory just in case it bolloxes something up (even if the backup is ~temp~).

You also probably want to use Gort's DELETE_ITEM_EQEFFECT built into WeiDU too (has been for a while) instead of just blanking out the effect.
COPY_EXISTING_REGEXP GLOB ~.*\.itm$~ ~override~
  PATCH_IF SOURCE_SIZE > 0x71 BEGIN
	READ_SHORT 0x1c type
	PATCH_IF type = 2 BEGIN
	  opcode_to_delete = 126
	  DELETE_ITEM_EQEFFECT
	  opcode_to_delete = 176
	  DELETE_ITEM_EQEFFECT
	END
  END
BUT_ONLY

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


#11 GeN1e

GeN1e

    A very GAR character

  • Modder
  • 1604 posts

Posted 29 May 2009 - 08:58 AM

You also probably want to use Gort's DELETE_ITEM_EQEFFECT built into WeiDU too (has been for a while) instead of just blanking out the effect.

Won't do, as it will kill both bonuses and penalties.

Retired from modding.


#12 Miloch

Miloch

    Barbarian

  • Modder
  • 6579 posts

Posted 29 May 2009 - 09:35 AM

Won't do, as it will kill both bonuses and penalties.

Well, then you just want a more sophisticated macro than the Gort/WeiDU ones. Check t-itm_eff_del.tpp in PnP Free Action (in my signature). Also if it's a percentage penalty (type 2) your method might not pick that up.

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


#13 GeN1e

GeN1e

    A very GAR character

  • Modder
  • 1604 posts

Posted 29 May 2009 - 10:27 AM

BACKUP ~No movement penalties/backup_1~
AUTHOR ~Spellhold Studios~
BEGIN ~Remove movement penalties from armors~
COPY_EXISTING_REGEXP GLOB ~.*\.itm~ ~override~
  READ_SHORT 0x1c item_type
  PATCH_IF item_type=2 BEGIN
	READ_LONG 0x64 ab_off
	READ_SHORT 0x68 ab_num
	READ_LONG 0x6a eff_off
	READ_SHORT 0x6e eff_ind
	READ_SHORT 0x70 eff_num
	FOR (i=0;i<eff_num;i+=1) BEGIN
	  READ_SHORT (eff_off+(i+eff_ind)*0x30) opcode
	  READ_LONG (eff_off+(i+eff_ind)*0x30+0x4) value
	  READ_LONG (eff_off+(i+eff_ind)*0x30+0x8) type
	  PATCH_IF (opcode=126 OR opcode=176) AND ( ( (type = 0) AND (value < 0) ) OR ( (type = 2) AND (value < 100) ) ) BEGIN
		DELETE_BYTES (eff_off+(i+eff_ind)*0x30) 0x30
		SET eff_num -= 1
		WRITE_SHORT 0x70 eff_num
		FOR (j=0;j<ab_num;j+=1) BEGIN
		  READ_SHORT (ab_off+j*0x38+0x20) eff_indx
		  PATCH_IF (eff_indx > eff_ind) BEGIN
			WRITE_SHORT (ab_off+j*0x38+0x20) (eff_indx -1)
		  END
		END
	  END
	END
  END
BUT_ONLY_IF_IT_CHANGES

I guess you're right. While we're at that, you've got a typo in your macro
PATCH_IF (fx > fs) BEGIN //If next ability
it should be >=, not just >.

Edited by GeN1e, 29 May 2009 - 11:11 AM.

Retired from modding.


#14 Miloch

Miloch

    Barbarian

  • Modder
  • 6579 posts

Posted 29 May 2009 - 10:38 AM

While we're at that, you've got a typo in your macro

PATCH_IF (fx > fs) BEGIN //If next ability
it should be >=, not just >.

Wouldn't that cause an endless loop? I'm pretty sure these work as intended, because I beat the crap out of them during Free Action alpha testing and tweaked them until they did (including changing some parameters to seemingly illogical values).

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


#15 GeN1e

GeN1e

    A very GAR character

  • Modder
  • 1604 posts

Posted 29 May 2009 - 11:15 AM

Ah, it doesn't matter. I still had in mind area-patching and it's offset shifting, where it indeed should be >=. Except that's for offsets, not indices.

Retired from modding.


#16 gellie

gellie
  • Member
  • 6 posts

Posted 30 May 2009 - 03:53 AM

That would be really painful, since I can foresee there're a bunch of new armors, with names different from chain**, leat***, plat***.

If reinstalling is not an option, then this should do the trick

BACKUP ~No movement penalties~
AUTHOR ~Spellhold Studios~
BEGIN ~Remove movement penalties from armors~
COPY_EXISTING_REGEXP GLOB ~.*\.itm~ ~override~
  READ_SHORT 0x1c type
  PATCH_IF type=2 BEGIN
	READ_LONG 0x6a eff_off
	READ_SHORT 0x70 eff_num
	FOR (i=0;i<eff_num;i+=1) BEGIN
	  READ_SHORT (eff_off+i*0x30) opcode
	  READ_LONG (eff_off+i*0x30+0x4) value
	  PATCH_IF (opcode=126 OR opcode=176) AND (value < 0) BEGIN
		WRITE_LONG (eff_off+i*0x30+0x4) 0
	  END
	END
  END
BUT_ONLY_IF_IT_CHANGES

The usage is simple, put the code into .txt file and save as setup-no_movement_penalties.tp2. Then make a copy of weidu and rename into setup-no_movement_penalties.exe. Install.



what does this mean?

[C:\Programmer\Black Isle\BGII - SoA\setup-no_movement_penalties.exe] WeiDU vers
ion 21000
{SETUP-NO_MOVEMENT_PENALTIES.EXE.DEBUG} Queried (pid = -1)



#17 GeN1e

GeN1e

    A very GAR character

  • Modder
  • 1604 posts

Posted 30 May 2009 - 06:20 AM

what does this mean?

I honestly don't know, sorry. All I can say it doesn't seem to be related to the code itself.

Retired from modding.


#18 Icendoan

Icendoan

    "An Infinite Deal of Nothing"

  • Member
  • 1723 posts

Posted 30 May 2009 - 07:29 AM

It is WeiDU checking for updates, afaik. It isn't related to the code and shouldn't mean anything extraordinary should occur. :)

Icen
Proud member of the 'I HATE Elminster!' Club!

Mods in development: Keeping Yoshimo

#19 gellie

gellie
  • Member
  • 6 posts

Posted 30 May 2009 - 10:35 AM

It is WeiDU checking for updates, afaik. It isn't related to the code and shouldn't mean anything extraordinary should occur. :)

Icen


but it is all it writes, and nothing more.. meaning it (or I?) won't  work?

#20 Jarno Mikkola

Jarno Mikkola

    The Imp in his pink raincoat.

  • Member
  • 10911 posts

Posted 30 May 2009 - 11:17 AM

but it is all it writes, and nothing more.. meaning it (or I?) won't work?

Have you installed the Widescreen mod? If yes, you need to remove all the setup-*modname*.exe's that's size is exactly 3,909Kb from the game directory.

Deactivated account. The user today is known as The Imp.