Expansion mod

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

Moderators: Icemania, elliotg

Alvek
Posts: 171
Joined: Fri Mar 24, 2023 9:47 pm
Location: Kyiv

Re: Expansion mod

Post by Alvek »

Retreat1970 wrote: Sun May 28, 2023 11:42 pm @alvek

Can you verify weapons are sounding on your end? I am getting no weapon sounds in 1.01 but when I revert back to 1.82 I do.

Also the issue I have with a shipset not loading as described in the refreshed mod thread seems to also be a problem with 1.01 and not 1.82.

Great work btw I like the load time reduction and the general quicker feel to large games.
There was some bugs with sounds and crashes in 1.01 and 1.00, wait for 1.03 to check again. Probably will finish 1.03 this week.
I will look into shipset problem, probably another thing I broken.
Alvek
Posts: 171
Joined: Fri Mar 24, 2023 9:47 pm
Location: Kyiv

Re: Expansion mod

Post by Alvek »

Today fixed error with loading DWUR and incorrect parsing of scaling and BaconSettings.txt.
Sound of explosion working but lasers and other looks like not. Tomorrow will look into where the problem is.
Alvek
Posts: 171
Joined: Fri Mar 24, 2023 9:47 pm
Location: Kyiv

Re: Expansion mod

Post by Alvek »

@Retreat1970
Fixed sound of weapons.
Shipset loading without problems.
User avatar
Retreat1970
Posts: 1125
Joined: Wed Nov 06, 2013 11:09 am
Location: Wisconsin

Re: Expansion mod

Post by Retreat1970 »

I have a lot of ideas but I don't want to write an essay of modifications I'd like to see. I'll just throw a few things out here and there and see if one sticks. Totally up to you.

1. I wish damage control could fix warp drives first. Sometimes they do, most times they don't.

2. If the research and intel centers could give a small bonus to research or spying for each building built I think they would be more useful.
Alvek
Posts: 171
Joined: Fri Mar 24, 2023 9:47 pm
Location: Kyiv

Re: Expansion mod

Post by Alvek »

Retreat1970 wrote: Wed May 31, 2023 9:19 pm I have a lot of ideas but I don't want to write an essay of modifications I'd like to see. I'll just throw a few things out here and there and see if one sticks. Totally up to you.

1. I wish damage control could fix warp drives first. Sometimes they do, most times they don't.

2. If the research and intel centers could give a small bonus to research or spying for each building built I think they would be more useful.
1.I think component repair order is same as component order in ship design. Will look into it, I already want to add some QoL features to ship design window.
2.Need to look at code, bonus formulas and think about possible ways to implement this idea. Pirate bonus on research already massive and adding more could be game breaking.

There is probably some QoL features in DW2 that I can add to DW:U, will look at some gameplay videos.
Alvek
Posts: 171
Joined: Fri Mar 24, 2023 9:47 pm
Location: Kyiv

Re: Expansion mod

Post by Alvek »

Version 1.03
https://shorturl.at/bzJ49
In-game hotkeys
Fixed image errors in history window
Fixed MiningShip using GasMiningShip image (BaconMod)
Construction ship queue editor
Some text position fixed in design window
Fixed BaconMod ignoring float value settings in BaconSettings.txt in case when current windows decimal separator is not dot (BaconMod)
Fixed sound bug
UPS counter
User avatar
CaesarAug
Posts: 378
Joined: Tue Jun 23, 2015 4:54 am

Re: Expansion mod

Post by CaesarAug »

Oh wow! Awesome! Thanks!
User avatar
salemonz
Posts: 123
Joined: Tue May 19, 2015 2:37 pm
Location: USA

Re: Expansion mod

Post by salemonz »

FYI Installed Expansion Mod 1.03. My weapons fire doesn't seem to be playing either. Explosions, music and other effects are good, but my weapons don't make sounds.

I'm using Baconmod 1.82 and DWUR 0.9.4
Alvek
Posts: 171
Joined: Fri Mar 24, 2023 9:47 pm
Location: Kyiv

Re: Expansion mod

Post by Alvek »

