PocketMatrix forums

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

04-22-2005, new version out!

List of changes:

- Updated the game api to PocketHAL 0.76b.
- The game api supports different resolutions now.
- The game api allow fullscreen on the PC.
- New ForEachRev() statement, same as ForEach() except it loops in reverse order.
- Fixed the ForEach() statement bugs.
- Fixed SizeOf() bug.
- Added a new Size() function.
- Fixed parameter passing.
The collision detection uses CRC values to check for collisions instead of strings. This should improve speed.
- New CRC16() function.
- Gameapi window is centered when not fullscreen.
SO_CANCELSPEEDX and SO_CANCELSPEEDY options added to sprites so that when a collision is detected the target sprite has it's speedx or speedy values cancelled.
- New bubble sort demo written by bmanske.
- Optimized particle engine a bit.
- Optimized the collision detection engine by changing the default collision grid size to 32 instead of 8.
- When an exception occurs and the game api engine is running, it shuts it down.
- On the PC the desktop resolution is changed to match the game api resolution used and restored when the game api is shutdown.
- Fixed main.ppl compile option when used with ShowError.ppl.
- Fixed GetSelText() function.
- Fixed MakeExe() function.
- Fixed ShowModal() window centering on the PPC.
- Fixed PIDE to delete main project's .ppc file if a form is changed.
- Updated the Editor and Visual Form Builder programs.
- Updated library files: inifiles, combobox_lib, updown_lib and mruprocs
- Fixed main.ppl to run editor.ppl in the right directory.
Hi everyone,

I just wanted to mention that I was unable to run the new version of the Visual Form Builder as is from the distribution package. There are files missing on the PPC. The project file on the PC was also wrong so PIDE couldn't build it.

To make it work I had to delete the project file then start a new project. I started with the target platform set to PC. I had to delete

#include "common.ppl"

from VFB.PPL. Then I changed the target from PC to the PPC and it transferred over the files and ran.

Over the last couple of weeks there were many compiler bug fixes that were not mentioned in the weekly updates here. This update has fixed all of my known problems, so less effort will be going into bug fixes and test programs and more time will be spent on VFB and the Editor. VFB isn't quite useful yet, but you can see where it is going. If you have any suggestions, please post them.

If you gave up because of bugs before, now would be a great time to give PPL another try.

bmanske

P.S. I have attached my VFB.PRJ file for those of you who wish to try this and have installed into the default directories. Just place this file into the c:\Program Files\Pocket Programming Language\PPL\VFB directory. Remove the include and rebuild.
Attachments:
vfb.zip (1 KB)
blaster_boy · 24 Apr 2005, 19:49 UTC
That did the trick, thanks.

Now I have no more excuses to start making my little app... I think.
Thanks Brad,

I will email you tomorrow so that we can both get this issue resolved.
Updates:

- Optimized the loading of the .ppc files. It gained a huge performance boost.

- Optimized the saving of the .ppc files also. Performance is now way better.

- Fixed the PIDE to delete the main .ppc file everytime a modification is made to any of the project files.

- Optimized the collision detection grid system by not allocating memory every time a sprite moves around.

- Fixed ShowModal() function not to move the dialog left position to 4 pixels anymore.

- More to come...
More updates:

- Greatly optimized the parsing process.

- You can call functions by telling the compiler the number of return values you need.

ex:
Code:
// Test multiple assignment

func test:2
return(10, 20);
end;

func test:3
return(10, 20, 30);
end;

proc main
a$ = 10;
a$, b$, c$ = test:2, 30;
ShowMessage(a$+","+b$+","+c$);
a$, b$, c$ = test;
ShowMessage(a$+","+b$+","+c$);
a$, b$, c$ = 10, 20, 30;
ShowMessage(a$+","+b$+","+c$);
end;


- Runtime error message now displays the filename where the error occured, even if it's a library.

- Parser now list all the libraries that it compiles in the errorlog.txt file.

- More to come...
More updates:

- CRC32() function added.

- Fixed global bug with variable optimization when they are pointers to another variable.

- More to come...

There won't be a new version today. I was too busy. I will try to make it happen early next week.
More updates:

- Fixed parser crash when unclosed ).

- Compiler won't generate more than 64 errors at the time.

- Recoded list and structure parameter passing.

- New ReStruct() function to restructure an already defined structure.

- Recoded the list of structure to support one structure type per element in the list.

- When passing pointer parameters (&var;$[1]), compiler will give an error.

- Fixed compiler bug when empty array index was used. (Ex: Array$[]).

- Variable names are being validated when created.

- New IsValidVar() function to validate a variable name.

I still have a couple more things to work on before I can officially make a new pre-beta release. I hope it will be today, at the latest it will be out tomorrow.
Were you able to get the last little font problems fixed?
Yep. The fonts are working good now.
mmttb: I have finished implementing the sprite's timer functions.

SetSpriteTimer(Sprite, Id, Interval, UserValue);
KillSpriteTimer(Sprite, Id);
PauseSpriteTimer(Sprite, Id, Paused);
Paused$ = SpriteTimer(Sprite, Id);

There is a limit of 16 timers per sprite. I hope it's plenty enough.
More updates:

- Fixed ShowModal() not to close the dialog but hide it instead.

- Compiler gives better error messages and they are more uniform.

- Optimized the sprite sorting procedure.

- New string functions: Reverse, SwapCase and Capitalize.

Sorry for the delay in releasing a new version. I am still trying to make adjustments to the game api FPS and PPS limiting. I should be done very soon. Then I should be able to release a new version by tomorrow (Friday).
More updates:

- Fixed the GetItem, SetItem, GetItemIndex and SetItemIndex to support ListBox and ComboBox controls.

- New LimitPPS% global variable to limit the maximum number of process per second and give more processing power to draw frames.

- More to come...
More updates:

- Fixed NPOS() to return -1 when not found.

- Fullscreen on PC defaults to 16 bits and 60hz refresh rate. However this can be changed with the BitsPerPixel% and Frequency% global variables before initialization of the game api.


There will be a new version released today.