X4: Foundations

X4: Foundations

Bayamon Mining-Carrier VRO [6.0]
Prior Micha  [开发者] 2022 年 6 月 24 日 上午 7:20
wares-file
It seems that some players are having problems getting the ships in their shipyards working.
If someone can help to find the issue, please help. Here is the code:
<?xml version="1.0" encoding="utf-8"?> <diff> <add sel="/wares"> <ware id="units_sco_xl_bayamon3_sol" name="{9771315,11971} {20111,3101}" description="{9771315,11973}" group="ships_terran" transport="ship" volume="1" tags="ship"> <price min="30800564" average="35734754" max="39529238" /> <production time="202" amount="1" method="default" name="{20206,901}"> <primary> <ware ware="energycells" amount="6430" /> <ware ware="hullparts" amount="7310" /> </primary> </production> <component ref="units_sco_xl_bayamon3_sol_macro" amount="1" /> <restriction licence="capitalship" /> <owner faction="pioneers" /> <owner faction="player" /> </ware> <ware id="units_sco_xl_bayamon3_liq" name="{9771315,11971} {20111,3201}" description="{9771315,11973}" group="ships_terran" transport="ship" volume="1" tags="ship"> <price min="30800564" average="35734754" max="39529238" /> <production time="202" amount="1" method="default" name="{20206,901}"> <primary> <ware ware="energycells" amount="6430" /> <ware ware="hullparts" amount="7310" /> </primary> </production> <component ref="units_sco_xl_bayamon3_liq_macro" amount="1" /> <restriction licence="capitalship" /> <owner faction="pioneers" /> <owner faction="player" /> </ware> <ware id="units_sco_xl_bayamon3_uni" name="{9771315,11971} {20111,2001}" description="{9771315,11973}" group="ships_terran" transport="ship" volume="1" tags="ship"> <price min="30800564" average="35734754" max="39529238" /> <production time="202" amount="1" method="default" name="{20206,901}"> <primary> <ware ware="energycells" amount="6430" /> <ware ware="hullparts" amount="7310" /> </primary> </production> <component ref="units_sco_xl_bayamon3_uni_macro" amount="1" /> <restriction licence="capitalship" /> <owner faction="pioneers" /> <owner faction="player" /> </ware> <ware id="units_sco_xl_bayamon3_trader" name="{9771315,11972} {20204,4501}" description="{9771315,11973}" group="ships_terran" transport="ship" volume="1" tags="ship"> <price min="30800564" average="35734754" max="39529238" /> <production time="202" amount="1" method="default" name="{20206,901}"> <primary> <ware ware="energycells" amount="6430" /> <ware ware="hullparts" amount="7310" /> </primary> </production> <component ref="units_sco_xl_bayamon3_trader_macro" amount="1" /> <restriction licence="capitalship" /> <owner faction="pioneers" /> <owner faction="player" /> </ware> <ware id="engine_sco_xl_bayamon3_01" name="{9771315,12001}" description="{9771315,12002}" group="engines" transport="equipment" volume="1" tags="engine equipment"> <price min="624061" average="671179" max="718297" /> <production time="30" amount="1" method="default" name="{20206,901}"> <primary> <ware ware="antimatterconverters" amount="193" /> <ware ware="energycells" amount="50" /> <ware ware="engineparts" amount="89" /> </primary> </production> <component ref="engine_sco_xl_bayamon3_macro" amount="1" /> <restriction licence="generaluseequipment" /> <use threshold="0" /> <owner faction="pioneers" /> <owner faction="player" /> </ware> </add> </diff>
< >
正在显示第 1 - 4 条,共 4 条留言
WarFang 2022 年 7 月 20 日 下午 5:47 
Firstly, because the owner faction of the wares are the Segaris Pioneers you are going to want to add a Terran production method, otherwise the Segaris Shipyard is going to stock hull parts, engine parts and antimatter converters.
The production entries for the ship wares should look something like this if you want both Commonwealth and Terran methods:

<production time="202" amount="1" method="default" name="{20206,901}"> <primary> <ware ware="energycells" amount="6430" /> <ware ware="hullparts" amount="7310" /> </primary> </production> <production time="202" amount="1" method="terran" name="{20206,901}"> <primary> <ware ware="computronicsubstrate" amount="770" /> <ware ware="energycells" amount="30854" /> <ware ware="metallicmicrolattice" amount="1625" /> </primary> </production>

In the above example I used almost exactly the resource cost of the VRO version of the Asgard since its chassis is quite close to the cost of the Bayamon's.
For the engine:

<production time="30" amount="1" method="default" name="{20206,901}"> <primary> <ware ware="antimatterconverters" amount="193" /> <ware ware="energycells" amount="50" /> <ware ware="engineparts" amount="89" /> </primary> </production> <production time="30" amount="1" method="terran" name="{20206,901}"> <primary> <ware ware="computronicsubstrate" amount="40" /> <ware ware="energycells" amount="3950" /> <ware ware="metallicmicrolattice" amount="245" /> <ware ware="siliconcarbide" amount="38" /> </primary> </production>

It that example the resource cost is almost exactly that of a VRO TER XL All-round engine.


Secondly, making the player an owner faction won't make the ship show up in player shipyards. You'll need to add it within your mdscript to give the player the blueprints when a game starts. Assuming you want the player to start the game with the blueprints, something like this should work:

<mdscript name="bayamon_miner_update" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="md.xsd"> <cues> <cue name="bayamon_miner_update"> <conditions> <check_any> <event_cue_signalled cue="md.Setup.GameStart" /> <event_player_created/> </check_any> </conditions> <actions> <set_value name="$versionNumber" exact="1"/> <do_if value="event.param"> <show_help duration="20" custom="'{9771315,11971} update to version %1 complete.'.[$versionNumber]"/> </do_if> <do_else> <show_help duration="10" custom="'{9771315,11971} installiert.'"/> <include_actions ref="Bayamon_UnlockBlueprints"/> </do_else> </actions> </cue> <library name="Bayamon"> <cues> <library name="Bayamon_UnlockBlueprints"> <actions> <set_value name="$bPBayamonWares" exact="[ ware.units_sco_xl_bayamon3_sol, ware.units_sco_xl_bayamon3_liq, ware.units_sco_xl_bayamon3_uni, ware.units_sco_xl_bayamon3_trader, ware.engine_sco_xl_bayamon3_01 ]"/> <add_blueprints wares="$bPBayamonWares" /> <remove_value name="$bPBayamonWares"/> </actions> </library> </cues> </library> </cues> </mdscript>
最后由 WarFang 编辑于; 2022 年 7 月 20 日 下午 6:01
Prior Micha  [开发者] 2022 年 7 月 21 日 上午 5:55 
引用自 WarFang
Firstly (...)
Thank you very much for explaining. I didnt't know that.


引用自 WarFang
Secondly (...)
I'm not sure. I wanted to make the blueprints buyable at pioneers (because of the story around the ship). For my own use I cheated the blueprints in.
WarFang 2022 年 7 月 21 日 下午 8:47 
You're welcome! I didn't know what you meant about "players are having problems getting the ships in their shipyards working." Was there some other issue with the Bayamon in shipyards?
Prior Micha  [开发者] 2023 年 2 月 1 日 上午 6:06 
Updated. Thank you very much!
< >
正在显示第 1 - 4 条,共 4 条留言
每页显示数: 1530 50