[MOD] Entern mit Flottensupport (mehr Marines)

Hier ist der ideale Ort um über Scripts und Mods für X Rebirth zu diskutieren.

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

w.evans
Posts: 2963
Joined: Tue, 18. Nov 14, 16:23
x4

Post by w.evans » Sat, 19. Dec 15, 20:17

debuglog wrote:[General] ======================================
[=ERROR=] Cannot match path '//cue[@name='CheckTargetState']/actions/do_elseif[@value='PreScan.state == cuestate.waiting and $scannerdroneexists and not $skipscannerdrone']' in patch file 'extensions\mm_fsboarding\md\boarding.xml'. Skipping node.
[General] ======================================
[General] ======================================
[=ERROR=] Cannot match path '//start_conversation[@conversation='BoardingSupport_Started_Conversation']' in patch file 'extensions\mm_fsboarding\md\boarding.xml'. Skipping node.
[General] ======================================

User avatar
Marvin Martian
Posts: 3546
Joined: Sun, 8. Apr 12, 09:40
x4

Post by Marvin Martian » Sun, 20. Dec 15, 09:11

what versions do you use?
XR400 B4 HF3 and FsB 120(dev) should not make problems
i added the 1.20 now on startpost

do you have other mods that change boarding.xml besides marinerebalance 0.49?

w.evans
Posts: 2963
Joined: Tue, 18. Nov 14, 16:23
x4

Post by w.evans » Sun, 20. Dec 15, 10:46

4.0 B4 HF3 with 120(dev). Marine Rebalance installed. I sometimes have Boarding Options installed as well, but not when I checked the debug log and spotted that.

edit: Oh! Just spotted incompatibility with Marine Rebalance:

<replace sel="//cue[@name='CheckTargetState']/actions/do_elseif[@value='PreScan.state == cuestate.waiting and $scannerdroneexists and not $skipscannerdrone']/@value">$cprescan and $scannerdroneexists and not $PreScanDone and not $PreScanFailed</replace>

Hm. I could make MR optionally dependent to yours so that you could put your change in before I do.

edit 2: That's strange. You've already accounted for the change in MR:

<add sel="//cue[@name='CheckTargetState']/actions/do_elseif[@value='PreScan.state == cuestate.waiting and $scannerdroneexists and not $skipscannerdrone' or @value='$cprescan and $scannerdroneexists and not $PreScanDone and not $PreScanFailed']" type="@chance" >$isplayerprocess * 100</add>

Cappy1401
Posts: 313
Joined: Sun, 27. Apr 08, 02:16
x4

Post by Cappy1401 » Sun, 20. Dec 15, 16:18

Nur eine kleine Idee nebenbei von mir. Es löst das Problem das ein Schiff nutzlos ownerless zurückbleibt.


Die eigentliche Idee:

Randomausswahl beim erstellen der Mission, was nach dem kapern mit einem Schiff geschehen soll.

Möglichkeit 1:

Schiff wurde erfolgreich gekapert.
Spieler holt Marineoffi an Bord der Skunk, was durch ein Script überwacht werden kann.
Das Schiff wird dann per Script der Auftragsfraktion zugewiesen und repariert.
Es bekommt Lasten-URV, eine Besatzung und wird dann dem Manager einer Station der Auftragsfraktion zugewisen.

Zweite möglichkeit

Spieler bekommt das Schiff als Bezahlung.

Wie bei möglichkeit eins.
Nachdem das Schiff repariert, Lasten-URV und eine Mannschaft hat, wird der Spieler zum Besitzer gemacht und das Schiff seiner Staffel hinzugefügt.
So muss der Spieler das Schiff nicht unnötig erneut kapern, denn er muss es ja erneut fast zu schrott ballern, was unsinnig ist.


Gruß Cappy1401
Jedes Kriegsschiff, das unsere Werften verlässt, jedes abgefeuerte Geschütz bedeutet letztlich einen Diebstahl an denen, die sich nicht wehren können, nämlich an unseren Kindern. Eine Welt bewaffnet bis an die Zähne feuert nicht nur gebündelte Energie allein. Sie feuert auch oft genug die Hoffnung ihrer Kinder nutzlos in den Weltraum hinaus. Doch hin und wieder lässt man uns keine Wahl, dann jedoch besteht jede Salve aus der geballten Hoffnung das endlich wieder Frieden herrscht.

Der Amazone

