Jump to content


Photo

Lemmingsdl 0.9.7


  • Please log in to reply
27 replies to this topic

#1 Miner49er

Miner49er

    GP Mania

  • GP32 Hardcore
  • PipPipPipPipPip
  • 403 posts
  • Gender:Male

Posted 06 September 2011 - 09:48 AM

Hi there,

I've attempted to make a new pnd file based on my latest code:

http://lessermatters.homeunix.com/LemmingsSDL/

There are some major improvements (many thanks to Covox for pointing out a cause and solution to some serious CPU usage!)
Also, floater anim fixed. Xmas/ONML tunes and levels are working now and several other things.

Cheers,

m

#2 Dunny

Dunny

    Exophase Approved® Forum Troll

  • GP32 Hardcore
  • PipPipPipPipPipPip
  • 1063 posts
  • Gender:Male
  • Location:Broughton, Brigg, UK
  • Interests:ZXSpectrum, coding.

Posted 06 September 2011 - 10:11 PM

Hi there,

I've attempted to make a new pnd file based on my latest code:

http://lessermatters...om/LemmingsSDL/

There are some major improvements (many thanks to Covox for pointing out a cause and solution to some serious CPU usage!)
Also, floater anim fixed. Xmas/ONML tunes and levels are working now and several other things.

Cheers,

m


1. Category is wrong, and appears under "other" and not "games".
2. Starts in a window until you press F.
3. In Full-Screen mode, the touchscreen is unusable.
4. Fullscreen doesn't scale the screen - it just draws it in the middle of a black rectangle at the same size.

Shame, I tested your older builds and (aside from not being able to complete a level) they ran much better.

D.

#3 Miner49er

Miner49er

    GP Mania

  • GP32 Hardcore
  • PipPipPipPipPip
  • 403 posts
  • Gender:Male

Posted 07 September 2011 - 07:42 AM


Hi there,

I've attempted to make a new pnd file based on my latest code:

http://lessermatters...om/LemmingsSDL/

There are some major improvements (many thanks to Covox for pointing out a cause and solution to some serious CPU usage!)
Also, floater anim fixed. Xmas/ONML tunes and levels are working now and several other things.

Cheers,

m


1. Category is wrong, and appears under "other" and not "games".
2. Starts in a window until you press F.
3. In Full-Screen mode, the touchscreen is unusable.
4. Fullscreen doesn't scale the screen - it just draws it in the middle of a black rectangle at the same size.

Shame, I tested your older builds and (aside from not being able to complete a level) they ran much better.

D.


...but other than that, it's fine? wow! That was a serious screw up! This is the problem when I don't actually own the device I guess. Well, I'll look into it tonight and see if I've missed something obvious.

Thanks for your help Dunny

#4 foxblock

foxblock

    Community guy

  • GP32 Hardcore
  • PipPipPipPipPip
  • 460 posts
  • Gender:Male
  • Location:Germany

Posted 07 September 2011 - 08:30 AM

