heirofforce: 2. If I click on the DAOrigins.exe the game starts directly.
Oh man, then it's easier than I thought. We don't even need any scripts. We only need to modify the shortcut a bit. Could you try the instructions below and let me know if it worked? If it did, I guess I could write this on a new topic in case others need this information.
1. Make a copy of your Dragon Age Origins shortcut on your desktop. (Just in case)
2. Right click the shortcut copy and choose "Properties"
3. In the TARGET line, you should see something like:
"C:\GOG Games\Dragon Age Origins\DAOriginsLauncher.exe" Note: The path may vary depending on your install location. If the exe file is DAOriginsLauncher.exe, change the ending from
DAOriginsLauncher.exe to
bin_ship\DAOrigins.exe so the whole TARGET line now shows:
"C:\GOG Games\Dragon Age Origins\bin_ship\DAOrigins.exe" Next, to the beginning of the TARGET line we need to add this:
cmd.exe /c start "Dragon Age Origins" /affinity 55 Now the whole TARGET line should show something like this:
cmd.exe /c start "Dragon Age Origins" /affinity 55 "C:\GOG Games\Dragon Age Origins\bin_ship\DAOrigins.exe" Click
Apply.
Optional: You'll notice the shortcut icon changes to the command prompt icon. Before you close the shortcut properties, you can change your icon -> just click the "Change Icon..." button and navigate to the C:\GOG Games\Dragon Age Origins and select either DAOrigins.exe or DAOriginsLauncher.exe and use the icon from there.
How to calculate which processors to use What controls the used processors is the
/affinity 55 - you can change the processors to your liking. You want to keep to the even numbered CPUs, though. (First CPU is CPU 0, not CPU 1.) The odd number ones are your hyperthreading counterparts, if you have hyperthreading on. To calculate your CPUs, open calculator (Start -> type "calc" and press enter), then switch to Programmer calculator, select HEX, select "Bit toggling keypad". You will see a bunch of zeros with every fourth zero having a number below. Starting from the bottom right-hand corner the first bit is CPU 0, second from the right is CPU 1, third from the right is CPU 2, etc. Click on bits that correspond to the CPUs you want to enable. In my case I selected CPUs 0, 2, 4, 6. When you click the desired bits, look at the resulting number on the top. If you clicked the bits 0, 2, 4 and 6, the number should be 55. That is the HEX value of what we clicked. Add this HEX value to the affinity. If you selected for example CPUs 2, 4, 6 and 8, the value would be 154 and you would want to add
/affinity 154 in the TARGET line.
To verify the changes worked 1. Launch Dragon Age Origins from this shortcut we modified.
2. Alt+TAB back to Windows.
3. Open Task Manager (right-click task bar and select Task Manager or press Ctrl+Shift+ESC).
4. Go to Details tab.
5. Look for the DAOrigins.exe and right-click it
6. Select "Set Affinity" -> all the other CPUs should be unchecked, except the ones we have set. If you used affinity 55, then only CPUs 0, 2, 4 and 6 should be checked. If so, it worked.
If it worked, you can now forget about this whole ordeal and just launch Dragon Age Origins from that shortcut. No more crashing due to hyperthreading.