Thank you for your comment.At the moment, there are no plans to update the tool with VRO values.To be honest, I'm not working on it at the moment and it's possible that the concept of the tool will evolve into a tool for modders.
Thanks for the reply! Turning this into a tool for modders sounds like a great direction. It could be a valuable resource for the community, making customization and integration much easier. Looking forward to seeing how it evolves!
Hello. At the moment, the mod is stagnating because I'm taking a break for health reasons. But adding weapons is at the top of my list of priorities for the future.
Just found this mod from it being linked in the X4 Rebirthed collection, and I have to say, this is an amazing tool!!
The ability to make custom turrets without the need to model or program them manually is absolutely amazing and i can't wait to see more from this mod. I have a feeling I'll be creating an entirely new turret lineup soon!
I had issues with it detecting the proper Java install path (Got 8 Installed as well and that one sits in the Path directory) Couldn't really get it to work using powershell. So i just created a bat file that starts it:
@echo off cd /d "D:\Unpack\x4mods\CustomTurrets" "C:\Program Files\Eclipse Adoptium\jre-21.0.6.7-hotspot\bin\java.exe" -jar "CustomFaction-0.1.4-runner.jar" pause
This works for me. Just change the Paths to the proper one for your System Those ones are on my system: D:\Unpack\x4mods\CustomTurrets C:\Program Files\Eclipse Adoptium\jre-21.0.6.7-hotspot\bin\java.exe
Hope this helps someone! (I got no Error correction in the code at all so if something happens it's on you just do this if you know what you're doing)
So that I can get more information, please take the following steps: * Run a powershell in the folder (right-click in folder, run in terminal). * Use the command: .\start.ps1
The application should launch. If there are any errors, please send me a message with the errors displayed. If you have the "Quarkus" display, you can open your browser at http://localhost:8080
hello i could you check what problem i have with it this is the video . i have install java 23 . cant even run shell file. dont know what is wrong with it
Can you open the start.ps1 and replace the file by: # Define the jar file name $toolVersion = "0.1.3" $jarFileName = "X4CustomFaction-$toolVersion.jar" $requiredJavaVersion = 21
# Start the transcript $transcriptPath = "./transcript.log" Start-Transcript -Path $transcriptPath
# Check if Java is installed $javaVersion = & java -version 2>&1 if ($javaVersion[0] -match 'version "(\d+)\.') { $majorVersion = [int]$matches[1]
# Check if the Java version is 21 or more if ($majorVersion -ge $requiredJavaVersion) { Write-Output "Java version $majorVersion is installed." # Start the jar file Write-Output "Starting the application..." java -jar $jarFileName } else { Write-Output "Java version $requiredJavaVersion or higher is required. Current version is $majorVersion" Write-Output "Please install Java version $requiredJavaVersion or higher. See: https://www.oracle.com/java/technologies/downloads/" } } else { Write-Output "Java is not installed or the version could not be determined." Write-Output "Please install Java version $requiredJavaVersion or higher. See: https://www.oracle.com/java/technologies/downloads/" } Pause Once done, restart the script.
A file named "transcript.log" should be created. Can you provide me the file ?
don't see any transcript.log , it seems the shell can't be executed for some reason . Look like my end got problem . Any way thank for taking your time helping me
Try to open a power in the folder directly: * Run a powershell in the folder (right-click in folder, run in terminal). * Execute the command java -jar X4CustomFaction-$toolVersion.jar
Thanks for the file. It seems that the script do not access to the jar file... I don't know why, maibe a permission issue.
Can you try to: 1- Execute powershell as administrator (Startup menu, search powershell, right click and run as administrator) 2- Execute the following command ("E:\X4CustomFaction-0.1.3\" is the path to the folder according to the video you provided) cd "E:\X4CustomFaction-0.1.3\"3- Execute the command .\start.ps1
hello thank for taking your time helping me . i just change the default app to run jar file then access the http://localhost:8080 bam it work , dont know what happening but its work . thanh for you surport
Great mod really enjoying it so far! Would be nice to be allowed to set the remaining customization points in home under settings! This would allow users to stay vanilla or mod the turrets further to make all sorts of really nice combinations! Keep it up! ;)
New version 0.1.4 available with a minor correction and your suggestion ;) FYI: I haven't done any advanced testing, so if you run into any problems, let me know.
Thank you much appreciated! Keep up the good work! If I see a game breaking bug in game worth mentionning I'll let you know! Take care! I'll keep an eye on your work! You should setup donations I know how tedious it can be modding games, made a few mods myself in the past! ;P
Ofcourse I am aware of it. I'm still waiting for the Diplomacy update to come round before starting my next playthrough - so I still have quite a few months of waiting lol
But I am definitely am tracking the updates on this tool. It would be cool if I would be able to grab ships and station modules from custom mods like SWI especially. As I had tried once to export the ships from that mod to use them in a vanilla playthrough so my faction would look unique as if we're developing our own ships etc. Sadly that didn't work out, so I am hoping this tool would allow me to do that!
If you're able to have it work with custom ships would be awesome, as I typically use VRO overhaul.
But nonetheless, its not mandatory and am just overall happy with the tool as is planned by you! Thank you for making it a reality to begin with even! :D
At this moment, no. The goal is to preserve the balance, not to create a modding/cheat tool. BUT I already see the limitations with the existing system. MAIBE in the future it will be possible to freely set some values, but with a non négligeable cost.
Yeah that would be awsome. the more one ramp up the damage the more energy it use or somthing. either way i trust your judment on this and cant wait to see where this lead. Great work love it so far.
A pause instruction is missing at the end of the script to allow error messages to be viewed. Apparently, I'm the stupid one who forgot to include it :D
Open the script with Notepad, and at the very end, add the following line: Pause
This will show the error (java must not be installed or with an insufficient version)
Also I just noticed on a Pulse gun you can equip it with a Gatling Bullet. I thought it was kind of cool and tried the experiment in-game but it didn't have any sound. PROBABLY because the new update for Common Wealth sound is still missing. Still pretty cool to use a Gatling bullet with a pulse turret lol
UPDATE: I realized you can't select pulse for Pulse M Turret's, instead only Plasma
I'm working on a new version that adds the need for research to unlock turrets. The first version is almost ready, but I wanted to add some new turrets before releasing it. Depending on my testing and available time, I may release the version without the new turrets. I think it'll be early next week.
If the sound really bothers you and you want to correct it manually, here's the procedure: * In the generated mod folder, in “\assets\fx\weaponfx\cf\macros”, there are several files. * Open the file corresponding to the turret to be corrected (it should contain the following ligne at the beginning of the file)<component ref=”bullet_gen_s_gatling_01_mk1“/>. After the “<effects>” tag, add <sounds> <firing ref=“turret_gatling_muzzle” /> </sounds>
62 comments
First of all, thank you for such a creative tool.
My question is straight forward.
Do you have plans to include VRO preset with dedicated values?
Turning this into a tool for modders sounds like a great direction. It could be a valuable resource for the community, making customization and integration much easier. Looking forward to seeing how it evolves!
The ability to make custom turrets without the need to model or program them manually is absolutely amazing and i can't wait to see more from this mod.
I have a feeling I'll be creating an entirely new turret lineup soon!
Cheers to you Alexadre44!
Please let me know if you have any comments or ideas.
Couldn't really get it to work using powershell.
So i just created a bat file that starts it:
@echo off
cd /d "D:\Unpack\x4mods\CustomTurrets"
"C:\Program Files\Eclipse Adoptium\jre-21.0.6.7-hotspot\bin\java.exe" -jar "CustomFaction-0.1.4-runner.jar"
pause
This works for me. Just change the Paths to the proper one for your System
Those ones are on my system:
D:\Unpack\x4mods\CustomTurrets
C:\Program Files\Eclipse Adoptium\jre-21.0.6.7-hotspot\bin\java.exe
Hope this helps someone!
(I got no Error correction in the code at all so if something happens it's on you just do this if you know what you're doing)
So that I can get more information, please take the following steps:
* Run a powershell in the folder (right-click in folder, run in terminal).
* Use the command: .\start.ps1
The application should launch. If there are any errors, please send me a message with the errors displayed.
If you have the "Quarkus" display, you can open your browser at http://localhost:8080
# Define the jar file name
$toolVersion = "0.1.3"
$jarFileName = "X4CustomFaction-$toolVersion.jar"
$requiredJavaVersion = 21
# Start the transcript
$transcriptPath = "./transcript.log"
Start-Transcript -Path $transcriptPath
# Check if Java is installed
$javaVersion = & java -version 2>&1
if ($javaVersion[0] -match 'version "(\d+)\.')
{
$majorVersion = [int]$matches[1]
# Check if the Java version is 21 or more
if ($majorVersion -ge $requiredJavaVersion)
{
Write-Output "Java version $majorVersion is installed."
# Start the jar file
Write-Output "Starting the application..."
java -jar $jarFileName
}
else
{
Write-Output "Java version $requiredJavaVersion or higher is required. Current version is $majorVersion"
Write-Output "Please install Java version $requiredJavaVersion or higher. See: https://www.oracle.com/java/technologies/downloads/"
}
}
else
{
Write-Output "Java is not installed or the version could not be determined."
Write-Output "Please install Java version $requiredJavaVersion or higher. See: https://www.oracle.com/java/technologies/downloads/"
}
Pause
Once done, restart the script.
A file named "transcript.log" should be created. Can you provide me the file ?
* Run a powershell in the folder (right-click in folder, run in terminal).
* Execute the command
java -jar X4CustomFaction-$toolVersion.jar
**********************
Windows PowerShell transcript start
Start time: 20250317224348
Username: Long\long
RunAs User: Long\long
Configuration Name:
Machine: LONG (Microsoft Windows NT 10.0.26100.0)
Host Application: C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe -file H:\Custom faction jar-1600-0-1-4-1742121247\start.ps1
Process ID: 14940
PSVersion: 5.1.26100.2161
PSEdition: Desktop
PSCompatibleVersions: 1.0, 2.0, 3.0, 4.0, 5.0, 5.1.26100.2161
BuildVersion: 10.0.26100.2161
CLRVersion: 4.0.30319.42000
WSManStackVersion: 3.0
PSRemotingProtocolVersion: 2.3
SerializationVersion: 1.1.0.1
**********************
Transcript started, output file is ./transcript.log
Java version 23 is installed.
Starting the application...
Error: Unable to access jarfile X4CustomFaction-0.1.3.jar
PS>$global:?
True
**********************
Windows PowerShell transcript end
End time: 20250317224354
*********************
It seems that the script do not access to the jar file... I don't know why, maibe a permission issue.
Can you try to:
1- Execute powershell as administrator (Startup menu, search powershell, right click and run as administrator)
2- Execute the following command ("E:\X4CustomFaction-0.1.3\" is the path to the folder according to the video you provided)
cd "E:\X4CustomFaction-0.1.3\"
3- Execute the command.\start.ps1
Here is an exemple of what I mean! :) You could add a way for players to change the default remaining points. Default being 150 points!
FYI: I haven't done any advanced testing, so if you run into any problems, let me know.
Don't forget that the tool is still in early stage. It will continue to evolve and that breaking changes are possible.
But I am definitely am tracking the updates on this tool. It would be cool if I would be able to grab ships and station modules from custom mods like SWI especially. As I had tried once to export the ships from that mod to use them in a vanilla playthrough so my faction would look unique as if we're developing our own ships etc. Sadly that didn't work out, so I am hoping this tool would allow me to do that!
The integration of assets from other mods is not currently planned at all. The current scope of the tools is the use of in-game assets only.
But nonetheless, its not mandatory and am just overall happy with the tool as is planned by you! Thank you for making it a reality to begin with even! :D
The goal is to preserve the balance, not to create a modding/cheat tool.
BUT I already see the limitations with the existing system. MAIBE in the future it will be possible to freely set some values, but with a non négligeable cost.
Open the script with Notepad, and at the very end, add the following line:
Pause
This will show the error (java must not be installed or with an insufficient version)
Fyi there is no sound to the terran M bolt turret when used with the Argon bullet/ common wealth bullet/ gatling.
I probably messed something up but the sounds from the L turret I made are fine and making sounds when firing.
Thanks for the feedback, I updated the zip with a little script to help with the start.
I'll check the issue regarding the M bolt turret.
Also I just noticed on a Pulse gun you can equip it with a Gatling Bullet. I thought it was kind of cool and tried the experiment in-game but it didn't have any sound. PROBABLY because the new update for Common Wealth sound is still missing. Still pretty cool to use a Gatling bullet with a pulse turret lolUPDATE: I realized you can't select pulse for Pulse M Turret's, instead only Plasma
If the sound really bothers you and you want to correct it manually, here's the procedure:
* In the generated mod folder, in “\assets\fx\weaponfx\cf\macros”, there are several files.
* Open the file corresponding to the turret to be corrected (it should contain the following ligne at the beginning of the file)
<component ref=”bullet_gen_s_gatling_01_mk1“/>
. After the “<effects>” tag, add<sounds>
<firing ref=“turret_gatling_muzzle” />
</sounds>
Full file example:
<?xml version="1.0" encoding="utf-8"?>
<macros>
<macro name="bullet_cf_m_turret_1_macro" class="bullet">
<component ref="bullet_gen_s_gatling_01_mk1"/>
<properties>
<ammunition value="15"
reload="0.98"/>
<bullet speed="1074"
lifetime="3.04"
amount="1"
barrelamount="2"
icon="weapon_laser_mk1"
angle="0.54"
maxhits="2"
ricochet="0.01"
timeDiff="0.03"
scale="0"
attach="0"
restitution="0.3"/>
<reload rate="10.00"/>
<damage value="9"
shield="0" repair="0"/>
<effects>
<impact ref="impact_gen_s_gatling_01_mk1"
inside="impact_gen_s_gatling_01_mk1_inside"/>
<bigobjectimpact ref="impact_gen_s_gatling_01_mk1_bigobject"
inside="impact_gen_s_gatling_01_mk1_bigobject_inside"/>
<launch ref="muzzle_turret_gen_m_gatling_01_mk1"/>
</effects>
<sounds>
<firing ref="turret_gatling_muzzle" />
</sounds>
<weapon system="turret_midRange"/>
</properties>
</macro>
</macros>