Jump to content


Photo

[SOLVED]Time to deal with the stuttering


  • Please log in to reply
135 replies to this topic

#121 Ascension64

Ascension64
  • Modder
  • 5983 posts

Posted 24 April 2012 - 03:36 AM

I implement usually by completely reversing the existing BioWare-implemented function and then making changes on it. That way, I reduce the possibility of mashing up some code at some far away place without knowing.

I see I see. Reasonable approach, but takes time, yeah? The rest of the implementation seems good to me.

Saves me time later debugging like a madman. :)

--------------
Retired Modder
Note: I do not respond to profile comments/personal messages in regards to troubleshooting my modifications. Please post on the public forums instead.

Baldur's Gate Trilogy-WeiDU and Mods
Throne of Bhaal Extender (TobEx)

Contributions: (NWN2) A Deathstalker (voice acting) - (IWD2) IWD2 NPC Project (soundset editing) - (Misc) SHS PC Soundsets (voice acting)
Legacy: (BG/Tutu/BGT) Beregost Crash Fixer 1.9 (18 Jul 10) - (BG2) Enable conversations with charmed/dominated creatures (18 Jul 10) - (BG2) Experience Corrections (18 Jul 10) - (Misc) Platform Conversion Utility RC2 (13 Feb 10)


#122 Beleg33

Beleg33

    AKA Adanedhel on G3

  • Member
  • 521 posts

Posted 11 May 2012 - 07:46 AM

Hey Suslik/Ascencion64, I have a question about the ToBEx fix.
I'm currently playing a megamod that was installed back when it was ToBEx v23.something and I thought just replacing the tobex.dll file with the newer version would do the trick but it looks like it didn't, I experienced stutter about 6 hours into BG2 that wouldn't go away until I used the script method proposed by Suslik in 1st post of this thread. So I guess I have to add some lines to tobex.ini to activate the fix for hashtable or whatever it is? - While I'm at it, do I need another line for the attack/round fix and other recent fixes?

Edit : Well I compared my TobExCore.ini to the default one in latest beta package and I added the "Optimise Variables Code=1" line under engine as well as others like AttackOnce Fix or Polymorph Fix. Fixed the stuttering without use of the script provided by Suslik! Thanks :D

Edited by Beleg33, 12 May 2012 - 04:30 AM.

Random spambot #8434678 said :

you should liquor multiplying great deal supplment your to office apparel predicated copy may possibly be an go through check out this behave as more busy den has an interest in pc


#123 Suslik

Suslik

    Investigator

  • Member
  • 500 posts

Posted 12 May 2012 - 06:07 AM

Edit : Well I compared my TobExCore.ini to the default one in latest beta package and I added the "Optimise Variables Code=1" line under engine as well as others like AttackOnce Fix or Polymorph Fix. Fixed the stuttering without use of the script provided by Suslik! Thanks

Yep, that's it! I have updated my current setup the similar way. And wow, someone used my lame workaround script fix : D

#124 Beleg33

Beleg33

    AKA Adanedhel on G3

  • Member
  • 521 posts

Posted 12 May 2012 - 06:32 AM

Hehe your script would work great for someone playing vanilla game or modded w/o TobEx!

Edit : Could this fix (script workaround) be adapted to other IE games? William Inn already requested in PST forums for hashtable fix to be added to Qwinn's (thanks for the correction William Imm) fixpack, but for now maybe you can look into it? I've never really played PST but Trebonus reported stuttering issues in PST in this thread. What about IWD(2) (though I've never had stuttering in those) ?

Edit 2 : Anyway this is a great discover you made and your workaround should be added to FAQ for the megamod or some sticky about stuttering issues IMO.

Edited by Beleg33, 12 May 2012 - 07:29 AM.

Random spambot #8434678 said :

you should liquor multiplying great deal supplment your to office apparel predicated copy may possibly be an go through check out this behave as more busy den has an interest in pc


#125 William Imm

William Imm

    Obsessive Penguin Lover

  • Member
  • 486 posts

Posted 12 May 2012 - 06:59 AM

William Inn already requested in PST forums for hashtable fix to be added to ghostdog fixpack

OT: It's Qwinn's fixpack, not ghostdog's.
At this point, I'm not really doing much Baldur's Gate related. More focused on Skyrim modding and the Born of Legend tabletop roleplaying game. Don't expect much activity here.

#126 Suslik

Suslik

    Investigator

  • Member
  • 500 posts

Posted 12 May 2012 - 07:59 AM

My workaround can be added to any script of any IE game. Well, it they have the same hashtable implementation, which I believe is true. The only requirement for the script is to run it once after "AddVariableBlock0" global is set to 1. I prefer to use Baldur.bcs since it runs every time, you can use your NPC's script or area script instead.

#127 -gurkenheinie-

-gurkenheinie-
  • Guest

Posted 10 October 2012 - 07:17 AM

SUSLIK!!!

u are da man ! i tried everything to prevent the stutter problem but over a long time nothing really helped me out and i kinda lost the fun about this briliant game.

but a few days ago i stumbled over this thread , i posted numerous times under different names and u always helped me out ! ( remember that gealen bayle dialog loop ? ;) )

