The Golf Club

The Golf Club

View Stats:
tamuchan Jul 5, 2016 @ 1:24am
Patch to fix Alt+Enter problem
I made a patch to fix Alt+Enter problem.

Edit the below values by a binary editor.

Assembly-CSharp.dll (size 3,432,448 bytes) of the latest version(2015/12/16)
Address Value
85889: 3A -> 2D
8588A: 12 -> 15

8588D: 00 -> 02
8588E: 02 -> 28
8588F: 28 -> 4B
85890: 4B -> 14
85891: 14 -> 00
85892: 00 -> 06
85893: 06 -> 2D
85894: 3A -> 0B
85895: 07 -> 02
85896: 00 -> 16
85897: 00 -> 17
85898: 00 -> 14
85899: 02 -> 16

8589C: 60 -> 56

On my laptop,
Assembly-CSharp.dll is in C:\Program Files (x86)\Steam\SteamApps\common\TheGolfClub\golf_Data\Managed



Dear the developers,

In Assembly-CSharp.dll of the latest version(2015/12/16)

.method private hidebysig instance void
Update() cil managed
{
// Code size 52 (0x34)
.maxstack 8
IL_0000: ldarg.0
IL_0001: ldfld class [UnityEngine]UnityEngine.RenderTexture CourseGenerator::heightMap
IL_0006: ldnull
IL_0007: call bool [UnityEngine]UnityEngine.Object::op_Inequality(class [UnityEngine]UnityEngine.Object,
class [UnityEngine]UnityEngine.Object)
IL_000c: brfalse IL_0033

IL_0011: ldarg.0
IL_0012: ldfld class [UnityEngine]UnityEngine.RenderTexture CourseGenerator::heightMap
IL_0017: callvirt instance bool [UnityEngine]UnityEngine.RenderTexture::IsCreated()
IL_001c: brtrue IL_0033

IL_0021: ldarg.0
IL_0022: call instance bool CourseGenerator::IsGeneratorActive()
IL_0027: brtrue IL_0033

IL_002c: ldarg.0
IL_002d: ldc.i4.0
IL_002e: call instance void CourseGenerator::Create(bool)
IL_0033: ret
} // end of method CourseGenerator::Update


I changed the codes after IL_002c.


.method private hidebysig instance void
Update() cil managed
{
// Code size 55 (0x37)
.maxstack 8
IL_0000: ldarg.0
IL_0001: ldfld class [UnityEngine]UnityEngine.RenderTexture CourseGenerator::heightMap
IL_0006: ldnull
IL_0007: call bool [UnityEngine]UnityEngine.Object::op_Inequality(class [UnityEngine]UnityEngine.Object,
class [UnityEngine]UnityEngine.Object)
IL_000c: brfalse IL_0037

IL_0011: ldarg.0
IL_0012: ldfld class [UnityEngine]UnityEngine.RenderTexture CourseGenerator::heightMap
IL_0017: callvirt instance bool [UnityEngine]UnityEngine.RenderTexture::IsCreated()
IL_001c: brtrue IL_0037

IL_0021: ldarg.0
IL_0022: call instance bool CourseGenerator::IsGeneratorActive()
IL_0027: brtrue IL_0037

IL_002c: ldarg.0
IL_002d: ldc.i4.0
IL_002e: ldc.i4.1
IL_002f: ldnull
IL_0030: ldc.i4.0 // resetLastSurface=0 (In the old version(2015/12/08) resetLastSurface=1)
IL_0031: ldc.i4.0
IL_0032: call instance void CourseGenerator::BeginGenerate(bool,
bool,
class [System.Core]System.Action,
bool,
bool)

IL_0037: ret
} // end of method CourseGenerator::Update

Please fix the codes of method CourseGenerator::Update .
< >
Showing 1-9 of 9 comments
B✪✪tsy Sep 1, 2016 @ 12:16pm 
I only just found out that 'Alt Enter' to go back to full screen actually opens an other instance of the game and keeps the windowed screen running on the background. Press Alt+Enter 4 times and you have 15 fps due to 4 instances of the game running at once.
SaveZ Sep 2, 2016 @ 10:18am 
Originally posted by B00tsy:
I only just found out that 'Alt Enter' to go back to full screen actually opens an other instance of the game and keeps the windowed screen running on the background. Press Alt+Enter 4 times and you have 15 fps due to 4 instances of the game running at once.
Same. I'm now used to restart the game since even changing the v-sync option breaks the game :-(
Yadatsme Sep 3, 2016 @ 3:40pm 
Same here. Had to quit an almost completed round with friend. I've invested a great deal of time in this game. I play multiplayer. My buddy and I are raging incoherently at one another over aborted games.
This needs to be fixed or rufund both of us please.
Yadatsme Sep 3, 2016 @ 3:43pm 
Sorry. Now I'm raging at you.
I'll try your patch and see it it works and get back to you. Just need an hour to 'shrug' it off.
Yadatsme Sep 3, 2016 @ 3:47pm 
Can't edit in notepad
Yadatsme Sep 3, 2016 @ 3:48pm 
Any 'tiny' no brainer editors?
The Pitts Sep 4, 2016 @ 12:09am 
I still use AXE (Advanced heX Editor), which is just 250K (no, really) but hasn't had any development or support for the past several years. However, I would argue that if you don't already have a binary editor and are not familiar with at least looking at files at that level that you should not risk making fundamental changes to executable code. Should you choose to ignore that warning, then just one other - BACKUP before making changes.
Yadatsme Sep 4, 2016 @ 4:30am 
Hmmm... There seems to six side to this solution... ;-)
I found the file but have done nothing yet. I'll back it up to be sure.
Yadatsme Sep 4, 2016 @ 4:37am 
If HB-S isn't going to fix this, I have no choice but to try. My online golfing buddy gets pissed when I have to quit out. Rightfully so. But his game simply says I'm "Away". It should say I'm "Offline".
We're likly just going to give up TGC if this continues. When my game loses focus to the desktop, (game goes "Windowed") its not worth continues play. ALT-Enter just make things that much worse.
< >
Showing 1-9 of 9 comments
Per page: 15 30 50