Page 22 of 71
RE: "Hyping" my forthcoming mod (pun intended)
Posted: Wed Dec 20, 2017 8:14 pm
by RogerBacon
ORIGINAL: aldehyt
At pirate gameplay, built freighters and other (SMUGGLERS), dont get neutral flag, is any solution for this ?
Can you elaborate? Is this somethign with teh Bacon Mod or the game in general. Smugglers have a chance of being detected as pirates. If detected they will be shot at -- even by the empire that requested them to smuggle goods. Go figure.
ORIGINAL: Dudok22
This happens when I try to start a new game. few times it actually loaded but crashed few minutes into the new game.
Code: Select all
************** Exception Text **************
System.NullReferenceException: Object reference not set to an instance of an object.
at BaconDistantWorlds.BaconBuiltObject.HugeProcessingSpanActions(BuiltObject ship)
at DistantWorlds.Types.BuiltObject.DoTasks(DateTime time, Int64 starDate, Boolean inView)
The mod should now no longer require you to hit a key right away but from that stack trace the only thing that could be causing a null reference exception is the global varibale I use and which is initialized on the first key press.
Try pressing a key as soon as the game loads and see if that solves your problem.
ORIGINAL: aldehyt
Your mod barely working with others mods, so many Array OutOfBounds, i hope you know how to fix that, cause mod is great.
Which mod are you using it with? Do you get a popup box with the error message or a crash?
RE: "Hyping" my forthcoming mod (pun intended)
Posted: Thu Dec 21, 2017 4:13 am
by Sithuk
Hi Roger, great work here, any update on the question below?
ORIGINAL: Sithuk
Hi Roger, is there anyway you can have the galaxy screen view (hotkey g) remember the last selected menu options? It is frustrating when searching for resource locations to constantly have to reselect the drop down menu choices for a particular resource.
RE: "Hyping" my forthcoming mod (pun intended)
Posted: Thu Dec 21, 2017 4:27 am
by aldehyt
Can you elaborate? Is this somethign with teh Bacon Mod or the game in general. Smugglers have a chance of being detected as pirates. If detected they will be shot at -- even by the empire that requested them to smuggle goods. Go figure.
Every pirate freighter, passanger ship, mining ship should be not detectable by other empires and other pirates as enemy - should be netrual. In pirate case, all private ships, are recognizing as my faction, so they are attacking everywhere by everyone, I cant post links, so i send it in private message.
Error 1: During creating world:(Vanilla no other mods, only your) The object reference has not been set to the instance of the object.
Code: Select all
System.NullReferenceException: Odwołanie do obiektu nie zostało ustawione na wystąpienie obiektu.
w BaconDistantWorlds.BaconBuiltObject.HugeProcessingSpanActions(BuiltObject ship)
w DistantWorlds.Types.BuiltObject.DoTasks(DateTime time, Int64 starDate, Boolean inView)
w DistantWorlds.Start.method_76(Galaxy galaxy_0, Empire empire_0)
w DistantWorlds.Start.method_77(Game game_1)
w DistantWorlds.Start.btnStartNewGameStart_Click(Object sender, EventArgs e)
w System.Windows.Forms.Control.OnClick(EventArgs e)
w System.Windows.Forms.Button.OnClick(EventArgs e)
w DistantWorlds.Controls.GlassButton.OnClick(EventArgs e)
w System.Windows.Forms.Button.OnMouseUp(MouseEventArgs mevent)
w DistantWorlds.Controls.GlassButton.OnMouseUp(MouseEventArgs e)
w System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)
w System.Windows.Forms.Control.WndProc(Message& m)
w System.Windows.Forms.ButtonBase.WndProc(Message& m)
w System.Windows.Forms.Button.WndProc(Message& m)
w System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
w System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
w System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
RE: "Hyping" my forthcoming mod (pun intended)
Posted: Thu Dec 21, 2017 10:19 am
by RogerBacon
ORIGINAL: Sithuk
Hi Roger, great work here, any update on the question below?
ORIGINAL: Sithuk
Hi Roger, is there anyway you can have the galaxy screen view (hotkey g) remember the last selected menu options? It is frustrating when searching for resource locations to constantly have to reselect the drop down menu choices for a particular resource.
Sorry. I haven't had a chance to look in to it yet.
RE: "Hyping" my forthcoming mod (pun intended)
Posted: Thu Dec 21, 2017 10:24 am
by RogerBacon
ORIGINAL: aldehyt
Can you elaborate? Is this somethign with teh Bacon Mod or the game in general. Smugglers have a chance of being detected as pirates. If detected they will be shot at -- even by the empire that requested them to smuggle goods. Go figure.
Every pirate freighter, passanger ship, mining ship should be not detectable by other empires and other pirates as enemy - should be netrual. In pirate case, all private ships, are recognizing as my faction, so they are attacking everywhere by everyone, I cant post links, so i send it in private message.
Error 1: During creating world:(Vanilla no other mods, only your) The object reference has not been set to the instance of the object.
Code: Select all
System.NullReferenceException: Odwołanie do obiektu nie zostało ustawione na wystąpienie obiektu.
w BaconDistantWorlds.BaconBuiltObject.HugeProcessingSpanActions(BuiltObject ship)
w DistantWorlds.Types.BuiltObject.DoTasks(DateTime time, Int64 starDate, Boolean inView)
w DistantWorlds.Start.method_76(Galaxy galaxy_0, Empire empire_0)
w DistantWorlds.Start.method_77(Game game_1)
w DistantWorlds.Start.btnStartNewGameStart_Click(Object sender, EventArgs e)
w System.Windows.Forms.Control.OnClick(EventArgs e)
w System.Windows.Forms.Button.OnClick(EventArgs e)
w DistantWorlds.Controls.GlassButton.OnClick(EventArgs e)
w System.Windows.Forms.Button.OnMouseUp(MouseEventArgs mevent)
w DistantWorlds.Controls.GlassButton.OnMouseUp(MouseEventArgs e)
w System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)
w System.Windows.Forms.Control.WndProc(Message& m)
w System.Windows.Forms.ButtonBase.WndProc(Message& m)
w System.Windows.Forms.Button.WndProc(Message& m)
w System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
w System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
w System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
Smugglers can be detected as pirates. It's part of the regular game and Ididn't change that behavior. Some ship captains have a better chance of not being detected than others.
As for your crash, it's the same as Dudok22's crash. I'll fix it but for now everyone should go back to hitting a key as soon as the game loads ( I.e. when you can issue orders and stuff). That will avoid the crash for this null reference exception.
RE: "Hyping" my forthcoming mod (pun intended)
Posted: Thu Dec 21, 2017 12:44 pm
by aldehyt
Smugglers can be detected as pirates. It's part of the regular game and Ididn't change that behavior. Some ship captains have a better chance of not being detected than others.
But my are detected in 100% cases, so literally i cant smuggle any 1 resource, cause every ship fleeing

