Larian Banner: Baldur's Gate Patch 9
Previous Thread
Next Thread
Print Thread
Joined: Mar 2013
G
stranger
OP Offline
stranger
G
Joined: Mar 2013
Well if anyone can help with this, the game is awesome but the camera most of the time is very close, it will be very cool if you can zoom out a little more maybe 25% or even 30%.

I know it's not hard to do, I was playing with the editor and couldn't do it but maybe someone who knows a little more about the tools and the game can do it smile.

Thanks in advance!

Joined: Jul 2014
T
stranger
Offline
stranger
T
Joined: Jul 2014
make a file with the extension CT "cameraTweak.CT" open it with notepad and paste this code in.

this is a Cheat Engine script it has map zoom out and in as much as you like and also can control the angle of the camera with "Shift - and +"

I am sure you may have used cheat engine before so the rest should be self explanatory.

P.S this is in way mine

Code
<?xml version="1.0" encoding="utf-8"?>
<CheatTable>
  <CheatEntries>
    <CheatEntry>
      <ID>567</ID>
      <Description>"Camera Tweak"</Description>
      <Options moHideChildren="1"/>
      <LastState Activated="1"/>
      <Color>FF0000</Color>
      <VariableType>Auto Assembler Script</VariableType>
      <AssemblerScript>[ENABLE]
//code from here to '[DISABLE]' will be used to enable the cheat
aobscan(zoommaxcheckAOB,D9 05 ** ** ** ** D8 93 ** ** ** ** DF E0 F6 C4 05 7A 08)
registersymbol(zoommaxcheckAOB)

label(iCameraZoomOffset)
registersymbol(iCameraZoomOffset)

zoommaxcheckAOB+8:
iCameraZoomOffset:

 
 
[DISABLE]
//code from here till the end of the code will be used to disable the cheat
unregistersymbol(zoommaxcheckAOB)

unregistersymbol(iCameraZoomOffset)

</AssemblerScript>
      <CheatEntries>
        <CheatEntry>
          <ID>560</ID>
          <Description>"Zoom Out More"</Description>
          <Options moHideChildren="1"/>
          <LastState Activated="1"/>
          <Color>FF0000</Color>
          <VariableType>Auto Assembler Script</VariableType>
          <AssemblerScript>[ENABLE]
//code from here to '[DISABLE]' will be used to enable the cheat
label(pCamera)
registersymbol(pCamera)
label(fCustomZoomMax)
registersymbol(fCustomZoomMax)
label(fZoomOutMax)
registersymbol(fZoomOutMax)

alloc(newmem,2048)
label(returnhere)
label(originalcode)
label(exit)

newmem: //this is allocated memory, you have read,write,execute access
//place your code here
mov [pCamera],ebx

fstp st(0)
fld dword ptr [fCustomZoomMax]
mov eax,[iCameraZoomOffset]
fcom dword ptr [ebx+eax]

originalcode:
fnstsw ax
test ah,05

exit:
jmp returnhere

///
pCamera:
dd 0
fCustomZoomMax:
dd (float)200.0
///

zoommaxcheckAOB+c: //"EoCApp.exe"+147D2B:
jmp newmem
returnhere:

[zoommaxcheckAOB+2]:
fZoomOutMax:




[DISABLE]
//code from here till the end of the code will be used to disable the cheat
dealloc(newmem)
zoommaxcheckAOB+c: //"EoCApp.exe"+147D2B:
db DF E0 F6 C4 05
//Alt: fnstsw ax
//Alt: test ah,05