Dreamwind
Posts: 59
Joined: Fri, 29. Nov 13, 21:47
x4

Post by Dreamwind » Mon, 21. Dec 15, 21:24

Please can you post Instructions on how to use this mod and what it does in English plz.

User avatar
Marvin Martian
Posts: 3546
Joined: Sun, 8. Apr 12, 09:40
x4

Post by Marvin Martian » Tue, 22. Dec 15, 08:14

By talking to your Marineofficer you can transfer Marines from the Skunk into free Dronebay-Space at an Ship that you follow
that allows you to increase your boardingstrengh over the regular Skunklimit by using some follower ships for boarding too
ships with marines that in the same zone as you at boarding start will send her Marines into boardingprocess too

the other option is to start boarding of an Station by talk to such a ship and select the station (the Ships and you should be stay in position at this moment, boardingpods start immediately)
here you have the option to selelct a faction you want to board the station for, because you can't use the station with an CV so you need a station engineer-mod, or also a shipyard might be problematic in playerhands without further mods - by boarding for another faction you get 10mioCr and maybe have a neighbour at the station you like more then the old owner

at the latest version you can store Marines into inventory of the Marineofficer and send them by class to the fessels, it is for sorting, but you can also use it to collect unlimit marines - the inventory marines not used for boarding, and if you loose this MO, you will loose this marines too, so better do not :wink:

User avatar
Marvin Martian
Posts: 3546
Joined: Sun, 8. Apr 12, 09:40
x4

Post by Marvin Martian » Tue, 22. Dec 15, 12:53

Cappy1401 wrote:Nur eine kleine Idee nebenbei von mir. Es löst das Problem das ein Schiff nutzlos ownerless zurückbleibt.
ein Schiff für eine Fraktion kapern ist nicht der eigentliche Zweck des Skripts,
du kannst damit aber ggf. trainieren und deine Marines Skillen wenn dich da mehrfach dran versuchst
das zu Schrott schießen ist IMO unnötig, dafür kannst du ja nun mit einer ausreichend starken Mannschaft ins Feld ziehen

ab XR 4.00 ist das Entern von ownerless eh nicht mehr nötig, man kann einfach einen Kapitän drauf setzen und es ist deins

@w.evans
updatet MarineRebalance to 0.51, can't reproduce that error
but the positions only depends on the player-free boarding, so thats no show-stopper
Rubini have anyway now used an own boarding script as far i know

Dreamwind
Posts: 59
Joined: Fri, 29. Nov 13, 21:47
x4

Post by Dreamwind » Wed, 23. Dec 15, 12:31

When you say talk to the ship for station boarding do you physically have to be onbaord the ship and which crewman do you have to talk to to initiate station boarding.

And isn't this possible to add to one of the side menu's instead?

Also do any marines from those ships gain experience and how is the return of marines handled back to those ships after the boarding process has completed.

User avatar
Marvin Martian
Posts: 3546
Joined: Sun, 8. Apr 12, 09:40
x4

Post by Marvin Martian » Wed, 23. Dec 15, 13:30

talk = simply call the pilot like every pilot for attack commands,
to get access of "Attack" categorie in completly unarmed ships like Hymir (ok had only 3 droneslots, but only for example) you need a to have weapons, or a armed wing assigned to this ship
capitalships haven't that problem because they normaly have at least one turret somewhere

yes better menues would be nice sometimes, but have no idea how to do this

The marines will all handeled like they are from the skunk, so they gain experience like regular and will be send back to the avalible ships
you only have to pick up your MarineOfficer
(in case he will placed on a dock that have no free Actor-slots you should leave zone and came back, then he will get a "visible" place)


i had created a smallship with 30 Marines each, so i have to control more then one ship
i "broadcast" them to my position close to the boardingobject
when they arrive, i call one of the pilots to start boarding, and command them a withdraw from battle afterwards
because the station will start shooting and you have all the little games like destroy this and that what Yisha said

best would be NOT to have a trojanURV, otherwise you have also hackingjobs to do, that might be painfull at a station, i think - not try this up yet :D

i normaly use my Hacking Mod to disable all defences

w.evans
Posts: 2963
Joined: Tue, 18. Nov 14, 16:23
x4

Post by w.evans » Sat, 26. Dec 15, 14:38

Just wanted to confirm that I didn't spot those error messages again after that one time. My mod set-up at the time was a bit chaotic since I had to switch between having mods installed and without several times, so could be that I had something installed that one time that I don't normally have. If I spot them again, and can track cause, I'll let you know.

