"X4 Builder". Calculation of complexes and stations.

The place to discuss scripting and game modifications for X4: Foundations.

Moderators: Scripting / Modding Moderators, Moderators for English X Forum

User avatar
alexalsp
Posts: 1894
Joined: Fri, 18. Jul 14, 05:28
x4

Re: "X4 Builder". Calculation of complexes and stations.

Post by alexalsp »

04.11.2022: 1.0.64

Code: Select all

- added import of ships;
- added import/configuration of station equipment (armaments);
- added import/export of construction plans;
- added ability to change table column width (buttons: Crtl+Shift+Left and Crtl+Shift+Right);
- added searching by map;
- improved module/station construction costs calculation;
- improved scrolling of lists using the mouse wheel;
- improved performance updates functions of Complex after import/uploading;
- some bugs fixed.
Actual game version X4 5.10 HF 3, DLC: "Split Vendetta", "Cradle of Humanity", "Tides of Avarice".

Special thanks to pilot d.xahok for help in development!

viewtopic.php?p=4911315#p4911315
Endellur
XWiki Moderator
XWiki Moderator
Posts: 52
Joined: Sat, 8. May 21, 20:01
x4

Re: "X4 Builder". Calculation of complexes and stations.

Post by Endellur »

When I run it for the first time it wants me to select my X4 Foundations folder but only shows me the desktop folder
Endellur
XWiki Moderator
XWiki Moderator
Posts: 52
Joined: Sat, 8. May 21, 20:01
x4

Re: "X4 Builder". Calculation of complexes and stations.

Post by Endellur »

I got it working, copied the game directory to Desktop and then edited the registry. This app is great! I like how you can load your save game and see everything. Is the source code posted somewhere? I would love to review it.
User avatar
alexalsp
Posts: 1894
Joined: Fri, 18. Jul 14, 05:28
x4

Re: "X4 Builder". Calculation of complexes and stations.

Post by alexalsp »

Is the source code posted somewhere?
No. But you can contact the author and ask him. :wink:
When I run it for the first time it wants me to select my X4 Foundations folder but only shows me the desktop folder
A screenshot would be helpful.
If you have a directory selection window like this, then select My PC.

https://i.imgur.com/mMCS9fa.jpg
Endellur
XWiki Moderator
XWiki Moderator
Posts: 52
Joined: Sat, 8. May 21, 20:01
x4

Re: "X4 Builder". Calculation of complexes and stations.

Post by Endellur »

Mine showed that same dialog with Desktop as the root folder and any folders on the desktop as selectable as well. I will see if i can reproduce it.
Endellur
XWiki Moderator
XWiki Moderator
Posts: 52
Joined: Sat, 8. May 21, 20:01
x4

Re: "X4 Builder". Calculation of complexes and stations.

Post by Endellur »

Here is an example of when I remove the registry entry:

https://1drv.ms/u/s!ArR8n6s4ij33lfIqUFO ... A?e=9XN05s
User avatar
Emerson d'Anite
Posts: 1288
Joined: Tue, 7. Mar 06, 20:24
x4

Re: "X4 Builder". Calculation of complexes and stations.

Post by Emerson d'Anite »

I am trying to use X4 Builder with an old save (creadted vith v 5.10) upgraded to V6 and the Kingdom End DLC.

This version:
Image

And I get this error message at the step "Creating Application Environment":

Image

Here are details :

Code: Select all

See the end of this message for details on invoking 
just-in-time (JIT) debugging instead of this dialog box.

************** Exception Text **************
System.ArgumentException: Add failed. Duplicate key value supplied.
   at Microsoft.VisualBasic.Collection.Add(Object Item, String Key, Object Before, Object After)
   at X4Builder.module_ware.GetWareGroups(Collection source, String mask, Collection mGroupsState)
   at X4Builder.page_WareList..ctor(Panel container, myVScrollBar scroll, TextBox filter)
   at X4Builder.Form_Main.Form_Load(Object sender, EventArgs e)
   at System.EventHandler.Invoke(Object sender, EventArgs e)
   at System.Windows.Forms.Form.OnLoad(EventArgs e)
   at System.Windows.Forms.Form.OnCreateControl()
   at System.Windows.Forms.Control.CreateControl(Boolean fIgnoreVisible)
   at System.Windows.Forms.Control.CreateControl()
   at System.Windows.Forms.Control.WmShowWindow(Message& m)
   at System.Windows.Forms.Control.WndProc(Message& m)
   at System.Windows.Forms.ScrollableControl.WndProc(Message& m)
   at System.Windows.Forms.Form.WmShowWindow(Message& m)
   at System.Windows.Forms.Form.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)


************** Loaded Assemblies **************
mscorlib
    Assembly Version: 4.0.0.0
    Win32 Version: 4.8.4614.0 built by: NET48REL1LAST_B
    CodeBase: file:///C:/Windows/Microsoft.NET/Framework/v4.0.30319/mscorlib.dll
----------------------------------------
X4 Builder
    Assembly Version: 1.0.64.0
    Win32 Version: 1.0.64
    CodeBase: file:///C:/Users/Alain/Documents/Egosoft/X4/Mes%20Fichiers/x4_builder/X4%20Builder.exe
----------------------------------------
Microsoft.VisualBasic
    Assembly Version: 10.0.0.0
    Win32 Version: 14.8.4084.0 built by: NET48REL1
    CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/Microsoft.VisualBasic/v4.0_10.0.0.0__b03f5f7f11d50a3a/Microsoft.VisualBasic.dll