unregistersymbol(pCamera)
unregistersymbol(fCustomZoomMax)
unregistersymbol(fZoomOutMax)
</AssemblerScript>
          <CheatEntries>
            <CheatEntry>
              <ID>566</ID>
              <Description>"Current Zoom"</Description>
              <LastState Value="??" Activated="0" RealAddress="00000000"/>
              <Color>0000FF</Color>
              <VariableType>Float</VariableType>
              <Address>pCamera</Address>
              <Offsets>
                <Offset>45C</Offset>
              </Offsets>
              <Hotkeys>
                <Hotkey>
                  <Action>Set Value</Action>
                  <Keys>
                    <Key>16</Key>
                    <Key>8</Key>
                  </Keys>
                  <Value>19</Value>
                  <ID>0</ID>
                </Hotkey>
              </Hotkeys>
            </CheatEntry>
            <CheatEntry>
              <ID>568</ID>
              <Description>"Custom Zoom Max"</Description>
              <LastState Value="??" Activated="0" RealAddress="077B0024"/>
              <Color>0000FF</Color>
              <VariableType>Float</VariableType>
              <Address>fCustomZoomMax</Address>
            </CheatEntry>
            <CheatEntry>
              <ID>561</ID>
              <Description>"Game Default Zoom Out Max (Reference)"</Description>
              <LastState Value="??" Activated="0" RealAddress="018B5550"/>
              <Color>000080</Color>
              <VariableType>Float</VariableType>
              <Address>fZoomOutMax</Address>
            </CheatEntry>
          </CheatEntries>
        </CheatEntry>
        <CheatEntry>
          <ID>563</ID>
          <Description>"Camera Angle Tweak"</Description>
          <Options moHideChildren="1"/>
          <LastState Activated="1"/>
          <Color>FF0000</Color>
          <VariableType>Auto Assembler Script</VariableType>
          <AssemblerScript>[ENABLE]
//code from here to '[DISABLE]' will be used to enable the cheat
aobscan(cameraanglereadAOB,D9 5C 24 1C 8B 54 24 1C D9 44 24 54 89 97)
registersymbol(cameraanglereadAOB)

label(fCustomCameraAngle)
registersymbol(fCustomCameraAngle)

alloc(newmem,2048)
label(returnhere)
label(originalcode)
label(exit)

newmem: //this is allocated memory, you have read,write,execute access
//place your code here
fstp st(0)
fld dword ptr [fCustomCameraAngle]
fstp dword ptr [esp+1C]

originalcode:
//fstp dword ptr [esp+1C]
mov edx,[esp+1C]

exit:
jmp returnhere

///
fCustomCameraAngle:
dd (float)1.0
///

cameraanglereadAOB: //"EoCApp.exe"+149D98:
jmp newmem
nop
nop
nop
returnhere:


 
 
[DISABLE]
//code from here till the end of the code will be used to disable the cheat
dealloc(newmem)
cameraanglereadAOB: //"EoCApp.exe"+149D98:
db D9 5C 24 1C 8B 54 24 1C
//Alt: fstp dword ptr [esp+1C]
//Alt: mov edx,[esp+1C]
unregistersymbol(cameraanglereadAOB)

unregistersymbol(fCustomCameraAngle)
</AssemblerScript>
          <Hotkeys>
            <Hotkey>
              <Action>Activate</Action>
              <Keys>
                <Key>16</Key>
                <Key>106</Key>
              </Keys>
              <ID>0</ID>
            </Hotkey>
            <Hotkey>
              <Action>Deactivate</Action>
              <Keys>
                <Key>16</Key>
                <Key>111</Key>
              </Keys>
              <ID>1</ID>
            </Hotkey>
          </Hotkeys>
          <CheatEntries>
            <CheatEntry>
              <ID>565</ID>
              <Description>"Shift -: Look Down || Shift +: Loop Up"</Description>
              <LastState Value="??" Activated="0" RealAddress="10090015"/>
              <Color>000080</Color>
              <VariableType>Float</VariableType>
              <Address>fCustomCameraAngle</Address>
              <Hotkeys>
                <Hotkey>
                  <Action>Decrease Value</Action>
                  <Keys>
                    <Key>16</Key>
                    <Key>107</Key>
                  </Keys>
                  <Value>0.1</Value>
                  <Description>Tilt Down</Description>
                  <ID>0</ID>
                </Hotkey>
                <Hotkey>
                  <Action>Increase Value</Action>
                  <Keys>
                    <Key>16</Key>
                    <Key>109</Key>
                  </Keys>
                  <Value>0.1</Value>
                  <Description>Tilt Up</Description>
                  <ID>1</ID>
                </Hotkey>
              </Hotkeys>
            </CheatEntry>
          </CheatEntries>
        </CheatEntry>
      </CheatEntries>
    </CheatEntry>
  </CheatEntries>
