PocketMatrix forums

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

October Updates

Kornalius,

You've been pretty silent this week and I've been wondering what you've been working on. Could you give us a quick update?
- Time frame of the 0.8 beta.
- What's left on the todo list.
- When we'll see the latest changes.

The encoding package looks great. I'm looking forward to trying it out.

Brad
Hi Brad,

I am about to release the weekly pre-release build (in a few minutes). I have been working mainly on optimizing and finishing up the OO features during the week.

The package file system was thought about last night and implemented today.

PPL 0.8 beta is still a couple of weeks away. I still have finish this Visual Form Builder. I admit, it don't have much interest in it but I said I will have it ready for 0.8 beta, so it will be ready by then. It is what mainly holds the release of 0.8 beta.

Oh, the advertising page has to be finished as well. This alone will take about a week until it's ready.
Since the other thread was getting a little long, I decided to use this thread.

Here is what I will be working on in the next few days (weeks?):

- Arrays of struct.
ex:
Code:
struct(s$, "a", "b");
dim(s$, 100);
s.a$[10] = 50;
s.b$[10] = 60;


- Some more package functions.
- Package manager program. (pkgman.ppl)
- Visual Form Builder for PocketPC.
- Some adjustments on the OO system.
- Starfield demo.
- More sprites features to make it even easier to write games.

After that I should be able to do some more work on the help file, the advertising document then get ready for a beta release 0.8.
It is now possible to define an array of struct.

Ex:
Code:
// Arrays of structs test

struct(s$, "a", "b");
tdim(s$, 10);

s.a$[0] = 1;
s.b$[0] = 2;
s.a$[1] = 3;
s.b$[1] = 4;
ShowMessage(s.a$[0]);
ShowMessage(s.b$[0]);
ShowMessage(s.a$[1]);
ShowMessage(s.b$[1]);


The tdim function will create an array with a struct.
Here are the latest:

- More sprite features.
o SpeedX, SpeedY : Automatically move the sprite by x or y pixels every frame.
o Loop : If sprite is moved out of screen area, loop to the other side.
o Color : Color of pixel in case no image is loaded.
o NewSprite() function.

- Try/Except statements implementation. (tomorrow)

- Package manager utility.

- More package functions and fixes.

- User menus in editor.ppl support \n code.

- StarField.ppl demo to demonstrate arrays of struct.

- StarField2.ppl variation using sprite engine (speedx, speedy...)

- Simple2_1.ppl variation of Simple2.ppl using sprite engine (speedx, speedy...)

A new build will be out tomorrow.
Hi Kornalius

Any chance of recompiling the chm file? I notice the html version on your website has a fair bit more content...

Cheers
Andy


---------------
How bizarre, my chm reader was not displaying all content, but strangely is now. Don't you just love Windows? :?
Sorry for the confusion.
The other way around maybe? The HTML on the web site hasn't been updated in a while. The CHM is updated every release.
Some GameAPI updates on sprites:

Changed SpeedX and SpeedY to Direction and Velocity.

- The Direction field is an angle (0-360).
- Velocity is the (double value) speed in pixels of the movement.

The X and Y fields are now double type instead of regular int.
Some more updates on the GameAPI:

- New function cos256() and sin256().

- New function Angle() to calculate the angle between two points.
I decided to leave the SpeedX and SpeedY after all. There are three alternatives to moving sprites around.

1. MoveSprite(sprite, x, y);
2. SetSpriteSpeedX(sprite, speed); SetSpriteSpeedY(sprite, speed);
3. SetSpriteDirection(sprite, angle); SetSpriteVelocity(sprite, speed);

I am working with sprite's weight and elasticity right now. It is almost working, not perfect but it gives a good idea of the physic I want to implement. I is very basic at this point. If somebody has experience with this kind of stuff I would love to get some help.
Btw, the new build is not ready yet. I still have a few things to finish up before I can make a new one. Hopefully soon.
Here some updates:

