Bacon Mod

Please post here for questions and discussion about scenario, art and sound modding and the game editor for Distant Worlds.

Moderators: elliotg, Icemania

RogerBacon
Posts: 724
Joined: Wed May 17, 2000 8:00 am
Location: Miami, Florida, U.S.A.

RE: Bacon Mod

Post by RogerBacon »

ORIGINAL: Retreat1970

No popup asking about size. Otherwise same behavior (doesn't run).

OK. Thanks. I'm about to release 1.81. Maybe it will work with 2004 patch. I changed some build settings.
BTC 14UURmC4rD762RStsufKmaUjfXQrBvahU1
ETH 0x7c65139BC82A0BDC5b11F92001D5c5a112219f08
RogerBacon
Posts: 724
Joined: Wed May 17, 2000 8:00 am
Location: Miami, Florida, U.S.A.

RE: Bacon Mod

Post by RogerBacon »

Version 1.81 Released

Tailgunners

Bomber transfers

Optional BOAC (build only at colony)


Tailgunners - In the BaconSettings.txt there is a new entry tailGunnerReasearch. It is the name of the research that allows tail gunners on bombers. Get it from the research.txt. Copy it exactly including capitalization and spaces. Leave blank to remove tail gunners.

tailGunnerReasearch=Point Defense Weapons

BOAC
This affects the player only. If set to true the following effect occur. Ships (not bases) will only be able to build replacement fighterss/bombers when in a system with a colony. Players will be able to use Alt-7 to transfer bombers between ships and bases. Bases will construct fighters/bombers at double speed.
limitNewFighterBuildToColonies=true

Bomber Transfers
If playing with BOAC you will be able to transfer bombers from one ship or base to another. Select the target ship and press alt-4. Then select the ship or bomber to transfer and hit alt-7. If a bomber is selected it will go to the new ship or base. If a ship or base is selected all currently flying bombers (i.e. not in the hanger) will transfer up to 200% of the ship's capacity. Transfer range is double normal range.
BTC 14UURmC4rD762RStsufKmaUjfXQrBvahU1
ETH 0x7c65139BC82A0BDC5b11F92001D5c5a112219f08
CptAWatts
Posts: 12
Joined: Mon Oct 26, 2015 9:20 pm

RE: Bacon Mod

Post by CptAWatts »

Hello, just tried 1.81 and it still seems to hang.
User avatar
rjord2021
Posts: 2019
Joined: Fri Jun 14, 2013 2:47 am
Location: Sydney, Australia

RE: Bacon Mod

Post by rjord2021 »

ORIGINAL: RogerBacon

Version 1.81 Released

Tailgunners

Bomber transfers

Optional BOAC (build only at colony)


Tailgunners - In the BaconSettings.txt there is a new entry tailGunnerReasearch. It is the name of the research that allows tail gunners on bombers. Get it from the research.txt. Copy it exactly including capitalization and spaces. Leave blank to remove tail gunners.

tailGunnerReasearch=Point Defense Weapons

BOAC
This affects the player only. If set to true the following effect occur. Ships (not bases) will only be able to build replacement fighterss/bombers when in a system with a colony. Players will be able to use Alt-7 to transfer bombers between ships and bases. Bases will construct fighters/bombers at double speed.
limitNewFighterBuildToColonies=true

Bomber Transfers
If playing with BOAC you will be able to transfer bombers from one ship or base to another. Select the target ship and press alt-4. Then select the ship or bomber to transfer and hit alt-7. If a bomber is selected it will go to the new ship or base. If a ship or base is selected all currently flying bombers (i.e. not in the hanger) will transfer up to 200% of the ship's capacity. Transfer range is double normal range.



When I added the mod to the Distant Worlds Folder Windows 10 2004 came u with a message briefly when the zip file was being extracted.

It then opened up the following page...
https://docs.microsoft.com/en-us/window ... -antivirus


Nothing in the defender logs to say the exe was blocked.... Still investigating.
User avatar
rjord2021
Posts: 2019
Joined: Fri Jun 14, 2013 2:47 am
Location: Sydney, Australia

RE: Bacon Mod

Post by rjord2021 »

Not sure if this has anything to do with it........ when you run Distant Worlds Universe from Desktop icon or via Steam it comes up with the Menu screen where you click Play Distant Worlds to start the game. Bacon mod does not even start using this.

To start bacon mod I have to do to the Distant Worlds folder and click on the application exe file at which stage the bacon world message box appears after which distant worlds runs in the background.
User avatar
rjord2021
Posts: 2019
Joined: Fri Jun 14, 2013 2:47 am
Location: Sydney, Australia

RE: Bacon Mod

Post by rjord2021 »

Assuming that Windows 10 thinks the bacon mod is suspicious I turned off
- real time protection
- cloud delivered protection

None of that seemed to help.
RogerBacon
Posts: 724
Joined: Wed May 17, 2000 8:00 am
Location: Miami, Florida, U.S.A.

RE: Bacon Mod

Post by RogerBacon »

ORIGINAL: rjord1

Assuming that Windows 10 thinks the bacon mod is suspicious I turned off
- real time protection
- cloud delivered protection

None of that seemed to help.


OK. So no different that previous version rhen? Works for users without the 2004 update. Doesn't for those with the update. Darn. I was hoping I had a fix for it but I guess not.
BTC 14UURmC4rD762RStsufKmaUjfXQrBvahU1
ETH 0x7c65139BC82A0BDC5b11F92001D5c5a112219f08
User avatar
Retreat1970
Posts: 1125
Joined: Wed Nov 06, 2013 11:09 am
Location: Wisconsin

RE: Bacon Mod

Post by Retreat1970 »

Yeah. I was suspicious of Defender as well since there are documented 2004 changes to it, but after turning options off, adding files and folders to exclusions and double checking to see if they were off in power shell it's still the same. I wish I would have kept a list of everything I've tried.

I tried to run in safe mode and surprisingly DW original tried to run. It loaded then disappeared. Bacon, same behavior.
User avatar
Retreat1970
Posts: 1125
Joined: Wed Nov 06, 2013 11:09 am
Location: Wisconsin

RE: Bacon Mod

Post by Retreat1970 »

I figured out how to turn off Defender for good finally (services too), but alas, same problem.

Event viewer says this:

Faulting application name: DistantWorlds.exe, version: 1.9.5.12, time stamp: 0x58d3ecc8
Faulting module name: ntdll.dll, version: 10.0.19041.488, time stamp: 0x52319ca5
Exception code: 0xc0000005
Fault offset: 0x00048a38
Faulting process id: 0x3664
Faulting application start time: 0x01d6a10c9fac81b9
Faulting application path: C:\Matrix Games\Distant Worlds Universe\DistantWorlds.exe
Faulting module path: C:\WINDOWS\SYSTEM32\ntdll.dll
Report Id: 6ad55370-3341-40a5-acb4-ee8e24e5775f
Faulting package full name:
Faulting package-relative application ID:

Which references ntdll.dll if it means anything

The good news is that there's a Windows upgrade in the pipeline for this month. Version 20H2. Fingers Crossed.

Windows update 20H2 did not fix.
User avatar
rjord2021
Posts: 2019
Joined: Fri Jun 14, 2013 2:47 am
Location: Sydney, Australia

RE: Bacon Mod

Post by rjord2021 »

ORIGINAL: Retreat1970

I figured out how to turn off Defender for good finally (services too), but alas, same problem.

Event viewer says this:

Faulting application name: DistantWorlds.exe, version: 1.9.5.12, time stamp: 0x58d3ecc8
Faulting module name: ntdll.dll, version: 10.0.19041.488, time stamp: 0x52319ca5
Exception code: 0xc0000005
Fault offset: 0x00048a38
Faulting process id: 0x3664
Faulting application start time: 0x01d6a10c9fac81b9
Faulting application path: C:\Matrix Games\Distant Worlds Universe\DistantWorlds.exe
Faulting module path: C:\WINDOWS\SYSTEM32\ntdll.dll
Report Id: 6ad55370-3341-40a5-acb4-ee8e24e5775f
Faulting package full name:
Faulting package-relative application ID:

Which references ntdll.dll if it means anything

The good news is that there's a Windows upgrade in the pipeline for this month. Version 20H2. Fingers Crossed.
Faulting process id: 0x3664







This is a similar message to the Microsoft Flight Simulator "FSX" had last year as seen below in this comment

My game crashes after 10 or 30 or 20 minutes and it's random
Here is the event log

Faulting application name: fsx.exe, version: 10.0.61472.0, time stamp: 0x475e17d3
Faulting module name: ntdll.dll, version: 6.1.7601.24499, time stamp: 0x5d011861
Exception code: 0xc015000f
Fault offset: 0x000843cb
Faulting process id: 0x3664
Faulting application start time: 0x01d53d346c3c863e
Faulting application path: C:\Program Files (x86)\Microsoft Games\Microsoft Flight Simulator X\fsx.exe
Faulting module path: C:\Windows\SysWOW64\ntdll.dll
Report Id: 1d2bf2be-a929-11e9-a2be-e06995d105fc

The web page talking about the same issue but with FSX is at https://www.flightsim.com/vbfs/showthre ... atal-error


The solution to fix the issue for FSX with ntdll.dll was to turn down the settings.





RogerBacon...... if you look at the screenshot below you will see the top part shows normal Distant Worlds Universe at the top in windows 10 2004 where CPU is at 0.5% at the menu screen and power usage is very low.

Then look below that at the settings in windows 10 2004 where the Bacon mod is running as a background process where the CPU is at 69.6% and power usage is at very high..... No other apps had very high settings.

I believe this is what is causing windows 10 2004 to not run the bacon mod in the foreground, treating it like FSX flight simulator where the settings are too high so FSX crashes.


Is there something in the code for baconmod which would cause high cpu usage and power usage because I believe that is where the issue is.

At the time when the baconmod message box appears, distant worlds is running normally at the same cpu and power usage as normal distant worlds. As soon as you press ok on the message box, bacon mod disappears from foreground apps, goes into the background with high settings.

Roy






Image
Attachments
distantwo..onissue.jpg
distantwo..onissue.jpg (180.11 KiB) Viewed 676 times
User avatar
Retreat1970
Posts: 1125
Joined: Wed Nov 06, 2013 11:09 am
Location: Wisconsin

RE: Bacon Mod

Post by Retreat1970 »

Good work Roy.

My DW.exe blinks in and out of running and suspended until it disappears But...

If I run the program with a cpu affinity to the first core only it stays running (background of course only). Atm 14% cpu.
User avatar
rjord2021
Posts: 2019
Joined: Fri Jun 14, 2013 2:47 am
Location: Sydney, Australia

RE: Bacon Mod

Post by rjord2021 »

ORIGINAL: Retreat1970

Good work Roy.

My DW.exe blinks in and out of running and suspended until it disappears But...

If I run the program with a CPU affinity to the first core only it stays running (background of course only). Atm 14% CPU.


The interesting thing is that even though the CPU is going crazy there is no disk activity at all which suggests it is not getting far into the bacon mod before hanging. Physical Memory doesn't change at all so it does not appear to be getting to the main menu where menu music would be playing. I was trying to work out what conditions would cause CPU to be highly active but nothing on disk activity.

I added bacon mod into my firewall rules and the mod did not load at all in task manager. I then removed the firewall rules for bacon mod as well as distant worlds vanilla and after bacon mod showed the message box when I clicked ok something different happened. The mouse cursor went into thinking mode suggesting something was happening with the mod...... however 10 seconds later the normal cursor was back and the mod was in background processing again.
User avatar
Retreat1970
Posts: 1125
Joined: Wed Nov 06, 2013 11:09 am
Location: Wisconsin

RE: Bacon Mod

Post by Retreat1970 »

I've done that too and plus some. Too much actually.

I have to bow out of this thread for awhile for my sanity.

I know it's crazy but maybe Elliot could glance at it... I'd buy 2 copies of DW2 :)

