Minus
|
|
« Reply #30 on: February 08, 2009, 07:00:06 pm » |
|
In the meantime, I just realised code support does actually exist for this already; if you put a file called chat1.wav in data\base\sounds then it will be played when a chat message is received. You can also add more files named chat2.wav, chat3.wav, etc. and the code will pick a randomly-numbered sound effect from that set. Alternatively, OGG files with the name naming scheme (chat1.ogg, chat2.ogg, chat3.ogg, etc.) can be substituted instead of WAV files.
Wow, this worked wonderfully. Thanks!
|
|
|
Logged
|
|
|
|
Chris
|
|
« Reply #31 on: February 08, 2009, 10:44:36 pm » |
|
No problem. I just wish I'd remembered about that feature before, then I could have told you earlier.
|
|
|
Logged
|
|
|
|
Chris
|
|
« Reply #32 on: February 10, 2009, 08:55:35 am » |
|
Duncan sent me the attached sound file. What do you reckon?
|
|
|
Logged
|
|
|
|
Cankillar
Space cadet
Posts: 14
|
|
« Reply #33 on: February 11, 2009, 04:18:31 am » |
|
Why'd you choose .ini as the file type?
|
|
|
Logged
|
|
|
|
Chris
|
|
« Reply #34 on: February 11, 2009, 05:47:34 am » |
|
Um... I didn't. That's an OGG file.
|
|
|
Logged
|
|
|
|
Minus
|
|
« Reply #35 on: February 12, 2009, 04:26:06 am » |
|
Sounds good! Thanks Duncan!
|
|
|
Logged
|
|
|
|
Cankillar
Space cadet
Posts: 14
|
|
« Reply #36 on: February 12, 2009, 06:48:49 pm » |
|
Um... I didn't. That's an OGG file. Oh, I should have been more specific. I mean, .ini for the map files.
|
|
|
Logged
|
|
|
|
Chris
|
|
« Reply #37 on: February 13, 2009, 04:07:05 am » |
|
Oh, right. I chose .ini for the maps because it was convenient at the time. I might have instead chosen XML, but at the time I was looking for one, nobody had written an XML library for the D programming language (although there are now several), and I couldn't find a good simple plain-C XML library. I could have used a C++ XML library, but I didn't want to bother interfacing with it. There was, however, a native D library for reading ini files, so that ended up being the easiest way to go.
|
|
|
Logged
|
|
|
|
Kumlekar
|
|
« Reply #38 on: February 13, 2009, 09:10:41 am » |
|
Whats the advantage of a .ini over, say, a .txt?
|
|
|
Logged
|
What is Six Times Nine Forty-Two!
Jp may have played mayhem before it was cool, but I play while its cool! *
* "Cool" is defined as the period of time in which Kumlekar plays a game.
|
|
|
Chris
|
|
« Reply #39 on: February 13, 2009, 10:18:52 am » |
|
The INI file format is a standard format for representing structured data. (Although, unlike XML for example, it's a de-facto rather than an official standard as far as I know.) The extension ".ini" is merely a convention, like all file extensions are. I could have required maps to have a .txt extension despite containing data in the INI file format, and no actual harm would have resulted. Or I could have specified a .xml extension, or a .smeg extension. It's all just convention. Naming them ".ini" merely signals, to people in the know, that these files are expected to be INI files. The extension ".txt" is also a convention; one used for unstructured (human-readable) plain text. I couldn't have chosen unstructured text as the map file format, because computer programs require their data files to be structured; otherwise they can't extract meaningful information from the data files. People will sometimes ask for a ".txt file" or a ".doc" as shorthand for "an unstructured plain text file" or "a Word document", but that's just because they're being lazy. "Unstructured plain text file" is a bit of a mouthful, after all. Does that answer your question?
|
|
« Last Edit: February 13, 2009, 10:20:29 am by Chris »
|
Logged
|
|
|
|
Minus
|
|
« Reply #40 on: February 14, 2009, 05:44:30 am » |
|
IDEA: Add "Blind game" option to lobby - essentially changes every player's name to their color, so you don't know who's playing what. This is for those times when someone ( ) decides to attack me first in 3-person games when the other player declares they are new. This would also require ignoring preferred colors, shuffling them as the game starts.
|
|
|
Logged
|
|
|
|
Chris
|
|
« Reply #41 on: February 14, 2009, 07:54:05 am » |
|
I have the feeling there's a backstory behind this request. Added to the list!
|
|
|
Logged
|
|
|
|
Minus
|
|
« Reply #42 on: February 14, 2009, 06:12:46 pm » |
|
I have the feeling there's a backstory behind this request. Added to the list! Well, that particular clause is from a joke Kumlekar and I had in-game the other day. But it really stems from play-by-email Diplomacy again, where the meta-gaming prevention is anonyminity.
|
|
|
Logged
|
|
|
|
Kumlekar
|
|
« Reply #43 on: February 16, 2009, 04:21:49 am » |
|
I have the feeling there's a backstory behind this request. Added to the list! Minus just got tired of being the first to die in three player games.
|
|
|
Logged
|
What is Six Times Nine Forty-Two!
Jp may have played mayhem before it was cool, but I play while its cool! *
* "Cool" is defined as the period of time in which Kumlekar plays a game.
|
|
|
Minus
|
|
« Reply #44 on: February 18, 2009, 07:30:26 am » |
|
Idea: Option to auto-screenshot at the end of a multiplayer match, for later comparison or review.
|
|
|
Logged
|
|
|
|
|