¡Oh no! ¿Dónde está el JavaScript? El navegador Web no tiene JavaScript activado o no es compatible con JavaScript. Active JavaScript en su explorador Web para ver correctamente este sitio Web o actualizar a un navegador Web que admita JavaScript.
Sabías que...
Existe un periférico de Dreamcast que emula a una caña de pescar.

BennuGD/Fenix

Desarrollo Dreamcast usando BennuGD o su antecesor, Fenix
147 mensajes | Última Actividad en 27-12-2016 07:22 por Fuseki
F
Fuseki 27-12-2016 07:22, 7 year hace
Re: BennuGD para Dreamcast
I know this is old, but I have a quick question- do you have a Windows i386 binary of the version of BennuGD compiler that you've compiled for the Dreamcast? I've got things pretty well sorted with my new game in BennuGD and wish to test it on the Dreamcast. Thanks for any help you can offer! EDIT: I figured it out. For anyone else wanting to try this, you must use the OLD compiler from BennuPack 2.2 to get this to work. The newest compiler doesn't seem to compile the code in a way that'll run on the Dreamcast, unless I'm doing something wrong.
Respondido en BennuGD para Dreamcast
Ryo Suzuki
Ryo Suzuki 22-08-2016 23:53, 8 year hace
Re: Tutorial sencillo BennuGD de Indiket para DC
Bueno, como algunos sabéis el amigo Indi y yo estamos trasteando algo con este port-update que hizo sobre el que habia de los [b]Coldev[/b]. [img]http://www.segasaturno.com/portal/files/images/2/bennu_dreamcast.jpg[/img] El caso es que hice un tutorial para principantes en mi página hace unos meses y he pensado que sería bueno compartirlo por aquí por si alguno le apetece echarle un ojo e iniciarse a programar con esta suite de desarrollo de videojuegos que se comporta bastante bien en nuestra querida DC. Aquí os lo dejo: [url=http://www.segasaturno.com/portal/viewtopic.php?f=19&t=8570]Tutorial básico[/url] Llevo un tiempo trasteando con este nuevo Bennu,, si tenéis alguna duda a ver si os puedo echar un cable (o Indi como siempre!) Un saludo y larga vida a la DC! P.D: Por cierto, he subido la descarga a mi web también porque me habían comentado que el enlace de aquí está caído, era un usuario que trataba de probarlo y no podía bajarlo. No tenía ni idea :P -Resubidlo por aquí también, please-
F
Fuseki 01-04-2016 01:18, 8 year hace
Re: Fenix 0.84b CVS VMU saving
Got it. I'll give time() a try. This line from the wiki says it all: " It is also useful in rand_seed(), to have 'more randomness'." Thanks again!
Indiket
Indiket 31-03-2016 23:40, 8 year hace
Re: Fenix 0.84b CVS VMU saving
Good question, hmm with "mod_time" you have two functions: - time: Returns INT with current time from 1970. - ftime: Timestamp can be formated (probably you don't need it). Take a look here: [url]http://wiki.bennugd.org/index.php?title=Ftime[/url] [url]http://wiki.bennugd.org/index.php?title=Time[/url]
F
Fuseki 31-03-2016 23:13, 8 year hace
Re: Fenix 0.84b CVS VMU saving
I did try rand_seed, but maybe I did it wrong. How would I use timestamp as the argument?
Indiket
Indiket 31-03-2016 22:06, 8 year hace
Re: BennuGD para Dreamcast
I just state that I replied the rand issue in the other post! ;) . Thanks again for your support Fuseki!
Respondido en BennuGD para Dreamcast
Indiket
Indiket 31-03-2016 22:04, 8 year hace
Re: Fenix 0.84b CVS VMU saving
Hey Fuseki, glad you managed to solve it!! :D :D . And thanks again to post it for all of us!! About the rand issue, did you init the seed before using random? I think you have to include "mod_rand", and then call rand_seed with the argument as the seed (timestamp should be a good one). Then, just call rand_std with the MIN and MAX value of the random value. Cheers!!
F
Fuseki 31-03-2016 19:06, 8 year hace
Re: BennuGD para Dreamcast
No problem. I've got it all sorted, and even figured out that Fenix 0.84b is able to save to the VMU (using save() and load(), and the path '/vmu/a1/'... all thanks to Chui for the information!). There's an issue with the rand() function in BennuGD that makes my game do strange things (objects all end up in the same place and don't randomize), and I haven't sorted that out just yet, so I'm sticking to 0.84b for my current game, and will use BennuGD for my next game.
Respondido en BennuGD para Dreamcast
Indiket
Indiket 28-03-2016 22:51, 8 year hace
Re: BennuGD para Dreamcast
[quote][url=http://www.dreamcast.es/forum/viewthread.php?thread_id=2223&pid=15259#post_15259][b]Fuseki ha escrito:[/b][/url] Sounds great! Yes… the Dreamcast port of Bennu has been neglected. I have asked for help on the official forum, but no one answers. I have the engine for my next game finished (the game just needs new graphics and some tuning), and am considering porting it over to Bennu for the Dreamcast, as I'd like to have VMU saving support. I'll keep checking the page to see how you're doing with OGG support. I'm using s3m songs right now.[/quote] Hey Fuseki, how are you? Sorry for my delay, I've been working hard to bring to you a new release of the Bennu engine :) . I fixed the issues with OGG (I think), and added 50/60Hz selector as bonus. As for VMU saving, if I recall correctly, there is support. You have to load the mod_dream module and use the functions "configtovmu" and "configfromvmu". Check source code at file mod_dream/vmu.c, its really simple to get it :D
Respondido en BennuGD para Dreamcast
F
Fuseki 22-03-2016 05:39, 8 year hace
Re: Fenix 0.84b CVS VMU saving
Hey Indiket... I recently got my game engine to run under your new build of BennuGD for Dreamcast, but there are some bugs that I'm having a hard time fixing (mainly with rand() ), so I decided to stick with 0.84b CVS 2008 for this particular game. It runs fine under that build, and I'll just leave it for now. My other game will use BennuGD for Dreamcast, though. My question is, do you remember how to utilize VMU saving using the 2008 CVS build of 0.84b? I tried using fread/fwrite/fopen/fclose, but it tries to save the file to the CD and my game crashes on the Dreamcast. I *know* it works somehow, because I got it to work years ago. I just don't remember how to do it. I looked at the source code for 0.84b CVS, but I couldn't find the particular function that handles VMU saving. Any help you can offer would be greatly appreciated! Thanks! EDIT: I've got it sorted. Use save() and load(), and the path '/vmu/a1/' with a filename. Thanks to Chui for his help!
F
Fuseki 18-01-2016 02:32, 8 year hace
Re: BennuGD para Dreamcast
Sounds great! Yes… the Dreamcast port of Bennu has been neglected. I have asked for help on the official forum, but no one answers. I have the engine for my next game finished (the game just needs new graphics and some tuning), and am considering porting it over to Bennu for the Dreamcast, as I'd like to have VMU saving support. I'll keep checking the page to see how you're doing with OGG support. I'm using s3m songs right now.
Respondido en BennuGD para Dreamcast
Indiket
Indiket 17-01-2016 23:57, 8 year hace
Re: BennuGD para Dreamcast
Hey Fuseki! Glad to see you again here, great news!! ^^ Thanks a lot hehe, and you're welcome! Its a bit sad that BennuGD community don't pay too much attention to this Dreamcast port, because I see great potential on it! For instance, I'll try to compine this Bennu version with OGG support from KOS. Sounds cool, huh? :D
Respondido en BennuGD para Dreamcast
F
Fuseki 17-01-2016 21:04, 8 year hace
Re: BennuGD para Dreamcast
Great work! I need to set up a KOS environment and compile the latest BennuGD for Dreamcast. I'm still working within Fenix (I'm working on two games, plus I've done many old DIV ports for theisozone.com), but the limitations of Fenix 0.84b are starting to show. Thank you for the tutorials!
Respondido en BennuGD para Dreamcast
Indiket
Indiket 01-11-2015 17:05, 9 year hace
Re: BennuGD para Dreamcast
Esto es desde Ubuntu Sonicccp, para crear ejecutables y DLL para usarlo en Windows! ;) Creo que lo he conseguido, pero aún está todo muy "en pinzas" y puede ser que muchas cosas no vayan... así que WARNING xDDD
Respondido en BennuGD para Dreamcast
Sonicccp
Sonicccp 01-11-2015 15:49, 9 year hace
Re: BennuGD para Dreamcast
Guauu, esta interesante, solo un apunte tonto. Esto se descarga en windows o en Linux, estoy mas interesado hacerlo en Linux, tengo el Ubuntu en un equipo viejo que uso para estas cosas. Si es así, esta bien mirarlo y probar haber que se logra con tanto código, jeje.
Respondido en BennuGD para Dreamcast
Indiket
Indiket 31-10-2015 13:47, 9 year hace
Re: BennuGD para Dreamcast
[b][color=#0099ff]CROSS-COMPILAR BENNUGD DESDE UBUNTU PARA WIN32[/color][/b] ¿Tienes algún amigo hereje que usa Windows y necesita algún módulo en DLL? ¿Tienes repelús de usar Windows y no te pondrás una máquina virtual para ello? Si ese es tu caso, camarada, bienvenido a esta sección :D :D [b][color=#ff0000]SISTEMA HOST: UBUNTU 14.04 LTS[/color][/b] Veréis, dentro del mundillo de cross-compile a windows, existen dos programas para generar binarios: MINGW32 y MINGW-W64. El segundo es un fork más evolucionado, que permite compilar para 32 y 64 bits y además, ya incluye headers de librerías como DirectX. Usaremos este último!! 0. Instalar los siguientes paquetes básicos: [code]>> sudo apt-get install build-essential subversion mingw-w64 mingw-w64-tools[/code] 1. Ok, ya tienes el compilador pero... también tienes que compilar todas las librerías de tu proyecto para Win32, una a una (ugh, dolor!!). Así que ármate de paciencia, y al toro! [b]zlib[/b]: [code]>> apt-get source zlib1g >> cd zlib-1.2.8.dfsg >> CC=i686-w64-mingw32-gcc AR=i686-w64-mingw32-ar RANLIB=i686-w64-mingw32-ranlib CFLAGS="-DNO_FSEEKO" ./configure --prefix=/usr/i686-w64-mingw32/ >> make >> sudo make install[/code] Si os da un [b][color=#ff0000]error[/color][/b] (como a mí) de este tipo: [i]/i686-w64-mingw32/bin/ld: cannot find -lc collect2: ld returned 1 exit status[/i] No os asustéis xD. Repetid el último comando sin el parámetro "-lc" y luego el "make install". Os compilará correctamente ;) [b]openssl (1.0.1p - 32 bits)[/b]: Nota: el "Configure" con C mayúscula: [code]>> wget http://www.openssl.org/source/openssl-1.0.1p.tar.gz >> tar -zxf openssl-1.0.1p.tar.gz >> cd openssl-1.0.1p >> PATH=/usr/i686-w64-mingw32/bin/:$PATH ./Configure no-shared disable-capieng --prefix=/usr/i686-w64-mingw32/ mingw >> PATH=/usr/i686-w64-mingw32/bin/:$PATH make CC=i686-w64-mingw32-gcc RANLIB=i686-w64-mingw32-ranlib >> sudo make install[/code] [b]libpng[/b]: [code]>> wget http://kent.dl.sourceforge.net/project/libpng/libpng16/1.6.18/libpng-1.6.18.tar.gz >> tar -zxf libpng-1.6.18.tar.gz >> cd libpng-1.6.18 >> ./configure --prefix=/usr/i686-w64-mingw32/ --host=i686-w64-mingw32 >> make >> sudo make install[/code] [b]SDL 1.2.15[/b]: (Compilaremos sin soporte DirectX). [code]>> wget http://www.libsdl.org/release/SDL-1.2.14.tar.gz >> tar -zxf SDL-1.2.14.tar.gz >> cd SDL-1.2.14 >> ./configure --prefix=/usr/i686-w64-mingw32/ --host=i686-w64-mingw32 --disable-directx >> make >> sudo make install[/code] [b]SDL_mixer[/b]: [b][color=#ff0000]ATENCIÓN[/color][/b]: Hay un bug durante la compilación de la SDL_mixer 1.2.12 con SDL 1.2.15!! Para resolverlo, tenéis que hacer un primer intento de compilación, y luego editar el fichero /build/.libs/libSDL_mixer.la: [code]# Libraries that this one depends upon. dependency_libs = [/code] Quita la "-lmingw32" y pon "/usr/i686-w64-mingw32//lib/libSDLmain.la" [b]ANTES[/b] de la libSDL.la [code]>> wget http://www.libsdl.org/projects/SDL_mixer/release/SDL_mixer-1.2.12.tar.gz >> tar -zxf SDL_mixer-1.2.12.tar.gz >> cd SDL_mixer-1.2.12 >> ./configure --prefix=/usr/i686-w64-mingw32/ --host=i686-w64-mingw32 >> make >> sudo make install[/code] Nota: esta versión de SDL_mixer no la compilaremos con soporte OGG, MP3, FLAC ni Mikmod. 2. Ahora os descargáis los fuentes de BennuGD: >> svn co https://svn.code.sf.net/p/bennugd/code/ bennugd 3. Dadle permisos de ejecución a los scripts del configure. >> cd bennugd >> sudo chmod +x core/configure modules/configure tools/moddesc/configure 4. Editad el fichero "build-win32-cross-opensuse.sh" y haced estos cambios: [code]PKG_CONFIG_PATH=/usr/i686-w64-mingw32/lib/pkgconfig CFLAGS ="-O2 -I${WIN32CROSS}/include -I${WIN32CROSS}/include/[b]openssl[/b] -I${WIN32CROSS}/include/SDL" Cambiad los 3 "make" que están en core, modules y tools por esto: make SDL_LIBS='-lSDL' [/code] 5. Compilation time!! Ejecutad el script desde el directorio raíz de los fuentes. >> ./build-win32-cross-opensuse.sh release 6. [b]A disfrutar!! :D :D :D[/b]
Respondido en BennuGD para Dreamcast
Indiket
Indiket 19-09-2015 21:50, 9 year hace
Re: BennuGD para Dreamcast
[color=#0099ff]COMPILAR UN MÓDULO (mod_ttf)[/color] Una de las ventajas de compilar BennuGD, es que nos permite también compilar algunos módulos hechos para la comunidad (en caso que, por ejemplo, no tengamos la librería para nuestro sistema). Este ejemplo es muy ilustrador: mod_ttf tiene un dll (Windows), un so (Unix) y código fuente, pero no un dylib (Mac). No nos queda más remedio que preparar una compilación... Antes de todo, asegúrate que tienes instalada la freetype (--universal) con Macports o Homebrew. Descárgate mod_ttf de esta dirección: [url]http://www.bennugd.org/downloads/mod_ttf-1.1.zip[/url] y lo descomprimes. La carpeta mod_ttf tiene que ir a dentro de bennugd/modules Ok, ahora viene la parte complicada :/ . Tendremos que modificar el Makefile para que nos incluya nuestra nueva librería. Hay que tocar los siguientes ficheros: [b]bennugd/modules/Makefile.am[/b] Añadir la carpeta del nuevo módulo, después de las de librerías: [code]SUBDIRS = \ [...] mod_ttf \[/code] [b]bennugd/modules/configure.in[/b] Un caso parecido, añadiremos el nuevo Makefile a compilar: [code][...] AC_OUTPUT([ Makefile mod_ttf/Makefile [...][/code] Ok, ahora hay que ir dentro de la carpeta del módulo (en nuestro caso, mod_ttf) y crear el fichero [b]Makefile.am[/b]. Este fichero lo usará el configure para generar los Makefiles. Para el ejemplo, usad exactamente el siguiente contenido: [code]## Process this file with automake to produce Makefile.in #AUTOMAKE_OPTIONS = no-dependencies foreign lib_LTLIBRARIES = libmod_ttf.la libmod_ttf_la_SOURCES = ttf.c libmod_ttf_la_CFLAGS = $(COMMON_CFLAGS) $(SDL_CFLAGS) -I$(BGD_PATH)/include -I$(BGD_PATH)/bgdrtm/include -I../libfont/ -I../libgrbase/ -I/usr/local/include/freetype2 libmod_ttf_la_LDFLAGS = -s -shared -no-undefined -avoid-version libmod_ttf_la_LIBADD = $(COMMON_LDFLAGS) $(SDL_LIBS) -L$(BGD_PATH)/bgdrtm/src/.libs -lbgdrtm -lfreetype -L$(BGD_PATH)/../modules/libgrbase/.libs -lgrbase -L$(BGD_PATH)/../modules/libfont/.libs -lfont ## Make sure these will be cleaned even when they're not built by ## default. CLEANFILES = libmod_ttf.la[/code] Siguiente paso: regenerar los Makefiles. Volver al directorio superior y ejecutad estas dos instrucciones: [code]>> autoreconf -i >> automake >> ./configure[/code] Finalmente, podemos volver al directorio "bennugd" y ejecutar nuestro script de compilación (cruzar los dedos ayuda xD) >> /build-osx.sh release Si os ha funcionado toda la compilación, tendréis la nueva librería modular en vuestra carpeta de bins. Recordad, es una compilación dinámica (no estática) y la librería es como un "wrapper" a vuestras librerías del sistema (en este caso, la freetype).
Respondido en BennuGD para Dreamcast
Indiket
Indiket 19-09-2015 21:32, 9 year hace
Re: BennuGD para Dreamcast
¡Muchas gracias alexislight! Se agradece :) Sigo con mis notas personales: esta vez es un pequeño tutorial para compilar la última versión de BennuGD en nuestro sistema host... el MAC OS X!! [b][color=#ff0000]¡MUY IMPORTANTE![/color] BennuGD compila pero no funciona para entornos de 64bits (sólo compilaremos para arquitectura i386)[/b] [color=#0099ff]COMPILAR BENNUGD[/color] * Tendremos que tener instalado XCode 8 y uno de los siguientes repositorios: Macports o Homebrew. * Para empezar, debemos de instalar las siguientes librerías necesarias para compilar: SDL, SDL_mixer, libpng. También añadiremos la freetype para un siguiente módulo que compilaremos. Abrimos un terminal y ejecutamos: [b]Macports[/b]: >> sudo port install libsdl +no_x11 +universal libsdl_mixer +universal zlib +universal libpng +universal freetype +universal [b]Homebrew[/b]: >> brew install zlib --universal libpng freetype --universal libmikmod --universal >> brew install sdl --universal >> brew install sdl_mixer --universal --with-libmikmod --with-libvorbis [b][color=#ff0000]Actualización Agosto 2017:[/color][/b] Homebrew ya no soporta usar versiones viejas de OpenSSL, así que hay que modificar los Makefiles para quitar toda referencia al uso de la SSL. Deben de tocar estos ficheros: [b]modules/configure.in[/b] -> Cambiar el caso de "darwin", y no compilar "mod_crypt" [b]modules/Makefile.am[/b] -> Quitar la referencia a mod_crypt [b]core/configure.in[/b] -> Cambiar el caso de "darwin" y comentar "AC_SUBST(CRYPT_LDFLAGS)" [b]core/bgdi/src/Makefile.am[/b] -> Quitar la referencia de $(CRYPT_LDFLAGS) [b]core/bgdc/src/Makefile.am[/b] -> Quitar el fichero "../../common/b_crypt.c \" [b]core/bgdrtm/src/Makefile.am[/b] -> Quitar la referencia de $(CRYPT_LDFLAGS) [b][color=#ff0000]Actualización Agosto 2017 (2) :[/color][/b] Si queréis compiar la librería mod_image, debéis de instalar la librería libpng pero compilando para [b]32/64 bits[/b], y además instalar la SDL_image también para [b]32/64 bits[/b], y con el flag "-without-webp" * Descargamos el código fuente de BennuGD con este comando: >> svn co https://svn.code.sf.net/p/bennugd/code/ bennugd * Copia el siguiente script que aparece a continuación y lo guardas como "[b]build-osx.sh[/b]". Ya está preparado para i386, además del path a /usr/local (Macports puede usar /opt/local). [code]#!/bin/bash TARGET=osx-darwin export CFLAGS="-DTARGET_MAC -arch i386 -I/usr/local/include" export LDFLAGS="-arch i386 -framework Cocoa" echo "### CFLAGS and LDFLAGS env ###" echo $CFLAGS; echo $LDFLAGS; echo "### Building BennuGD Core ###" cd core chmod a+x configure # Patch Makefile.in's to build .dylib's instead of .so's FILES="bgdrtm/src/Makefile.in bgdrtm/src/Makefile.am" for i in $FILES; do echo $i sed -i -e 's/-module/-shared/g' $i done # Patch BGDI (main executable) OSX SDLmain init # Fixing multiple relinking :) FILES="bgdi/src/Makefile.in bgdi/src/Makefile.am" for i in $FILES; do echo $i sed -i -e 's/.libs -lbgdrtm/.libs -lSDLmain -lSDL -lbgdrtm/g' $i sed -i -e 's/bgdi_LDFLAGS =/bgdi_LDFLAGS := -arch i386 -framework Cocoa/g' $i done case $1 in release) ./configure && make clean && make ;; *) make ;; esac if [ $? -ne 0 ]; then echo "*** ABORT ***" exit 1 fi cd - echo "### Building BennuGD Modules ###" cd modules chmod a+x configure # Patch Makefile.in's to build .dylib's instead of .so's for i in *; do if [ -d $i ]; then sed -i -e 's/-module/-shared/g' $i/Makefile.in; sed -i -e 's/-module/-shared/g' $i/Makefile.am; fi; done case $1 in release) ./configure && make clean && make ;; *) make ;; esac if [ $? -ne 0 ]; then echo "*** ABORT ***" exit 1 fi cd - echo "### Building BennuGD Tools ###" cd tools/moddesc chmod a+x configure case $1 in release) ./configure && make clean && make ;; *) make ;; esac if [ $? -ne 0 ]; then echo "*** ABORT ***" exit 1 fi cd - echo "### Copying files to bin folder ###" mkdir -p bin/$TARGET 2>/dev/null #cp 3rdparty/des-4.04b/libdes.so bin/$TARGET cp core/bgdi/src/.libs/bgdi bin/$TARGET cp core/bgdc/src/bgdc bin/$TARGET cp core/bgdrtm/src/.libs/libbgdrtm.dylib bin/$TARGET cp $(find modules -name '*.dylib') bin/$TARGET cp tools/moddesc/moddesc bin/$TARGET echo "### Build done! ###" exit 0[/code] * Abrid el fichero /core/bgdi/src/main.c para añadir el define: #include <SDL/SDL.h> Es importante hacerlo, ya que sino os dará un error de linkaje que dice que no os encuentra SDL_main. * Abrid el fichero /modules/libdraw/libdraw.c y quitad dos "_inline" de: void _HLine32_stipple( uint32_t * ptr, uint32_t length ) void _HLine32_nostipple( uint32_t * ptr, uint32_t length ) * [color=#ff0000]NUEVO![/color] Abrid el fichero /modules/mod_sound/mod_sound_exports.h y comentad estas dos funciones: // FUNC( "UNLOAD_SONG" , "P" , TYPE_INT , modsound_unload_song2 ), // FUNC( "UNLOAD_WAV" , "P" , TYPE_INT , modsound_unload_wav2 ), * Todo listo!! Para compilarlo en nuestro Mac: [code]>> cd bennugd >>./build-osx.sh release[/code] ¡Y tachán! Dentro de la carpeta bin/osx-darwin tendremos los binarios bgdc (compilador), bgdi (intérprete), los ficheros .dylib (módulos de BennuGD) y la utilidad moddesc (que nos da info de los modulos).
Respondido en BennuGD para Dreamcast
Gromber
Gromber 14-08-2015 18:50, 9 year hace
Re: Totenkai Codigo Fuente
puf que viejo me siento con el reflote... no te preocupes hombre, gracias por la respueta.
Respondido en Totenkai Codigo Fuente
Indiket
Indiket 14-08-2015 12:04, 9 year hace
Re: Totenkai Codigo Fuente
Hey Gromber!! Ya conseguí el demo del Totenkai que viene con el DIV2. Lo he intentado convertir a BennuGD pero es bastante complicadote y se me escapan varios conceptos necesarios para reimplementarlo, sorry! Me extraña que nadie lo haya continuado en Bennu o otros lenguajes como Genix, verdad?
Respondido en Totenkai Codigo Fuente
puede ver todos los hilos de discusión en este foro.
puede iniciar un nuevo hilo de discusión en este foro.
no puede empezar en una encuesta en este foro.
puede cargar archivos adjuntos en este foro.
no puede descargar archivos adjuntos en este foro.
Afiliados
SEGA Saturno - Saturn, SEGA y Videojuegos