PCEngineFans.com - The PC Engine and TurboGrafx-16 Community Forum
Tech and Homebrew => Turbo/PCE Game/Tool Development => Topic started by: nodtveidt on November 01, 2011, 01:28:31 AM
Title: Works In Progress: obeybrew.com and PC-FX homebrew! :)
Post by: nodtveidt on November 01, 2011, 01:28:31 AM
Yep. :)
obeybrew.com is to be the definitive guide to all things PCE homebrew. Currently, I'm working on documenting all of HuC, including previously-undocumented features. It will also have lots of example source code, tutorials, and other such goodies. Arkhan will be contributing as well, not the least of which will be some documentation and whatnot on MML. The site uses mediawiki, but I am only allowing authorized people to make changes. Proper documentation is hard enough without having some joker go in and muck it all up to be "funny".
Also, PC-FX homebrew is on the horizon. The author of mednafen had been working on a toolchain for quite some time, but I guess gave it up due to overall lack of interest. Well, it was picked up by someone else (trap15) and has evolved into a completely working toolchain. It's now possible to develop new PC-FX games! The library for the PC-FX is still somewhat low-level, but I will be working on high-level functionality to bring it up to the coder-friendliness of HuC (or better, preferably). The toolchain is designed for a Unix environment, but on ObeyBrew, I document a way to get it working with cygwin for Windows users.
Here's one of trap15's examples (fxbmp.c), built entirely on my Windows system:
(http://www.nodtveidt.net/finally.html)
Not too impressive just yet of course, but it does show that yes, legitimate PC-FX homebrew has finally become a reality and can only grow from here.
Title: Re: Works In Progress: obeybrew.com and PC-FX homebrew! :)
Post by: nodtveidt on November 01, 2011, 01:35:16 AM
Oh... and if anyone has a serious PCE or PC-FX homebrew project, let me know and I'll put up a page on the wiki about it. Only interested in serious stuff though.
Title: Re: Works In Progress: obeybrew.com and PC-FX homebrew! :)
Post by: Arkhan on November 01, 2011, 01:42:48 AM
Sweet, PCFX Homebrew finally.
Aetherbyte has dibs on MML for the PC-FX, lol.
Considering the sound chip is almost the same, I bet they maybe used the same BIOS, so maybe itll be pretty easy lol. THAT WOULD RULE.
I plan on giving some MML tutorials, along with the Squirrel documentation. That Readme in Squirrel is pretty awesome.
Once Retrocade winds down, I may do a few "how to get shit done" tutorials. I've found I'm kind of good at explaining things without being overly technical.
:)
PS: Your sig is annoying. I like it.
Title: Re: Works In Progress: obeybrew.com and PC-FX homebrew! :)
Post by: Bernie on November 01, 2011, 01:51:55 AM
Ahhh.. one more reason I should go ahead and buy a PC-FX. Awesome news!
P.S I like the sig as well Rover! :)
Title: Re: Works In Progress: obeybrew.com and PC-FX homebrew! :)
Post by: Arkhan on November 01, 2011, 02:22:10 AM
The thing about the PC-FX homebrew that could be awesome, is we could fill the library with a few games to make the "whuaaaaa its a white dating sim box" people shut up fo realz.
The system has moar juice than the PCE, so here's to hopin'.
Title: Re: Works In Progress: obeybrew.com and PC-FX homebrew! :)
Post by: nodtveidt on November 01, 2011, 02:35:14 AM
I gotz mad plans for the PC-FX. :) All the games I wanna do on the PCE but can't do on the PCE can be done on the PC-FX, such as my epic RPG and my all-lady fighting game. The system needs shooters too... and it's got more than enough MEGA POWA for that.
What the library is mainly missing right now is CDROM access functions. That's been one of the big pains in the tail, apparently. Also, the RAINBOW chip isn't fully exploited yet. So apparently for now, stuff has to fit into one program. The library for the "7up" chips (these are normal HuC6270s, just like in the PC Engine, making the PC-FX similar to a SuperGrafx... if these are the only graphics chips you use), the HuC6230 (the "soundbox", which has a PSG device similar to the PC Engine, plus two stereo ADPCM channels), and the gamepad functions are all low-level right now. I'll be writing some high-level functions for them at some point, especially for the 7ups.
Title: Re: Works In Progress: obeybrew.com and PC-FX homebrew! :)
Post by: Senshi on November 01, 2011, 03:12:37 AM
Now i'll have a reason to buy a PC-FX
Title: Re: Works In Progress: obeybrew.com and PC-FX homebrew! :)
Post by: Arkhan on November 01, 2011, 03:39:56 AM
I'm curious how similar the soundbox is really. I dont do much with the PCFX except play all the games. When Mednafen dumped the PCFX project, I got sad. At least its going again finally.
Are the PCFXGA tools any help at all? I've got them all sitting here, :)
Title: Re: Works In Progress: obeybrew.com and PC-FX homebrew! :)
Post by: nodtveidt on November 01, 2011, 07:30:19 AM
The FXGA is a different beast and seems to place way too much priority on the 6273, which isn't present in the PC-FX.
Title: Re: Works In Progress: obeybrew.com and PC-FX homebrew! :)
Post by: Arkhan on November 01, 2011, 07:35:23 AM
Right, but it comes with a bunch of little tools and doodads, lol.
IIRC there were some graphics conversion utilities and crap. I have Same Game FX, which I thought was made with it, maybe.
Title: Re: Works In Progress: obeybrew.com and PC-FX homebrew! :)
Post by: nodtveidt on November 01, 2011, 07:44:56 AM
Tools might be useful, especially graphics converters.
Title: Re: Works In Progress: obeybrew.com and PC-FX homebrew! :)
Post by: Arkhan on November 01, 2011, 07:45:50 AM
I'm a tool. :)
I'll dig around when I get a chance today and see what all was in it. There was a bunch of crap.
I'd say I'll also mess with the FXGA crap but FallingJunk never pulled through on that one because Alex is an idiot.
Title: Re: Works In Progress: obeybrew.com and PC-FX homebrew! :)
Post by: nodtveidt on November 01, 2011, 02:33:46 PM
OK... apparently, Ryphecha had SCSI functions in the original PC-FX library, but liberis is missing them. Looks like liberis might be getting said addition shortly... that will really open this sucker up.
Title: Re: Works In Progress: obeybrew.com and PC-FX homebrew! :)
Post by: Arkhan on November 01, 2011, 04:58:23 PM
Who the hells liberis
Title: Re: Works In Progress: obeybrew.com and PC-FX homebrew! :)
Post by: nodtveidt on November 01, 2011, 05:03:49 PM
If you'd paid attention to the links I posted on obeybrew.com, you'd know. :P
Title: Re: Works In Progress: obeybrew.com and PC-FX homebrew! :)
Post by: Arkhan on November 01, 2011, 05:12:52 PM
Oh I haven't been home, I was downtown watching some building burn down, lol
Title: Re: Works In Progress: obeybrew.com and PC-FX homebrew! :)
Post by: nodtveidt on November 01, 2011, 05:30:41 PM
Ooh fun.
liberis is trap15's PC-FX library after Ryphecha stopped working on pcfxlib. I have both here now; pcfxlib's SCSI code will be easy as pie to adapt to liberis.
Title: Re: Works In Progress: obeybrew.com and PC-FX homebrew! :)
Post by: trap15 on November 01, 2011, 11:53:32 PM
The SCSI code has just been adapted, and I'm working on testing it out and whatever now.
I guess I should have posted about my library earlier; I thought no one would have cared!
Title: Re: Works In Progress: obeybrew.com and PC-FX homebrew! :)
Post by: Arkhan on November 02, 2011, 02:26:43 AM
The SCSI code has just been adapted, and I'm working on testing it out and whatever now.
I guess I should have posted about my library earlier; I thought no one would have cared!
You're crazy. I love the PC-FX. That's why im making PCFXTOO.com :)
As soon as semester ends, I will be finishing it up to where its at least useful by end of year.
Title: Re: Works In Progress: obeybrew.com and PC-FX homebrew! :)
Post by: trap15 on November 02, 2011, 08:37:32 AM
I wouldn't say crazy; I think passionate is a better word :D
liberis should be usable already for the most part, aside from the things Old Rover has already mentioned (7up interface being very low-level, currently no real SCSI code, etc.), and I was working on a game until I ran up against issues with GCC that drove me a bit mad ](*,)
Title: Re: Works In Progress: obeybrew.com and PC-FX homebrew! :)
Post by: nodtveidt on November 02, 2011, 08:39:29 AM
Well, I'm already on the high-level 7up extension library, but I'm distracted today by some last-minute changes to MSR. dammit.
Title: Re: Works In Progress: obeybrew.com and PC-FX homebrew! :)
Post by: Arkhan on November 03, 2011, 02:56:00 AM
Ill get to PCFX after Retrocading.
Lemme know how the sound turns out, I'm sure you'll need some SquirrelFX.
Title: Re: Works In Progress: obeybrew.com and PC-FX homebrew! :)
Post by: nodtveidt on November 03, 2011, 04:20:22 AM
Yeah, hehe. :) That sounds like a good idea (no pun intended). Right now, efforts seems to be mostly concentrated on getting SCSI working. trap15 also rewrote pcfx-cdlink so it's more portable... it should compiler in mingw now without any source changes.
Title: Re: Works In Progress: obeybrew.com and PC-FX homebrew! :)
Post by: Arkhan on November 03, 2011, 05:53:57 AM
Sweet. MinGW is better than shitgwin
Title: Re: Works In Progress: obeybrew.com and PC-FX homebrew! :)
Post by: Arm on November 03, 2011, 07:04:51 AM
If someone is willing to initiate a pc-fx homebrew project (a serious one) I can help with artwork/pixelart.
Title: Re: Works In Progress: obeybrew.com and PC-FX homebrew! :)
Post by: nodtveidt on November 03, 2011, 09:09:16 AM
I already have two serious projects in the planning stages. I don't tend to do non-serious projects unless they're quick and painless (like pcefxbomb).
Title: Re: Works In Progress: obeybrew.com and PC-FX homebrew! :)
Post by: Arm on November 03, 2011, 09:45:14 AM
Alright. I was wondering if a game similar to team innocent, but with better animation, coud be done. Anyway, if help is needed in the future, I think I can contribute.
Title: Re: Works In Progress: obeybrew.com and PC-FX homebrew! :)
Post by: Arkhan on November 04, 2011, 05:46:55 PM
I wont commit to any PCFX stuff until Retrocade is squared away. Don't want to put all my eggs in 40 baskets and watch them all rot, lol.
Title: Re: Works In Progress: obeybrew.com and PC-FX homebrew! :)
Post by: trap15 on November 05, 2011, 02:57:46 AM
This just in: CD reading works!
Currently VERY low level, but it works! And it only took me an all-nighter and another half of a day to work out about 5 typos that kept killing it ](*,) ](*,) ](*,)
EDIT: And the CD reading only works in Mednafen (and probably other emulators) :| I'm attempting to get it to work on a real PC-FX now.
Title: Re: Works In Progress: obeybrew.com and PC-FX homebrew! :)
Post by: Arkhan on November 05, 2011, 07:12:15 AM
lol typos.
FTL.
Title: Re: Works In Progress: obeybrew.com and PC-FX homebrew! :)
Post by: Arm on November 05, 2011, 09:11:22 AM
Arkhan wrote : "I wont commit to any PCFX stuff until Retrocade is squared away. Don't want to put all my eggs in 40 baskets and watch them all rot, lol."
I suppose there's no need to rush anyway if the coding tools are still work in progress. :)
Title: Re: Works In Progress: obeybrew.com and PC-FX homebrew! :)
Post by: Arkhan on November 05, 2011, 02:09:43 PM
yeah.. :)
Title: Re: Works In Progress: obeybrew.com and PC-FX homebrew! :)
Post by: nodtveidt on November 05, 2011, 03:14:35 PM
trap15 and Ryphecha are ironing out the SCSI driver right now. Once that's done, it'll pretty much be functional.
Title: Re: Works In Progress: obeybrew.com and PC-FX homebrew! :)
Post by: trap15 on November 05, 2011, 07:29:04 PM
Ok... It's done. SCSI now works perfect in Mednafen and on a real PC-FX.
My head hurts... ](*,) ](*,) ](*,)
Title: Re: Works In Progress: obeybrew.com and PC-FX homebrew! :)
Post by: nodtveidt on November 05, 2011, 07:30:19 PM
You forgot the proof! :)
Title: Re: Works In Progress: obeybrew.com and PC-FX homebrew! :)
Post by: thesteve on November 06, 2011, 02:22:42 AM
:clap: you now have the tools to make this a reality.
Title: Re: Works In Progress: obeybrew.com and PC-FX homebrew! :)
Post by: nodtveidt on November 06, 2011, 12:51:18 PM
trap15 just posted more stuff... DMA transfers are working:
Title: Re: Works In Progress: obeybrew.com and PC-FX homebrew! :)
Post by: nodtveidt on November 06, 2011, 04:12:12 PM
Image loading using DMA from the CD:
Not safe for work. :D
Title: Re: Works In Progress: obeybrew.com and PC-FX homebrew! :)
Post by: spenoza on November 06, 2011, 05:50:08 PM
I think this is wonderful, though it does worry me. The hobbyist niche for the FX is even smaller than the PCE. If this pulls work away from the PCE scene it means less fun for me. I don't need ANOTHER niche system in my house.
Title: Re: Works In Progress: obeybrew.com and PC-FX homebrew! :)
Post by: trap15 on November 06, 2011, 06:07:34 PM
I think this is wonderful, though it does worry me. The hobbyist niche for the FX is even smaller than the PCE. If this pulls work away from the PCE scene it means less fun for me. I don't need ANOTHER niche system in my house.
:-({|=
On another note, all of the SCSI and DMA code has been pushed up, so everyone can get their fill of seeing 1 more partly nude image on their PC-FX :V
Title: Re: Works In Progress: obeybrew.com and PC-FX homebrew! :)
Post by: nodtveidt on November 07, 2011, 12:13:50 AM
I think this is wonderful, though it does worry me. The hobbyist niche for the FX is even smaller than the PCE. If this pulls work away from the PCE scene it means less fun for me. I don't need ANOTHER niche system in my house.
No worries... this old dog won't ever give up the PCE. :) I have a couple of projects planned for the FX, but only ones that can't be done so easily on the PCE (or at all).
Title: Re: Works In Progress: obeybrew.com and PC-FX homebrew! :)
Post by: Arkhan on November 07, 2011, 12:24:51 AM
Pfsht, who doesn't need a PC-FX. It's only the coolest thing since PCE.
Title: Re: Works In Progress: obeybrew.com and PC-FX homebrew! :)
Post by: Bernie on November 07, 2011, 12:34:47 AM
I know I will be buying one....again... Wish I hadnt sold mine now.. bleh....
Title: Re: Works In Progress: obeybrew.com and PC-FX homebrew! :)
Post by: Arkhan on November 07, 2011, 12:39:59 AM
Yeah you need to go get one. lol. what were you thinking!?
Title: Re: Works In Progress: obeybrew.com and PC-FX homebrew! :)
Post by: nodtveidt on November 07, 2011, 12:46:59 AM
I'm working on a high-level extension library for the 7up chips right now... it will put liberis's sprite functionality on-par with HuC's. Going well so far... this is relatively easy stuff. The only challenge really is the bit-twiddling of word 3 in the SATB. At present, liberis only has low-level sprite functionality, so you'd have to manage the SATB directly, which means a lot of know-how about how the SATB works. This extension library removes those details, but still leaves all the low-level functionality exposed so no existing code is broken.
Title: Re: Works In Progress: obeybrew.com and PC-FX homebrew! :)
Post by: Arkhan on November 07, 2011, 01:44:42 AM
try and go for below par, because yknow, huC.
Title: Re: Works In Progress: obeybrew.com and PC-FX homebrew! :)
Post by: nodtveidt on November 07, 2011, 02:23:52 AM
eris_sup_spr_create(x, y, pattern, control); which is kind of a crossroads between the high-level functionality and the low-level direct writes. You still have to set control manually and pre-set the chip and sprite number, but you can knock off the rest in one go.
Title: Re: Works In Progress: obeybrew.com and PC-FX homebrew! :)
Post by: Arkhan on November 07, 2011, 02:53:19 AM
why not leave them as spr_x? lol
Title: Re: Works In Progress: obeybrew.com and PC-FX homebrew! :)
Post by: nodtveidt on November 07, 2011, 03:32:22 AM
Because that would break liberis convention. :P
Title: Re: Works In Progress: obeybrew.com and PC-FX homebrew! :)
Post by: Arkhan on November 07, 2011, 03:39:14 AM
so?
Title: Re: Works In Progress: obeybrew.com and PC-FX homebrew! :)
Post by: nodtveidt on November 07, 2011, 05:41:16 AM
One word: Allegro.
Title: Re: Works In Progress: obeybrew.com and PC-FX homebrew! :)
Post by: Arkhan on November 07, 2011, 05:47:33 AM
not sure I follow you there, lol.
Title: Re: Works In Progress: obeybrew.com and PC-FX homebrew! :)
Post by: nodtveidt on November 07, 2011, 04:40:38 PM
Quick update on the PC-FX front... my high-level 7up API is finished, just doing testing now... and trap15 wrote a high-level pad API as well. Moving forward nicely. :D
Title: Re: Works In Progress: obeybrew.com and PC-FX homebrew! :)
Post by: ParanoiaDragon on November 07, 2011, 05:09:29 PM
Those are PCE chips, not PC-FX :p Though I think they have great taste in soda/pop/cold drinks/soft drinks/cokes! :lol:
I know, lol. Just saying, the chip names make me thirsty. Im surprised we dont have like "Chocolate Cake" or "Donut"
Lets call the PCE sound chip "Coke" , because thats my favorite.
Title: Re: Works In Progress: obeybrew.com and PC-FX homebrew! :)
Post by: nodtveidt on November 08, 2011, 03:45:19 AM
I also wonder who came up with the term "Sprite"... coders really are thirsty, eh. :D
trap15 pushed up the new high-level pad interface. I just finished the sprite portion of the high-level sprite interface. Still needs tilemapping.
Title: Re: Works In Progress: obeybrew.com and PC-FX homebrew! :)
Post by: Arkhan on November 08, 2011, 03:51:14 AM
sweet deal.
Tilemappering is important for yknow, tile mapping.
Though, I don't need that crap if I'm putting Doom on the PC-FX! \o/
Port Mysterious Song. lol
epic trolling.
Title: Re: Works In Progress: obeybrew.com and PC-FX homebrew! :)
Post by: nodtveidt on November 08, 2011, 03:52:58 AM
Meh... the KING BGs are better for tilemapping. :P The 7ups are just glorified sprite pushers on this thing anyway. :D
Title: Re: Works In Progress: obeybrew.com and PC-FX homebrew! :)
Post by: Mishran on November 08, 2011, 04:25:44 AM
Was checking out the site and MSR is marked for release in December of 2012. Your making us wait till doomsday so its the very last game we'll ever play? :P
Title: Re: Works In Progress: obeybrew.com and PC-FX homebrew! :)
Post by: nodtveidt on November 08, 2011, 04:46:51 AM
Haha. Actually, that's a typo. :)
Title: Re: Works In Progress: obeybrew.com and PC-FX homebrew! :)
Post by: Arkhan on November 08, 2011, 04:54:17 AM
Meh... the KING BGs are better for tilemapping. :P The 7ups are just glorified sprite pushers on this thing anyway. :D
thats funny, because 7up is like sprite, kinda.
im retarded
Title: Re: Works In Progress: obeybrew.com and PC-FX homebrew! :)
Post by: nodtveidt on November 08, 2011, 05:16:41 AM
Yeah, except 7up is tastier.
Title: Re: Works In Progress: obeybrew.com and PC-FX homebrew! :)
Post by: Arkhan on November 08, 2011, 05:17:59 AM
stop that nonsense.
at least sprite never had a crappy sega game.
Title: Re: Works In Progress: obeybrew.com and PC-FX homebrew! :)
Post by: trap15 on November 09, 2011, 04:27:32 PM
It wasn't just a Sega game :P I played it on Amiga and SNES too D:
Title: Re: Works In Progress: obeybrew.com and PC-FX homebrew! :)
Post by: munchiaz on November 09, 2011, 06:00:17 PM
cool spot is an awesome game
Title: Re: Works In Progress: obeybrew.com and PC-FX homebrew! :)
Post by: Arkhan on November 10, 2011, 03:34:35 AM
lol.
Oh, once semester ends and I recover from that, I will most likely have an MML tutorial series, videos and all.
Probably offensive. but hey, deal with it..!
Title: Re: Works In Progress: obeybrew.com and PC-FX homebrew! :)
Post by: lord_cack on November 12, 2011, 08:40:09 PM
Strange, Jungle Bros. isn't on obeybrew.com :-s
Title: Re: Works In Progress: obeybrew.com and PC-FX homebrew! :)
Post by: spenoza on November 22, 2011, 10:23:04 AM
Maybe we need a 7-up game on PCE. Someone wanna get on that? ; )
Title: Re: Works In Progress: obeybrew.com and PC-FX homebrew! :)
Post by: nodtveidt on February 20, 2012, 04:08:31 PM
Just so everyone knows... obeybrew.com has been getting some serious updates lately. Five HuC tutorials have been added which assume *no* coding experience at all and have you making Bonk walking around in his world (sort of) by the end of the fifth. :) More tutorials will come later on. Over 30 of HuC's library functions are now documented, including some of the tough ones.
Title: Re: Works In Progress: obeybrew.com and PC-FX homebrew! :)
Post by: Arkhan on February 21, 2012, 12:31:44 AM
and Squirrel is mentioned.
When 3.0 is released, I'll add to that part for you, complete with totoroials.
lol, totoro.
Kinda need access to diddle around though.
Title: Re: Works In Progress: obeybrew.com and PC-FX homebrew! :)
Post by: roflmao on February 21, 2012, 03:03:09 AM
Awesome! I'm sure they will get a lot of use.
Title: Re: Works In Progress: obeybrew.com and PC-FX homebrew! :)
Post by: nodtveidt on February 21, 2012, 09:11:02 AM
Title: Re: Works In Progress: obeybrew.com and PC-FX homebrew! :)
Post by: nodtveidt on February 23, 2012, 04:20:53 AM
I just added tutorial 6, which introduces HuC's mapping stuff, plus basic scrolling. Gonna go into state machines and scroll wrapping in the next one... next tutorial will probably be really big.
Title: Re: Works In Progress: obeybrew.com and PC-FX homebrew! :)
Post by: esteban on February 23, 2012, 08:13:05 AM
I just added tutorial 6, which introduces HuC's mapping stuff, plus basic scrolling. Gonna go into state machines and scroll wrapping in the next one... next tutorial will probably be really big.
Damn, you are productive (http://junk.tg-16.com/images/pcds.html).
Thanks for this.
Title: Re: Works In Progress: obeybrew.com and PC-FX homebrew! :)
Post by: Bonknuts on February 23, 2012, 11:28:07 AM
Nice :D Keep 'em coming. I've linked to the site from my blog.
Title: Re: Works In Progress: obeybrew.com and PC-FX homebrew! :)
Post by: nodtveidt on February 23, 2012, 12:56:08 PM
Cool, thanks for the link :)
Just finished up the master source for tutorial 7... this is what it ends up looking like when it's working:
Bonk moves and jumps around the game world, and can do a standing Bonk attack! :) After this tutorial is done, I already have the next one planned out. :)
EDIT: tutorial 7 is up. It's a lil more confusing than the last because not everything gets explained completely, plus it's a lot of game-specific code rather than HuC stuff.
Title: Re: Works In Progress: obeybrew.com and PC-FX homebrew! :)
Post by: touko on February 23, 2012, 08:00:37 PM