T2K and VLM emulator: updated 12/2/07 to version 0.06b

Everything to do with our favourite pastime! Reviews, recommendations, sells/swaps, problems etc. Whether they are on the latest consoles, arcade or retro classics. It's not the winning or losing, we came to play!
Post Reply
User avatar
Dio
Sheepie Whore
Sheepie Whore
Posts: 18887
Joined: Mon May 31, 2004 1:08 pm 0
Location: Newcastle UK

Post by Dio »

Astonishing how much you can enjoy doing something after not touching it for so long. Found a couple of bugs and AvP runs now. Looks horrible mind, but it's a start.
User avatar
Firefox
Sheepie Whore
Sheepie Whore
Posts: 11412
Joined: Fri Apr 26, 2002 6:15 pm 0
Location: Sheffield

Post by Firefox »

Hooray!

In other news, I've broken your new code. Details when I zero in on the problem... :D
"I am a very considerate person. If I want to go out all night on my miniature golf course and shoot lizards, well, no reason to keep the neighbours awake..."
User avatar
Dio
Sheepie Whore
Sheepie Whore
Posts: 18887
Joined: Mon May 31, 2004 1:08 pm 0
Location: Newcastle UK

Post by Dio »

You could at least have blamed me.
User avatar
Firefox
Sheepie Whore
Sheepie Whore
Posts: 11412
Joined: Fri Apr 26, 2002 6:15 pm 0
Location: Sheffield

Post by Firefox »

Well, ordinarily I would, but sadly I think it's a toolchain problem based on the digging into it I've done so far... :roll: :D

I'll leave the GP2X build now (that little jingle they've added to the bootloader is starting to get on my tits) and do the x86 Linux build next. Who knows, maybe I'll find something to blame on you in there? :)
"I am a very considerate person. If I want to go out all night on my miniature golf course and shoot lizards, well, no reason to keep the neighbours awake..."
User avatar
Dio
Sheepie Whore
Sheepie Whore
Posts: 18887
Joined: Mon May 31, 2004 1:08 pm 0
Location: Newcastle UK

Post by Dio »

You might not want the next build then. That will really scare you, I've found some enthusiasm for upping the compatibility a bit and there's been quite a few significant rewrites in the core :).

Compatibility is miles up though. Not that anything else is playable yet mind, but most ROMS will start and make a passable fist of running the game.
User avatar
Firefox
Sheepie Whore
Sheepie Whore
Posts: 11412
Joined: Fri Apr 26, 2002 6:15 pm 0
Location: Sheffield

Post by Firefox »

Bring it on! Your code doesn't scare me! :D

Didn't manage to get any more done to the GP2X build yesterday as I was out literally all day, but I've just done a smidge more just now.

