bvbohnen / x4_customizer Goto Github PK
View Code? Open in Web Editor NEWModding tool for X4, customizing game files according to user options.
License: MIT License
Modding tool for X4, customizing game files according to user options.
License: MIT License
Reproduce by setting output_to_catalog to true
Unfortunately not completely compatible with Tides of Avarice - when attempting to rescale the game board without any extensions/mods installed, one will see the mentioned error.
Same for version in Releases, or when done from Visual Studio.
Problem can be recreated by making a script that resizes sectors and calling Write_To_Extension with preference set to loose files.
example script:
from Plugins import *
if 1:
Scale_Sector_Size(
scaling_factor = 0.3,
scaling_factor_2 = 0.25,
transition_size_start = 200000,
transition_size_end = 400000,
precision_steps = 20,
remove_ring_highways = True,
remove_nonring_highways = True,
extra_scaling_for_removed_highways = 0.7,
move_free_ships = True,
debug = True
)
Write_To_Extension()
traceback:
Traceback (most recent call last):
File "Main.py", line 253, in Run
File "<frozen importlib._bootstrap_external>", line 407, in _check_name_wrapper
File "<frozen importlib._bootstrap_external>", line 907, in load_module
File "<frozen importlib._bootstrap_external>", line 732, in load_module
File "<frozen importlib._bootstrap>", line 265, in _load_module_shim
File "<frozen importlib._bootstrap>", line 696, in _load
File "<frozen importlib._bootstrap>", line 677, in _load_unlocked
File "<frozen importlib._bootstrap_external>", line 728, in exec_module
File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed
File "D:\X4 Customizer\X4_Customizer_v1.24\Scripts\Vash transforms.py", line 44, in <module>
Write_To_Extension()
File "Common\Plugin_Manager.py", line 163, in wrapper
File "Common\Plugin_Manager.py", line 138, in wrapper
File "D:\X4 Customizer\X4_Customizer_v1.24\Plugins\Utilities\Write_Mod_Files.py", line 67, in Write_To_Extension
File_System.Write_Files()
File "File_Manager\File_System.py", line 87, in func_wrapper
File "File_Manager\File_System.py", line 643, in Write_Files
File "File_Manager\File_Types.py", line 769, in Write_File
File "File_Manager\File_Types.py", line 739, in Get_Binary
File "File_Manager\File_Types.py", line 707, in Get_Diff
File "File_Manager\XML_Diff.py", line 629, in Make_Patch
File "File_Manager\XML_Diff.py", line 772, in _Get_Patch_Ops_Recursive
AssertionError
'..\Plugins\Utilities\Write_Mod_Files.py' line: 153
for lang_id in ['7','33','37','39','44','49','55','81','82','86','88']:
Change 37 to 34 to correctly reference the Spanish language id.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.