sourcecode
after testing Sam&Max (those were the days) om my iPaq, (that crashes after showing the fire-spitting-guy the police orders) I Am really ammazed ! I dl-ed the sourcecode, when running it on my ipaq the device totally crashes. on the emulator it works perfectly !? ...
I just wanted to make some quick mods to landscape view. But the source seems to be a bit out of date.
Have you made any progress with the sound/music ?
I would so much like to play all them lucas adv. again on my ppc ! Specially DOTT & SAMNMAX ...
Indy rules too!
I am having exactly the same problem. IPaq freezes completely.
Can we get the most current version of the source code ?
I can put up the version I have now. The sourcecode was a bit out of date (I thought I had mentioned this)
I will put it up on my website, but it'll probably (again) be tbz2d
This has one mod to landscape mode.
If you want to fix up the source on the page, there's a bit where it says Sleep(delay) (or something akin to that) - make sure that this can never be zero, it seems to hang CE for some reason
That does not seem to be the problem (alone). I ensured that the sleep delay is larger then 0, but the ipaq still freezes.
Andys great work om this program but i have a few questions.
When you reckon we can get the arm binary with no keyboard in landscape?
You said the new source code implements that? How for someone that doesnt know much about compiling to go about that?
Anyways amazing work!
Thanks Andy, the new sources work perfectly. No freezing and the keyboard is now not visible in landscape mode.
Michel: Maybe we should set up a site for the binary !?!
How do we go about the site angel?
Definetely should set it up...
Thank you powerangel! Its now perfect!
And ofcourse thanks to you andys!
r u doing a casio build too?
cheers
rob
rob, I'm running a casio build on my casio ;> I'll try and put up some updated builds tonight before 1100GMT. Possibly before then, but putting builds up is convuluted (because I have to copy it across)
I've been busy thinking about other things (ie, sound)
I'm going to try and tidy up the way that sound currently works to make it more like the SDL version, and then work on optimising it. The current code looks more complicated than it needs to be, and I don't think it's as smart as it should be. In fact, I think it's a mess (but that's just me. I'm going to tidy up some of it, but I doubt anything will work soon. I need to get more sleep tonight too ;>
The profiler looks complex. It's a shame the dev environment on the actual WinCE devices is so crippled (oh, but to be able to telnet in ;)
rob, I'm running a casio build on my casio ;> I'll try and put up some updated builds tonight before 1100GMT. Possibly before then, but putting builds up is convuluted (because I have to copy it across)
I've been busy thinking about other things (ie, sound)
I'm going to try and tidy up the way that sound currently works to make it more like the SDL version, and then work on optimising it. The current code looks more complicated than it needs to be, and I don't think it's as smart as it should be. In fact, I think it's a mess (but that's just me. I'm going to tidy up some of it, but I doubt anything will work soon. I need to get more sleep tonight too ;>
The profiler looks complex. It's a shame the dev environment on the actual WinCE devices is so crippled (oh, but to be able to telnet in ;)
andy, would you kindly come to the messenger? i have a surprise for you!
PowerAngel - the SH3 will only work if it has a 16bit colour screen that can be directly written. Vasyl has pointed me to some code to do it properly, but it depends on me having the time I guess. We tried it on an SH-3 and we had no luck :|
I'll put up updated binaries tonight that have been tested on the Casio. The damn keyboard still disappears though.
Binaries should be up before 12 or so, I'll post when up.
Okay, I've put up new binaries. I've put up both a MIPS and an ARM, however they should be broadly identical to the ones posted by PowerAngel. I haven't tested the ARM, I have tested the MIPS.
If the ARM doesn't work, use PowerAngel's, and probably the same for the MIPS (although I have tested it).
This so badly needs a v-keyboard. When I have sorted out the sound code (prolly tommorow I will have a final-ish stab at it), I will see if I can add one in.
I got very stuttery sound code under debug and absolutely sod all under normal mode. eVT is beginning to irritate me! it's so impossible to debug stuff.
Oh well, I'll have a play and see if I can figure out what I have done to offend WinCE.
OK, andy ... great work. I did not want to anticipate your descision to post binaries.
People are just so impatient to see a version that works well in landscape mode.
Keep doing this great work. Adlib sound and speech seems to be more complicated.
Andys or Powerangel...
Which version of arm would you recommend for people to download?
Thanx...
I tested them both. No difference but andys version got more up to date source so thats that.
Good work for andys and powerangel
Thank you Powerangel for the new version.
But, the problem is, I can't load any game files, allthough they are in the same directory as they were before when I played with the old version.
My device freezes...
Powerangel wrote:
OK, andy ... great work. I did not want to anticipate your descision to post binaries.
People are just so impatient to see a version that works well in landscape mode.
Keep doing this great work. Adlib sound and speech seems to be more complicated.
yes. I have them working stutteringly, but not properly yet. They also won't run in release mode - only in debug mode, so I imagine eVT has decided to piss me off :)
I'm going to rewrite some of the sound code and base it more off the way it's done in the Linux version.
Powerangel wrote:
OK, andy ... great work. I did not want to anticipate your descision to post binaries.
Nah, it's quite complicated to post binaries for me - plus at least this meant that the ARM version got some testing. Did you build a release or debug version?
Avenger: I do not have that problem with the savegames. I play dott and loading and saving still works perfectly. Which game do you play ?
andys: I built a release version.
Hrm.
eVT is irritating me - I've added some code, and I want to build a release version (as debug versions always seem to run slower for me), however, the debug one works, while the release one does not.
ARRGGGGHHHHHHH
@Anonymous: I have no problems with the savegame. I can't start any game from the menu that appears when you run the programm first. E.g. when I select Monkey Island 2 my device freezes, it's the same with any other game...
I use a Casio E-115G, btw, and had no problems with the old version... I hope you can fix these problems...
Avenger wrote:
@Anonymous: I have no problems with the savegame. I can't start any game from the menu that appears when you run the programm first. E.g. when I select Monkey Island 2 my device freezes, it's the same with any other game...
I use a Casio E-115G, btw, and had no problems with the old version... I hope you can fix these problems...
try it with the version on
www.doc.ic.ac.uk/~aces98/PocketSCUMM/
I've tested this on my Casio E-125, and it seems to run fine.
Andy, there are a few typical reasons something will work in Debug build but not Release. Usually it is because:
1) You're using a variable that has not been initialized. In Debug builds vars are initialized automatically, while they are not with Release builds.
2) You are overwriting an array. Arrays have additional padding in Debug builds, which may prevent a catastrophic error if you write a little past the end or beginning of the array.
3) Make sure that if you have specified custom build settings (stack size, etc), you applied them to the Release build settings, and not just the Debug build.
4) I have seen a few cases in which specific C source code was not properly optimized by the compiler which resulted in bad ASM that would crash. If you can isolate the function in which that occurs you can turn of optimizations for that function with #pragma directives. To help isolate such a problem try turning off the optimizations for entire C source files in the Project Settings, then if you determine that is the problem localize the exact function in which it occurs, so optimizations can still be applied to as much of the source as possible.
5) Of course there could be a much more complex problem with your code causing it to fail.
Dan East
thanks, works fine now...
(beside the known problems...)
Yeah, I think I have optimisations on for my (specific) MIPS chip - I'll take them off.
I don't think there are that many changes between the two, but I'll give them a try. At the moment I'm currently trying to perfect my Java disassembler (uni project), and then I'm going to give it a good going over. The sound is now just jumpy.
Have you found any profilers? I don't own Visual C++ (and I'm too cheap to give Microsoft money), and the profiler for the PocketPC looks horrendously complex.
And of course, typically, there is a bug in gprof under Linux that stops it from profiling more than the main thread :| (and I'ld rather not apply the rather complex and manky workaround if I can possibly avoid it ;)
No, I've not found any CE profilers. I do have VC++ 6.0, so I profile routines there if need be. Usually I just use GetTickCount to time various critical functions so I can get an idea of the processing time relative to one another.
Dan East
Hrm, I just killed the thread stuff.
One thing htat looks like a real possibility - it looks like threads are treated differently in debug mode (as in, running order), or of course, WaitForSingleObject returns immediately when given NULL ;>
The sound code looks like
// CreateThread(NULL, 0, (unsigned long (__stdcall *)(void *))&sound;_thread, this, 0, &_threadId);
// SetThreadPriority((void*)_threadId, THREAD_PRIORITY_HIGHEST);
_event = CreateEvent(NULL, false, false, NULL);
now, this looks retarded to me, although there is a potential window during which the other thread can complete.... HRM
I'm going to have to go through this all with a fine tooth comb.
You shouldn't set the priority of the sound thread higher than the priority of your app's main thread. If you do not sleep in your sound thread then your main thread will practically not get executed at all. If you do sleep, then the rest of your app will freeze up while your sound thread is running, and only run while the sound thread sleeps.
So try removing the call to SetThreadPriority.
Dan East
I have an ipaq. I have created a directory on my storage card and put pocketSCUMM and monkey2.001 in the same directory. I ran the pocketSCUMM.exe for ipag and picked Monkey Island 2 nothing happened.
Can anybody help ???
imamh wrote:
I have an ipaq. I have created a directory on my storage card and put pocketSCUMM and monkey2.001 in the same directory. I ran the pocketSCUMM.exe for ipag and picked Monkey Island 2 nothing happened.
Can anybody help ???
hmm. Perhaps you have also to put the monkey2.000
Try this.
HTH,
Buster
Thanks Buster....It works great now

I cannot get anything out of the sound engine
not even a click or peep
Have you made any progress Andys ?
Greetz
Bob
thygate - the sourcecode that's on my website is very heavily gutted - I had a lot of trouble getting the sound to compile. I took a second stab at it, and it's working okay, but I need to merge the two. This is why I haven't released anything but (pretty rare) test versions, mostly because they are riddled with other problems.
Tonight, I want to get a working SH-3 version up, and then I'm going to add Landscape fixes and so on in. I still need a virtual keyboard/button bar, and the sooner that is done the better. If all goes well, I might put up a binary for SH-3 users sometime soon, as one of my flatmates can test it for me.
If anybody knows where I can get a decent diff-esque tool, I would be very very grateful. I miss unix ;> (or if somebody can point me to a precompiled version of GNU diff that doesn't require me to download cygwin).
If I get a version with sound up to the quality (make of that what you will) of the current versions, I'll put something up then and stamp beta all over it ;>