[03.06.2023]
Version 1.04
https://shorturl.at/QRX18
Fixed weapon sounds bug
User avatar
salemonz
Posts: 123
Joined: Tue May 19, 2015 2:37 pm
Location: USA

Re: Expansion mod

Post by salemonz »

Sounds work in 1.04. Thank you!
sdlkfjhkejskj
Posts: 3
Joined: Fri Jun 02, 2023 6:42 pm

Re: Expansion mod

Post by sdlkfjhkejskj »

Installing ExpansionMod to vanilla game installation and running through the tutorials gives the error below. It's not always from the same tutorial so must be about game state initialization. I could start a normal game successfully but did not try 7 game starts in a row (like tutorials).

Code: Select all

---------------------------
Error while starting a new game
---------------------------
There was an error while attempting to start a new game. If you are using a theme, please revert to the default Distant Worlds theme and try again

Error Details:

System.NullReferenceException: Object reference not set to an instance of an object.

   at BaconDistantWorlds.BaconHabitat.ReviewPirateControl(Habitat planet, Double timePassed)

   at DistantWorlds.Types.Habitat.DoTasks(DateTime time)

   at DistantWorlds.Start.method_82(GalaxyShape galaxyShape_0, Int32 int_1, Int32 int_2, Boolean bool_5, Double double_1, Int32 int_3, Double double_2, Double double_3, Int32 int_4, Double double_4, Double double_5, Int32 int_5, Double double_6, EmpireStart empireStart_0, EmpireStartList empireStartList_0, VictoryConditions victoryConditions_0, EmpireVictoryConditions empireVictoryConditions_0, EmpireVictoryConditions empireVictoryConditions_1, Boolean bool_6, Boolean bool_7, GameStartResets gameStartResets_0)
---------------------------
OK   
---------------------------
Alvek
Posts: 171
Joined: Fri Mar 24, 2023 9:47 pm
Location: Kyiv

Re: Expansion mod

Post by Alvek »

[03.06.2023]
Version 1.05
https://shorturl.at/lmwxH
Tutorial bug fixed (BaconMod)
Alvek
Posts: 171
Joined: Fri Mar 24, 2023 9:47 pm
Location: Kyiv

Re: Expansion mod

Post by Alvek »

[04.06.2023]
Version 1.06
https://shorturl.at/fiHR0
Game start major speed improvement, load times on my PC with large graphic\content mod and clean game (BM - BaconMod, EM - ExpansionMod) :

DWUR mod:
EM - ~30s
BM - ~220s
Orig - ~240s

No mods:
EM - ~16-18
BM - ~52
Orig - ~47
Alvek
Posts: 171
Joined: Fri Mar 24, 2023 9:47 pm
Location: Kyiv

Re: Expansion mod

Post by Alvek »

Version 1.06 have problem with planet images, looking into it now.
Alvek
Posts: 171
Joined: Fri Mar 24, 2023 9:47 pm
Location: Kyiv

Re: Expansion mod

Post by Alvek »

[04.06.2023]
Version 1.06.01
https://shorturl.at/oIUV3
Fixed planets cloud overlay
User avatar
Retreat1970
Posts: 1125
Joined: Wed Nov 06, 2013 11:09 am
Location: Wisconsin

Re: Expansion mod

Post by Retreat1970 »

1.06.01

ctd initial start up.