</CheatTable> 

Joined: Jul 2014
N
apprentice
Offline
apprentice
N
Joined: Jul 2014
That seems pretty awesome! Let's say I wanted to change the + - to "Page up" and "Page down", how would I need to change the code? Edit: I do not have a numpad

Not too good at reading this, but I guess it would be?
Originally Posted by Too Latte

Code
<?xml version="1.0" encoding="utf-8"?>
                  <Keys>
                    <Key>16</Key>
                    <Key>107</Key>
                  </Keys>
                  <Keys>
                    <Key>16</Key>
                    <Key>109</Key>
                  </Keys>
</CheatTable> 

Do you know where I can find out which numbers are what keypresses?

Last edited by n1x0r; 13/07/14 07:44 AM.
Joined: Mar 2013
G
stranger
OP Offline
stranger
G
Joined: Mar 2013
Works awesome, there is an angle mod and a zoom out mode.

Thanks a lot smile

Joined: Jul 2014
C
stranger
Offline
stranger
C
Joined: Jul 2014
some corrections, reminder, and advice,

correction:
- you don't need notepad. just copy&paste it onto CE, hook the table to the game as usual, save the table for later use. done.

- to change the hot-keys: after pasting the codes onto the table, run and hook the game, and activated "Camera Angle Tweak", highlight the line "Shift -: Look Down || Shift +: Loop Up". press Ctrl-H to change the hot-keys with GUI. that's how I created the hot-keys in the first place.

reminder:
- as the map's "war fog" is cleared by having the camera pan on it while the camera is still center on a character in your party, by using these scripts you may accidentally reveal some place that you are yet ventured. so, you should use the scripts with caution.

advice:
- to Too Latte: I'm assuming you've missed a "no" in the sentence "P.S this is in way mine". still, you should at least give credit when you're re-posting others work. nonetheless, thanks for spreading the words~

- the script can be found on CE forum. http://forum.cheatengine.org/viewtopic.php?p=5540939#5540939

Last edited by Cielos; 13/07/14 08:49 PM.
Joined: Jul 2014
stranger
Offline
stranger
Joined: Jul 2014
Is there a noob guide on how to use this? I have no clue how to get it working with cheat engine or how to set it up laugh