RogerBacon
Posts: 724
Joined: Wed May 17, 2000 8:00 am
Location: Miami, Florida, U.S.A.

RE: Bacon Mod

Post by RogerBacon »

Retreat1970 and rjord1, thanks for your continued help in diagnosing the problem despite the seeming futility.
Here is a new exe to test. It is what I call version zero of the Bacon mod. Everything is disabled. If it still doesn't work then I will know it has something to do with the process and not the code.

https://www.dropbox.com/s/ghi4yzljngwes ... s.exe?dl=0

Please let me know if it works or not.
BTC 14UURmC4rD762RStsufKmaUjfXQrBvahU1
ETH 0x7c65139BC82A0BDC5b11F92001D5c5a112219f08
albertrc77
Posts: 2
Joined: Fri Oct 16, 2020 12:40 pm

RE: Bacon Mod

Post by albertrc77 »

Sorry, even worse for me, now it doesn't even stay "alive" on the task manager
User avatar
rjord2021
Posts: 2019
Joined: Fri Jun 14, 2013 2:47 am
Location: Sydney, Australia

RE: Bacon Mod

Post by rjord2021 »

Messages appearing in this post Event Viewer - Windows log application screen

After clicking ok on the bacon mod message box Distantworlds.exe appears in background processing for a few seconds...... so the change made has gone in the right direction as CPU showed as 1.5% instead of 69.6%..... so a good start.