Frohe Weihnachten!

pref
Posts: 5589
Joined: Sat, 10. Nov 12, 17:55
x4

Post by pref » Thu, 11. Feb 16, 13:58

Sorry to post in english, i see others do that too (i could try german but en might be more effective).

Im helping BlackRain with adding your mod to CWIR.
All goes easy so far, i would only like to ask how to balance the attack strength of the boarder ships. The pods launch, and then all marines and MO is removed (i assume they just loose).
What MO skills and marine team setup should i use for 0 and 100% success rate? I mean whats the max attack team for losing and the minimum for ensured success?
If any formulas are available on how AS/BR is calculated it would be great.

Thanks for your help and code donation :)

User avatar
Marvin Martian
Posts: 3546
Joined: Sun, 8. Apr 12, 09:40
x4

Post by Marvin Martian » Thu, 11. Feb 16, 14:07

don't know, the defencestrength of Stations is similar to ships quite different, you can show them with $target.boardingresistance or modify my patch boarding.xml the line of <show_help > so you get a notice every "round"

and the Marines shouldn't removed, only "unavalible" but still at the dronebay

the major problem i had at testing is the Stationdefence, in case they active they shoot the pods very fast

so for boarding a station better check the dps.all for the boarding-start-trigger or simply hack the station, my BoardingshipAI should be have a option for that, but the success is based on the crew skills of the Marionofficer ship

pref
Posts: 5589
Joined: Sat, 10. Nov 12, 17:55
x4

Post by pref » Thu, 11. Feb 16, 22:38

Strange, some of the pods attached themselves to the station (some to wrecked parts of the station - hope that wont matter).
I was following the team with the skunk.

Then at one point the whole team and the MO was gone (no marine units on ship and no MO either). Was hoping it only means a loss, and not an issue with code :D

Thanks, i will add some more skills to the MOs then.

Rubini
Posts: 452
Joined: Mon, 7. May 07, 05:17
xr

Post by Rubini » Sun, 21. Feb 16, 19:52

Hi MM,

Here a simple and quick fix to that MO pocket issue: when your MO dies all its inventory marines dies too ( also the same occurs if you change the MO)

See :
(on MMSpBoard.xml file)

1. just change 6 event.object (that refers to MO only) to player.copilot. Now it will uses the copilot inventory instead, which, AFAIk, will never dies before the player itself.

2. if you want you can change also this entry "$to.name ==> 'Troop Reserve' and the 2 entries on the text file (0001.xml) from "Inventory" ==> "Reserve" just for more coherence.

This way all changes will be absolutely imperceptive for the player. The MO continues to make all troop moves as before. But now he can dies or be changed without any problem: your stored marines will be always disposable (think as a commodities, a Reserve somewhere).

Cheers!
Rubini.
Last edited by Rubini on Sun, 21. Feb 16, 22:21, edited 1 time in total.

User avatar
Marvin Martian
Posts: 3546
Joined: Sun, 8. Apr 12, 09:40
x4

Post by Marvin Martian » Sun, 21. Feb 16, 20:13

but in case of NPC Boarding actions, won't this fill Yishas Pockets with marines?

Rubini
Posts: 452
Joined: Mon, 7. May 07, 05:17
xr

Post by Rubini » Sun, 21. Feb 16, 22:18

Marvin Martian wrote:but in case of NPC Boarding actions, won't this fill Yishas Pockets with marines?
I guess not. Why it could be this way? NPC boarding actions dont mess with MMSpBoard.xml variables and also even at an end of a board npc action when it refills its lost marines this go to each npc ship dronebay, not for Yisha pocket...i guess!

User avatar
Marvin Martian
Posts: 3546
Joined: Sun, 8. Apr 12, 09:40
x4

Post by Marvin Martian » Mon, 22. Feb 16, 07:56

ok understand, this funtion was intended to sort, not directly to store marines

i missunderstand you change it in the ReturnUnitFleet library of boardding.xml too, here is also a fallback to the inventory

Rubini
Posts: 452
Joined: Mon, 7. May 07, 05:17
xr

Post by Rubini » Mon, 22. Feb 16, 14:34

Marvin Martian wrote:ok understand, this funtion was intended to sort, not directly to store marines

