PocketMatrix forums

A read-only archive of the PocketMatrix forums (2001–2014). Posting and accounts are closed.

Software REFRESH! ARGH

Okay guys, what's the problem. No threads have even the faintest idea as to a solution to this problem. Installing Q2 onto my E-125 had almost no problems. Well there is nothing that I can do to get Q2 to run on my iPaq H3955. Has anyone gotten Q2 to run on PPC2k2 devices? Has anyone gotten the software refresh error but somehow fixed it?
Okay, I FINALLY got that problem solved:

My iPaq H3955 came with a version of GAPI that was created on 6/7/2001. GAPI 1.2 was compiled by Microsoft on 7/13/2000. That's a big difference. So I decided to download Microsoft's version. I put it in the same directory that Q2 installed itself to and made sure ref_soft.dll and game.dll were in that same directory (I had been moving them around). With that change I no longer get the "software refresh" error message. Now I just get a normal "error during initialization. I will try moving all the files onto the storage card, while scowering the forums for info on this error.
Does anyone know where I can get a PAK explorer or editor so I can edit out the sound files. I'm hoping if I lower the size of the PAK file then my device won't try to allocate more memory than I have, thus getting rid of the error message.

[EDIT] Found it! PakExplorer v1.2 available here: http://quakestuff.telefragged.com/

[EDIT] No dice... Error during init no matter what I try.
Well now I got it to say "Couldn't Load pics/colormap.pcx" but if I put the pak file in the right place then it goes back to "Error during initialization." I wonder what order these errors are checked for because I could just be digging myself a deeper hole :/
talking to yourself ey moose?
How does it run on your 3950? Id like to try it but the files take FOREVER to download with my dial up so I'd like to know its at least playable speed first.
Mystic, that's the point of this thread, to see how it runs on my ipaq H3955. But as you can see I'm not getting anything but error messages so far. I was posting to see if anyone knew how to fix them easily so I didn't have to reinvent the wheel, and so that all fixes could be found in this one thread.
just go look at the source and find out where it says Error during intiliziation and you will find out why!
I was going to, but I don't have embedded installed now and I didn't want to sort through all of those c files :/

[edit] woops, it looks like I have embedded installed after all :P
Okay,
Code:
if (setjmp (abortframe) )
Sys_Error ("Error during initialization");

If that returns 1 then it displays the error.
That functions leads me to setjmp.h, which in turn is empty except for a header include of stdlib.h. The relevant piece of code within stdlib.h would be
Code:
// Processor-dependent setjmp defns
#ifdef _X86_

#define setjmp _setjmp
#define _JBLEN 16

#elif defined(SHx) || defined(MIPS)

#define setjmp _setjmp
#define _JBLEN 32

#elif defined(PPC)

#define setjmp _setjmp
#define _JBLEN 64

#elif defined(ARM)

#define setjmp _setjmp
#define _JBLEN 11

#elif defined(_M_CEE)

#define setjmp _setjmp
#define _JBLEN 64
#endif

// SETJMP: define the buffer type for holding the state information
typedef int jmp_buf[_JBLEN];

// SETJMP: function prototypes
int __cdecl _setjmp(jmp_buf);
void __cdecl longjmp(jmp_buf, int);

#ifdef __cplusplus
}
#endif

#endif /* _INC_STDLIB */
Is "#elif" a valid command? should it be "#elseif" or "#elsif". I haven't programmed in about 2 to 3 years, so... :/
And are those values for each processor correct?

here is where abortframe is defined in common.c
Code:
jmp_buf abortframe; // an ERR_DROP occured, exit the entire frame


also
Code:
longjmp (abortframe, -1);
is in two if statements, but they look like client server communication functions.

Sorry, I'm VERY rusty and personally don't know what could be happening. Help me out someone

Code:
#ifndef _WIN32_WCE
#define MINIMUM_WIN_MEMORY 0x0a00000
#else
#define MINIMUM_WIN_MEMORY 0x0700000
#endif
#define MAXIMUM_WIN_MEMORY 0x1000000

Oh, and isn't "a" bigger than "7" ? Those hex values in decimals are 1091174400 and 1090977792 respectively. Why is the minimum win memory higher in WinCE?

Ugh. I'm more confused. I should just stop :/ Or get someone to help me!
because the first one which is WinCE requries more minimum memory

and seriously moose your not getting any where by yelling at tested micrsoft headers :P i had the same problem as you, i fixed it quite easily, think it was by adding

#define ARM

in StdAfx.h
Well I don't even have gx library or header files in place on my computer. Plus eVC++ is funky on me... my whole computer is funkin the place up, look out it will randomly restart any minute! Grrrr ... right :roll:
I could help but I can't even download the files to try it cause they take more then 90 minutes to download, my connection dies every 90 minutes automatically, and the server dosn't support auto-resume.

Anyone know of a site besideds the official site I can get the required files? If I found a place I could download them I could try it on my 3950 but with the server not supporting resumes its impossible for me to even download the game.
Is "#elif" a valid command? should it be "#elseif" or "#elsif". I haven't programmed in about 2 to 3 years, so...


#elif is fine. It's all in the help... (highlight the #elif and hit F1).

Code:
#ifndef _WIN32_WCE
#define MINIMUM_WIN_MEMORY 0x0a00000
#else
#define MINIMUM_WIN_MEMORY 0x0700000
#endif
#define MAXIMUM_WIN_MEMORY 0x1000000


Note that the first line is an #ifndef.. (equivalent to #if !defined(_WIN32_WCE)) On the PocketPC, _WIN32_WCE is set, so WINCE does take the smaller setting as the minimum, 0x0700000.
I want Q2 on my PPC :/
All I can say is free up every shred of memory you can and devote it to program memory. I practically have to hard reset my PPC 2000 iPaq to free up enough resources to get Q2 to run. Also, sound does work fine with the existing version. A few months ago Chris sent me a real storage card, so I was able to test the full game datafile for the first time (before I was using a pak with all the sounds completely stripped out so it would fit on my tiny CF card). To my surprise sound worked fine. I had assumed sound would not work because it doesn't work in the emulator (while Quake I's sound does work in the emulator). Also, my original minimum memory requirements were based on not loading sound data.

Finally, as I have said, according to Compaq, Pocket PC 2002 introduces a memory cap of some kind that could prohibit Quake II from running on that OS. However that is yet to be proven for certain. If you can strip the audio files out of the pak, then by all means do so because the audio files represent almost half the memory requirements of the entire pak file.

Dan East
I did, no dice. I had 40 MB's of program memory free while running the Q2 PAK file without any sounds in it. No matter what I did it wouldn't load Q2.

Why on earth would someone limit a device by capping the amount of memory it could use, especially when it has so much memory usable to begin with!
chrissikurz@web.de · 26 Dec 2002, 20:23 UTC — AAAARRGGGGHHHH!!!!!
i got the same prob!
i´ve stripped all the sound files out and installed quake in the main memory....
dan east!
Isn´t it possible to make a SPECIAL version for pocketpc2002????
PLEASE DO SO :cry: I CAN´T WAIT PLAYING YOUR BEAUTYFUL GAMES !