However the mod does exit task manager.

It now appears in the event viewer with 3 messages where before no event viewer log was generated...... I will show the 3 messages below so you can track down the issue.


Message 1
A .Net runtime error

Application: DistantWorlds.exe
Framework Version: v4.0.30319
Description: The process was terminated due to an unhandled exception.
Exception Info: System.AccessViolationException
at System.Windows.Forms.UnsafeNativeMethods+ThemingScope.CreateActCtx(ACTCTX ByRef)
at System.Windows.Forms.UnsafeNativeMethods+ThemingScope.CreateActivationContext(System.String, Int32)
at System.Windows.Forms.Application.EnableVisualStylesInternal(System.String, Int32)
at System.Windows.Forms.Application.EnableVisualStyles()
at AdeiSmFbbeZGrsmmeB.Xe3uDLq1SwUX40GKys.eKMM4QooqcfUyCJEi3bB()
at AdeiSmFbbeZGrsmmeB.Xe3uDLq1SwUX40GKys.SofRtfIJrGO()
at <PrivateImplementationDetails>{7266CDA7-01D2-49E9-9919-A987E0EBA1B4}.Main()

Exception Info: System.Reflection.TargetInvocationException
at System.RuntimeMethodHandle.InvokeMethod(System.Object, System.Object[], System.Signature, Boolean)
at System.Reflection.RuntimeMethodInfo.UnsafeInvokeInternal(System.Object, System.Object[], System.Object[])
at System.Reflection.RuntimeMethodInfo.Invoke(System.Object, System.Reflection.BindingFlags, System.Reflection.Binder, System.Object[], System.Globalization.CultureInfo)
at _._.___()

