So updating the compiler from 2.4.0 to 2.6.0 and also not compiling with any debug information seems to have fixed the issue. Weird.
Type: Posts; User: Christian Knudsen
So updating the compiler from 2.4.0 to 2.6.0 and also not compiling with any debug information seems to have fixed the issue. Weird.
Man, this sure is weird. His system can compress a file that already exists, but if the code has to create the file first, it doesn't work.
PROGRAM compressiontest;
USES sdl, zipper;
VAR...
The report back is that my code can definitely access the .dat file with FileExists(), so that's not it. :(
Yeah, it does seem like TZipper can't read the save file. I've sent an executable that tests the path/file name to the user with the issue.
I'm working on a game where I use paszlib to compress the save files. This works fine on the Windows and Linux setups I've tested it on myself, but a user reported that the game crashed whenever he...
It was the texture's internal format. I had to change it to GL_RGBA instead of 4.
I'm trying to get a basic FBO up and running, but I'm getting a GL_INVALID_OPERATION error when trying to assign a texture to the FBO. I'm on WindowsXP and am programming in Freepascal with SDL as...
Never mind. I'm an idiot. :s
I'm using fpc version 2.4.4 on Windows XP 32-bit.
When run, this small piece of code produces exitcode=215:
PROGRAM test;
VAR x : byte;
y : qword;
Never mind. I figured it out. It's bitwise, of course.
I'm using FreePascal with SDL and am trying to keep track of whether or not my program has mouse and input focus and whether or not it's minimized. Keeping track of mouse focus seems to work fine,...
I might end up doing this if the current code becomes a bottleneck. The code is only called very rarely during runtime, though, (once whenever a weapon has ended firing to check if the light source...
Doing the *10 and Round() when comparing the value is fine, since I'm just doing the compare once. And I don't really need the 100% correct float value when passing it in the gl call -- it doesn't...
Without getting into too many details of my program, the piece of code posted here was used to check whether or not that particular light source in the game belonged to the firing of a weapon (not...
...and that would be my situation. :)
Ouch. That's a bad bug to have in your CPU! I'm sure somebody lost their job over this! :D
I believe my old computer was a Pentium 90MHz. Didn't really experience any problems with this, though,...
Nah, I'm on a Celeron.
Yeah, I went the Round() way. It's not a problem at all, but it just made me curious as to the cause of it and the internal workings of the CPU.
Thanks for the reply. I understand why the computer wouldn't be able to hold an infinite amount of decimal points, but when given the simple number of 0.3 with just one decimal, it just seems weird...
Yep, that's what I did instead. Everything's working now. :)
I'm still wondering from a purely computer hardware standpoint why an absolute float value isn't guaranteed. Anybody have some...
Thanks. I'll send both code_glitch and WILL a PM.
Interesting! And thanks for the replies!
So, when you assign the value 0.3 to a real, you can't be 100% sure that it actually gets the precise value? That seems a bit odd.
EDIT: Still doesn't...
Hehe, it's not really that. I just want to change my user name to my real name. :)
Is it possible to change your user name here? If so, how?
Sorry about the vague topic title, but I have no idea what's going on here and was therefor not able to give a more precise topic title. Anyway...
I'm programming in FreePascal 2.2.2 on Win32 and...
Anybody have any experience with cross-compiling in Free Pascal (either Windows or Linux) for the Pandora handheld? I'm looking into compiling my game for this system but have been unable to find any...