- I decided not to waste time anymore on the complicated physic engine I was trying to put into PPL. I will remove the Weight, Gravity, Elasticity and Friction properties on the sprites. However I will have a demo that will implement these things in PPL language not internally.

- I have to fix a very important bug with the eval() function. This is what drives the Trace Window in the PIDE too.

- Finish up the Try/Except statements and create a demo.

- A few bug fixes here and there left.

I hope to have a new build early next week. Sorry for the long (~1 week) delay! :wink:
I will be working on perfect-pixel collision detection for the next update. It shouldn't take too long, this technically shouldn't delay the next build by much. As I said previously, I am removing weight, gravity and stuff from ppl's internal and putting the code (in ppl syntax) in a demo that will be included in the next build.

There will be 4 new game api demos in the next build:

1. Bounce (Ball bouncing off walls)
2. StarField (Simple starfield)
3. StarField_2 (Same as above but using sprite system)
4. Simple2_1 (Same as Simple2 but using auto sprite displacement instead)
kornalius: Sprite speed is still present, right? I'd like to try and whip up a tile-based sidescroller. Can the speed be evaluated: ie when you press the button, it checks the current speed, and if it's lower than a certain number, increase the speed by +.1 or someodd?
Oh yeah, it's still there. There is more, you can either set the speed using SpeedX, SpeedY but also using Direction(degree angle) and Velocity (speed). The program will convert the angle and velocity to SpeedX, SpeedY values.

You can always access the SpeedX and SpeedY sprite's parameters and set them again.
Awesome! Sounds even easier to have accelerating/decelerating sprites. Can't wait to get my hands on this! With the friction and gravity examples, the only big thing that would need to be done is scrolling and the tiles :)
PointOfLight · 18 Oct 2004, 02:59 UTC
All these new features are making me cry - both because they're cool and they're reminding me how much I want to get back into PPL! I don't think I've written any PPL code in 2-3 weeks :cry:
Shame on you POL. :wink:
PointOfLight · 18 Oct 2004, 14:15 UTC
Yeah, I know. We just need to find a way that I can make money out of this whole PocketPC thing, then I can quit my job and do this full time :D
Ok, here we go I changed my mind again (for the 4th time). :cry:

Sprite's physic will be handled internally. I got it all working, it's not perfect physic but it's quite good.

New sprite's features:

- SpeedX, SpeedY
- Direction, Velocity (Sets SpeedX, SpeedY)
- Weight (self explanatory)
- Friction (collision friction)
- Elasticity (rebound factor)
- Loop (when past edge of screen appears on the other side).
- FirstFrame (first animation frame sequence to loop from)
- LastFrame (last animation frame sequence)

Game world features:

- Gravity
- Friction

The next build will include a few demos:

- Simple2_1.ppl
- StarField.ppl
- StarField2.ppl
- Bounce.ppl (physic demo)

There will be a new package manager program included as well.

A new InputBox() function has been added to the Windows.ppl library.

Try / Except has been implemented.

And of course many other fixes.
Oups I forgot:

- PIXEL PERFECT COLLISION DETECTION!!! :D
kornalius: When is this coming out? This is nearly perfect for making a good platformer like Mario and Commander Keen, and I'm really anxious to take a crack at it! The most intensive coding would probably be in scrolling the screen around.

I don't understand your definition of friction in PPL - can it be tuned to slide more or less depending on the surface?
Sponge: Yes, friction is just like reallife friction. The less friction, the "slidier" it is.

Scrolling is just a matter of setting SetOrigins() and make the main sprite non-scollable using SETSPRITESCROLL().

I will implement layers for the next build. This way you can assign multiple sprites to the same layer number and then just hide the layer or show it, scroll it...
Oh, almost forgot, the new version is now available! :wink:
Erm... where? :)

That scroll layers sounds awesome, parallax scrolling should be a snap.

[edit] Doh there it is - the dat ewasn't updated on the HTML is all.

[edit2] PPL seems broke in Windows Server 2003 - I only see the little progress bar in the bottom right for a moment, and then it's gone. If I load PPL IDE with the proper path, that freezes up too.

