PocketMatrix forums

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

06-03-2005, new version out!

New version of PPL is available at http://ppl.arwen.com

- Fixed compile status bar meter flashing.
- New LSort() function to sort a list.
- New LSplit() function.
- SetSpriteFrames() as a new parameter.
- Support for ++var$ and --var$ syntax.
- Many fixes to the PIDE.
- PIDE VFB, meta-data form options.
- Fixed Ins() function.
- Fixed Return() function.
- Fixed Hypot() function parameter count.
- Non-elastic sprite shouldn't bounce of elastic ones.
- Fixed -a$ syntax.
- Many more bug fixes...
Smok Wawelski · 14 Jun 2005, 15:41 UTC
I got this error message trying to run zlibdemo.


Welcome to the PPL Console


PPL 0.8 Compiler Error Report

(zlib.ppl) [Syntax error at '#C_DECLARE' (28,1)]


sw
Fixed, thanks for pointing it out.
Smok Wawelski · 14 Jun 2005, 19:10 UTC
Does SQLDemo works under PC? There's no db.sql file, but after copying it from PPC distribution, i got such errors:

Welcome to the PPL Console


PPL 0.8 Compiler Error Report

(SqlDemo.ppl) [Syntax error at 'SQLITE_OPEN' (54,8)]
(SqlDemo.ppl) [Syntax error at 'SQLITE_CLOSE' (63,3)]
(SqlDemo.ppl) [Syntax error at 'SQLITE_GET_TABLE' (72,8)]
(SqlDemo.ppl) [Syntax error at 'SQLITE_EXEC' (26,9)]
(SqlDemo.ppl) [Syntax error at 'SQLITE_EXEC' (31,9)]


UIDemo suffers the same problem I was talking about earlier - that some-pixels-shifting problem (try to use keyobard) - on PPC.
Smok Wawelski · 14 Jun 2005, 23:51 UTC
VERY VERY irritating behaviour/bug:

PIDE, when I set new project (WINAPI this time). I named it "hello" and placed on the other folder (D:/PPL) than PPL is installed. I made one memo. After saving, folder D:/PPL/hello is created, 3 files (.frm, .prj and .ppl) are inside.

I'm trying to add some code to func WinMain.

Every time I run the hello.ppl it forgots what I changed in that function. In folder D:/PPL suspicious file "hehello.ppl" is resident and every time its contents are copied to hello.ppl which is inside /hello folder.

Am I doing something wrong?
1. The UIDemo.ppl will be fixed. It's simple, make sure the InitGameAPIEx doesn't use fullscreen on the PPC.

2. As for the SQLDemo, the SQLite module included is only for the PPC. You will need to download the SQLite.dll for the PC.

3. Is it possible there is a file called hello.frm also? If so, hello.ppl is always regenerated from the hello.frm. You will have to modify the WinMain code directly from the form and not the code.
Smok Wawelski · 15 Jun 2005, 10:54 UTC
Ok. Thanks for info about SQLite.

Now for this regenerating code behaviour. When you make a blank project and then use "Edit form code" automatically project.ppl file appears in editor. But, you have to sections:

Code:

#define FORM100_ID 100
#define MEMO101_ID 101

#code {hello2.frm}

#code {hello2.frm#FORM100}
func FORM100Proc (hWnd$, Msg$, wParam$, lParam$)
......
end;

#code {hello2.frm}
func WinMain
Global(FORM100$, MEMO101$, m1000$);
........
end;


When editing .frm file - you have only access to FORM100Proc. What if I want to edit WinMain? My changes will be overwritten.

regards, sw
Smok Wawelski · 15 Jun 2005, 11:06 UTC
SQLite - I downloaded sqlite3.dll. I renamed it to sql_dll.dll and put into ppl directory (where zlib1.dll residents). Demo doesn't work either. I tried with windows/system dir... how to install it?
Go to the Edit menu in the form editor, there is a Code sub-menu there. You can add initialization part and the form creation code (WinMain).

The .dll for Sqlite has to be called : sqlite_dll.dll and must be placed in the PPL root directory.
Smok Wawelski · 15 Jun 2005, 14:25 UTC
Great. Code initialization/form creation sections helped a lot.

But I didn't succeed with sqlite.

I downloaded that version: sqlitedll-2_8_16.zip
(115550 bytes) - This is a DLL of the SQLite library without the TCL bindings. The only external dependency is MSVCRT.DLL. from http://www.sqlite.org/download.html

I copied this dll (after renaming to sqlite_dll.dll) to my PPL root dir (and to /ppl subdir as well). The result is the same.

I tried with other (3.2) version of sqlite too.

sw
Smok Wawelski · 18 Jun 2005, 14:14 UTC
Anyone?
I will try to give it a try early next week. I only worked with the PPC version of SQLite but I'll make sure the PC version works too.
Smok Wawelski · 18 Jun 2005, 21:54 UTC
Thanks Alain.
Smok Wawelski · 04 Sep 2005, 12:12 UTC
How about this sqllite demo? Have anybody tried it on PC? Did it work?
Hi Smok,

Will try to take a look this week at this issue.
Hi Smok,

Try this .dll file on the PC:

http://www.sqlite.org/sqlitedll-2_8_16.zip

SQLite Version 3 is not supported yet in PPL.

It should work just like the PPC version.
Smok Wawelski · 07 Sep 2005, 21:45 UTC
Hi there again.

Still no success:


PPL 0.8 Compiler Error Report

(SqlDemo.ppl) [Syntax error at 'SQLITE_OPEN' (54,8)]
(SqlDemo.ppl) [Syntax error at 'SQLITE_CLOSE' (63,3)]
(SqlDemo.ppl) [Syntax error at 'SQLITE_GET_TABLE' (72,8)]
(SqlDemo.ppl) [Syntax error at 'SQLITE_EXEC' (26,9)]
(SqlDemo.ppl) [Syntax error at 'SQLITE_EXEC' (31,9)]


I've renamed the file properly, put in PPL main directory.

I have no idea why it's not working.

WinXP polish version, sp2, 08-19 version.
Ok, I will take a look at it hopefully before the next release on Friday.
Hi,

I got the sqlite to work on the PC. Replace your original SQL.PPL file in the Lib\ folder where PPL runtime is installed.

Put the sqlite.dll file in the directory where the PPL.EXE is located and rename it to sqlite_dll.dll.

Make sure you put the files in the PPL runtime folder. C:\PROGRAM FILES\PPL\ most of time.

Run the SQLDEMO.PPL sample file.
Attachments:
Sql.ppl (5 KB)
Smok Wawelski · 08 Sep 2005, 20:04 UTC
Now it worked. In PIDE everything is ok. When running under PPL it failed trying to open db.sql, but I suppose because of different path of db.sql (it's in subdir demos/ but PPL.exe is upper). After compiling to .exe it worked only when sql_dll.dll was in the same directory (which is completely understood).

Thanks for help.

PS. I've copied db.sql to PPL.exe directory and it worked well even though sqlDemo.ppl was in demos/ subdir.