Search found 43 matches

by Protofall
Thu Nov 14, 2019 11:42 pm
Forum: Programming Discussion
Topic: Is there a reason KOS only has one controller callback?
Replies: 5
Views: 62

Re: Is there a reason KOS only has one controller callback?

I came across this callback function when I started learning about the input. I remember BC saying its only really for rebooting/terminating a program early. I don't think its for going from in-game to title-screen like you do there, I didn't even think that kind of action was possible with the call...
by Protofall
Sun Oct 13, 2019 6:08 am
Forum: Programming Discussion
Topic: Noob question thread
Replies: 22
Views: 503

Re: Noob question thread

Thank you! I thought that spritesheet example looked awesome but was discouraged by the glitching sprite at the bottom, and I don't really get what that text below means, how I position the sprites on screen or how the sprites are positioned in the spritesheet? and what is implemented in the tutori...
by Protofall
Sat Oct 12, 2019 6:25 am
Forum: Programming Discussion
Topic: Developing for Dreamcast and PC simultaneously
Replies: 11
Views: 632

Re: Developing for Dreamcast and PC simultaneously

For cross-platform releases I'd recommend Simulant. Projects cross-compile on Dreamcast, Windows, Linux and later on it will support Mac, Andriod, iOS and PSP. It can do both 3D and 2D. Its Discord channel is here: https://discord.gg/KAp5VU
by Protofall
Sat Oct 12, 2019 6:18 am
Forum: Programming Discussion
Topic: Noob question thread
Replies: 22
Views: 503

Re: Noob question thread

I strongly recommend not doing manual vram stuff like you're doing. What you were doing is called "Software Rendering" which is slow, the examples below use Hardware Rendering and are just easier to work with (Also Redream has no support for Software Rendering so thats why it didn't work for you). K...
by Protofall
Fri Sep 27, 2019 11:23 pm
Forum: Programming Discussion
Topic: Questions on sound for Dreamcast
Replies: 4
Views: 217

Re: Questions on sound for Dreamcast

I'll answer what I can: 2. Either 16-bit raw PCM, or 4-bit raw ADPCM (the Yamaha variant). 3. CDDA has a direct path from the GD-ROM block to the sound hardware. For everything else, including WAV files on the disc, you need to copy them to RAM and steam them to the sound firmware. Thanks for that ...
by Protofall
Wed Sep 25, 2019 10:16 am
Forum: Programming Discussion
Topic: Questions on sound for Dreamcast
Replies: 4
Views: 217

Questions on sound for Dreamcast

I've played around with sound on the DC in the past, but its still very foreign to me. I've got some questions about some areas I'm not familiar with. 1. I know the snd_sfx library can only take 16-bit uncompressed or 4-bit compressed sound effects, but I can't remember what the max length for those...
by Protofall
Fri Sep 20, 2019 8:32 am
Forum: Programming Discussion
Topic: Code for using Savefile Icons and VMU LCD
Replies: 0
Views: 156

Code for using Savefile Icons and VMU LCD