1. Just change category in the PXML file, it probably should be Game and as subcategory either "PuzzleGame" or "ArcadeGame"
2. / 4. I had a similar problem with Schizophrenia, just explicitly force fullscreen in SDL as well as setting the resolution to 800x480 or in this case rather 640x480, seems like a regression bug, so check any of those lines you changes (also don't forget compiling with PLATFORM_PANDORA to enable all the switches I put in there for Pandora specific code, IIRC I also put a forced fullscreen in there way back)
3. Strange error, dunno what causes that, might be related to 2/4

Haven't yet downloaded the latest version, though, but I will see for myself and check whether it prints anything useful.

#5 Dunny

Dunny

    Exophase Approved® Forum Troll

  • GP32 Hardcore
  • PipPipPipPipPipPip
  • 1063 posts
  • Gender:Male
  • Location:Broughton, Brigg, UK
  • Interests:ZXSpectrum, coding.

Posted 07 September 2011 - 11:10 AM

...but other than that, it's fine? wow! That was a serious screw up! This is the problem when I don't actually own the device I guess. Well, I'll look into it tonight and see if I've missed something obvious.


Yep, it was a blast. Went through a couple of levels, no problems so long as I run in windowed mode.

I've had another go, and it seems that the touchscreen is running at a different offset to the game in fullscreen mode. Topleft of the screen is still 0,0 on the Pandora, but because the lemmings screen has moved to the right and down a touch rather than scaled... of course the touchscreen is out by that much.

As I said, it's a shame - this game was built for a touchscreen before they even existed in mainstream gaming consoles :)

D.

#6 Miner49er

Miner49er

    GP Mania

  • GP32 Hardcore
  • PipPipPipPipPip
  • 403 posts
  • Gender:Male

Posted 07 September 2011 - 11:30 AM


...but other than that, it's fine? wow! That was a serious screw up! This is the problem when I don't actually own the device I guess. Well, I'll look into it tonight and see if I've missed something obvious.


Yep, it was a blast. Went through a couple of levels, no problems so long as I run in windowed mode.

I've had another go, and it seems that the touchscreen is running at a different offset to the game in fullscreen mode. Topleft of the screen is still 0,0 on the Pandora, but because the lemmings screen has moved to the right and down a touch rather than scaled... of course the touchscreen is out by that much.

As I said, it's a shame - this game was built for a touchscreen before they even existed in mainstream gaming consoles :)

D.


Okay, I will create another build tonight - I think I know why it hasn't built with the Pandora specific code in. What this space!

#7 Dunny

Dunny

    Exophase Approved® Forum Troll

  • GP32 Hardcore
  • PipPipPipPipPipPip
  • 1063 posts
  • Gender:Male
  • Location:Broughton, Brigg, UK
  • Interests:ZXSpectrum, coding.

Posted 07 September 2011 - 11:41 AM



...but other than that, it's fine? wow! That was a serious screw up! This is the problem when I don't actually own the device I guess. Well, I'll look into it tonight and see if I've missed something obvious.


Yep, it was a blast. Went through a couple of levels, no problems so long as I run in windowed mode.

I've had another go, and it seems that the touchscreen is running at a different offset to the game in fullscreen mode. Topleft of the screen is still 0,0 on the Pandora, but because the lemmings screen has moved to the right and down a touch rather than scaled... of course the touchscreen is out by that much.

As I said, it's a shame - this game was built for a touchscreen before they even existed in mainstream gaming consoles :)

D.


Okay, I will create another build tonight - I think I know why it hasn't built with the Pandora specific code in. What this space!


Oh man yes, I love me some lemmings. Oh yes. Also, have you seen this?

http://www.mrdictionary.net/lemmings/

Source available - a very, very nice port built from scratch. I know the author, he's a good bloke. Contains every lemmings release so far (expansion packs for Lemmings 1, that is).

D.

#8 Miner49er

Miner49er

    GP Mania

  • GP32 Hardcore
  • PipPipPipPipPip
  • 403 posts
  • Gender:Male

Posted 07 September 2011 - 11:53 AM




...but other than that, it's fine? wow! That was a serious screw up! This is the problem when I don't actually own the device I guess. Well, I'll look into it tonight and see if I've missed something obvious.


Yep, it was a blast. Went through a couple of levels, no problems so long as I run in windowed mode.

I've had another go, and it seems that the touchscreen is running at a different offset to the game in fullscreen mode. Topleft of the screen is still 0,0 on the Pandora, but because the lemmings screen has moved to the right and down a touch rather than scaled... of course the touchscreen is out by that much.

As I said, it's a shame - this game was built for a touchscreen before they even existed in mainstream gaming consoles :)

D.


Okay, I will create another build tonight - I think I know why it hasn't built with the Pandora specific code in. What this space!


Oh man yes, I love me some lemmings. Oh yes. Also, have you seen this?

http://www.mrdictionary.net/lemmings/

Source available - a very, very nice port built from scratch. I know the author, he's a good bloke. Contains every lemmings release so far (expansion packs for Lemmings 1, that is).

D.


I have indeed. In fact I have used the LemmingsDS level format in my version. Yes, I could've just ported the whole thing but I had been working on my version (with just a static image of a level) for a while before I discovered his and I wanted to do as much myself as possible - I also concluded it would be too masochistic to work out the original level-format! Plus, I wanted mine to be 100% like the Amiga (though that has veered off recently with the menu system...this annoys me)

I too love Lemmings (obviously) though, my love comes from the cracking two player game on the Amiga. I had a so much fun with that in my youth and obviously not many people are interested nowadays, so I had wanted to make a networkable two-player game for a long time. The Pandora seems like an ideal platform...just wish I actually had one!

EDIT: I must add, I approached mrDictionary before using his format and he was happy for me to :-)