RE: "Hyping" my forthcoming mod (pun intended)
Posted: Thu Dec 21, 2017 12:49 pm
by Dudok22
Thanks, pressing key seems to work! I am getting some UI error when I open Build order screen (F9)
Code: Select all
************** Exception Text **************
System.IndexOutOfRangeException: Index was outside the bounds of the array.
After a while it crashes with "Error Code ProcGx" system OutOfMemoryExeption
Btw posting bug reports on this forum is hell because I can't post links and the system takes nearly everything as a link even the error report itself.
RE: "Hyping" my forthcoming mod (pun intended)
Posted: Thu Dec 21, 2017 1:55 pm
by fruitgnome
I have the same problem.
RE: "Hyping" my forthcoming mod (pun intended)
Posted: Thu Dec 21, 2017 7:53 pm
by aldehyt
Smugglers can be detected as pirates. It's part of the regular game and Ididn't change that behavior. Some ship captains have a better chance of not being detected than others.
I forgot one think, if you will look at screen what i sent you. On Freighter circle have a colour, oryginally should be a grey(what in my mind mean, the ship is always recognizing as enemy, so maybe you accidentally changed something

RE: "Hyping" my forthcoming mod (pun intended)
Posted: Fri Dec 22, 2017 1:52 am
by RogerBacon
ORIGINAL: Dudok22
Thanks, pressing key seems to work! I am getting some UI error when I open Build order screen (F9)
Code: Select all
************** Exception Text **************
System.IndexOutOfRangeException: Index was outside the bounds of the array.
After a while it crashes with "Error Code ProcGx" system OutOfMemoryExeption
Btw posting bug reports on this forum is hell because I can't post links and the system takes nearly everything as a link even the error report itself.
Have you modified the number of components and loaded a saved game from before the change? That will cause an index out of bounds exception on the build screen. That was the only time I saw that error-- when I added the bomber bays and my component list was one longer than before.
Oh yeah, also if you add more ship models and load a saved game it will have problems, including a possible out of bounds error on that page. Finally, if you add something like Cruiser2.jpg without adding Cruiser1.jpg it cound cause the error.
RE: "Hyping" my forthcoming mod (pun intended)
Posted: Fri Dec 22, 2017 1:55 am
by RogerBacon
ORIGINAL: aldehyt
Smugglers can be detected as pirates. It's part of the regular game and Ididn't change that behavior. Some ship captains have a better chance of not being detected than others.
I forgot one think, if you will look at screen what i sent you. On Freighter circle have a colour, oryginally should be a grey(what in my mind mean, the ship is always recognizing as enemy, so maybe you accidentally changed something
I looked at it. I'm not sure I saw a colored circle though. I'm playing a game as a pirate now and about 90% of my smuggling missions are successful (i.e. not detected).
Try using the in-game editor and give yourself a ship captain with a super high level in smuggling and see if he is still detected.
RE: "Hyping" my forthcoming mod (pun intended)
Posted: Fri Dec 22, 2017 5:38 am
by aldehyt
I wont clutter this post, i will send all you via pm
RE: "Hyping" my forthcoming mod (pun intended)
Posted: Fri Dec 22, 2017 1:27 pm
by RogerBacon
aldehyt has found a bug with pirate smugglers. I will fix it in the next version. Until then I suggest all you pirates out there only accept smuggling missions to independent colonies unless your freighters are built like battleships.
Essentially the bug is this:
A ships has two properties "Empire" and another one I hadn't noticed "ActualEmpire". They are always the same except in the case of smugglers. In that case "ActualEmpire" is your pirate empire but "Empire" is the independent empire. As a result, other empires won't attack smugglers. For some reason the ships the player was building were setting Empire to their empire instead of independent. It may have something to do with the change I made that lets you build all ship types regardless of whether or not you are a pirate. Anyway, I have a fix for it and I should be able to get the next update out this weekend. I will also include a fix for the crash a few others have mentioned about the null reference exception. Othere than those bug fixes there probably won't be anything new as I haven't had time to touch DWU in the past couple of weeks.
RE: "Hyping" my forthcoming mod (pun intended)
Posted: Sat Dec 23, 2017 9:52 am
by Arkblade
you have any plans to give change main fonts ability to users?
(mainly for the not english user)
RE: "Hyping" my forthcoming mod (pun intended)
Posted: Sat Dec 23, 2017 10:01 am
by Beyondfubar
Just started playing as a pirate and interestingly I get this error *sometimes* when starting the game up for the first time. It makes a reference to your huge map thing, which I am not using due to only having an awesome computer.. not a supercomputer! I can't wait for the next decade, so I can run that many stars!
Edit: I don't get this when playing normal empires, and can restart until I don't get it as pirates.
************** Exception Text **************
System.NullReferenceException: Object reference not set to an instance of an object.
at BaconDistantWorlds.BaconBuiltObject.HugeProcessingSpanActions(BuiltObject ship)
at DistantWorlds.Types.BuiltObject.DoTasks(DateTime time, Int64 starDate, Boolean inView)
at DistantWorlds.Start.method_76(Galaxy galaxy_0, Empire empire_0)
at DistantWorlds.Start.method_77(Game game_1)
at DistantWorlds.Start.btnStartNewGameStart_Click(Object sender, EventArgs e)
at System.Windows.Forms.Control.OnClick(EventArgs e)
at System.Windows.Forms.Button.OnClick(EventArgs e)
at DistantWorlds.Controls.GlassButton.OnClick(EventArgs e)
at System.Windows.Forms.Button.OnMouseUp(MouseEventArgs mevent)
at DistantWorlds.Controls.GlassButton.OnMouseUp(MouseEventArgs e)
at System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)
at System.Windows.Forms.Control.WndProc(Message& m)
at System.Windows.Forms.ButtonBase.WndProc(Message& m)
at System.Windows.Forms.Button.WndProc(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
RE: "Hyping" my forthcoming mod (pun intended)
Posted: Sat Dec 23, 2017 11:39 am
by aldehyt
Same as mine, Bacon few post ago wrote solution. Just look
RE: "Hyping" my forthcoming mod (pun intended)
Posted: Sat Dec 23, 2017 11:59 am
by RogerBacon
ORIGINAL: Arkblade
you have any plans to give change main fonts ability to users?
(mainly for the not english user)
Sadly, no. I made some screens more readable by changing background color and getting rid of the drop shadow. The fonts are tied to screen resolutions (kinda, sorta) and making changes causes things to overlap and look really bad.
RE: "Hyping" my forthcoming mod (pun intended)
Posted: Sat Dec 23, 2017 12:35 pm
by RogerBacon
Version 1.61 Released.
Fixed bug where pirate freighters would be detected as pirates 100% of time.
Fixed null reference bug in two places. This was caused by using a global variable that has to be initialized but wasn't. This is the same variable that is initialized when hitting a key for the first time. I thought I had a way to do this without hitting a key but apparently it doesn't work 100% of the cases. So I would recommend you go back to hitting a key when the game starts just to be safe.
Added a feature in BaconSettings.txt to turn off background stars when zoomed in.
backgroundStarsAtZoomLevel
Set it to zero to disable procedurally drawn background stars. For removing background stars when zoomed out replace \images\environment\galaxybackdrops\galaxy_backdrop.jpg with a plain black image.
It takes a little getting used to but its much easier to see asteroids.
RE: "Hyping" my forthcoming mod (pun intended)
Posted: Sat Dec 23, 2017 3:30 pm
by aldehyt
It is possible for you code, force to retrofit all private ships in one click ?
I ask, cause freighters have stupid behaviours like move to end of galaxy on old hyperdrives, etc...
RE: "Hyping" my forthcoming mod (pun intended)
Posted: Sat Dec 23, 2017 4:09 pm
by RogerBacon
ORIGINAL: aldehyt
It is possible for you code, force to retrofit all private ships in one click ?
I ask, cause freighters have stupid behaviours like move to end of galaxy on old hyperdrives, etc...
You can use the new category on the ship selector drop down "Upgradeable" to quickly find all ships that can be upgraded. Then its only a click for each category of ship to order them to upgrade.