stwf
WFG Retired-
Posts
178 -
Joined
-
Last visited
-
Days Won
2
Everything posted by stwf
-
Hello All, Sorry for my prolonged absence. I'l be getting back into the programming thing in the new year. Its good to hear all of this oniterest in the sound stuff. I'll try and explain some thing as easily as I can. I'll also be writing up a short description of how the sound stuff works. Some of it is counterintuitive but it explains a lot of why we do things the way we do. Currently the sound system will locate a sound source so when listening in stereo sounds from the righ of the screen come out of tthe right speaker. My issue with the battle intensity sounds is that this would largely eliminate that. and I think it would be bad. I believe if we had formations, and could easily locate a group of fighters to one area, it would then make sense to have one sound for 10 archers firing instead of playing 10 singe arrow shots at one time. But otherwise we lose a lot unless we introduce some complicated method of grouping and locating similar fighters. Of course we need to be very careful not to do anything that takes too long. This code would need to be executed every frame. I have always worked to keep the computation time to a minimum there. Also note that the current code does alter the pitch, volume and frequency for most sounds randomly. This is in addition to the 10 or sos sounds there are for a sword clank. These also get used in a random order and have their volumes and pitches altered randomly. I think it is important to remember this is a game. The sounds should first serve the game, making sure to alert the player of important events, and not serve to confuse them with too many sounds. It would be nice if in addition to that everything sounded like a hollywood movie battle scene, but playability should come first. Please feel free to ask any questions. I'll try to be in IRC more too. Let me know if there is a good time and I can try to be online.
-
[Discussion] Spidermonkey upgrade
stwf replied to Yves's topic in Game Development & Technical Discussion
ok, I checked my fixes for this upgrade into main trunk. It just makes things so much easier. I did incorporate the suggestions you made on the first batch. -
So by support you are saying that switching over to SDL 2.0 may not be that hard? In that case maybe I will look at it (if you don't mind) as part of the Android move. Who knows how many odd issues it may clear up...
-
[FIXED] ERROR: OpenAL error: Invalid Enum; called from FadeToIn (line 345)
stwf replied to scroogie's topic in Bug reports
Thanks for the help historic_bruno! -
I think that can be fixed by editing the appropriate XML file and turning on eOmnipresent if you want it to play at the listener location, or turning on eDistanceless and it is played at a location, but at full volume.
-
OK, thread resurrected! My Ouya has just shipped, I should be getting it in the next week -> month lol. At that point I'm going to try and build this. http://www.ouya.tv/ This may also be a good chance to upgrade to SDL2.0 which is still a WIP but their timeline seems to roughly jive with the amount of time the port will take. Anyone with some Android expertise / interest who wants to stay in the loop on this let me know. OF course I'll post here when I am successful. Defeat is not an option!
-
[FIXED] ERROR: OpenAL error: Invalid Enum; called from FadeToIn (line 345)
stwf replied to scroogie's topic in Bug reports
hmm, ok I'll take a look. I'm guessing the next track does play fine? Are there any sound problems (besides the error message) I was waiting on this since the sound code got a big upgrade. I'll take a look again. Is there a ticket for this? -
I think its time the game got a working preferences system, so I don't have to keep editing default.cfg. Does this work on any platforms? A good start would be having our current settings dialog box remember its settings. Then probably adding some better options to the dialog box. Apologies if this is my error or a Mac issue.
-
Hi, sorry haven't been on IRC the last few days. I do believe we mean to put some indication on the minimap when someone is attacked, or dies. Which is the best way to handle this. But maybe some sort of rolloff for far away deaths isn't a bad idea. Right now sounds are marked as distanceless, meaning they are played even if they are far off screen. But maybe they still could be played at lower volume. Right now the Sound code doesn't do many distance measurements, its more concerned with whether stuff is on screen or not.
-
[Discussion] Spidermonkey upgrade
stwf replied to Yves's topic in Game Development & Technical Discussion
No problem! It actually made my code much simpler, so I'm glad to have them in there... I'll incorporate all of your suggestions soon, although I may let you work through it a little more on your own so I get all of the fixes at one time ;-) In my case its best since the SoundManager will also be nil if the game was compiled without audio support, or if the user disables music from the settings menu during a game. So its a case I always have to deal with. -
Hoi, Just thought I'd post this link I found concerning an indie game currently being developed. It looks pretty cool and the guys blog has some good posts, especially one concerning pathfinding. I don't know if it applies to us, but I thought it interesting none the less. It shows the pitfalls you face trying to optimize things like this. http://www.shiningrocksoftware.com/?p=901
-
[Discussion] Spidermonkey upgrade
stwf replied to Yves's topic in Game Development & Technical Discussion
Hi, sorry for the delay, I missed this somehow... https://github.com/stwf/0ad/tree/spidermonkey Is the link to the branch, I think any bugs in it now already existed..... -
[FIXED] ERROR: OpenAL error: Invalid Enum; called from FadeToIn (line 345)
stwf replied to scroogie's topic in Bug reports
hmm, no you just have to wait for the son to end, then there is a 15 second pause. Then a new one begins, or the same one plays again if that civ only has one song. So btw what map is it you are playing? Does it happen on others? -
[FIXED] ERROR: OpenAL error: Invalid Enum; called from FadeToIn (line 345)
stwf replied to scroogie's topic in Bug reports
Thanks. but timing it isn't necessary. Is it happening while the game is changing songs? That does happen every few minutes... -
[FIXED] ERROR: OpenAL error: Invalid Enum; called from FadeToIn (line 345)
stwf replied to scroogie's topic in Bug reports
ok, thanks. Is there anything specific thats going on when you see the warning? Does it happen always, does it happen in large bursts or just once in a while? Thanks for the help in tracking this down! -
[FIXED] ERROR: OpenAL error: Invalid Enum; called from FadeToIn (line 345)
stwf replied to scroogie's topic in Bug reports
Hi, Is that on a mac? In general what is your system info? -
[Discussion] Spidermonkey upgrade
stwf replied to Yves's topic in Game Development & Technical Discussion
Hi, OK, I have these changes done, although there is a bug or two I'm still working out, the JSObjects have all been replaced by globals. This is currently in a github branch. Can you get it from there? Would you just like it as a diff file? I suppose I could just check in the changes to svn when its bug free, but that may take a little bit. Would you rather have the changes first? -
Triggers (split from A couple of suggestions)
stwf replied to Kimball's topic in Game Development & Technical Discussion
I never meant to say that the triggers be designed just for a particular campaign. Just that it would be nice to have a sample campaign to work against as we did the coding. It seems like a lot of campaign type scenarios don't require triggers at all, but some other type of functions like timers and such. Also that its my opinion that high quality content takes much longer to create than the programming behind it (once its begun). -
Triggers (split from A couple of suggestions)
stwf replied to Kimball's topic in Game Development & Technical Discussion
I am really interested in implementing triggers and getting campaigns in the game. Its just there are a few other things that need to be done first. I would think it would be better to have at least an outline of the narrative available first though. This way we could make sure the trigger system was adequate for what the campaign requires. I remember someone saying they had written out a tutorial campaign. I'll have to find that post. -
[Discussion] Spidermonkey upgrade
stwf replied to Yves's topic in Game Development & Technical Discussion
Hi , they seem doable, so if it helps out keeping the code current I have no problem with it... Trying to build the latest code with your patch applied brings up the following errors and warnings though: ../../../source/graphics/GameView.cpp:621:10: warning: address of function 'CGameViewImpl::ConstrainCamera' will always evaluate to 'true' [-Wbool-conversions] if (!m->ConstrainCamera) ~~~~^~~~~~~~~~~~~~~ ../../../source/graphics/GameView.cpp:407:18: error: no matching member function for call to 'RegisterFunction' ...scriptInterface.RegisterFunction<void, bool, &CGameViewImpl::LockCullCamera>... ~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -
[Discussion] Spidermonkey upgrade
stwf replied to Yves's topic in Game Development & Technical Discussion
I'm willing to make whatever changes are needed to move the game forward, but there are a few things that need to be thought through here. What time frame are we talking about here? I'm not as much in favor with passing handles back to the simulation. It makes me think I would need to keep these references around forever since I wouldn't know when a handle went out of scope or the converse, forcing js developers to dispose of each handle seems like a complication for them. In general I've tried to move the work into the C code like with playlists. Is the behavior of source/simulation2/CCmpSoundManager along the lines of what you want? -
Working on stuff for Alpha 14.
stwf replied to Mythos_Ruler's topic in Game Development & Technical Discussion
It seems to me that some of these suggestions are getting away from what we are trying to create here, which is a game of ancient warfare, and also pretty unrealistic. I mean a stand of trees that you could cut down in a week takes years and years to regrow. Unless we place strict limits on how many units are chopping trees there is no way they could ever regenerate. Same with berries, or animals, and that seems like too much micromanagement. Better could be new resources showing up as research is done, like some detection technique being researched would result in a bunch of invisible metal deposits becoming visible In addition farms getting renewable, and more productive through research is also more realistic. Maybe bigger trees becoming available for cutting down. But lets remember that we aren't trying to rewrite Civ3 here (at least not yet). -
OK, this actually seems to be a javascript error. The variable this.tracks.PEACE keeps getting each civs music added tothe list. I can clear this up with a call to tracks.PEACE = []; at line 120 of music.js. But I don't know the javascript code very well. Does this seem like the best place to do this? This only works for peace tracks which seems to be all that there is in the civ json files at this moment...
-
ok r13372 should clear this up. sorry!
-
[DISCUSS] Performance Improvements
stwf replied to RedFox's topic in Game Development & Technical Discussion
I know this is probably off topic but since it is a renderer thread. Does any of this effect OpenGL-ES compatibility? I think the new generations of Android consoles could be a boom for 0ad and a great way to get publicity. As I understand it Android by default at least only supports OpenGL-ES. It would be great if in rewriting the code we could keep this in mind. Thoughts?