Jump to content


Photo

TobEx AfterLife


  • Please log in to reply
39 replies to this topic

#1 Insomniator

Insomniator
  • Member
  • 123 posts

Posted 17 June 2021 - 09:42 AM

TobEx AfterLife


TobEx AfterLife is custom version of TobEx v26/v28 from BG2 Improved GUI project, but only TobEx options/fixes are enabled.

Codebase was changed to custom one, this is no more original TobEx v26 by Ascension64, use at your own risk.Share same C++ sources with "Improved GUI", source files available from main project.

Require original TobEx v26/v28, no other mod dependies or install order

Selectable fixes:
Disarm Trap Distance [Fix]
Add safe distance around trap to disarm, original code move char to centre of trap without any safe zones

Character Behind Polygon [Fix]
Make character behind big polygon (door/passes/...) selectable for mouse actions.
There is other types of objects like containers on ground, they are always unavailable if overlapped by polygon from LIST_FRONT list because these objects belong to LIST_MIDDLE or LIST_BACK lists

Continuous Battle Music [Fix]
Battle Music plays without reseting when GUI/Screen switched from main Game screen

Flickering Cursor Fix [Fix]
In fullscreen mode for unknow reason engine renders cursor two times - first on backbuffer, then on primary surface. Writing to primary surface is bad idea because this surface is what graphic chip shows currently on monitor. Fix remove writing to primary surface and keep only one way to render cursor - to backbuffer

Cpu Idle [Mod]
1) Graphic Render uses infinite CPU cycle to synchronize with AI part of game(AI synchronized with constant timer). Mod changes synchronization type to "events", events uses Windows API and don't load CPU
2) Timing in Movie player changed from CPU Cycles to sleep states
3) When switched from BG2 to other Application, put engine to sleep states

Over Target Visual Effect Fixes [Tweak]
Some spells/weapons/items use "Over target (unattached) Visual Effect", this type of effect has adavantage(bug ?) - it ignores timing, always play animation only one time. And has visual disadvantage - no tracking to target/owner, animation plays always at same point on area, even target/owner moved far from this point.
Tweak changes "Over target (unattached) Visual Effect" to be like "attached" version, e.g. move animation together with target/owner, also stop animation if owner is died/disappeared