Exception Info: System.Reflection.TargetInvocationException
at System.RuntimeMethodHandle.InvokeMethod(System.Object, System.Object[], System.Signature, Boolean)
at System.Reflection.RuntimeMethodInfo.UnsafeInvokeInternal(System.Object, System.Object[], System.Object[])
at System.Reflection.RuntimeMethodInfo.Invoke(System.Object, System.Reflection.BindingFlags, System.Reflection.Binder, System.Object[], System.Globalization.CultureInfo)
at System.RuntimeType.InvokeMember(System.String, System.Reflection.BindingFlags, System.Reflection.Binder, System.Object, System.Object[], System.Reflection.ParameterModifier[], System.Globalization.CultureInfo, System.String[])
at System.Type.InvokeMember(System.String, System.Reflection.BindingFlags, System.Reflection.Binder, System.Object, System.Object[])







Message 2
An Application Error

Faulting application name: DistantWorlds.exe, version: 1.9.5.12, time stamp: 0x5000a574
Faulting module name: KERNELBASE.dll, version: 10.0.19041.572, time stamp: 0x979ddb1d
Exception code: 0xe0434352
Fault offset: 0x00129ab2
Faulting process id: 0x1cf4
Faulting application start time: 0x01d6a3dec0f19812
Faulting application path: C:\Program Files (x86)\Steam\steamapps\common\Distant Worlds Universe\DistantWorlds.exe
Faulting module path: C:\WINDOWS\System32\KERNELBASE.dll
Report Id: d91e8647-ade2-4773-a634-59b72602a1f7
Faulting package full name:
Faulting package-relative application ID:





