Bay 12 Games Forum
- April 18, 2024, 09:27:04 am
- Welcome, Guest
News:
March 6, 2024: Dwarf Fortress 50.12 has been released.
News: February 3, 2024: The February '24 Report is up.
News: February 4, 2021: Dwarf Fortress Talk #28 has been posted.
News: November 21, 2018: A new Threetoe story has been posted.
Forum Guidelines
Show Posts
DF General Discussion / Re: Dwarf Fortress and PSP, Its been optimized right?
« on: March 01, 2008, 12:39:00 pm »I do DS homebrew as a hobby, and if I didn't have about 1000 other projects going on maybe I'd port Kobold Quest. If anybody else feels like doing it and wants some pointers let me know.
DF General Discussion / Re: Kobold Quest port status?
« on: February 13, 2008, 11:48:00 pm »The changes were very minor, most of my time was spent being stupid and missing the line right in front of my nose where it tried to set fmod to use DirectSound output (nice sanity checking, guys.)
[ February 14, 2008: Message edited by: eli ]
DF General Discussion / Re: Kobold Quest port status?
« on: February 13, 2008, 02:40:00 pm »quote:
Originally posted by Toady One:
<STRONG>From dev log:
</STRONG>
I've been AWOL (stupid job) but probably have a few hours this weekend if there's anything specific I could help out on. Is music still broken in Kobold Quest? I could work on that if it's the same system used in Dwarf Fortress...
DF General Discussion / Re: Kobold Quest port status?
« on: January 10, 2008, 03:33:00 am »I did notice that it was eating the mouse click and not registering it if I opened the About Box so that it overlapped the game window, but I'm too sleepy to look at that tonight.
edit: spelzin
[ January 10, 2008: Message edited by: eli ]
DF General Discussion / Re: Kobold Quest port status?
« on: January 09, 2008, 07:23:00 pm »DF General Discussion / Re: Kobold Quest port status?
« on: December 31, 2007, 09:24:00 pm »quote:
Originally posted by mattmoss:
<STRONG>
I wonder if another solution is needed.... When you say "when the table is adjusted", do you mean that some of your keys are not mapping to what the game expects? E.g., the arrow keys aren't doing what they should, or something like that?
</STRONG>
Apologies, I was assuming the key table from that image was in hex, but it is actually decimal, and the keycodes you were getting are right. Sorry about that, I had just glanced at a few and they didn't seem to match. The other odd keycodes I was getting were the result of an endian issue, but removing the cast to char fixed those.
My impression is that the keycodes in OS X are all either identical to or auto-magically morphed into the old Apple Extended ones, in which case you're good to go on the translation.
DF General Discussion / Re: Kobold Quest port status?
« on: December 29, 2007, 04:51:00 pm »quote:
Originally posted by mattmoss:
<STRONG>Yeah, the text input is a bit wacko...
...
but in this instance, it seemed better to try and isolate the mac stuff that start telling Toady how to rearrange everything.But hey, another Mac-head lookin' at my code is just fine.
EDIT: Oh, and on the endianness issue... Doing the porting work on an Intel mac meant I could leave that to last...
...
[ December 29, 2007: Message edited by: mattmoss ]</STRONG>
I agree the endian thing isn't a priority, I just needed to put it in to verify that my 10.3 fix worked.
I'm 90% sure the keycode stuff you did actually will work when the table is adjusted, even if it is wacko. I agree that it's much better to have code that's easy for Toady One to integrate than code that's 100% kosher OS X approved but ends requiring extra hoops.
I emailed Toady One, but for anyone else following along it will be very easy for him to build a single Universal application that supports 10.3 and later on PowerPC and intel (at least for Kobold Quest).
Also, big thanks to mattmoss for doing all the work. Nobody should think that me calling something wacko is an actual criticism of his code - more of a joke. 
edit:typo
[ December 29, 2007: Message edited by: eli ]
DF General Discussion / Re: Kobold Quest port status?
« on: December 29, 2007, 02:55:00 am »The text input is also a bit wacko, I partly fixed it by taking out the cast to char on the Unicode value, but the virtual keycode lookup seems problematic. You can probably get away with it, but the table looks wrong, apparently OS X uses the keycodes from the good old Apple Extended Keyboard 2 as described here keycodes from OS X.
All of my changes were limited to enabler_osx.cpp, let me know if you'd like the new file.
DF General Discussion / Re: Kobold Quest port status?
« on: December 28, 2007, 11:58:00 pm »10.3 fix below (file is enabler_osx.cpp, line 418)
---------------
code:
if (HIPointConvert != NULL)
{
HIPointConvert(&hipt, kHICoordSpaceScreenPixel, NULL,
kHICoordSpaceView, dstView);
}
else
{
hipt.x -= cr.left;
hipt.y -= cr.top;
HIViewConvertPoint(&hipt, NULL, dstView);
}pt.h = (short) hipt.x;
pt.v = (short) hipt.y;
edit: code tag
[ December 29, 2007: Message edited by: eli ]