Edited by Miner49er, 07 September 2011 - 11:54 AM.


#9 Miner49er

Miner49er

    GP Mania

  • GP32 Hardcore
  • PipPipPipPipPip
  • 403 posts
  • Gender:Male

Posted 07 September 2011 - 07:55 PM

Hi guys,

I've rebuilt the pnd file using pndtools. For some reason the squashfs and chmod kept failing but I did those bits manually and it seems to have appended the xml file okay (the file size increased anyway).

So, if anyone could test this, I would be most thankful

#10 Dunny

Dunny

    Exophase Approved® Forum Troll

  • GP32 Hardcore
  • PipPipPipPipPipPip
  • 1063 posts
  • Gender:Male
  • Location:Broughton, Brigg, UK
  • Interests:ZXSpectrum, coding.

Posted 07 September 2011 - 10:02 PM

Just tested - no difference. Still starts in a window, and although the touchscreen stays in synch for the first few levels it soon goes out of synch. The way to remedy it is to move the pointer to the top left and then reposition your stylus on the screen, at the same point.

Suggestion - scroll the screen with the D-Pad or shoulder buttons. D-Pad would be best, but lefties may like the ABXY buttons.

Also, is there any way to detect the touchscreen being in use and use absolute coordinates from that instead of relying on the Pandora's amazingly poor mouse pointer simulation? That way you could also get rid of the cursor altogether and play Lemmings how it was meant to be played :-)

Oh yes - the screen is still not scaled on fullscreen mode, it sits in the middle like a lemming. If you'll pardon the pun :)

Zoom mode like other Lemmings implementation would be good (and might even come for free if you use hardware scaling).


D.

Edited by Dunny, 07 September 2011 - 10:05 PM.


#11 Miner49er

Miner49er

    GP Mania

  • GP32 Hardcore
  • PipPipPipPipPip
  • 403 posts
  • Gender:Male

Posted 07 September 2011 - 10:07 PM

Just tested - no difference. Still starts in a window, and although the touchscreen stays in synch for the first few levels it soon goes out of synch. The way to remedy it is to move the pointer to the top left and then reposition your stylus on the screen, at the same point.

Suggestion - scroll the screen with the D-Pad or shoulder buttons. D-Pad would be best, but lefties may like the ABXY buttons.

Also, is there any way to detect the touchscreen being in use and use absolute coordinates from that instead of relying on the Pandora's amazingly poor mouse pointer simulation? That way you could also get rid of the cursor altogether and play Lemmings how it was meant to be played :-)

Oh yes - the screen is still not scaled on fullscreen mode, it sits in the middle like a lemming. If you'll pardon the pun :)

Zoom mode like other Lemmings implementation would be good (and might even come for free if you use hardware scaling).


D.


I think most of those issues are resolved as there are tests for build type. I'm using Eclipse to setup the build so am obviously missing something. I'll have another crack in a minute...if only I had a Pandora, this would be much easier.

#12 Dunny

