Search found 71 matches

by PrOfUnD Darkness
Fri Oct 02, 2020 1:36 am
Forum: Programming Discussion
Topic: Ogg Vorbis
Replies: 1
Views: 932

Ogg Vorbis

Using kos-2.10, every time I try a new ogg file in my game it's a pain, most of the time it just crashes. I tried different encoding settings but I can't figure out the right one, sometimes it just works, most of the times it does not. The code is basically playing the file and looping waiting for i...
by PrOfUnD Darkness
Fri Aug 14, 2020 11:36 am
Forum: Programming Discussion
Topic: snd_sfx_load and unload, garbled sfx
Replies: 3
Views: 405

Re: snd_sfx_load and unload, garbled sfx

In my personal opinion it is not a good idea to unload sfx continuously. Just load all the files upfront and depending on the value of 'c', play the correct sfx. Yep that's how I fixed it, my concern is that we have less than 2Mb of memory to work with and I'd like to streamline the memory usage. T...
by PrOfUnD Darkness
Fri Aug 14, 2020 12:40 am
Forum: Programming Discussion
Topic: snd_sfx_load and unload, garbled sfx
Replies: 3
Views: 405

snd_sfx_load and unload, garbled sfx

My code looks like this (simplified): int sfx; int c = 1; main() { while (1) { if (c==1) sfx = snd_sfx_load("/rd/1.wav") else if (c==2) sfx = snd_sfx_load("/rd/2.wav") else if (c==3) sfx = snd_sfx_load("/rd/3.wav") c=playgame(); snd_sfx_unload(sfx); } } int playgame() {...
by PrOfUnD Darkness
Thu Aug 13, 2020 1:33 am
Forum: Programming Discussion
Topic: libparallax and special characters
Replies: 8
Views: 1017

Re: libparallax and special characters

I can confirm it works using the plx_fcxt_draw_wide and fat_utf8_to_ucs2 from ucs.c! Thank you so much!
by PrOfUnD Darkness
Fri Jul 24, 2020 8:07 pm
Forum: Programming Discussion
Topic: libparallax and special characters
Replies: 8
Views: 1017

Re: libparallax and special characters

You're right, I will double check my font. But I don't see this function in my local kos source...I just downloaded kos-2.0.0-src.tar.gz again and I don't see it in there, am I getting it from the wrong place maybe? (https://sourceforge.net/projects/cadcdev/)
by PrOfUnD Darkness
Fri Jul 24, 2020 2:33 pm
Forum: Programming Discussion
Topic: libparallax and special characters
Replies: 8
Views: 1017

Re: libparallax and special characters

I am using Arial, I am pretty positive it has all the glyphs. It seems like your function might work but I am having a hard time dealing with the strings in my code after converting them from utf8 to UCS-2 (or UTF16). It breaks all my str functions. I wonder if I can use SDL instead of libparallax t...
by PrOfUnD Darkness
Thu Jul 23, 2020 7:17 pm
Forum: Programming Discussion
Topic: libparallax and special characters
Replies: 8
Views: 1017

libparallax and special characters

I'm using libparallax to write text to the screen but I get an empty space in place of ?!éà and characters like that. The source text is encoded using utf-8, I wonder if that may be the problem? Ideas?
by PrOfUnD Darkness
Fri Nov 19, 2004 1:53 pm
Forum: Programming Discussion
Topic: Question regarding 0GDTEX.PVR
Replies: 10
Views: 832

I remember reading about this on dcdev maillist, at that time nobody got this cd player texture working. Please tell us if you find something.
by PrOfUnD Darkness
Wed Aug 25, 2004 1:50 pm
Forum: Programming Discussion
Topic: Would this be legal?
Replies: 7
Views: 514

Yeah, but to make small videos I think maybe it's worth. The mpeg libs I tried until now are slow. I will give smpeg a shot anyway.
by PrOfUnD Darkness
Wed Aug 25, 2004 8:44 am
Forum: Programming Discussion
Topic: Would this be legal?
Replies: 7
Views: 514

Thanks for the answers.
Anyway, what do you think? KOS still doesn't have a nice mpeg lib, maybe a flash lib could fill the gap?



PD
by PrOfUnD Darkness
Tue Aug 24, 2004 10:50 am
Forum: Programming Discussion
Topic: Would this be legal?
Replies: 7
Views: 514

Would this be legal?

If we create a lib based on the flash player, to use it on KOS games/apps, would it be legal for comercial KOS games? or do we need a license from Macromedia to use flash on comercial products?
by PrOfUnD Darkness
Tue Aug 17, 2004 3:40 pm
Forum: Programming Discussion
Topic: Linux distro just for DC deving?
Replies: 37
Views: 2898

Another very nice IDE is Anjuta http://anjuta.sourceforge.net/

But you will need the Gnome libs for it...
by PrOfUnD Darkness
Wed Jun 30, 2004 9:35 pm
Forum: Programming Discussion
Topic: Keyboard examples PLEASE!
Replies: 2
Views: 193

This is more or less what I'm using on my game (a simplier version):

Code: Select all

uint8 mkb;
int k;
mkb = maple_first_kb();

if (!mkb) printf("No keyboard found\n");

if ((k = kbd_get_key()) != -1) // if a key is pressed on the kb
 {
  printf("%c\n", k);   // print the key
 }

PD
by PrOfUnD Darkness
Tue Jun 29, 2004 8:48 am
Forum: Programming Discussion
Topic: Linux distro just for DC deving?
Replies: 37
Views: 2898

Very funny, I was just thinking on this some days ago. My dev PC is a Linux box, and I was thinking in building a setup like that. I even started to build a knoppix clone... But I forgot it because I thought no one would care... If there's enough interest I could re-start the project, what do you th...
by PrOfUnD Darkness
Mon Jun 28, 2004 12:07 pm
Forum: Homebrew Software and Indie Games Discussion
Topic: Dream On Magazine needs a name change: need name suggestions
Replies: 223
Views: 19435

MetaFox: You can count on me ;-) A DC magazine will be fantastic!


