Menu

Show posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.

Show posts Menu

Messages - LivingNexus

#1
Outdated / Re: [A14] Community Core Library v0.14.3.1
September 16, 2016, 08:51:15 AM
I'm not a coder but I'm really enjoying the shop talk.
#2
Thanks. I hate that this was such an easy fix. Sorry to take up your time.

By the way, do you know how to make a song play only once, or how to make it play after a certain even without increasing the commonality?
#4
Quote from: Ykara on August 30, 2016, 06:41:03 PM
Everything eventually stops, except for natural organ rejection. In real life you also have to continue taking drugs after an organ transplant.

You could make a new surgery, called "Cure rejection ([Organ])" that requires Glitterworld medicine.
#5
I'm hoping you can help me. I modeled my music mod directly after yours, using music I found around the internet, but I still can't seem to get it to work. This is my first time messing around with XML, so is there something I'm missing? I've been running into a ton of problems both trying to get this mod to work and trying to make it so the music already in the game doesn't play (after 50+ hours I got kind of tired of it). Obviously I have no mods installed except this one. If it helps, all the songs are in .ogg format and range from 7,000kb to 18,000kb.


<?xml version="1.0" encoding="utf-8"?>
<SongDefs>

   <SongDef>
      <defName>Dollar</defName>
      <clipPath>Dollar</clipPath>
      <volume>0.9</volume>
  <commonality>3.0</commonality>
      <allowedTimeOfDay>Night</allowedTimeOfDay>
   </SongDef>
   
   <SongDef>
      <clipPath>ShadowsR</clipPath>
      <volume>0.9</volume>
  <allowedSeasons>
<li>Winter</li>
  </allowedSeasons>
      <allowedTimeOfDay>Night</allowedTimeOfDay>
   </SongDef>
   
   <SongDef>
      <clipPath>Awake</clipPath>
      <volume>0.9</volume>
      <allowedTimeOfDay>Night</allowedTimeOfDay>
   </SongDef>
   
   <SongDef>
      <clipPath>Worth_Everything</clipPath>
      <volume>0.9</volume>
      <allowedTimeOfDay>Day</allowedTimeOfDay>
   </SongDef>
   
   <SongDef>
      <clipPath>Far_Away</clipPath>
      <volume>0.9</volume>
      <allowedTimeOfDay>Day</allowedTimeOfDay>
   </SongDef>
   
   <SongDef>
      <clipPath>The_Sway</clipPath>
      <volume>0.9</volume>
      <allowedTimeOfDay>Day</allowedTimeOfDay>
   </SongDef>
   
   <SongDef>
      <clipPath>Yui10</clipPath>
      <volume>0.9</volume>
      <allowedTimeOfDay>Night</allowedTimeOfDay>
   </SongDef>
   
   <SongDef>
      <clipPath>Wish</clipPath>
      <volume>0.9</volume>
   </SongDef>
   
   <SongDef>
      <clipPath>All_Is_Dream</clipPath>
      <volume>0.9</volume>
      <allowedTimeOfDay>Night</allowedTimeOfDay>
   </SongDef>
   
   <SongDef>
      <clipPath>One_Day</clipPath>
      <volume>0.9</volume>
      <allowedTimeOfDay>Day</allowedTimeOfDay>
   </SongDef>
   
   <SongDef>
      <clipPath>Automat</clipPath>
      <tense>true</tense>
   </SongDef>
   
   <SongDef>
      <clipPath>Hot_Heart</clipPath>
      <tense>true</tense>
   </SongDef>
   
   <SongDef>
      <clipPath>Alfheim</clipPath>
      <tense>true</tense>
   </SongDef>
   
   <SongDef>
      <clipPath>Arthropod</clipPath>
      <tense>true</tense>
   </SongDef>
   
   <SongDef>
      <clipPath>Insect_State</clipPath>
      <tense>true</tense>
   </SongDef>
   
</SongDefs>


My file structure looks like this:

Background Music
‣About
‣Defs
‣‣SongDefs
‣‣‣Songs_Gameplay
‣Sounds
‣‣[music files]



Every time I restart, random songs refuse to play. They all still show up in development mode, but the buttons don't do anything. The songs that don't work are different each time.

Also, setting the Commonality to "0.0" for songs in the Core ‣ Defs ‣ SongDefs ‣ Songs_Gameplay xml file does successfully prevent them from playing, but seemed to throw out a string of errors while in development mode whenever a song probably would play, and the window seems to pop up a random number of times (having to close the debug window 1 time, 8 times, 11 times, 13 times, 3 times, etc.). However, restarting after activating my mod did fix this issue and caused several of my added songs to start working (though not Yui10 and One_Day for some reason). I don't remember what the error message was specifically, but it had something to do with 0.0 and random events. I can only assume that's what the game throws out when it tries to play a song but there's literally nothing it's allowed to play.

Each time I have tested it I started a new colony and just let the game run in the background. What I noticed is that if I don't touch anything songs play fairly frequently, but if I play a song from developer mode then songs take a really long time to start up again, but that might just be regular game behavior.

Also, every once in a while my "Select Landing Site" screen will display a gray box where the world map normally is. Going back and using a different random seed doesn't fix the issue. Only restarting does.

Another quirk is that my mod doesn't prompt the game to restart when activated; I have to do it manually. Is there some line of code my file is missing? Something in the About file that should be there? I'm at a loss.