so now everything works just as fluid as is if i would have started a new game , i cant really thank u enough for the effort u put in this modding stuff , guys like make the world a liitle bit better.

#128 enderandrew

enderandrew
  • Member
  • 166 posts

Posted 10 October 2012 - 03:04 PM

Forgive the stupid question, but if I'm doing a BWP install and I have TobEx downloaded, then BWP will use it and I'm golden, right?
Nihilism makes me smile.

#129 Suslik

Suslik

    Investigator

  • Member
  • 500 posts

Posted 10 October 2012 - 06:16 PM

enderandrew
Yep. The fix is included in TobEx since v24.

gurkenheinie
Glad to be of assistance : )

#130 ilot

ilot
  • Member
  • 574 posts

Posted 29 November 2012 - 07:13 AM

Hi

First of all thank you Sulslik and thank you Ascension64!!!

I have a question about the ToBEx fix and maybe a solution for they that not have installed tobex newer version!!!.

I'm playing a megamod with installed an old version of Tobex (021) and I thought to:
1. delete the file "Tobex.dll" older and replace it with the "Tobex.dll" of the new version 025 in my game folder ,
2. get the file "Asmjit.dll" of the version 025 and copy it in my game folder, (in the 021 version there isn't Asmjit.dll!!) :)
3. After I replaced my old "tobexcore.ini" with the same lines of the "default_core.ini" in Tobexe 025 and then save it as "tobexcore.ini".


The stuttering is vanished without using the script method proposed by Suslik in 1st post of this thread, and all seems work fine!
Do you think that I'll have problem in the future during my game?


Thanks!!!!


EDIT:
After the above modify, after played, I'm noticed the following message in "tobex.txt":

CRuleTablesEx::Init(): ITEM_USE.2DA not found
CRuleTablesEx::Init(): SLTSTEAL.2DA not found
CRuleTablesEx::Init(): DIFFMOD.2DA not found

then I put in override the files in the folder: "TobEx\TobEx_redist\override" and now really all seems work fine!!
Have I done the right thing??? :ermm:

EDIT2:
I noticed a "detoured.dll" file in my game folder too. I think it come from tob021, right? Can I delet it or not?

Edited by ilot, 29 November 2012 - 10:39 AM.

Italian mods tanslator!!!!


#131 Suslik

Suslik

    Investigator

  • Member
  • 500 posts

Posted 30 November 2012 - 09:38 AM

The workaround in the first post is for those not using TobEx(vanialla, for example). Question regarding upgrading TobEx should be probably addressed to a respective forum, but you did relatively fine. Of course Asc64 will call you a vagrant for that, but I have completed the game by just replacing TobEx.dll and adding respective lines to the config : )

#132 Ascension64

Ascension64
  • Modder
  • 5983 posts

Posted 30 November 2012 - 03:05 PM

@ilot: Sounds about right. I don't have the time to look into this specifically; if there are any specific adjustments made to existing files, your method of upgrade would have missed them. You can check by essentially reading through how TobEx upgrades a b0021 install to b0025 install from the TobEx.tpa file.
Hint:
ACTION_IF (%tobex_installed_version% < 22) BEGIN
  INCLUDE "%TOBEX_MOD_DIRECTORY%/TobEx_redist/TobEx0022.tpa"
END