----------------------------------------
System.Windows.Forms
    Assembly Version: 4.0.0.0
    Win32 Version: 4.8.4550.0 built by: NET48REL1LAST_C
    CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Windows.Forms/v4.0_4.0.0.0__b77a5c561934e089/System.Windows.Forms.dll
----------------------------------------
System
    Assembly Version: 4.0.0.0
    Win32 Version: 4.8.4605.0 built by: NET48REL1LAST_C
    CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System/v4.0_4.0.0.0__b77a5c561934e089/System.dll
----------------------------------------
System.Drawing
    Assembly Version: 4.0.0.0
    Win32 Version: 4.8.4390.0 built by: NET48REL1LAST_C
    CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Drawing/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Drawing.dll
----------------------------------------
System.Configuration
    Assembly Version: 4.0.0.0
    Win32 Version: 4.8.4190.0 built by: NET48REL1LAST_B
    CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Configuration/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Configuration.dll
----------------------------------------
System.Core
    Assembly Version: 4.0.0.0
    Win32 Version: 4.8.4605.0 built by: NET48REL1LAST_C
    CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Core/v4.0_4.0.0.0__b77a5c561934e089/System.Core.dll
----------------------------------------
System.Xml
    Assembly Version: 4.0.0.0
    Win32 Version: 4.8.4084.0 built by: NET48REL1
    CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Xml/v4.0_4.0.0.0__b77a5c561934e089/System.Xml.dll
----------------------------------------
System.Runtime.Remoting
    Assembly Version: 4.0.0.0
    Win32 Version: 4.8.4084.0 built by: NET48REL1
    CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Runtime.Remoting/v4.0_4.0.0.0__b77a5c561934e089/System.Runtime.Remoting.dll
----------------------------------------

************** JIT Debugging **************
To enable just-in-time (JIT) debugging, the .config file for this
application or computer (machine.config) must have the
jitDebugging value set in the system.windows.forms section.
The application must also be compiled with debugging
enabled.

For example:

<configuration>
    <system.windows.forms jitDebugging="true" />
</configuration>

When JIT debugging is enabled, any unhandled exception
will be sent to the JIT debugger registered on the computer
rather than be handled by this dialog box.
I hope to help
Regards !
« Il suivait son idée. C'était une idée fixe et il était surpris de ne pas avancer. » :)
Jacques Prévert
User avatar
alexalsp
Posts: 1894
Joined: Fri, 18. Jul 14, 05:28
x4

Re: "X4 Builder". Calculation of complexes and stations.

Post by alexalsp »

Not for 6.0. Wait for the update or download the beta version.

https://www.elite-games.ru/conference/v ... 76#3728876
User avatar
Emerson d'Anite
Posts: 1288
Joined: Tue, 7. Mar 06, 20:24
x4

Re: "X4 Builder". Calculation of complexes and stations.

Post by Emerson d'Anite »

Wonderful !
It works !
Thanks !
« Il suivait son idée. C'était une idée fixe et il était surpris de ne pas avancer. » :)
Jacques Prévert
User avatar
alexalsp
Posts: 1894
Joined: Fri, 18. Jul 14, 05:28
x4

Re: "X4 Builder". Calculation of complexes and stations.

Post by alexalsp »

23.05.2023: 1.0.65

Code: Select all

- Support for X4 6.00 has been added;
- Added support for Kingdom End DLC;
- added support for MTS Public Beta;
- changed the output of highways on the map;
- Fixed the list of resources for construction modules;
- Added buttons on/off for importing equipment/ships on loading a saved game (tab 'Complex');
- Fixed wrong definition of station names;
- Fixed a possible bug while reading folders in extensions;
- Fixed the display of resources for mining on the map;
- Added import and display on the map resource mining areas*;
- Added the ability to automatically import a previously saved game**;
- Fixed some bugs.
* Mining sites are projected in the program on the plane of the ecliptic and displays information about the maximum resource content in the projection of the given site.

** Button to enable/disable auto-import is located on the Complex tab. Auto import setting is available after selecting (activating) a complex in the list (on the Complex tab). Auto import game save file is set up only for one complex opened in the program and works until the selected complex is closed or the session with the program is over. Auto import starts after ~1 second, after saving the game (in the specified file). If at the moment of auto-import start the program is busy with another process of complex processing (opening or saving a complex file, game import, station extension), the current auto-import will not be performed.

Actual version of the game: X4 6.00 HF 5, DLC: "Split Vendetta", "Cradle of Humanity", "Tides of Avarice", "Kingdom End". MTS Season 1 Beta.

Special thanks to pilot d.xahok for his help in development!

viewtopic.php?p=4911315#p4911315
User avatar
alexalsp
Posts: 1894
Joined: Fri, 18. Jul 14, 05:28
x4

Re: "X4 Builder". Calculation of complexes and stations.

Post by alexalsp »

29.05.2025: 1.0.68

- Fixed a possible bug when importing previously saved games;
- fixed import of Mk1 Laser Turrets from previously saved games;
- added detection of station radar range;
- added support for X4 7.60;
- fixed some bugs.

Current game version: X4 7.60, DLC: “Split Vendetta”, “Cradle of Humanity”, “Tides of Avarice”, “Kingdom End”, ‘Timelines’, MTS Season 1 Beta, “Hyperion Pack”.

Special thanks to pilot d.xahok for his help in development!


https://www.elite-games.ru/conference/v ... hp?t=65406

Return to “X4: Foundations - Scripts and Modding”