Facebook Twitter YouTube Frictional Games | Forum | Privacy Policy | Dev Blog | Dev Wiki | Support | Gametee


Thread Rating:
  • 1 Vote(s) - 5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Script error (Again)
Abion47 Offline
Senior Member

Posts: 369
Threads: 22
Joined: Oct 2015
Reputation: 46
#11
RE: Script error (Again)

(07-08-2016, 05:29 PM)Hypercube Wrote: I wasn't saying that Venom should use eMusicPrio_BgAmb but it was an example because that's what I had used for the moment. Interesting though, I didn't realize the compiler automatically converted it into a float. I thought I remember it just not working, is it okay to leave it at one or should you include the decimal point? I remember encountering issues with this before

It depends on who you ask, I suppose. Strictly speaking, according to convention you should always use the type of constant that a variable/parameter/whatever is asking for to make it clear as to what you are doing. And sure, there can be cases in which a float is required such that an int wouldn't be able to get converted, but I'm not sure where in SOMA modding script those cases would arise (unless you start getting crazy with delegates, maybe).

In practice, this is one of those conventions that people would probably recommend you follow, but not following it doesn't really hurt much in most circumstances.

(07-08-2016, 05:33 PM)Venom Fox Wrote: To be sure that the audio file wasn't.. um.. broken, I used an audio track from Soma's soundtrack.
It didn't work either.

Also I want to make sure I'm doing it right. I have a folder called music in my folder, which contains the song, and I've added this to the resources.cfg; <Directory Path="/music" AddSubDirs="true"/>

So no errors in that regard?

In which folder? SOMA's folder? Your mod folder? Are you talking about SOMA's resources file or your mod's resources file? Did you copy the song from SOMA's folder into yours before you tested it?
(This post was last modified: 07-08-2016, 05:45 PM by Abion47.)
07-08-2016, 05:43 PM
Find


Messages In This Thread
Script error (Again) - by Venom Fox - 07-08-2016, 11:48 AM
RE: Script error (Again) - by Romulator - 07-08-2016, 01:36 PM
RE: Script error (Again) - by Venom Fox - 07-08-2016, 02:40 PM
RE: Script error (Again) - by Hypercube - 07-08-2016, 04:28 PM
RE: Script error (Again) - by Venom Fox - 07-08-2016, 04:42 PM
RE: Script error (Again) - by Abion47 - 07-08-2016, 05:20 PM
RE: Script error (Again) - by Hypercube - 07-08-2016, 05:29 PM
RE: Script error (Again) - by Abion47 - 07-08-2016, 05:43 PM
RE: Script error (Again) - by Venom Fox - 07-08-2016, 06:36 PM
RE: Script error (Again) - by Hypercube - 07-08-2016, 04:59 PM
RE: Script error (Again) - by Venom Fox - 07-08-2016, 05:27 PM
RE: Script error (Again) - by Venom Fox - 07-08-2016, 05:33 PM
RE: Script error (Again) - by Hypercube - 07-08-2016, 06:37 PM
RE: Script error (Again) - by Venom Fox - 07-08-2016, 06:53 PM
RE: Script error (Again) - by Abion47 - 07-08-2016, 06:58 PM
RE: Script error (Again) - by Venom Fox - 07-08-2016, 07:07 PM
RE: Script error (Again) - by Daemian - 07-08-2016, 10:58 PM
RE: Script error (Again) - by Venom Fox - 07-09-2016, 03:11 PM
RE: Script error (Again) - by Hypercube - 07-09-2016, 07:36 PM
RE: Script error (Again) - by Venom Fox - 07-09-2016, 08:32 PM
RE: Script error (Again) - by Venom Fox - 07-10-2016, 11:54 AM
RE: Script error (Again) - by Venom Fox - 07-10-2016, 01:57 PM



Users browsing this thread: 1 Guest(s)