ACTION_IF (%tobex_installed_version% < 23) BEGIN
  INCLUDE "%TOBEX_MOD_DIRECTORY%/TobEx_redist/TobEx0023.tpa"

  COPY "TobEx_ini/TobExTweak.ini" "TobEx_ini/TobExTweak.ini"
    REPLACE_TEXTUALLY "Trigger:Enable PickpocketFailed Trigger" "Trigger:PickpocketFailed Trigger Only"
    REPLACE_TEXTUALLY "Engine:Remain Hidden On Pickpocket Success" "Action:Remain Hidden On Pickpocket Success"
    APPEND_FILE "%TOBEX_MOD_DIRECTORY%/TobEx_redist/TobEx0023t.txt"
  BUT_ONLY_IF_IT_CHANGES
END

ACTION_IF (%tobex_installed_version% < 24) BEGIN
  COPY "%TOBEX_MOD_DIRECTORY%/TobEx_redist/AsmJit.dll" "AsmJit.dll"
  COPY "%TOBEX_MOD_DIRECTORY%/TobEx_redist/TobEx.lua" "TobEx_ini/TobEx.lua"

  MKDIR "TobEx_ini/lua"
  COPY "%TOBEX_MOD_DIRECTORY%/TobEx_redist/lua" "TobEx_ini/lua"

  INCLUDE "%TOBEX_MOD_DIRECTORY%/TobEx_redist/TobEx0024.tpa"

  COPY "TobEx_ini/TobExTweak.ini" "TobEx_ini/TobExTweak.ini"
    APPEND_FILE "%TOBEX_MOD_DIRECTORY%/TobEx_redist/TobEx0024t.txt"
END

ACTION_IF (%tobex_installed_version% < 25) BEGIN
  INCLUDE "%TOBEX_MOD_DIRECTORY%/TobEx_redist/TobEx0025.tpa"
END

--------------
Retired Modder
Note: I do not respond to profile comments/personal messages in regards to troubleshooting my modifications. Please post on the public forums instead.

Baldur's Gate Trilogy-WeiDU and Mods
Throne of Bhaal Extender (TobEx)

Contributions: (NWN2) A Deathstalker (voice acting) - (IWD2) IWD2 NPC Project (soundset editing) - (Misc) SHS PC Soundsets (voice acting)
Legacy: (BG/Tutu/BGT) Beregost Crash Fixer 1.9 (18 Jul 10) - (BG2) Enable conversations with charmed/dominated creatures (18 Jul 10) - (BG2) Experience Corrections (18 Jul 10) - (Misc) Platform Conversion Utility RC2 (13 Feb 10)


#133 ilot

ilot
  • Member
  • 574 posts

Posted 01 December 2012 - 02:59 AM

Hi!!!
I thank you very much both men!! :cheers:

I followed the TobEx.tpa file and it's ok, seems that TobEx is updated to beta 025 version because all works fine, for nowl!!! :new_thumbs:

I have already abused enough, and I don't want go out topic!! :D


@ascension64
I sent you another PM, I've a last question and then I'll not bother you 8)

Edited by ilot, 01 December 2012 - 03:02 AM.

Italian mods tanslator!!!!


#134 -Walter-

-Walter-
  • Guest

Posted 20 December 2012 - 01:00 PM

I just spent 45 minutes reading this thread. I understood nearly nothing (my last programming was "if, then goto" in basic) but somehow really enjoyed the investigation and debate. Kudos to Suslik and all, however, I have tobex 25 w/ bwp tactical, and am experiencing the same stutter, which started about 20 hours into the game. Was tobex to have this fix, or should I try the workaround despite having version 25? Any thoughts would be extremely appreciated, as I LOVE the modifications you brilliant folks have created. Thanks.

#135 Jarno Mikkola

Jarno Mikkola

    The Imp in his pink raincoat.

  • Member
  • 10911 posts

Posted 20 December 2012 - 01:19 PM

I just spent 45 minutes reading this thread. I understood nearly nothing (my last programming was "if, then goto" in basic) but somehow really enjoyed the investigation and debate. Kudos to Suslik and all, however, I have tobex 25 w/ bwp tactical, and am experiencing the same stutter, which started about 20 hours into the game.

Have you done all the 25 stuttering fixes ? And what were the result of the 23.1.1 ? :devil:

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


#136 -Walter-

-Walter-
  • Guest

Posted 20 December 2012 - 02:03 PM

Jarno Mikkola- Thanks a ton. Problem was: greed. 6 bottomless holding bags for my party loaded w/ too much stuff. Thanks again.