[MOD]Techno Bar SFX

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

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

SpacialKatana
Posts: 8
Joined: Mon, 25. Nov 13, 22:59

[MOD]Techno Bar SFX

Post by SpacialKatana »

I've just made my first mod for X Rebirth an' I be well chuffed :D
It replaces the cheesy bar loop with something more fitting, yeah it's simple but it's a start.

http://xrebirth.nexusmods.com/mods/235//?

I started down the rabbit hole by editing my savefile (who didn't??), and intend to make more as I learn from the depth of knowledge here.

Cheers,

SK.
User avatar
Swallen
Posts: 280
Joined: Tue, 11. Oct 11, 19:13
x4

Post by Swallen »

Nice! I myself am pretty green, and never modded an X game before, so I don't know how similar or not this game mods compared to the previous ones, but I'm pretty sure you could say we're all learning here.

So, yeah, by all means mod away! :wink:
skadog
Posts: 180
Joined: Tue, 7. Oct 03, 14:34
x3

Post by skadog »

Huge improvement thanks! Can you fix the porno music in the private room next door too? It's pretty awful and makes me not want to speak with the terrible NPCs in there as well.
"Who do you think pays for all this rubbish? They're not gonna make their money back, you know, I told them, I said to them, Bernie, I said they'll never make their money back." - Eric Idle, Always look on the bright side of life.
User avatar
Scrappy Coco
Posts: 62
Joined: Mon, 18. Nov 13, 14:28
x3tc

Post by Scrappy Coco »

Nice, I did the same in my mod. I didn´t download and tried yours, but did you had the same trouble with the loop playing twice in the bars. You need to enter from space, and walk to bar. If you saveload in bar everything is fine, while playing the lowpass loop and the normal one desyncronize.
DavidLasher
Posts: 15
Joined: Wed, 20. Nov 13, 08:22

Post by DavidLasher »

I'm getting used to modifying this game to try and add content in empty space and I want to say thank you for this framework. I don't have a ton of time to dedicate so references are very welcome. Don't worry, I won't make public modifications without asking permission, it's all a learning experience!
Vim Razz
Posts: 1842
Joined: Tue, 2. Nov 10, 02:20
x4

Post by Vim Razz »

Very nice change. thanks!
SpacialKatana
Posts: 8
Joined: Mon, 25. Nov 13, 22:59

Post by SpacialKatana »

Glad you like it guys.

Some credit goes to Scrappy Coco, I learned which samples to replace from another thread he was involved in it with.

I didn't realise there was another room.....though I do recall there being a different loop somewhere, I thought it was a one off on a different station. I have no way of finding the files....I guess they're in a .cat file somewhere?

BTW the mod goes real well with Lets_Talk_About_VR_v1...that guy's mod is cool :)
User avatar
Scrappy Coco
Posts: 62
Joined: Mon, 18. Nov 13, 14:28
x3tc

Post by Scrappy Coco »

The "PORN-Elevator-music" in the separate room is located at :

/sfx/animation/ and called "anim_elevator_music.wav"

in the original /libraries/sound_library.xml it is located at here:

Code: Select all


<!-- ...................... -->
<!-- ...... ELEVATOR ...... -->
<!-- ...................... -->
  
  <sound id="anim_elevator_music" description="Elevator Music" repeat="-1" is3d="1" preload="0">
    <sample start="sfx\animation\anim_elevator_music" />
    <volume start="1.0" distance="0.05" />
  </sound>  
and here

Code: Select all

  <sound id="interior_vip_music_01" description="Console" repeat="-1" is3d="1" preload="0">
		<sample start="sfx\animation\anim_elevator_music" />
    <volume start="0.05" distance="0.01">
      <volumecurve>
        <point distance="0.0" volume="1.0" />
        <point distance="0.1" volume="1.0" />
        <point distance="0.25" volume="0.1" />
        <point distance="1.0" volume="0.0" />      
      </volumecurve>
    </volume>
	</sound> 

So put this in yer sound_library.xml inside the <diff>:

Code: Select all

   <replace sel="/soundlibrary/sound[@id='anim_elevator_music']/sample">
      <sample start="extensions\YOURFOLDER\sfx\animation\anim_elevator_music.wav" />
   </replace> 

   <replace sel="/soundlibrary/sound[@id='interior_vip_music_01']/sample">
      <sample start="extensions\YOURFOLDER\sfx\animation\anim_elevator_music.wav" />
   </replace> 
Make a new folder inside the sfx called "animation"

Put yer .wav file there and rename it to: "anim_elevator_music.wav"

taadaaaa !!!

If you need a peek on the finished Version -> go here http://xrebirth.nexusmods.com/mods/112/ I just updated my mod with the fix for VIP-Room.

Cheers !

Scrappy Coco
SpacialKatana
Posts: 8
Joined: Mon, 25. Nov 13, 22:59

Post by SpacialKatana »

Cheers fella I'll go searching for another 'cool' loop to add.

I have noticed the de-sync problem when coming from space to the bar...engine problem I presume and well outta my league to fix atm.

I'll be sure to credit you when I update.

Cheers,

SK
Deleted User

Post by Deleted User »

thank you!
SpacialKatana
Posts: 8
Joined: Mon, 25. Nov 13, 22:59

Post by SpacialKatana »

Two versions available now on Nexus:-

http://xrebirth.nexusmods.com/mods/235//?

The original, and another that includes a replacement loop for the ante room.
User avatar
Playbahnosh
Posts: 869
Joined: Wed, 25. Mar 09, 16:26
x4

Post by Playbahnosh »

Can we maybe get a sample of the loops in question?
___________________________________
Image[ external image ][ external image ]
User avatar
Scrappy Coco
Posts: 62
Joined: Mon, 18. Nov 13, 14:28
x3tc

Post by Scrappy Coco »

I have noticed the de-sync problem when coming from space to the bar...engine problem I presume and well outta my league to fix atm.
That is engine-related, that was the part I needed to change the music, because at first I thought the original music is just terrible. I listenend to the original loop when I extracted the game, and I thought hey it´s not so bad at all, but why does it sound so horrible ingame ? Then I made my first mod, and saveloaded into bar, and hey sounds superb , then went out and back again and my own sound was as bad as the original.

I fiddled around with the volume and distance parameters of the original sound_lib.xml until I had it like I have it right now. It turns of the low_pass loop just when you enter the bar.

If you don´t want to have that damped sound in spacestation, you can make a dummyfile for that one, and make a random loop player for the bars.

Here is the hack for the sound splitting:

Code: Select all

   <replace sel="/soundlibrary/sound[@id='interior_bar_music_01']/volume">

	<volume start="0.2" distance="0.01" >
      <volumecurve>
        <point distance="0.0" volume="1.5" />
        <point distance="0.35" volume="1.0" />
        <point distance="0.75" volume="0.1" />
        <point distance="1.0" volume="0.0" />
      </volumecurve>
      </volume>
   </replace>

   <replace sel="/soundlibrary/sound[@id='interior_bar_music_01_base']/volume">
		<volume start="1" distance="0.04" >
      <volumecurve>
        <point distance="0.0" volume="0.0" />
        <point distance="0.35" volume="0.1" />
     	<point distance="0.5" volume="0.1" />
        <point distance="0.75" volume="0.0" />
        <point distance="1.0" volume="0.0" />
      </volumecurve>
	</volume>
   </replace>

If you put the interior_bar_music_01_base to a silent dummy file, you´ll turn it of. Then you can make instead of:

Code: Select all

 <sample start="extensions\better_ambient_sfx\sfx\ambient\platform\interior_bar_music_03" />
this for a random player

Code: Select all

<sample selection="random">
			<select start="extensions\better_ambient_sfx\sfx\ambient\platform

\interior_bar_music_01" weight="1"/>
			<select start="extensions\better_ambient_sfx\sfx\ambient\platform

\interior_bar_music_02" weight="1"/>
			<select start="extensions\better_ambient_sfx\sfx\ambient\platform

\interior_bar_music_03" weight="1"/>
		</sample>	


I use that in my own mod for myself, because I didn´t want to touch the vanilla feeling of entering the stations. But if you want it too , here it is.

Stay fresh !

Scrappy Coco

Return to “X Rebirth - Scripts and Modding”