i missunderstand you change it in the ReturnUnitFleet library of boardding.xml too, here is also a fallback to the inventory
I just noticed this one now (a MO inventory function at ReturnUnitFleet library of boardding.xml). I guess that this one is used only when the player board fleet ships that sent marines to the target are destroyed before the marines return (and if the board was a succees) no? Then you make this routine to put them back to player reserve adding them to the MO inventary again. If so, i guess that is needed to also use the player.copilot inventory here, right?

Like this:
(Or am i missing something more on the general idea/code?)


From:

Code: Select all

<!-- all Boardingships gone? So convert Marine to Welderdrone / or Pocketmarines -->
				<do_if value="$RUF_undone and $target.exists and $target.units.maxcount - $target.units.count"> 
					<add_units object="$target" category="unitcategory.welder" mk="1" exact="1" />
				</do_if> 
				<do_elseif value="$RUF_undone and $commander.exists">
					<set_value name="$wares" exact="[ware.spe_unit_marine_mk1, ware.spe_unit_marine_mk2, ware.spe_unit_marine_mk3]" />
					<do_if value="$wares.{$mk}?"> 
						<add_inventory entity="$commander" ware="$wares.{$mk}" exact="1" />
					</do_if> 
					<remove_value name="$wares"/>
				</do_elseif> 
to this:

Code: Select all

<!-- all Boardingships gone? So convert Marine to Welderdrone / or Pocketmarines -->
				<do_if value="$RUF_undone and $target.exists and $target.units.maxcount - $target.units.count"> 
					<add_units object="$target" category="unitcategory.welder" mk="1" exact="1" />
				</do_if> 
				<do_elseif value="$RUF_undone and $commander.exists">
					<set_value name="$wares" exact="[ware.spe_unit_marine_mk1, ware.spe_unit_marine_mk2, ware.spe_unit_marine_mk3]" />
					<do_if value="$wares.{$mk}?"> 
						<add_inventory entity="player.copilot" ware="$wares.{$mk}" exact="1" />
					</do_if> 
					<remove_value name="$wares"/>
				</do_elseif> 
Another question: do you use this same funtion also for NPC fleets (non player procecess)?. If so is just a matter to add a check for player procecees on the above. (As you know i made exclusive files for each situation, so i have not this problem here).
Like this:

Code: Select all

<!-- all Boardingships gone? So convert Marine to Welderdrone / or Pocketmarines -->
				<do_if value="$RUF_undone and $target.exists and $target.units.maxcount - $target.units.count"> 
					<add_units object="$target" category="unitcategory.welder" mk="1" exact="1" />
				</do_if> 
				<do_elseif value="$RUF_undone and $commander.exists">
					<set_value name="$wares" exact="[ware.spe_unit_marine_mk1, ware.spe_unit_marine_mk2, ware.spe_unit_marine_mk3]" />
					<do_if value="$wares.{$mk}?"> 
						<add_inventory entity="$commander" ware="$wares.{$mk}" exact="1" chance="$isplayerprocess * 0"/>
					   <add_inventory entity="player.copilot" ware="$wares.{$mk}" exact="1" chance="$isplayerprocess * 100"/>
					</do_if> 
					<remove_value name="$wares"/>
				</do_elseif> 

Rubini
Posts: 452
Joined: Mon, 7. May 07, 05:17
xr

Post by Rubini » Mon, 22. Feb 16, 15:07

Anyhow, i guess that for player marines, don´t make sense to convert them to welderdrones in any situation. Or they die in battle, or they return to their ships or they must go to reserve. So I guess that its better to supress this code IMO for playerprocess:

Code: Select all

<!-- all Boardingships gone? So convert Marine to Welderdrone / or Pocketmarines -->
				<do_if value="$RUF_undone and $target.exists and $target.units.maxcount - $target.units.count" chance="$isplayerprocess * 0"> 
					<add_units object="$target" category="unitcategory.welder" mk="1" exact="1" >
				</do_if> 

Jormaster2k
Posts: 4
Joined: Sat, 13. Oct 07, 01:09
x3tc

Post by Jormaster2k » Sun, 28. Feb 16, 06:58

Hi, it works well to capture station.
After the capture I assigned Manager, Defense and Spcialist, as well as Engineer.
I sent a new Construction Ship (OL) to the base, but when I ask Architect to deploy to station, the construction ship disappears and I cannot assign another.

At the end of capture there is no way to assign Construction Ship to Station so I cannot repair/extend. Is there a way around this?

Post Reply

Return to “X Rebirth - Scripts und Modding”