Joined: Mar 2013
G
stranger
OP Offline
stranger
G
Joined: Mar 2013
Downland the software CheatEngine, then with the game open, click on the .CT file and open it with cheat engine then go to File > Open process > EoCApp.exe(the exe of divinity, once you are inside the game check one of the three options that will appear white box that says, "active" "description" "type" and "value"

BTW putting it on 30 or 25 is fine, more than that and the game starts having some problems because the clouds will get in the way and sometimes if you go too far all the npc will become green, doesn't affect in anyway but it's a little weird

Last edited by GastonArg; 13/07/14 11:01 PM.
Joined: Jul 2014
stranger
Offline
stranger
Joined: Jul 2014
Originally Posted by GastonArg
Downland the software CheatEngine, then with the game open, click on the .CT file and open it with cheat engine then go to File > Open process > EoCApp.exe(the exe of divinity, once you are inside the game check one of the three options that will appear white box that says, "active" "description" "type" and "value"


Thanks, got it working.

Do you know how to make a trainer using that script? I made one using the "generic trainer generator" option but it doesn't work.

Last edited by SieB; 13/07/14 11:27 PM.
Joined: Mar 2013
G
stranger
OP Offline
stranger
G
Joined: Mar 2013
made one, I can tell you where to go but making it I dont know why but sometimes it works and sometimes it doesnt...

go to file and then generate generic trainer etc...

I made this one and it works for me, it only changes(a little bit but I think it's just perfect this way in 25) the zoom out not the angle because changing the angle as cielos said before it will make all the map visible and that kinds of ruins the gameplay.

I set the F key to put it back to normal and the + and - to activate it

http://www.mediafire.com/download/8u2cohfw8shjfyo/1.EXE

Joined: Jul 2014
stranger
Offline
stranger
Joined: Jul 2014
Originally Posted by GastonArg
made one, I can tell you where to go but making it I dont know why but sometimes it works and sometimes it doesnt...

go to file and then generate generic trainer etc...

I made this one and it works for me, it only changes(a little bit but I think it's just perfect this way in 25) the zoom out not the angle because changing the angle as cielos said before it will make all the map visible and that kinds of ruins the gameplay.

I set the F key to put it back to normal and the + and - to activate it

http://www.mediafire.com/download/8u2cohfw8shjfyo/1.EXE


Thanks, not working for me though. I'll just stick to using the script with the cheat engine for now smile

Joined: Mar 2013
G
stranger
OP Offline
stranger
G
Joined: Mar 2013
did you activate it after opening the game, you need to click on the + and - to make it work

Last edited by GastonArg; 15/07/14 05:54 AM.
Joined: Jul 2014
D
stranger
Offline
stranger
D
Joined: Jul 2014
He Guys i am not realy in that technical stuff , i tried to insert the code but it just dont work smirk.
Can someone upload the Ct file ? that would be so great smile

Joined: Jul 2014
stranger
Offline
stranger
Joined: Jul 2014
Originally Posted by Derepowski
He Guys i am not realy in that technical stuff , i tried to insert the code but it just dont work smirk.
Can someone upload the Ct file ? that would be so great smile


Here you go.

http://www.firedrive.com/file/9526AA410A74205D

1. Load the game
2. ALT+TAB out
3. Load the camera.ct file
4. Click the Flashing computer icon in the top left and double click on EoCApp from the list
5. In the bottom section there is a box on the left hand side of some text that says cameratweak. Click that box and then two more will appear, click on those boxes but not the ones that open with them.
So the only boxes you should have a X in are cameratweak, zoom out max and camera angle tweak. Leave the other boxes unticked.
6. ALT+TAB back into the game and it should be working.

Last edited by SieB; 17/07/14 12:03 AM.
Joined: Jul 2014
D
stranger
Offline
stranger
D
Joined: Jul 2014
Hey thank you for the fast Answer smile
I will try it out today.

Joined: May 2013
apprentice
Offline
apprentice
Joined: May 2013
Been using this for a few days now and its fantastic. Gives you so much more control over the camera. Thanks To Too Latte for the code.

Joined: Sep 2014
E
stranger
Offline
stranger
E
Joined: Sep 2014
Hey, thanks for this awesome work! (First time I use CE).
But when I zoom out, there is like a fog appering on the screen.
There is any way to remove this effect an keep the screen clear of fog?

Joined: Jan 2011
old hand
Offline
old hand
Joined: Jan 2011
Originally Posted by EstebanRico
Hey, thanks for this awesome work! (First time I use CE).
But when I zoom out, there is like a fog appering on the screen.
There is any way to remove this effect an keep the screen clear of fog?


Not that I am aware of, so your zoom is working with the latest patch .177? Mine stopped working.

Joined: Aug 2016
I
stranger
Offline
stranger
I
Joined: Aug 2016
I'm really hoping someone sees this,

Having some issues getting this script to work with DoS:EE - I'm thinking that maybe the address for camera zoom was changed?

If anyone has managed to get this script working PLEASE share? Also sorry for the necro-thread.


Link Copied to Clipboard
Powered by UBB.threads™ PHP Forum Software 7.7.5