Jump to content


Photo

BGMain.exe - Entry Point Not Found


  • Please log in to reply
22 replies to this topic

#1 melkor_morgoth75

melkor_morgoth75

    Lord

  • Modder
  • 1509 posts

Posted 03 January 2012 - 12:51 PM

Getting the one in the topic .. then the game starts normally.

Also the message reads: "The procedure entry point EncodePointer could bot be located in the Dynamic link library KERNEL32.dll

mm75

Tired of the same boring spawned creatures u face in BG? Try BGSpawn


#2 10th

10th
  • Member
  • 621 posts

Posted 03 January 2012 - 01:17 PM

Googling found several reports about programs where that happened.
The common problem is Win XP with only Service Pack 1 installed.

10th
Avast! You cannot defeat our titan-mounted submarine staffed by cannibal vikings! - Nodwick

"I grab his deceased spirit and piledrive it back into his body, duplicating raise dead." - Psyren Oots board

#3 Ascension64

Ascension64
  • Modder
  • 5983 posts

Posted 03 January 2012 - 02:51 PM

Do you get this for an older version of TobEx?

--------------
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)


#4 aqrit

aqrit
  • Member
  • 132 posts

Posted 03 January 2012 - 04:19 PM

The earliest operating system supported by the Visual C++ 2010 run-times is Windows XP SP2, because the CRT now has a dependency on EncodePointer.

You can view the PE import table with many tools.

I think the accepted solution is to roll your own Encode/Decode Pointer functions using asm or replace the MS_CRT with tinyCRT, etc

I stayed with MSVC 2008 cause it has only a minium amount of problems for creating an app that would run on Window ME
http://louis.steelby...8_vs_win40.html

#5 Ascension64

Ascension64
  • Modder
  • 5983 posts

Posted 03 January 2012 - 05:49 PM

Yeah, that's rather annoying. It's going to be ugly to backtrack to vs2008, and I don't want to compile using the vs2008 CRT either, since that will force people to install both vs2008 and vs2010 before they can compile themselves.
I can add the little hack for XP, but for Win2000 and earlier, will be troublesome.

Anyway, mm75, give this a shot: http://www.shsforums...ost__p__530734. What is your OS version?

Edited by Ascension64, 03 January 2012 - 05:54 PM.

--------------
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)


#6 aqrit

aqrit
  • Member
  • 132 posts

Posted 03 January 2012 - 07:27 PM

sorry if you did something fancy and I missed it but some modules in TobEx_Beta0023_test_120104 are still linking with Kernel32.EncodePointer

Attached Images

  • tobex0023.png


#7 fearless

fearless
  • Member
  • 79 posts

Donator

Posted 04 January 2012 - 12:43 AM

Found this EncodePointerLib which may be useful:

http://mulder.google...rLib/README.txt

http://code.google.c...ncodePointerLib

and this post about W2K: http://tedwvc.wordpr...n-windows-2000/

Edited by fearless, 04 January 2012 - 12:44 AM.

fearless

 

CM690 II Case, Corsair HX1000 PSU, Asus Maximus V Gene, Intel i5-3750K @ 4.2Ghz, Corsair 8GB DDR3, Asus DirectCU GTX-670, Samsung 256GB SSD, WD Caviar Black 2TB HDD x2

 

https://github.com/mrfearless


#8 melkor_morgoth75

melkor_morgoth75

    Lord

  • Modder
  • 1509 posts

Posted 04 January 2012 - 12:58 AM

I have W2k on a dedicated machine for BG. Am i forced to install XP on it so?

mm75

EDIT: installing now the .23 version and let u know

Edited by melkor_morgoth75, 04 January 2012 - 01:02 AM.

Tired of the same boring spawned creatures u face in BG? Try BGSpawn


#9 melkor_morgoth75

melkor_morgoth75

    Lord

  • Modder
  • 1509 posts

Posted 04 January 2012 - 01:14 AM

.23 same error ...

mm75

