Can you get music while docked on ships

The place to discuss scripting and game modifications for X Rebirth.

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

balogt
Posts: 773
Joined: Thu, 18. Dec 03, 09:00
x3

Can you get music while docked on ships

Post by balogt »

Just a quick question. id love to have that relaxing music while docked on one of my cap ships. how would one enable that as it always shuts off when I dock. combat music works so im guessing its possible just need ot tweek a 0 to a 1 somewhere?
thanks
Balog
UniTrader
Moderator (Script&Mod)
Moderator (Script&Mod)
Posts: 14571
Joined: Sun, 20. Nov 05, 22:45
x4

Post by UniTrader »

doubt its just flipping a switch, but more like adding/defining music for interiors, didnt look into this topic in detail yet though..

EDIT: just compared a few files.. might be possible with this diff file:

Code: Select all

<?xml version="1.0" encoding="utf-8"?>
<diff>
  <add sel="//properties">
      <sounds>
        <music ref="music_cluster_a" />
      </sounds>
  </add>
</diff>
and use this diff file for all files following this naming:
assets\interiors\rooms\macros\interiors_rooms_dockingbay_*

didnt test if it works, but it is a beginning ;)[/code]
if not stated otherwise everything i post is licensed under WTFPL

Ich mache keine S&M-Auftragsarbeiten, aber wenn es fragen gibt wie man etwas umsetzen kann helfe ich gerne weiter ;)

I wont do Script&Mod Request work, but if there are questions how to do something i will GLaDly help ;)
balogt
Posts: 773
Joined: Thu, 18. Dec 03, 09:00
x3

Post by balogt »

I will play with it a bit and let you know
balogt
Posts: 773
Joined: Thu, 18. Dec 03, 09:00
x3

Post by balogt »

still no luck not sure on exact process to input the file/code..basically where exactly to place it.
Clownmug
Posts: 419
Joined: Wed, 11. Dec 13, 02:39
x4

Post by Clownmug »

Maybe something like this could work:

Code: Select all

<?xml version="1.0" encoding="utf-8"?>
<mdscript name="DockMusic" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="md.xsd">
  <cues>
	<cue name="PlayerDocked" instantiate="true">
	<conditions>
		<event_object_docked object="player.primaryship"/>
	</conditions>
	<actions>
		<play_music music="'name_of_music'" lockscenemusic="true" lockfightmusic="true" />
	</actions>
	</cue>
	<cue name="PlayerUndocked" instantiate="true">
	<conditions>
		<event_object_undocked object="player.primaryship"/>
	</conditions>
	<actions>
		<stop_music />
	</actions>
	</cue>
  </cues>
</mdscript>
User avatar
Earth Ultimatum IV.
Posts: 5280
Joined: Mon, 3. May 10, 14:39
x4

Post by Earth Ultimatum IV. »

I'd love to see a mod like that on workshop. Even better, an option in the base game. :)
balogt
Posts: 773
Joined: Thu, 18. Dec 03, 09:00
x3

Post by balogt »

ill play with that code see if I can get it to work. this so I can fall asleep while my ship mines.with comfy music.
balogt
Posts: 773
Joined: Thu, 18. Dec 03, 09:00
x3

Post by balogt »

still havnt got it working. I did replace the combat music with other..that works when combat is active. but no relaxing music during regular flight. any other ideas?
balog

Return to “X Rebirth - Scripts and Modding”