I've noticed a lot of people on Dreamcast servers asking how to make Savefiles with icons/eyecatchers and also display VMU LCD Icons and the code needed to load and use them. For a while now I've had a demo that does this using my own Crayon library (Currently private since its too young and changes...
by Protofall
Sun Sep 08, 2019 8:17 pm
Forum: Programming Discussion
Topic: LibTsunami Displaying JPEG Incorrectly
Replies: 6
Views: 216

Re: LibTsunami Displaying JPEG Incorrectly

With image type, the process is this: 1. Load the texture into memory (If its a png/jpeg it will generally load slightly faster than a dtex file since most dtex files aren't compressed) 2. If its not a native Dreamcast format, convert it to the native format (Takes some time, but only done once) 3. ...
by Protofall
Sun Sep 08, 2019 7:42 am
Forum: Programming Discussion
Topic: LibTsunami Displaying JPEG Incorrectly
Replies: 6
Views: 216

Re: LibTsunami Displaying JPEG Incorrectly

I've never used jpeg source files, so I can't comment on that. However I personally recommend not using jpegs or pngs because the Dreamcast has to convert them to its native texture format at runtime, instead its better to use something like tvspelsfreak's texconv program to convert pngs into "dtex"...
by Protofall
Sat Aug 10, 2019 7:11 pm
Forum: Programming Discussion
Topic: Announcing libkosfat
Replies: 10
Views: 404

Re: Announcing libkosfat

As the first post says, write support isn't in there right now. Right now, you're getting a -1 return from fs_fat_mount() because you're trying to mount it read/write. As for the partition type, per Wikipedia, there's a lot of them that map to FAT: https://en.wikipedia.org/wiki/Partition_type . You...
by Protofall
Sat Aug 10, 2019 3:42 am
Forum: Programming Discussion
Topic: Announcing libkosfat
Replies: 10
Views: 404

Re: Announcing libkosfat

Actually, I have a bit of time to test right now. I started working on a basic program that uses a FAT formatted SD card, but I can't get it to compile. I've updated my copy of KOS and recompiled and I get the error "/opt/toolchains/dc/sh-elf/lib/gcc/sh-elf/4.7.3/../../../../sh-elf/bin/ld: cannot fi...
by Protofall
Fri Aug 09, 2019 10:59 pm
Forum: Programming Discussion
Topic: Announcing libkosfat
Replies: 10
Views: 404

Re: Announcing libkosfat

Thanks for the new feature BlueCrab, much appriciated :D

I'll do some testing when I get time, but that probably won't be for a few weeks. I'll definitely be using this feature in my next project/s.
by Protofall
Thu Aug 01, 2019 6:23 am
Forum: Programming Discussion
Topic: Has anyone successfully built the toolchain in Windows Subsystem for Linux?
Replies: 11
Views: 352

Re: Has anyone successfully built the toolchain in Windows Subsystem for Linux?

But wsl isn't graphical right, I use VcXsrv in windows to create an X server for WSFL to communicate through. https://pbs.twimg.com/media/EAxzRfHWsAAA0jm?format=jpg&name=medium It's not the gui that's the problem, it's an unimplemented kernel function. I can launch and run redream. I just can't use...
by Protofall
Thu Jul 11, 2019 8:24 am
Forum: Programming Discussion
Topic: Load ELF/BIN NullDC 1.04 For Debug / Testing
Replies: 5
Views: 247

Re: Load ELF/BIN NullDC 1.04 For Debug / Testing

I jumped through the hoops of creating a syscalls.bin and IP file hoping it would solve the issue of not being able to load an ELF/BIN, but now I'm just getting NullDC to freeze at the "SEGA" license screen after the swirl animation. I'm trying to load 2ndmix.elf (the KOS demo). I even tried creati...
by Protofall
Fri Jun 21, 2019 10:35 am
Forum: Programming Discussion
Topic: DC-TOOL-IP Linux Tutorial
Replies: 9
Views: 1334

Re: DC-TOOL-IP Linux Tutorial

Note that there is a newer version of DC-LOAD/TOOL-IP in Sizious' fork (1.0.5) https://github.com/sizious/dcload-ip Also if you wish to use the "-c" option (Access files on your computer from the Dreamcast to load in/out assets), you need to use "sudo" to give the program permission, also make sure ...
by Protofall
Mon Jun 10, 2019 1:12 am
Forum: Homebrew Software and Indie Games Discussion
Topic: Dream On Contest: Celebrating the 20th Anniversary of the Dreamcast - 1st place will be professionally pressed on CD
Replies: 14
Views: 1496

Re: Dream On Contest: Celebrating the 20th Anniversary of the Dreamcast - 1st place will be professionally pressed on CD

Nice! There was something small I was planning on making anyways, so I'll submit that for this (Its not really original so it won't be up for prizes, but its going to be fun anyways)
by Protofall
Tue Apr 23, 2019 8:37 am
Forum: Programming Discussion
Topic: Strange Compiling results. Is something deprecated?
Replies: 2
Views: 332

Re: Strange Compiling results. Is something deprecated?

Change the #include <sys/cdefs.h> in the biosfont.h file to instead say #include <kos/cdefs.h> and the issue should be fixed. I've pushed the fix to the git repository, so you could also just "git pull" it and re-compile KOS (just KOS -- not the whole toolchain, obviously). Sweet, thanks for the qu...
by Protofall
Tue Apr 23, 2019 3:27 am
Forum: Homebrew Software and Indie Games Discussion
Topic: Tetris 2 and unreleased game available on github
Replies: 5
Views: 1047

Re: Tetris 2 and unreleased game available on github

I releasing my own port/recreation of Minesweeper late last year thinking it was the first version for the DC, but you technically beat me to it 15 years ago :o

Nice work!
by Protofall
Tue Apr 23, 2019 3:19 am
Forum: Programming Discussion
Topic: Strange Compiling results. Is something deprecated?
Replies: 2
Views: 332

Strange Compiling results. Is something deprecated?

A year or more ago I made a simple demo to show palette usage and modification. Recently I decided to build this program on my current device and I get the following error a@LAPTOP-8SDROJHM:/mnt/c/Users/David Lenovo/Documents/code/Protofalls-KOS-Tests/KallistiOSTests/Palette$ make rm -f paletteTest....