Thread: Re: [Super-tux-devel] Sound and sound again :-) -> Bill
Brought to you by:
wkendrick
From: Duong-Khang N. <neo...@us...> - 2003-12-27 10:53:13
|
> > On Thu, Dec 25, 2003 at 09:03:18PM +0100, Duong-Khang NGUYEN wrote: > > Changes,fixes, adds: > > > > 1. Changes: setup.c now open audio device even if --disable-sound > > command-line option was given. This is because the user can now decide to > > activate it later via menu. > > I think maybe if they use "--disable-sound", it shouldn't open the audio > device, and either it should be opened the first time they enable sound > from the menu, OR the menu option would just not be there. > > Then perhaps have a "--no-sound" or "--sound=off" option which changes > the OPTION (rather than affect the core initialization) > > Make sense? > Currently, the audio device is initialized only once at the startup by "setup.c" and this regarless the command-line options "--disable-sound" or "--disable-music". If both of them are specified, "setup.c" still tries to initialized the audio device, but DOES NOT print any error message like: "Warning: I could not set up audio for 44100 Hz 16-bit stereo. The Simple DirectMedia error that occured was: No available audio device" In fact, the command-line options "--disable-sound" and "--disable-music" only affect the menu options. And at a higher level, they're completly IGNORED and sound/music menu options are DISABLED if the "setup.c" can not initialize the audio device at the beginning. IOW, "--disable-sound" and "--disable-music" don't affect the core initialization (core initialization = open and init the audio device via SDL_Init and Mix_OpenAudio) Let me know if you have any other ideas. Duong-Khang NGUYEN -- Never say if I could turn back the time, life is going on ! |
From: Duong-Khang N. <neo...@us...> - 2003-12-27 10:53:14
|
Le Samedi 27 Décembre 2003 05:14, sup...@li... a écrit : > > > Hey there, > > As I told you, I was doing a built-in level editor for SuperTux. > I have not been able to develop much (Christmas time ;) ), but I have > finally managed to complete a workable version. > As Bill, I prefer a seperate level editor ! Any different vote for this ? > It basically has support for scrolling use the keyboard or mouse, changing > tiles by pressing keys (please, sugest and/or help on an interface) and > load/save levels. This sounds good :wink: ;-) > You are still not able to add a new level, you'll have to create a file > and images first. And you can't specify level width, time, background color > or music file. Also it is not possible to add Bad Guys (will be done soon), > since there is no info regarding this in the LEVELDESIGN file. Who maintains this LEVELDESIGN ? (looking at Tobias) > I noticed, that a file called enemy.h has been added, I advice you to use > the same nomenclature, so you should call it badguy.h . And are you > thinking in turning SuperTux in C++? I'll declare war to anyone who want to turn SuperTux into C++ ! Originally, SuperTux is written in C by Bill, and he thought it in C. If anyone want to write SuperTux in C++, he must start from scratch and think in C++ way. We're going to vote for this (ah long life to the Democracy). However, if you guys really want to write things in C++, I suggest to break the current CVS tree into 2 different CVS trees: the C++ and the old C one. And I'll be voluntary to maintain the so old C source tree of course. IMHO, in order to program WELL in C++, we need a lot of work ! > I am not a C programmer (i prefer C++) and I've tried to put the code not > as much spagheti as the gameloop one (the new gameloop does not look as > spagheti anymore ;)) > I've tonight (it's 4 am, time to go to bed :Z), put it working with the > CVS and even add it to the menu. > But, when executed when the game is running and then closed, there is a > seg fault. Probabily because I use functions from the gameloop file... > Also, when the game is not running and the level editor is executed, after > it is closed, the menu background does not update, until we press a key > (that's not my fault! :)) We're going to look for this. > The only thing I know to do with CVS is to get data, I've not upload > anything for a long time. I also don't know how to use the patch comand. > So, forgive me, but I will publish the files in my page and then you can > get them and merge with the cvs. Maybe you could also teach me how to > upload and patch stuff :) > > The files need to be added: > src/leveleditor.c > http://rpmcruz.planetaclix.pt/trash/leveleditor.c > src/leveleditor.h > http://rpmcruz.planetaclix.pt/trash/leveleditor.h > data/images/leveleditor/select.png > http://rpmcruz.planetaclix.pt/trash/select.png > > Files I had to change: > Makefile > http://rpmcruz.planetaclix.pt/trash/Makefile > src/menu.c > http://rpmcruz.planetaclix.pt/trash/menu.c > src/menu.h > http://rpmcruz.planetaclix.pt/trash/menu.h > > I hope you enjoy my work! > > Hopes of good holidays, > Ricardo Cruz > Thanks for your work, the main programmer (who is he ? :-D) will show you how to use the CVS. Anyway, i'm going to have a look at this. Duong-Khang NGUYEN -- Never say if I could turn back the time, life is going on ! |
From: Tobias <tob...@gm...> - 2003-12-27 12:32:41
|
Am Sa, den 27.12.2003 schrieb Duong-Khang NGUYEN um 05:49: > Le Samedi 27 Décembre 2003 05:14, > sup...@li... a écrit : > > > > > > Hey there, > > > > As I told you, I was doing a built-in level editor for SuperTux. > > I have not been able to develop much (Christmas time ;) ), but I have > > finally managed to complete a workable version. > > > As Bill, I prefer a seperate level editor ! Any different vote for this ? Yes, I'd like to see it in the game. > > It basically has support for scrolling use the keyboard or mouse, changing > > tiles by pressing keys (please, sugest and/or help on an interface) and > > load/save levels. > > This sounds good :wink: ;-) I agree. > > > You are still not able to add a new level, you'll have to create a file > > and images first. And you can't specify level width, time, background color > > or music file. Also it is not possible to add Bad Guys (will be done soon), > > since there is no info regarding this in the LEVELDESIGN file. > > Who maintains this LEVELDESIGN ? (looking at Tobias) Yo. .) > > > I noticed, that a file called enemy.h has been added, I advice you to use > > the same nomenclature, so you should call it badguy.h . And are you > > thinking in turning SuperTux in C++? > > I'll declare war to anyone who want to turn SuperTux into C++ ! Originally, > SuperTux is written in C by Bill, and he thought it in C. If anyone want to > write SuperTux in C++, he must start from scratch and think in C++ way. We're > going to vote for this (ah long life to the Democracy). However, if you guys > really want to write things in C++, I suggest to break the current CVS tree > into 2 different CVS trees: the C++ and the old C one. And I'll be voluntary > to maintain the so old C source tree of course. IMHO, in order to program > WELL in C++, we need a lot of work ! > > > > I am not a C programmer (i prefer C++) and I've tried to put the code not > > as much spagheti as the gameloop one (the new gameloop does not look as > > spagheti anymore ;)) > > I've tonight (it's 4 am, time to go to bed :Z), put it working with the > > CVS and even add it to the menu. > > But, when executed when the game is running and then closed, there is a > > seg fault. Probabily because I use functions from the gameloop file... > > Also, when the game is not running and the level editor is executed, after > > it is closed, the menu background does not update, until we press a key > > (that's not my fault! :)) > > We're going to look for this. > > > > The only thing I know to do with CVS is to get data, I've not upload > > anything for a long time. I also don't know how to use the patch comand. > > So, forgive me, but I will publish the files in my page and then you can > > get them and merge with the cvs. Maybe you could also teach me how to > > upload and patch stuff :) > > > > The files need to be added: > > src/leveleditor.c > > http://rpmcruz.planetaclix.pt/trash/leveleditor.c > > src/leveleditor.h > > http://rpmcruz.planetaclix.pt/trash/leveleditor.h > > data/images/leveleditor/select.png > > http://rpmcruz.planetaclix.pt/trash/select.png > > > > Files I had to change: > > Makefile > > http://rpmcruz.planetaclix.pt/trash/Makefile > > src/menu.c > > http://rpmcruz.planetaclix.pt/trash/menu.c > > src/menu.h > > http://rpmcruz.planetaclix.pt/trash/menu.h > > > > I hope you enjoy my work! > > > > Hopes of good holidays, > > Ricardo Cruz > > > > Thanks for your work, the main programmer (who is he ? :-D) will show you how > to use the CVS. Anyway, i'm going to have a look at this. > > Duong-Khang NGUYEN -- |