Dunny

    Exophase Approved® Forum Troll

  • GP32 Hardcore
  • PipPipPipPipPipPip
  • 1063 posts
  • Gender:Male
  • Location:Broughton, Brigg, UK
  • Interests:ZXSpectrum, coding.

Posted 07 September 2011 - 11:34 PM


Just tested - no difference. Still starts in a window, and although the touchscreen stays in synch for the first few levels it soon goes out of synch. The way to remedy it is to move the pointer to the top left and then reposition your stylus on the screen, at the same point.

Suggestion - scroll the screen with the D-Pad or shoulder buttons. D-Pad would be best, but lefties may like the ABXY buttons.

Also, is there any way to detect the touchscreen being in use and use absolute coordinates from that instead of relying on the Pandora's amazingly poor mouse pointer simulation? That way you could also get rid of the cursor altogether and play Lemmings how it was meant to be played :-)

Oh yes - the screen is still not scaled on fullscreen mode, it sits in the middle like a lemming. If you'll pardon the pun :)

Zoom mode like other Lemmings implementation would be good (and might even come for free if you use hardware scaling).


D.


I think most of those issues are resolved as there are tests for build type. I'm using Eclipse to setup the build so am obviously missing something. I'll have another crack in a minute...if only I had a Pandora, this would be much easier.


To be fair, you're being let down by the fact that the Pandora simulates a mouse with the touchscreen, and does it very badly indeed. You need to re-make the control system from the ground-up with the stylus in mind (with mouse control optional, of course) - I'm not sure how you go about that at present though; one would imagine a system where the touchscreen could be read as x/y coords (through an event) for the stylus position rather than relying on bad mouse handling.

ScreenDown(x,y)
ScreenUp(x,y)
ScreenDrag(dx,dy)

Perhaps. I'm surprised that SDL doesn't already have that to be honest - touchscreens are everywhere these days.

D.

#13 Miner49er

Miner49er

    GP Mania

  • GP32 Hardcore
  • PipPipPipPipPip
  • 403 posts
  • Gender:Male

Posted 08 September 2011 - 08:18 AM



Just tested - no difference. Still starts in a window, and although the touchscreen stays in synch for the first few levels it soon goes out of synch. The way to remedy it is to move the pointer to the top left and then reposition your stylus on the screen, at the same point.

Suggestion - scroll the screen with the D-Pad or shoulder buttons. D-Pad would be best, but lefties may like the ABXY buttons.

Also, is there any way to detect the touchscreen being in use and use absolute coordinates from that instead of relying on the Pandora's amazingly poor mouse pointer simulation? That way you could also get rid of the cursor altogether and play Lemmings how it was meant to be played :-)

Oh yes - the screen is still not scaled on fullscreen mode, it sits in the middle like a lemming. If you'll pardon the pun :)

Zoom mode like other Lemmings implementation would be good (and might even come for free if you use hardware scaling).


D.


I think most of those issues are resolved as there are tests for build type. I'm using Eclipse to setup the build so am obviously missing something. I'll have another crack in a minute...if only I had a Pandora, this would be much easier.


To be fair, you're being let down by the fact that the Pandora simulates a mouse with the touchscreen, and does it very badly indeed. You need to re-make the control system from the ground-up with the stylus in mind (with mouse control optional, of course) - I'm not sure how you go about that at present though; one would imagine a system where the touchscreen could be read as x/y coords (through an event) for the stylus position rather than relying on bad mouse handling.

ScreenDown(x,y)
ScreenUp(x,y)
ScreenDrag(dx,dy)

Perhaps. I'm surprised that SDL doesn't already have that to be honest - touchscreens are everywhere these days.

D.