[edit3] Same thing on my XP comp too :\ Digging into the XP error report, it looks like an access violation error, code is 0xc0000005
Did you fully uninstall the previous version before installing the new one?

Wow, that is weird, it works here. I'll wait to see if it's general or only your case. In the meantime give me more info: what you ran, step-by-step...
I tried two different computers, neither of then ever touching PPL.

Installed, next next next, etc. Ran it, first time around on the 2003 comp I didn't set the path, and it lagged for a while, but eventually loaded. Set the path to PPL correctly a bit later, and now it won't start.

Move to other comp, XP SP1, same thing, usual installation (prev version worked on my XP SP1 laptop which I don't have at the moment) load it up, set the path to PPL correctly, PPL crashes with the "send info to Windows" stuff - which is where I dig out the access violation stuff.

Can't connect to the PPC on the XP SP1 computer - AS is connected, but didn't actually make a partnership with an X5 300MHz PPC2002.
Damn it. I will do some testing tomorrow to figure this out. Sorry about that.
Heh that sure dampened my excitement to get playing with the new stuff :P Hope you figure out the problem, and if you really need to, I can set up an account for you to log in my computer with.
PointOfLight · 19 Oct 2004, 02:31 UTC
Just installed the new version (after uninstalling, and all that). I was able to launch the PIDE and run one of my old projects without a problem. I clicked on the new PPL icon that was placed on the desktop, though, and that errored out. As for the PIDE, I had some other problems, but I will detail those in another thread.
PointOfLight · 19 Oct 2004, 02:34 UTC
Did you install the PPL PPC runtime as part of the PIDE install, or did you run the install separately with what was in the zip file? The PPLSetup.exe that is installed in the PIDE directory is actually different than the one included in the zip file. I wonder if that is your problem (I used the one included in the zip file).
I've only tried the PPC runtime briefly - the 100% CPU usage, crashing, and so forth are with the Intel runtime.
mervjoyce · 19 Oct 2004, 06:59 UTC — Pre-Release update 18-10-2004
Hello All,

Just back from 10 days leave about 1-hour ago. Need to do some reading to catch up with the latest threads.

I have downloaded and installedd the new release (18/10/2004). I de-installed old version on both PPC and PC and deleted ALL associated directories on both machines manually before installing. I Installed "Setup.exe" from the zip, then also installed "PPLSetup" as well. I don't know if this is the correct (and/or necessary process), but I am pleased to report that my GPS program compiles and runs fine from the PIDE as well as compiling and running from PPL on the PPC

As you can imagine I have not done any other testing as yet, but thought I would at least report this much back to the forum.

BTW: PointOfLight - I did some adoce coding in PPL while on leave ... I have advanced on my previous attempts and have some new code and some questions ... I will share it with you directly once I get things sorted out here .... maybe tomorrow

Edit: 11:30UTC 19/10

I can also confirm that my piece of adoce code also run OK.

However the "PPL" icon that is created on the desktop during installation fails with windows error message:
"This program has performed an illegal operation and will be shut down". I am running Windows 98.


cheers
Merv:

Welcome back! I hope you had a good time.

Can you give me the shortcut information for PPL? Like the "Target:" and "Start In:".
Sponge: What is the date on the PPL.EXE on your PC? Send me you PPL directory if you can in a zip file. PM me for the email address.

Edit: I might have found the problem. Internal problem I am pretty sure. I will have another update tonight.
The latest version is available for download. There are many changes and fixes in this version.

Changed/new functions:

DrawSurface()
SetSpriteOffSetX()
SpriteOffSetX()
SetSpriteOffSetY()
SpriteOffSetY
SetSpriteLayer()
SpriteLayer()
SetLayer()
SetSpriteAnim()
SetSpriteCollide()
SpriteCollide()
SetSpriteId()
SpriteId()

Try/Except/Finally (finally is now working)

Some fixes to the physic engine. Nothing big tough.

New demo Simple5.ppl.

#EXPLICIT compiler directive to do a runtime check on variables not defined within Local(), Global(), Private() or Public().
PPL runs fine on my XP SP1 machine now - haven't tried it on 2K3. However I tried running the Bounce demo on my PPC, and it doesn't seem to load. Is PocketFrog working in Windows yet?
Yep, it runs on PC and PPC. Did it give any sort of error message?

Edit: Very happy that it works now, it was basically just a variable pointer not being resetted to NULL. On the PC it would crash but not on the PPC. Strange!
Hm, getting some even more weirdness. I run bounce.ppl in the standalone PPL, and it works fine. A bit buggy, but definitely workable.

But, I close out of it all, go back into the PPL IDE, open it, try and compile it, and now I'm getting a message that it can't find the ball.bmp, even though it's fine when I run it through the standalone PPL.exe again.
Ha, you are compiling to the wrong directory. The ball.bmp file has to be in the directory you are trying to run the demo from. Try Run/Clear temporary options, and then run it, set the right target directory and it should be alright.
Aha, there it goes. I'm not seeing any of the text, but the bouncing balls work fine.

Any chance at getting a frame-limiter for the PC version, rather than doing it in code?
In order to display the text, put the VGAROM.FNT file to the directory you are running the bounce demo from.

An FPS limiter... Good idea, didn't think of it, I will implement one for the next build!
New version is available. I fixes a lot of the things that have been talked about in the last few days. Including reports coming from emails and MSN.
Kornalius,

For the last few builds, I have been having some trouble using DEBUG. I just can't get it to stop on any breakpoints. Is anybody else having the same problem?

What I was doing instead, I included the console to write some debug info to. This works well, but I can't get the project to close. I have put a ShutConsole in the WM_Close message of the WinProc, so I think the problem must be where I am including the InitConsole. Should it go in the WM_InitDialog message code or somewhere else to be able to close the project?

Brad
Yeah, I have to work on this. Don't worry it will be back next release.
Kornalius,

Here is another little problem...
Code:

sdim (Test4$, TBYTE, 512);
writeln("Test4 =" + sizeof(Test4$));

No matter the declared size or number of dimentions I get 8 from sizeof.

So far I have only tried it with TBYTE.

Brad
I just fixed it (I assumed all arrays had double type elements :oops: ), it will now return the value 1, then you can get the real size using:

sizeof(test4$) * vmax(test4$);
Kornalius,

I'm curious... what's the story behind the guy playing a cowbell or whatever that is you have for a picture?

There must be a reason that you selected this picture for your messages.

Brad
I think its a pic of Kornalius engaged in his other hobby :lol:
Will Ferell from SNL. I think he is funny. It's from one of it's sketch. He is playing the cowbell for some 70's band (I don't remember which one) and he is hillarious in it.
:lol: :lol: :lol: :lol: :lol: :lol: :lol:

Can't stop laughing, I love it!!! HAHAHA! I have the DVD but I still downloaded it to play it on my PPC.
New version is now available. 10-26-2004.zip.

EDIT: Re-Uploaded due to a wrong file version in the main package. (GameAPI.ppl).

Bug fixes (not all listed):

- Fixed debugger.
- Powerful ReadWrite() statement.
- For statement.
- Try/Except/Finally statements fully implemented.
- ReDim() function, to redimension an array.
- No more deleteobject().
- FreeObject(), FreeSurface(), FreeRasterizer(), g_FreeFont().
- Redone the physic engine, still some work to do on it.
- Mid() function can take -1 as length.
- Fixed Poke().
- Fixed internal sprites destructor.
- 2 collision detection model for sprites, boundrects and pixel-perfect.
- WM_COLLIDE, if return stop to collide.
- Shape and Paused new properties for sprites.
New version is available now.

- Fixed g_lock / g_unlock.
- Fixed collision detection.
- Fixed g_drawtext, g_textout.
- New Collide() function.
- New collision functions.
- And a few more bug fixes.