Message 3
A Windows Error Reporting Message

Fault bucket 2031614320128607854, type 5
Event Name: CLR20r3
Response: Not available
Cab Id: 0

Problem signature:
P1: DistantWorlds.exe
P2: missing
P3: 5000a574
P4: System.Windows.Forms
P5: 4.0.0.0
P6: 5f2a0776
P7: 6da1
P8: 77
P9: System.AccessViolationException
P10:

Attached files:
\\?\C:\ProgramData\Microsoft\Windows\WER\Temp\WERF4BC.tmp.mdmp
\\?\C:\ProgramData\Microsoft\Windows\WER\Temp\WERF673.tmp.WERInternalMetadata.xml
\\?\C:\ProgramData\Microsoft\Windows\WER\Temp\WERF6B2.tmp.xml
\\?\C:\ProgramData\Microsoft\Windows\WER\Temp\WERF6C0.tmp.csv
\\?\C:\ProgramData\Microsoft\Windows\WER\Temp\WERF79B.tmp.txt

These files may be available here:
\\?\C:\ProgramData\Microsoft\Windows\WER\ReportArchive\AppCrash_DistantWorlds.ex_95f6922f8b5457c6a4336194e97a8ae2d74eeea5_fb2c38fb_d343613a-a67a-41f8-b904-29a745c7f2b0

Analysis symbol:
Rechecking for solution: 0
Report Id: d91e8647-ade2-4773-a634-59b72602a1f7
Report Status: 268435456
Hashed bucket: a5da4cc2a4dee0e7cc31be75cfdcc66e




Ichecked the appcrash distantworlds folder..... it wpuld not let me open the folder however when I hovered over the folder it told me AppCrash_DistantWorlds.ex_8b674e4ec9621db8a61714b7ef8d5add1e4626d_fb2c38fb_7cfe0ac2-974a-459b-861b-fa1b7b8055aa was empty.

I also looked at the folder C:\ProgramData\Microsoft\Windows\WER\Temp...... while Distantworlds exits around 6 or 7 files are generated in ProgramData\Microsoft\Windows\WER\Temp but disappear in seconds..... I did manage to quickly look at one file but it was empty.



Roy




User avatar
rjord2021
Posts: 2019
Joined: Fri Jun 14, 2013 2:47 am
Location: Sydney, Australia

RE: Bacon Mod

Post by rjord2021 »

Messages appearing in this post Event Viewer - Windows log administrative events
messages refer to KERNELBASE.dll

Message 1
.net runtime error

Application: DistantWorlds.exe
Framework Version: v4.0.30319
Description: The process was terminated due to an unhandled exception.
Exception Info: System.AccessViolationException
at System.Windows.Forms.UnsafeNativeMethods+ThemingScope.CreateActCtx(ACTCTX ByRef)
at System.Windows.Forms.UnsafeNativeMethods+ThemingScope.CreateActivationContext(System.String, Int32)
at System.Windows.Forms.Application.EnableVisualStylesInternal(System.String, Int32)
at System.Windows.Forms.Application.EnableVisualStyles()
at AdeiSmFbbeZGrsmmeB.Xe3uDLq1SwUX40GKys.eKMM4QooqcfUyCJEi3bB()
at AdeiSmFbbeZGrsmmeB.Xe3uDLq1SwUX40GKys.SofRtfIJrGO()
at <PrivateImplementationDetails>{7266CDA7-01D2-49E9-9919-A987E0EBA1B4}.Main()