Skip OpenGL Fullscreen Display Modes with Fixed Interpolation [Fix]
Since Windows XP, vendor's video driver can report same display mode tree times: 1) default mode,
2)centered in larger screen space, 3)stretched to fill larger screen space. In Intel/NVidia control panel default mode can be overrided to few selectable option - scale by display/scale by driver/...
BG2 engine don't expect same mode few times and always fetch first in line. Depending on video driver, it can be any of three modes, control panel in this case ignores user's preferences and rely directly on application request (Intel control panel has "Override Application Settings" to ignore application request, but this option not available for all possible scaling methods and doesn't work properly with OpenGL apps)
Fix skips centered/stretched modes and prefers mode without any interpolation

OpenGL VSync On [Tweak]
Enable OpenGL VSync by game itself, useful with Intel VGA latest drivers when in Graphics Control Panel VSYNC and TripleBuffering can be enabled always together and no way to enable VSync only (all Infinity Engines don't compatible with triple buffering)



Autoenabled fixes:
Wild Mage school NONE->Generalist [Fix]
By design any kit size is double word, but in some part of code kit handled as single word
Most mage kits fit to single word, except WILDMAGE.School detection procedure handle as single word, in result wild mage don't belong to any school.Wild mage after fix has same school as unkitted Mage/Sorcerer

Removed +2/-2 bonus "Unschooled weapon/item Effects versus Chars with any Kit" [Fix]
Add missed check for empty school of effects from weapon/item(they always have empty school). Original code always add bonus/penalty to any kitted chars against such effects

Allow equip armour items(Robes) to mages with BG1 type animation [Mod]
Unlock feature in Inventory screen, mainly useful together with InfinityAnimation mod

Restore "Minimal Level" field in .ITM [Fix]
Engine normaly handles only when Item level is higher than Char level and crash if lower.
Fix remove crash and allow full usage of this field


Download Link + Full Changelog


Edited by Insomniator, 06 September 2021 - 01:56 AM.


#2 Salk

Salk
  • Member
  • 1317 posts

Donator

Posted 17 June 2021 - 11:07 PM

My antivirus (BitDefender Free) object to the TobEx.dll file in both version 29 and 29.1. 

 

It doesn't complain with version 28 (Magus).



#3 Andrea C.

Andrea C.
  • Member
  • 417 posts

Posted 18 June 2021 - 12:51 AM

Can you add an exception to it?

 

It works well with mine (I've got a paid subscription to AVG.)



#4 Salk

Salk
  • Member
  • 1317 posts

Donator

Posted 18 June 2021 - 01:03 AM

I have added an exception and submitted the file as non positive to BitDefender.

 

I just wanted to inform Insomniator that for some reason his version of ToBEx.dll is being detected by my own antivirus (and four others) as malware while v28 did not have this kind of issue.

 

Insomniator,

 

it seems that the .tp2 version for 29.1 is still 29. The Read Me is also only updated to version 29.



#5 ALIEN

ALIEN
  • Member
  • 934 posts

Posted 18 June 2021 - 01:57 AM

Renaming the tp2 will prevent all mods that require TobEx to detect this version. You have all credits for this new version but can you please revert name change?


Project Infinity public BETA - mod manager for Infinity Engine games

Infinity Auto Packager - automatically generate and adds mod packages to GitHub release

Modder's Guide to GitHub - you cannot have progress without committing changes


#6 Salk

Salk
  • Member
  • 1317 posts

Donator

Posted 18 June 2021 - 07:23 AM

ALIEN is very correct about that.



#7 The Imp

The Imp

    Not good, see EVIL is better. You'll LIVE.

  • Member
  • 5127 posts

Posted 18 June 2021 - 12:53 PM

My antivirus (BitDefender Free) object to the TobEx.dll file in both version 29 and 29.1.

You might want to switch, as it bases it's desition on file name, and the corporation sponsors that bought up it's services. Aka, corruption. The skill to do this is called craft.


Yep, Jarno Mikkola. my Mega Mod FAQ. Use of the BWS, and how to use it(scroll down that post a bit). 
OK, desert dweller, welcome to the sanity, you are free to search for the limit, it's out there, we drew it in the sand. Ouh, actually it was still snow then.. but anyways.


#8 Insomniator

Insomniator
  • Member
  • 123 posts

Posted 19 June 2021 - 04:53 AM

Hi Alien

Renaming the tp2 will prevent all mods that require TobEx to detect this version. You have all credits for this new version but can you please revert name change?

Project is not original TobEx anymore, it is FORK with many changes in codestyle/formatting/etc, so it got own name to avoid mislead. You are right, many mods check existing TobEx installation by checking MOD_IS_INSTALLED or directly TobEx_ini folder, it is problem if original TobEx was not installed and mod use only MOD_IS_INSTALLED way
 
I want to fix issue as create dummy directory/files/... to pass MOD_IS_INSTALLED (if it will work). Temporary solution is install orig TobEx package before, i already updated description.


Edited by Insomniator, 19 June 2021 - 05:24 AM.


#9 Insomniator

Insomniator
  • Member
  • 123 posts

Posted 19 June 2021 - 05:20 AM

Hi Salk

I have added an exception and submitted the file as non positive to BitDefender.
 
I just wanted to inform Insomniator that for some reason his version of ToBEx.dll is being detected by my own antivirus (and four others) as malware while v28 did not have this kind of issue.

I can do nothing with this, main .DLL and TobExLoader.exe produced by Microsoft Visual Studio 2010 compiler with all optimizations enabled, TobEx itself is injector/hooker of bgmain.exe, probably BitDefender explore it deeper and make positive, AsmJit.dll taken from TobEx v26 package.


Edited by Insomniator, 19 June 2021 - 05:23 AM.


#10 Insomniator

Insomniator
  • Member
  • 123 posts

Posted 19 June 2021 - 05:31 AM

it seems that the .tp2 version for 29.1 is still 29. The Read Me is also only updated to version 29.


29.1 is name of zip, inside .tp2 and other files version will be still 29. You cannot install new version above previous, this is as i understand weidu installer, it uninstall prev changes and write new changes from scratch



#11 ALIEN

ALIEN
  • Member
  • 934 posts

Posted 19 June 2021 - 09:06 AM

it seems that the .tp2 version for 29.1 is still 29. The Read Me is also only updated to version 29.


29.1 is name of zip, inside .tp2 and other files version will be still 29. You cannot install new version above previous, this is as i understand weidu installer, it uninstall prev changes and write new changes from scratch

WeiDU won't allow to have two the same Mod ID (tp2 filename) inside weidu.log twice, correct. But keeping the correct VERSION keyword inside tp2 is to inform players which exact version they use. Otherwise, how the player would know if he install the version that contains 'Continuous Battle Music Fix' if the tp2 VERSION (and weidu.log) still has '29' in it?


Project Infinity public BETA - mod manager for Infinity Engine games

Infinity Auto Packager - automatically generate and adds mod packages to GitHub release

Modder's Guide to GitHub - you cannot have progress without committing changes


#12 Insomniator

Insomniator
  • Member
  • 123 posts

Posted 21 June 2021 - 09:55 AM

updated to 29.2:

Removed standalone installer mode, now require original TobEx installed



#13 Insomniator

Insomniator
  • Member
  • 123 posts

Posted 21 June 2021 - 10:30 AM

Hi Alien,

WeiDU won't allow to have two the same Mod ID (tp2 filename) inside weidu.log twice, correct. But keeping the correct VERSION keyword inside tp2 is to inform players which exact version they use. Otherwise, how the player would know if he install the version that contains 'Continuous Battle Music Fix' if the tp2 VERSION (and weidu.log) still has '29' in it?

fixed, tp2 has correct version 29.x, TobExVer.txt is still "29" because some mods try do math with this value as integer
 



#14 ALIEN

ALIEN
  • Member
  • 934 posts

Posted 21 June 2021 - 10:58 AM

Hi Alien,
WeiDU won't allow to have two the same Mod ID (tp2 filename) inside weidu.log twice, correct. But keeping the correct VERSION keyword inside tp2 is to inform players which exact version they use. Otherwise, how the player would know if he install the version that contains 'Continuous Battle Music Fix' if the tp2 VERSION (and weidu.log) still has '29' in it?

fixed, tp2 has correct version 29.x, TobExVer.txt is still "29" because some mods try do math with this value as integer
 

Thanks. I know it's a PITA to keep things synchronized. Automate those  :shifty:

 

BTW: Which mods are checking "TobExVer.txt" ?


Project Infinity public BETA - mod manager for Infinity Engine games

Infinity Auto Packager - automatically generate and adds mod packages to GitHub release

Modder's Guide to GitHub - you cannot have progress without committing changes


#15 Insomniator

Insomniator
  • Member
  • 123 posts

Posted 21 June 2021 - 11:40 AM

BTW: Which mods are checking "TobExVer.txt" ?


Mod directly dont open TobExVer.txt, instead it include embedded TobEx Redistributable

For example stratagems v31, it includes "tobex_redist" subfolder, as i see setup.tp2 may load tobex.tpa, then tobex.tpa try to detect version from "TobExVer.txt"

  COPY "TobEx_ini/TobExVer.txt" "TobEx_ini/TobExVer.txt"
    READ_2DA_ENTRY 0 0 1 tobex_installed_version
  BUT_ONLY

  ACTION_IF (%tobex_redist_version% > %tobex_installed_version%) BEGIN

last line fails on "29.1" or "29,1"

 



#16 Salk

Salk
  • Member
  • 1317 posts

Donator

Posted 21 June 2021 - 08:26 PM

BTW: Which mods are checking "TobExVer.txt" ?


Mod directly dont open TobExVer.txt, instead it include embedded TobEx Redistributable

For example stratagems v31, it includes "tobex_redist" subfolder, as i see setup.tp2 may load tobex.tpa, then tobex.tpa try to detect version from "TobExVer.txt"

  COPY "TobEx_ini/TobExVer.txt" "TobEx_ini/TobExVer.txt"
    READ_2DA_ENTRY 0 0 1 tobex_installed_version
  BUT_ONLY

  ACTION_IF (%tobex_redist_version% > %tobex_installed_version%) BEGIN

last line fails on "29.1" or "29,1"

 

 

But couldn't you have simply changed from v29 to v30 then?



#17 Gwendolyne

Gwendolyne
  • Staff
  • 991 posts

Posted 21 June 2021 - 09:38 PM

I usually use the following code, unless I check a special Tobex feature. ;)

 

        OUTER_SET is_tobex = (FILE_EXISTS ~tobex_ini/tobexcore.ini~) ? 1 : 0 // ToBEx is installed


 


CARPE DIEM ....
 

In progress : Menace sur le Royaume de Diamant Éternel there.

#18 skellytz

skellytz
  • Member
  • 137 posts

Posted 25 June 2021 - 04:26 AM

Thank you. Just like everybody else here I think it should be the new version of TobEx. A GitHub repo forked off the original would be a great way to show that. If we all renamed mods because of forks the collaborative process would get needlessly complicated. Think about it; I'm sure Ascension64 would approve all the updates but wouldn't like to see the mod renamed every time the maintainer changes. Maybe I'll just rename BGT to BGT Back from the Grave Pt. II Special Edition and require the installation of v1.18 prior to v1.22 ;)



#19 Insomniator

Insomniator
  • Member
  • 123 posts

Posted 25 June 2021 - 07:38 AM

Hi skellytz

Thank you. Just like everybody else here I think it should be the new version of TobEx. A GitHub repo forked off the original would be a great way to show that. If we all renamed mods because of forks the collaborative process would get needlessly complicated.

And again - this is not TobEx anymore , it is fan fork with all code from my parent project with many hacks/fixes/new bugs/etc

Please leave orig TobEx alone ! (fingers crossed :doh:)



#20 Arthas

Arthas
  • Member
  • 107 posts

Posted 25 June 2021 - 11:45 AM

Hi skellytz
Thank you. Just like everybody else here I think it should be the new version of TobEx. A GitHub repo forked off the original would be a great way to show that. If we all renamed mods because of forks the collaborative process would get needlessly complicated.

And again - this is not TobEx anymore , it is fan fork with all code from my parent project with many hacks/fixes/new bugs/etc

Please leave orig TobEx alone ! (fingers crossed :doh:)

Why are you requiring to install Tobex as a prerequisite? 


Edited by Arthas, 25 June 2021 - 11:53 AM.