It seems that the segfaults were down to the amount of BSS used (I suspected they might be as they moved to a different part of the code whenever I put some debug fprintf's in). So I replaced the obvious two large things-allocated-in-BSS with some mallocs and now it doesn't segfault, which seems to prove my theory. It doesn't work mind, so I've still got further work to do...

I'll see if I can bang out an x86 Linux version this evening.
"I am a very considerate person. If I want to go out all night on my miniature golf course and shoot lizards, well, no reason to keep the neighbours awake..."
User avatar
Dio
Sheepie Whore
Sheepie Whore
Posts: 18887
Joined: Mon May 31, 2004 1:08 pm 0
Location: Newcastle UK

Post by Dio »

And here was you saying you wouldn't mind me BSS'ing a 24 meg block :D.

You need to be very careful how you change those to pointers. There are dozens of sizeof(rom) and similar things knocking about you will need to fix. They have mostly gone away in the next version though because of the aforementioned 24 meg block option.
User avatar
Firefox
Sheepie Whore
Sheepie Whore
Posts: 11412
Joined: Fri Apr 26, 2002 6:15 pm 0
Location: Sheffield

Post by Firefox »

Dio wrote:And here was you saying you wouldn't mind me BSS'ing a 24 meg block :D.
Yeah... Well, now it appears I was talking out of my arse. :D

A 24 meg block should be fine as long as it's malloc'ed.

It should be fine in BSS, but I think the bods who've done the GP2X firmware have somehow bollocksed up the Linux ELF loader. I'm sure it should fail gracefully at the very least instead of fucking up and running your program anyway with sections overlapping and extending out of the task space. Perhaps they didn't know what some of the config options did? Actually, I should probably ask about that on one of the GP2X forums...
Dio wrote:You need to be very careful how you change those to pointers. There are dozens of sizeof(rom) and similar things knocking about you will need to fix.
I'll have a good trawl through and look for them.
Dio wrote:They have mostly gone away in the next version though because of the aforementioned 24 meg block option.
That's looking like quite an appealing change. Should make things simpler on the 68000 emulation front as well, and I doubt any machine that can reasonably be expected to run your emulator is going to have problems finding a free block of memory that size.
"I am a very considerate person. If I want to go out all night on my miniature golf course and shoot lizards, well, no reason to keep the neighbours awake..."
User avatar
Dio
Sheepie Whore
Sheepie Whore
Posts: 18887
Joined: Mon May 31, 2004 1:08 pm 0
Location: Newcastle UK

Post by Dio »

Firefox wrote:That's looking like quite an appealing change. Should make things simpler on the 68000 emulation front as well, and I doubt any machine that can reasonably be expected to run your emulator is going to have problems finding a free block of memory that size.
It's still a 24M BSS segment at the moment mind. I'll look at making sure it's malloc-able by the time it's ready to go out the door.
User avatar
Firefox
Sheepie Whore
Sheepie Whore
Posts: 11412
Joined: Fri Apr 26, 2002 6:15 pm 0
Location: Sheffield

Post by Firefox »

Dio wrote:
Firefox wrote:That's looking like quite an appealing change. Should make things simpler on the 68000 emulation front as well, and I doubt any machine that can reasonably be expected to run your emulator is going to have problems finding a free block of memory that size.
It's still a 24M BSS segment at the moment mind. I'll look at making sure it's malloc-able by the time it's ready to go out the door.
Well, don't go to any trouble on my account.

Hmmm, I've just gone through and fixed all of the sizeof(rom)'s and sizeof(ram)'s and now I'm back to a segfault but in a fixed place. :?

Actually, it's no wonder it sat there doing nothing when I'd quickly replaced the BSS declarations with mallocs as my shell code was loading all of two bytes from the ROM image before starting the emulator. Hoisted by my own sizeof()s! :)
"I am a very considerate person. If I want to go out all night on my miniature golf course and shoot lizards, well, no reason to keep the neighbours awake..."
User avatar
Dio
Sheepie Whore
Sheepie Whore
Posts: 18887
Joined: Mon May 31, 2004 1:08 pm 0
Location: Newcastle UK

Post by Dio »

I've just sworn a great deal at the PC as I found that Starscream's memory region definitions are inclusive. Had to alter mine to agree.
SiN
Baaaa!
Baaaa!
Posts: 850
Joined: Sat Dec 11, 2004 4:25 am 0
Location: Canada
Contact:

Post by SiN »

I've been playing on v0.05 for a bit ... it's lightning fast, but it still lags every so often.

Is this out of the ordinary, seeing as my laptop is a:
P4 2.8 GHz
512MB DDR RAM
nVidia GeForce FX 5200 Go

Finally, how does the "mouse as spinner" option work? I enabled it, but it just makes the ship move uncontrollably. I'm sure I'm missing something fairly obvious here.


SiN
User avatar
Dio
Sheepie Whore
Sheepie Whore
Posts: 18887
Joined: Mon May 31, 2004 1:08 pm 0
Location: Newcastle UK

Post by Dio »

SiN wrote:Finally, how does the "mouse as spinner" option work? I enabled it, but it just makes the ship move uncontrollably. I'm sure I'm missing something fairly obvious here.
From the title screen, press X to go to the game select screen. Press 'O' and the options screen appears; then press 'P' and an extra option will appear "Controller type". Go into that menu and select 'P1 Rotary".

It's not much fun on a mouse (I've found). It just about works on a spinner but I've not spent the time calibrating it that it really needs.

As to the pauses, if your machine goes away to do something else then you'll get a single pause of a second or two just like any other game.
User avatar
Kelloggs
Baaaaa!
Baaaaa!
Posts: 1859
Joined: Wed Jun 22, 2005 11:38 pm 0
XBL Gamertag: TheAntiKelloggs
Location: Widnes or Altrincham. Take your pick.

Post by Kelloggs »

I've found what I think could be a bug in the 0.05 Wintel code, but I can't remember how the Jag does it, and it's at home and I'm not: between levels, does yon breathy woman say "Superzapper Recharge" every time? I'm only getting it coming off a Warp Bonus level, not in between regular levels.

If this is how the Jaguar did it, please ignore me, but I don't remember it being quite so quiet...
User avatar
Alarm
Baaaaaaa!
Baaaaaaa!
Posts: 9046
Joined: Sat May 21, 2005 10:45 pm 0
Location: Welsh Wales
Contact:

Post by Alarm »

Just noticed the update. I still get the "Failed to blit to back buffer" error. Mind you, I am using Windows 2000 - is that the problem (more likely down to my ancient gfx card)?
Post Reply