Exception Info: System.Reflection.TargetInvocationException
at System.RuntimeMethodHandle.InvokeMethod(System.Object, System.Object[], System.Signature, Boolean)
at System.Reflection.RuntimeMethodInfo.UnsafeInvokeInternal(System.Object, System.Object[], System.Object[])
at System.Reflection.RuntimeMethodInfo.Invoke(System.Object, System.Reflection.BindingFlags, System.Reflection.Binder, System.Object[], System.Globalization.CultureInfo)
at _._.___()

Exception Info: System.Reflection.TargetInvocationException
at System.RuntimeMethodHandle.InvokeMethod(System.Object, System.Object[], System.Signature, Boolean)
at System.Reflection.RuntimeMethodInfo.UnsafeInvokeInternal(System.Object, System.Object[], System.Object[])
at System.Reflection.RuntimeMethodInfo.Invoke(System.Object, System.Reflection.BindingFlags, System.Reflection.Binder, System.Object[], System.Globalization.CultureInfo)
at System.RuntimeType.InvokeMember(System.String, System.Reflection.BindingFlags, System.Reflection.Binder, System.Object, System.Object[], System.Reflection.ParameterModifier[], System.Globalization.CultureInfo, System.String[])
at System.Type.InvokeMember(System.String, System.Reflection.BindingFlags, System.Reflection.Binder, System.Object, System.Object[])





Message 2
Application error

Faulting application name: DistantWorlds.exe, version: 1.9.5.12, time stamp: 0x5000a574
Faulting module name: KERNELBASE.dll, version: 10.0.19041.572, time stamp: 0x979ddb1d
Exception code: 0xe0434352
Fault offset: 0x00129ab2
Faulting process id: 0x1cf4
Faulting application start time: 0x01d6a3dec0f19812
Faulting application path: C:\Program Files (x86)\Steam\steamapps\common\Distant Worlds Universe\DistantWorlds.exe
Faulting module path: C:\WINDOWS\System32\KERNELBASE.dll
Report Id: d91e8647-ade2-4773-a634-59b72602a1f7
Faulting package full name:
Faulting package-relative application ID:
RogerBacon
Posts: 724
Joined: Wed May 17, 2000 8:00 am
Location: Miami, Florida, U.S.A.

RE: Bacon Mod

Post by RogerBacon »

Axcess violation exception seems really strange. Did you try running it as admin?
BTC 14UURmC4rD762RStsufKmaUjfXQrBvahU1
ETH 0x7c65139BC82A0BDC5b11F92001D5c5a112219f08
User avatar
Retreat1970
Posts: 1125
Joined: Wed Nov 06, 2013 11:09 am
Location: Wisconsin

RE: Bacon Mod

Post by Retreat1970 »

It has to be Windows Defender. Even though I excluded bacon and even stopped the WinDef process (no AV at all) something is still preventing the code to run, and that's because WinDef always viewed Bacon as a trojan and would insta-quarantine. There's some stealth WinDef change in 2004 I believe.
DonH58
Posts: 517
Joined: Fri Oct 13, 2006 4:40 pm
Location: Whidbey Island, Wa.

RE: Bacon Mod

Post by DonH58 »

I'm thankful I haven't updated and can still use the bacon mod but windows defender deletes the Bacon Mod DW exe ever so often and I have to reinstall it. Now that my company retired me I will have time to experiment with this and see if there is anything I can do to help.
AMD Ryzen 5 5600X
ASUS TUF Gaming B550-Plus MB
Radeon Rx 6900 XT Graphics Card
T-Force Vulcan Z DDR4 32GB RAM
SSD 1TB NVMe 1.3 M.2
EVGA 1300W PSU
Win 11
DW2 Beta Tester
Post Reply

Return to “Design and Modding”