PS: thinking on going to XP but it would be a pain to reinstall even the whole game :( :( :(

Edited by melkor_morgoth75, 04 January 2012 - 01:15 AM.

Tired of the same boring spawned creatures u face in BG? Try BGSpawn


#10 Ascension64

Ascension64
  • Modder
  • 5983 posts

Posted 04 January 2012 - 01:42 AM

Not much I can do about Win2K because there's a lot more CRT that is different, such as HeapSetInformation.
It probably looks like I am going to have to get vs2008express and compile under 9.0 just for releases.

--------------
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)


#11 melkor_morgoth75

melkor_morgoth75

    Lord

  • Modder
  • 1509 posts

Posted 04 January 2012 - 01:53 AM

Not much I can do about Win2K because there's a lot more CRT that is different, such as HeapSetInformation.
It probably looks like I am going to have to get vs2008express and compile under 9.0 just for releases.


Fair enough ... let's do everything from scratch ;)

After 6 years i can update it i believe :P

mm75

Tired of the same boring spawned creatures u face in BG? Try BGSpawn


#12 melkor_morgoth75

melkor_morgoth75

    Lord

  • Modder
  • 1509 posts

Posted 04 January 2012 - 02:17 AM

Should i install the public test release (0023) version or the current Beta0022 ?

mm75

Tired of the same boring spawned creatures u face in BG? Try BGSpawn


#13 fearless

fearless
  • Member
  • 79 posts

Donator

Posted 04 January 2012 - 02:39 AM

Found some more info:

http://stackoverflow...-2008s-c-runtim

I can create the masm compiled obj files to link to the various required functions - the encodepointer and decodepointer ones for example:

.model flat

.data
__imp__EncodePointer@4 dd dummy
__imp__DecodePointer@4 dd dummy
EXTERNDEF __imp__EncodePointer@4 : DWORD
EXTERNDEF __imp__DecodePointer@4 : DWORD

.code
dummy proc
mov eax, [esp+4]
ret 4
dummy endp

end

Looking at the post in the link above, if you then link with that obj file that should be ok. For the HeapSetInformation for W2K, im not sure about.

Edit: attached is a zip file containing EncodePointer.obj - hope that helps.

Attached Files


Edited by fearless, 04 January 2012 - 05:37 AM.

fearless

 

CM690 II Case, Corsair HX1000 PSU, Asus Maximus V Gene, Intel i5-3750K @ 4.2Ghz, Corsair 8GB DDR3, Asus DirectCU GTX-670, Samsung 256GB SSD, WD Caviar Black 2TB HDD x2

 

https://github.com/mrfearless


#14 Ascension64

Ascension64
  • Modder
  • 5983 posts

Posted 04 January 2012 - 02:18 PM

Use 0022. Anyway, I'll try to sort out a Win2K compatible version. Linking the above .obj should work for WinXP SP1 or less, but not Win2K because of too many CRT differences, so I will give vs2008 a shot.

--------------
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)


#15 Ascension64

Ascension64
  • Modder
  • 5983 posts

Posted 04 January 2012 - 05:33 PM

Try again.
http://www.shsforums...post__p__530864

Compiled under 9.0 CRT. I only had to fix up 4 lines of code, which was good. :)

--------------
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)


#16 melkor_morgoth75

melkor_morgoth75

    Lord

  • Modder
  • 1509 posts

Posted 05 January 2012 - 03:01 AM

Tx mate ... i have W2k on a testing machine, i'll let u know how it goes as soon as i can do an install there.

mm75

Tired of the same boring spawned creatures u face in BG? Try BGSpawn


#17 Ascension64

Ascension64
  • Modder
  • 5983 posts

Posted 09 January 2012 - 06:12 PM

Any update here?

--------------
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)


#18 melkor_morgoth75

melkor_morgoth75

    Lord

  • Modder
  • 1509 posts

Posted 10 January 2012 - 01:40 AM

Any update here?


Sorry mate, back to work these days ... as soon as i can i let u know (i hope this evening...)

Tx,
mm75

Tired of the same boring spawned creatures u face in BG? Try BGSpawn


#19 Ascension64

Ascension64
  • Modder
  • 5983 posts

Posted 21 January 2012 - 02:17 PM

Bumpety bump bump. If I don't know the status of whether compiling under CRT 9.0 is actually helpful to Win2K and un-SP'ed Win XP users, then I will revert to compiling under CRT 10.0.

--------------
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)


#20 melkor_morgoth75

melkor_morgoth75

    Lord

  • Modder
  • 1509 posts

Posted 26 January 2012 - 09:42 AM

Bumpety bump bump. If I don't know the status of whether compiling under CRT 9.0 is actually helpful to Win2K and un-SP'ed Win XP users, then I will revert to compiling under CRT 10.0.


lol :)

Still have to install a W2k again (i had to install Xp to have the mod working, and currently i'm using that) ... hopefully this week-end so that u know if it works or not ;)

Tx,
mm75

Tired of the same boring spawned creatures u face in BG? Try BGSpawn