Have you tried the version in the repo? Apparently that works properly (I.E. it's been build with the correct pre-processor flag!). I built it again last night but completely failed to rebuild the .pnd file :-( I'll try again tonight. You could be correct about the touch-screen thing but nobody else has mentioned it yet. I looked at the LemmingsDS page yesterday and he has implemented some extra cool input methods - that looks interesting but surely takes away some of the "100% Amiga like" status of my version?

#14 Dunny

Dunny

    Exophase Approved® Forum Troll

  • GP32 Hardcore
  • PipPipPipPipPipPip
  • 1063 posts
  • Gender:Male
  • Location:Broughton, Brigg, UK
  • Interests:ZXSpectrum, coding.

Posted 08 September 2011 - 11:00 AM




Just tested - no difference. Still starts in a window, and although the touchscreen stays in synch for the first few levels it soon goes out of synch. The way to remedy it is to move the pointer to the top left and then reposition your stylus on the screen, at the same point.

Suggestion - scroll the screen with the D-Pad or shoulder buttons. D-Pad would be best, but lefties may like the ABXY buttons.

Also, is there any way to detect the touchscreen being in use and use absolute coordinates from that instead of relying on the Pandora's amazingly poor mouse pointer simulation? That way you could also get rid of the cursor altogether and play Lemmings how it was meant to be played :-)

Oh yes - the screen is still not scaled on fullscreen mode, it sits in the middle like a lemming. If you'll pardon the pun :)

Zoom mode like other Lemmings implementation would be good (and might even come for free if you use hardware scaling).


D.


I think most of those issues are resolved as there are tests for build type. I'm using Eclipse to setup the build so am obviously missing something. I'll have another crack in a minute...if only I had a Pandora, this would be much easier.


To be fair, you're being let down by the fact that the Pandora simulates a mouse with the touchscreen, and does it very badly indeed. You need to re-make the control system from the ground-up with the stylus in mind (with mouse control optional, of course) - I'm not sure how you go about that at present though; one would imagine a system where the touchscreen could be read as x/y coords (through an event) for the stylus position rather than relying on bad mouse handling.

ScreenDown(x,y)
ScreenUp(x,y)
ScreenDrag(dx,dy)

Perhaps. I'm surprised that SDL doesn't already have that to be honest - touchscreens are everywhere these days.

D.


Have you tried the version in the repo? Apparently that works properly (I.E. it's been build with the correct pre-processor flag!). I built it again last night but completely failed to rebuild the .pnd file :-( I'll try again tonight. You could be correct about the touch-screen thing but nobody else has mentioned it yet. I looked at the LemmingsDS page yesterday and he has implemented some extra cool input methods - that looks interesting but surely takes away some of the "100% Amiga like" status of my version?


I always download it from here: http://lessermatters...om/LemmingsSDL/

You're not running on an Amiga, and don't have a mouse - you have a touchscreen and a nub configured as a very inaccurate mouse instead. If you're aiming to be 100% Amiga-style including the control methods then you're only ever going to have a substandard version of Lemmings - the Amiga had a mouse. You don't.

D.

Edited by Dunny, 08 September 2011 - 11:01 AM.


#15 Miner49er

Miner49er

    GP Mania

  • GP32 Hardcore
  • PipPipPipPipPip
  • 403 posts
  • Gender:Male

Posted 08 September 2011 - 11:32 AM

You're not running on an Amiga, and don't have a mouse - you have a touchscreen and a nub configured as a very inaccurate mouse instead. If you're aiming to be 100% Amiga-style including the control methods then you're only ever going to have a substandard version of Lemmings - the Amiga had a mouse. You don't.

D.


Okay, fair enough point but I haven't had any negative feedback regarding the input method on a Pandora as of yet (apart from the issues you've mentioned which should be fixed when the build is done properly using the Pandora flag). I honestly do appreciate your feedback but I would like to try it for myself on the Pandora before changing the input method...or at least get your feedback when you've tried the proper build.

I have thought how difficult/awkward it would be 'clicking' (I suppose tapping) the screen/lemming would be but since nobody's sent me a Pandora for approaching 3 years, I've been unable to find out for myself.

I always found version of Lemmings that used a dpad for selection (like snes/gameboy etc) a bit rubbish to be honest and thought that a touchscreen is ideal for the game, now you saying it isn't, is a bit depressing really.