PD
by PrOfUnD Darkness
Mon May 24, 2004 12:31 pm
Forum: Programming Discussion
Topic: How woould you like to own this?
Replies: 7
Views: 566

Yes, it boots if you use the swap trick.



PD
by PrOfUnD Darkness
Mon May 24, 2004 10:02 am
Forum: Programming Discussion
Topic: romdisk
Replies: 24
Views: 1625

Ops, sorry. I was thinking with the serial/bba in mind. It should work with "/cd" instead.


PD
quzar wrote:/pc?! what about /cd?

btw: i can normally open things from the romdisk, it just isnt working for some reason in this one project... which sucks..
by PrOfUnD Darkness
Mon May 24, 2004 9:56 am
Forum: Programming Discussion
Topic: Structs and pointers
Replies: 6
Views: 420

Yes, I'm.

Code: Select all

strcpy(vmuq.right,"blah blah");
printf("%s\n", vmuq.right);
salva_questoes_vmu(vmuq);

void salva_questoes_vmu(list_type *tmpvmuq) {
printf("%s\n", tmpvmuq->right);
}
On the code above, the first printf works, the second one don't :(
by PrOfUnD Darkness
Mon May 24, 2004 12:17 am
Forum: Programming Discussion
Topic: romdisk
Replies: 24
Views: 1625

I just use the lines below to open a ascii file from romdisk:

FILE *fp;
fp = fopen("/rd/quiz.conf", "r");

To open from the CD I just change the path to "/pc".


PD
by PrOfUnD Darkness
Sun May 23, 2004 10:57 pm
Forum: Programming Discussion
Topic: Structs and pointers
Replies: 6
Views: 420

There's nothing special on it. It just use the KOS vmu functions to create a package. Even if the first line of the function is the printf shown above, it doesn't print anything.



PD