System.AggregateException: One or more errors occurred. ---> System.AggregateException: One or more errors occurred. ---> System.NullReferenceException: Object reference not set to an instance of an object.
at System.Drawing.Bitmap..ctor(Image original)
at DistantWorlds.Main.<>c__DisplayClass1692_1.<LoadTroops>b__5()
at System.Threading.Tasks.Task.Execute()
--- End of inner exception stack trace ---
at System.Threading.Tasks.Task.WaitAll(Task[] tasks, Int32 millisecondsTimeout, CancellationToken cancellationToken)
at DistantWorlds.Main.LoadTroops(String string_30, String string_31, String string_32)
at System.Threading.Tasks.Parallel.<>c__DisplayClass4_0.<Invoke>b__0()
--- End of inner exception stack trace ---
at System.Threading.Tasks.Parallel.Invoke(ParallelOptions parallelOptions, Action[] actions)
at DistantWorlds.Main.MainInitImages()
at DistantWorlds.Main.MainInit(Int32 width, Int32 height, Boolean windowedMode)
at DistantWorlds.Main..ctor(Int32 width, Int32 height, Boolean windowedMode)
at DistantWorlds.Start.Start_Load(Object sender, EventArgs e)
at System.Windows.Forms.Form.OnLoad(EventArgs e)
at System.Windows.Forms.Form.SetVisibleCore(Boolean value)
at System.Windows.Forms.Application.ThreadContext.RunMessageLoopInner(Int32 reason, ApplicationContext context)
at System.Windows.Forms.Application.ThreadContext.RunMessageLoop(Int32 reason, ApplicationContext context)
at Class5.smethod_0()
---> (Inner Exception #0) System.AggregateException: One or more errors occurred. ---> System.NullReferenceException: Object reference not set to an instance of an object.
at System.Drawing.Bitmap..ctor(Image original)
at DistantWorlds.Main.<>c__DisplayClass1692_1.<LoadTroops>b__5()
at System.Threading.Tasks.Task.Execute()
--- End of inner exception stack trace ---
at System.Threading.Tasks.Task.WaitAll(Task[] tasks, Int32 millisecondsTimeout, CancellationToken cancellationToken)
at DistantWorlds.Main.LoadTroops(String string_30, String string_31, String string_32)
at System.Threading.Tasks.Parallel.<>c__DisplayClass4_0.<Invoke>b__0()
---> (Inner Exception #0) System.NullReferenceException: Object reference not set to an instance of an object.
at System.Drawing.Bitmap..ctor(Image original)
at DistantWorlds.Main.<>c__DisplayClass1692_1.<LoadTroops>b__5()
at System.Threading.Tasks.Task.Execute()<---

---> (Inner Exception #1) System.NullReferenceException: Object reference not set to an instance of an object.
at System.Drawing.Bitmap..ctor(Image original)
at DistantWorlds.Main.<>c__DisplayClass1692_1.<LoadTroops>b__5()
at System.Threading.Tasks.Task.Execute()<---

---> (Inner Exception #2) System.NullReferenceException: Object reference not set to an instance of an object.
at System.Drawing.Bitmap..ctor(Image original)
at DistantWorlds.Main.<>c__DisplayClass1692_1.<LoadTroops>b__5()
at System.Threading.Tasks.Task.Execute()<---

---> (Inner Exception #3) System.NullReferenceException: Object reference not set to an instance of an object.
at System.Drawing.Bitmap..ctor(Image original)
at DistantWorlds.Main.<>c__DisplayClass1692_1.<LoadTroops>b__5()
at System.Threading.Tasks.Task.Execute()<---

---> (Inner Exception #4) System.NullReferenceException: Object reference not set to an instance of an object.
at System.Drawing.Bitmap..ctor(Image original)
at DistantWorlds.Main.<>c__DisplayClass1692_1.<LoadTroops>b__5()
at System.Threading.Tasks.Task.Execute()<---
<---
Alvek
Posts: 171
Joined: Fri Mar 24, 2023 9:47 pm
Location: Kyiv

Re: Expansion mod

Post by Alvek »

[04.06.2023]
Version 1.06.02
https://shorturl.at/dlHXY
Fixed troops load bug
Alvek
Posts: 171
Joined: Fri Mar 24, 2023 9:47 pm
Location: Kyiv

Re: Expansion mod

Post by Alvek »

Discord link, if anyone have questions about mod
https://discord.gg/wJRcHWJaKG
Alvek
Posts: 171
Joined: Fri Mar 24, 2023 9:47 pm
Location: Kyiv

Re: Expansion mod

Post by Alvek »

[04.06.2023]
Version 1.06.03
https://shorturl.at/vITZ2
Reverted some improvements as they messed up images
User avatar
Retreat1970
Posts: 1125
Joined: Wed Nov 06, 2013 11:09 am
Location: Wisconsin

Re: Expansion mod

Post by Retreat1970 »

1.06.02

Ship and base symbols missing

Edit nvm
Post Reply

Return to “Design and Modding”