CodeWalrus

Featured Member Projects => Completed and Inactive Projects => [Inactive] MinePrime (HP Prime) => Topic started by: alexgt on April 20, 2015, 12:22:42 AM

Title: [Minecraft] [HP Prime] MinePrime - Minecraft on a Hp Prime!
Post by: alexgt on April 20, 2015, 12:22:42 AM
Hello this is a 2D Minecraft game for the HP Prime. It is now in version 4.0 and has moved on to Applications. version 1.0 was a program and was mostly me experimenting with HP-PPL, 2.0 included block breaking and placing but was scrapped after technical problems and replaced with 3.0, 3.0 was just a menu system I developed so I am not even sure it is worthy of a version in itself, 4.0 is just as far along a 3.0 except it is moving along much quicker.

So that is the history of MinePrime but practice makes perfect so May the Fourth be with you :P

More technical outline of how world data will be stored and loaded and also collision:
[spoiler]
Collision / Block durability:
what I do here is I use a GROB that is the same size as the world dimensions. If the pixel at your coordinates is black then it is free to move through, if it is anything else and you will not be able to go through it. And its color value is the block durability.

Storing worlds and world data:
This is where I really need Apps. With AFilesB() you can return and store individual bytes directly into the App files. So I can use this as a super compact and small list that makes up the world, they will then be formed into a matrix that will be used to store data while the game is executing. Then when the user quits it turns the matrix into a list and stores it into the App. If this is a acceptable way to do it it would be nice to have some feedback, especially from @timwessman.

Drawing the world/ terrain:
For this I am going to use a method I used in the last versions quite allot. I will make a GROB which will be one block larger on all sides, this will allow for smooth scrolling and also decrease lag if you are not moving much.

Player Movement:
This will be where 4.0 really shines, it will have movement like Zampy's Quest (for those that don't remember, it let you move one pixel at a time) not that it is super cool but it is something the other versions lacked. But unlike Zampy's Quest it will have impeccable collision because it uses pixels. Why Pixels are so great at collision is because they will only position at the integral part of the number (ex: PIXON_P(1.9999,1.9999,#FFFFFF) and PIXON_P(1,1,#FFFFFF) both make the pixel at (1,1) white).

I hope this wan't so confusing but I explained it all the best I could :)
[/spoiler]

Block list: OUTDATED!!!
[spoiler]
blocks
(https://codewalr.us/proxy.php?request=http%3A%2F%2Fi.imgur.com%2FZv7Xzif.png&hash=68356d43e30206322fe49d5eced3286f42d224a3)
Times all block ID's after 1-10 by 10 (so block 2(dirt) would be 20 and block 3(grass) would be 30 this gives me room to add block durability ;))
1-9 - Break animations
10-Stone
20-Dirt
30-Grass
40-Cobblestone
50-Bedrock
60-Oak Leaves
70-Tall Grass
80-Bricks
90-Refined Stone
100-Oak Planks
110-Mossy Cobblestone
120-Gold
130-Iron
140-Coal
150-Diamond
160-RedStone
170-Glass
180-Monster Spawner
190-Torch
200-Lapiz lazuli ore
210-Lapiz lazuli Block
220-Iron Block
230-Gold Block
240-Diamond Block
250-Emerald Block
260-Sand
270-Sandstone
280-Netherbrick
290-White Wool
300-Black wool
310-Dark gray wool
320-red wool
330-Pink wool
340-Green wool
350-Lime green wool
360-Brown wool
370-yellow wool
380-blue wool
390-light blue wool
400-magenta wool
410-Purple wool
420-Cyan wool
430-orange wool
440-light gray wool
450-Obsidian
460-enchanting table
470-dragon egg
480-command block
490-jungle leaves
500-cactus
510-spruce leaves
520-foot of bed
530-head of bed
540-Iron bars
550-ladder
560-bottom door
570-top door
580-mossy stone brick
590-cracked stone brick
600-spruce log
610-birch log
620-pumpkin
630-jack o'lantern
[/spoiler]


Current list of blocks (Will be updated upon additons) OUTDATED!!!
[spoiler]
NAME - ID - MODIFIER / DAMAGE (Blank if none, once mining is added all blocks will have a damage count)
AIR - 0
BEDROCK - 1
DIRT - 2
GRASS - 3
[/spoiler]

Thanks for the support and helpful comments :)
Title: Re: MinePrime - Minecraft on a Hp Prime!
Post by: CKH4 on April 20, 2015, 12:32:41 AM
Very cool, I'm looking forward to updates.
Title: Re: MinePrime - Minecraft on a Hp Prime!
Post by: alexgt on April 20, 2015, 12:41:33 AM
Me too!
Title: Re: MinePrime - Minecraft on a Hp Prime!
Post by: DJ Omnimaga on April 20, 2015, 12:44:04 AM
Awesome to see this game on the Prime. The calc has a lot of power so hopefully it should help. :D

EDIT Bigger screenshot:

(https://img.ourl.ca/mchpbig2.gif)

Do you plan to add textures, by the way?
Title: Re: MinePrime - Minecraft on a Hp Prime!
Post by: Snektron on April 20, 2015, 07:02:13 AM
Whoa that looks cool :D
Title: Re: MinePrime - Minecraft on a Hp Prime!
Post by: DJ Omnimaga on April 20, 2015, 03:42:38 PM
I reuploaded the screenshot (see previous post). For some reasons it was playing 10 times slower >.<
Title: Re: MinePrime - Minecraft on a Hp Prime!
Post by: Snektron on April 20, 2015, 03:59:43 PM
Yeah i noticed that, it looked a bit weird
Title: Re: MinePrime - Minecraft on a Hp Prime!
Post by: Duke "Tape" Eiyeron on April 20, 2015, 04:36:36 PM
It's a good start you have there. Will you do a smooth scrolling or will you keep the block/block scrolling?
Title: Re: MinePrime - Minecraft on a Hp Prime!
Post by: alexgt on April 20, 2015, 08:04:52 PM
Quote from: DJ Omnimaga on April 20, 2015, 12:44:04 AM
Do you plan to add textures, by the way?
Yes, I am starting to do that as we speak thanks for the help with the sprites :) (I will be using the actual textures from the Minecraft itself to be more like it!)

Quote from: Duke "Tape" Eiyeron on April 20, 2015, 04:36:36 PM
It's a good start you have there. Will you do a smooth scrolling or will you keep the block/block scrolling?
Thank you for the smooth scrolling suggestion I will implement that right away since it will be quite easy!

Thanks for the help :)
Title: Re: MinePrime - Minecraft on a Hp Prime!
Post by: DJ Omnimaga on April 20, 2015, 08:36:45 PM
If I was you, I would try to avoid reusing copyrighted graphics in your game. Maybe use custom ones I posted before or tiles that looks a bit like Minecraft but are a bit different, like Crafti for the Nspire did. Although Minecraft isn't owned by Notch anymore (he was very copyright-not(C when it came to re-using his graphics, we don't know what is Microsoft's stance about it.
Title: Re: MinePrime - Minecraft on a Hp Prime!
Post by: alexgt on April 20, 2015, 08:50:08 PM
Yeah I am sad about Microsoft buying Minecraft and you are right but I want the looks to be the same :(.

If you convert this image into a ICON format:
[spoiler](https://codewalr.us/proxy.php?request=http%3A%2F%2Fi.imgur.com%2FPUF0DRk.png&hash=22cbcaec549895c083cfce35c551fed42f3fec74)[/spoiler]
I an take the sprites from there so we could use any 1.7.2 texture pack and convert it to throw it in the ICON Hex I take my sprites from and do it that way.
I could have the default pack as a custom (un-copyrighted) one and you could change it if you wanted!

EDIT: For that gif did you use cam studio @DJ Omnimaga ?
Title: Re: MinePrime - Minecraft on a Hp Prime!
Post by: CKH4 on April 20, 2015, 09:09:36 PM
Is there any chance of truly random generation? Like random for each layer rather than just the bottom layer.
Title: Re: MinePrime - Minecraft on a Hp Prime!
Post by: Snektron on April 20, 2015, 09:23:44 PM
truly random doesn't exist (on computers (yet))
Title: Re: MinePrime - Minecraft on a Hp Prime!
Post by: CKH4 on April 20, 2015, 09:26:25 PM
Not what I meant but sort of. I meant for each layer to generate its own random height.
Title: Re: MinePrime - Minecraft on a Hp Prime!
Post by: alexgt on April 20, 2015, 09:34:27 PM
Yup I can do that by changing two values :) - I put on list...

Also what I said before about the texture pack might not work out because I made a program that had that image and displayed it and it was over 350 KB in size so unless that is OK it might get a little large.
Title: Re: MinePrime - Minecraft on a Hp Prime!
Post by: CKH4 on April 20, 2015, 09:37:47 PM
Well it depends, how big was the program before the image?
Title: Re: MinePrime - Minecraft on a Hp Prime!
Post by: alexgt on April 20, 2015, 09:44:19 PM
less than a KB (it just displays the picture)
Title: Re: MinePrime - Minecraft on a Hp Prime!
Post by: CKH4 on April 20, 2015, 10:01:15 PM
I'd say that it's not worth it but its really up to you. I'm sure that the community would appreciate the graphics regardless of the size. Maybe you could do one of each with just the block drawing different.
Title: Re: MinePrime - Minecraft on a Hp Prime!
Post by: DJ Omnimaga on April 20, 2015, 10:36:49 PM
Quote from: alexgt on April 20, 2015, 09:34:27 PM
Yup I can do that by changing two values :) - I put on list...

Also what I said before about the texture pack might not work out because I made a program that had that image and displayed it and it was over 350 KB in size so unless that is OK it might get a little large.
I am fine with it. The new connectivity kit transfers large programs very fast now. Did you convert it to ICON format? Because it's much smaller than regular GROB format. In any case, I am fine regardless. Just remove unused graphics I guess. Or you can try to reduce details. I think ICON format uses PNG format so a plain 320x240 rectangle would take much less space than a 320x240 tileset where every pixel has a different color than the ones next to it.

Another idea could be to make the game 160x120 by using 8x8 tiles, a 160x120 GROB where you draw your stuff then when it's time to display the result on the LCD you use something like BLIT_P(G0,0,0,320,240,G1,0,0,160,120).
Title: Re: MinePrime - Minecraft on a Hp Prime!
Post by: alexgt on April 21, 2015, 12:46:02 AM
Quote from: DJ Omnimaga on April 20, 2015, 10:36:49 PM
Another idea could be to make the game 160x120 by using 8x8 tiles, a 160x120 GROB where you draw your stuff then when it's time to display the result on the LCD you use something like BLIT_P(G0,0,0,320,240,G1,0,0,160,120).
I think I will use that method :) because I can copy them from individual spots on the format and textures would be supported and less work for me!

Also I am thinking about increasing it up to 32x32 because when I implement mining you will have to be able to put your finger on the block and hold it there and you might misclick and destroy your base :( also it will seem like the world is bigger because it will take longer to cross it (I struggleed with making it a big as it is 200x50 because of limitations on matrices).

Thanks you very much for the help and support a new update will (hopefully) be tomorrow :) !

Title: Re: MinePrime - Minecraft on a Hp Prime!
Post by: DJ Omnimaga on April 21, 2015, 01:55:59 AM
Also in 160x120 mode the game will look more blocky and be closer to Minecraft style. :P By 32x32 do you mean the textures? Also not for now but once you get this done, maybe you could add the ability to zoom in/out? (not the map rendering but rather the final GROB where you paste the stuff in)

Title: Re: MinePrime - Minecraft on a Hp Prime!
Post by: alexgt on April 21, 2015, 10:14:53 PM
I think I will stick with 16x16 because I like the zoom in/out that you suggested! Once I have the textures drawn I can scale them up/down for the zoom effect thanks for the suggestion :)
__________________________________________________________________________________
UPDATE 0.2! :
-Smooth scrolling @Duke "Tape" Eiyeron !
-Textures @CKH4 and @DJ Omnimaga !
-Trees 50% complete changed to saplings and will add full grown trees !
-Pause menu WIP 30% complete !
-Added iron !
-Added Diamonds !
-Added Coal !
-Added Emeralds !
-Added Gold !
-Added saplings !
-Fixed sky color change !

Thanks For the help and support :) :) !
Title: Re: MinePrime - Minecraft on a Hp Prime!
Post by: CKH4 on April 21, 2015, 10:43:52 PM
Cool, is a screenshot coming soon?
Title: Re: MinePrime - Minecraft on a Hp Prime!
Post by: DJ Omnimaga on April 21, 2015, 11:14:04 PM
(https://codewalr.us/proxy.php?request=http%3A%2F%2Fimg.codewalr.us%2Fmineprime.png&hash=b18c5512589471c5f5b7d29b20cfa47e1f9fbc9c)

I just tried it and it looks really cool :D

Judging by the speed, I wonder if you would be able to implement fog of war based on where you are, so that you cannot see what's underground or inside a cavern unless your character is positioned in front of the entrance or at least use RECT_P to hide what's below you if it's over 4 blocks thick?
Title: Re: MinePrime - Minecraft on a Hp Prime!
Post by: alexgt on April 21, 2015, 11:26:02 PM
I plan to do fog with alpha :). Also it is ok I have it figured out how to record my prime now just uploading and downloading takes a while because of slow internet so you don't need to post them but help is always nice :).

GIF:
[spoiler](https://codewalr.us/proxy.php?request=http%3A%2F%2Fi.imgur.com%2FKHmJTVW.gif&hash=71da2e2fb9c70da37899073d9eaa2488d5d1ebd3)[/spoiler]

Here is a version for the emulator that runs slower ;)

Quote from: DJ Omnimaga on April 21, 2015, 11:14:04 PM
(https://codewalr.us/proxy.php?request=http%3A%2F%2Fimg.codewalr.us%2Fmineprime.png&hash=b18c5512589471c5f5b7d29b20cfa47e1f9fbc9c)
I just tried it and it looks really cool :D
Thanks!
Title: Re: MinePrime - Minecraft on a Hp Prime!
Post by: CKH4 on April 21, 2015, 11:31:13 PM
Thanks for the gif, how do I transfer the hpprgm to the emulator? HP is confusing for me coming from TI.
Title: Re: MinePrime - Minecraft on a Hp Prime!
Post by: alexgt on April 21, 2015, 11:33:58 PM
You need the connectivity kit then if you open it up and you have the emulator up you will see "HP Prime". Next drag down the menu and drag and drop the program to your program folder and it should appear in the program menu on the emulator :).
Title: Re: MinePrime - Minecraft on a Hp Prime!
Post by: CKH4 on April 21, 2015, 11:37:51 PM
Thanks, I'll see if I can learn from it.
Title: Re: MinePrime - Minecraft on a Hp Prime!
Post by: alexgt on April 21, 2015, 11:39:16 PM
Anytime :)
Title: Re: MinePrime - Minecraft on a Hp Prime!
Post by: DJ Omnimaga on April 21, 2015, 11:57:24 PM
To record the Prime I actually use Camstudio + VirtualDub. VirtualDub is used to ensure the frame rate isn't too high, so that file size remains small, and then I export to GIF using it.

Also nice. :D I wonder if water and lava would be possible?
Title: Re: MinePrime - Minecraft on a Hp Prime!
Post by: Unicorn on April 22, 2015, 02:31:34 AM
This is looking amazing. Another reason to get a Prime...
Title: Re: MinePrime - Minecraft on a Hp Prime!
Post by: alexgt on April 22, 2015, 08:07:11 PM
Quote from: Unicorn on April 22, 2015, 02:31:34 AM
This is looking amazing. Another reason to get a Prime...
Thanks , and you should :)

Quote from: DJ Omnimaga on April 21, 2015, 11:57:24 PM
To record the Prime I actually use Camstudio + VirtualDub. VirtualDub is used to ensure the frame rate isn't too high, so that file size remains small, and then I export to GIF using it.

Also nice. :D I wonder if water and lava would be possible?
Ahh I use OBS but I still need to figure out my bit rate to make it look better :)

The water and lava will be possible right now I am keeping it in the back or my mind of how I will do it but a solution will hopefully happen soon :)

Thanks for the help and support as always :)

Title: Re: MinePrime - Minecraft on a Hp Prime!
Post by: Duke "Tape" Eiyeron on April 22, 2015, 08:09:10 PM
YOu could also use ffmpeg to convert your video into a plentiful choice of formats (and even gif), yet I have to dig into its options for doing the same things I do on VirtualDub. I usually convert first the video to a rawvideo format to avoid VirtualDUb not recognizing the codec and then do all the things I need to make a good GIF. It's a bit painful of a workflow but it works. :/
Title: Re: MinePrime - Minecraft on a Hp Prime!
Post by: alexgt on April 22, 2015, 08:14:25 PM
once I get to my good computer I will try it out :) Thanks

EDIT: Next UPDATE will feature
- A moveable player that can be seen!
- Block collision!
- Maybe mining depends on how large bugs get xD
Title: Re: MinePrime - Minecraft on a Hp Prime!
Post by: Snektron on April 22, 2015, 08:18:37 PM
ooh, can't wait for the gifs :D
Title: Re: MinePrime - Minecraft on a Hp Prime!
Post by: Duke "Tape" Eiyeron on April 22, 2015, 08:21:31 PM
How do you manage collision? Do you take account of a movable object could phase out through thin walls if it goes too fast? Are you dividing the speed vector to match the grid cell dimension?
Title: Re: MinePrime - Minecraft on a Hp Prime!
Post by: alexgt on April 22, 2015, 08:45:43 PM
I have a X and Y variable in a matrix that has the block data and I just check whether it is a block you can walk through or not when you move so its not that bad :P

Quote from: Cumred_Snektron on April 22, 2015, 08:18:37 PM
ooh, can't wait for the gifs :D
The Update is not out  yet those are just the planned things but in the next update there will be gifs in the actual post and not scattered all around :)
Title: Re: MinePrime - Minecraft on a Hp Prime!
Post by: Snektron on April 22, 2015, 08:52:36 PM
Awesome! Can't wait :P
Title: Re: MinePrime - Minecraft on a Hp Prime!
Post by: alexgt on April 22, 2015, 08:53:31 PM
Yeah I have home work then I might get it out today even :)
Title: Re: MinePrime - Minecraft on a Hp Prime!
Post by: Duke "Tape" Eiyeron on April 22, 2015, 08:54:15 PM
Let me rephrase my question : let's say a block is 16x16 pixels and an object will move to the left of 76 pixels, will you check each tile during the displacment it'll cross or only the tiles it'll overlap at the destination?
Title: Re: MinePrime - Minecraft on a Hp Prime!
Post by: alexgt on April 22, 2015, 09:34:23 PM
Oh, well the only objects in the game will be mobs and  the player,they only move one block at a time so yeah they will check the next spot over and if they can't walk they will junp and if the can't jump the will just stand there. teleporting the player would just check in that exact spot.
Title: Re: MinePrime - Minecraft on a Hp Prime!
Post by: Snektron on April 22, 2015, 09:36:08 PM
Checking all blocks would be quite unefficient, though its what i did with my first platformer [Emoji51]
Title: Re: MinePrime - Minecraft on a Hp Prime!
Post by: CKH4 on April 22, 2015, 09:42:21 PM
For my first attempt at a platformer I did pixel testing. You could drop through platforms that were 1 pixel thick but if it were thicker than that it wouldn't let you.
Title: Re: MinePrime - Minecraft on a Hp Prime!
Post by: Snektron on April 22, 2015, 09:52:18 PM
Oh thats quite cool. Actually i don't remember how i did it in my maze game, but i think i looped through all meshes and checked collision. Yeah that could have been done better :3
Title: Re: MinePrime - Minecraft on a Hp Prime!
Post by: alexgt on April 22, 2015, 10:44:53 PM
Ohh I meant it it would check the block right next to it to see if it could walk there I don't check the  entire matrix that would be horribly inefficient as you said and yes when I started with Ti-Basic I did the same thing as @Cumred_Snektron then did what you did @CKH4 :)
Title: Re: MinePrime - Minecraft on a Hp Prime!
Post by: DJ Omnimaga on April 23, 2015, 12:10:47 AM
Quote from: alexgt on April 21, 2015, 11:33:58 PM
You need the connectivity kit then if you open it up and you have the emulator up you will see "HP Prime". Next drag down the menu and drag and drop the program to your program folder and it should appear in the program menu on the emulator :).
Oh I didn't know that. I thought you had to manually create an empty program then copy the code from the emulated file into the empty calc file.

Quote from: alexgt on April 22, 2015, 08:14:25 PM
once I get to my good computer I will try it out :) Thanks

EDIT: Next UPDATE will feature
- A moveable player that can be seen!
- Block collision!
- Maybe mining depends on how large bugs get xD
From experience, as soon as a Minecraft clone gets the ability to place blocks of any kind and removing them, that's enough to get people hooked to it ;D

Good luck on those feature additions!

Quote from: CKH4 on April 22, 2015, 09:42:21 PM
For my first attempt at a platformer I did pixel testing. You could drop through platforms that were 1 pixel thick but if it were thicker than that it wouldn't let you.
Yeah I use pxl-test for FFMF. Something you can do is to use two buffers and only pixel-test the buffer that has no background. 
Title: Re: MinePrime - Minecraft on a Hp Prime!
Post by: CKH4 on April 23, 2015, 01:12:05 AM
Off topic:
For my RPG that's in progress I'm considering using L1 or something as a pxltest buffer with special shaped sprites for high accuracy collisions.

On topic:
Have you considered higher accuracy movement like 1/8 block instead of 1 block?
Title: Re: MinePrime - Minecraft on a Hp Prime!
Post by: DJ Omnimaga on April 23, 2015, 03:12:20 AM
Not to derail the topic, but for your RPG you should make a topic about it, because I am curious about what are your plans and for which platform it is :)
Title: Re: MinePrime - Minecraft on a Hp Prime!
Post by: Snektron on April 23, 2015, 07:23:33 AM
Yeah thats a good idea CKH4 :P
Title: Re: MinePrime - Minecraft on a Hp Prime!
Post by: Duke "Tape" Eiyeron on April 23, 2015, 07:41:50 AM
Quote from: Cumred_Snektron on April 22, 2015, 09:36:08 PM
Checking all blocks would be quite unefficient, though its what i did with my first platformer [Emoji51]

Well it's the only solution to avoid missing possible collisions. And i don't talk about checking the whole map but the tiles your player will cross through the movement.
Title: Re: MinePrime - Minecraft on a Hp Prime!
Post by: Snektron on April 23, 2015, 07:49:05 AM
Yeah i know, but i checked every block. Though i could have easily made it check only the possible blocks...
Title: Re: MinePrime - Minecraft on a Hp Prime!
Post by: alexgt on April 23, 2015, 08:27:38 PM
Quote from: CKH4 on April 23, 2015, 01:12:05 AM
On topic:
Have you considered higher accuracy movement like 1/8 block instead of 1 block?
I could do that but I would have to increment the player by 1 block at a time but it could be possible with the camera I would just have to modify a small section (I think)

Quote from: Duke "Tape" Eiyeron on April 23, 2015, 07:41:50 AM
Quote from: Cumred_Snektron on April 22, 2015, 09:36:08 PM
Checking all blocks would be quite unefficient, though its what i did with my first platformer [Emoji51]

Well it's the only solution to avoid missing possible collisions. And i don't talk about checking the whole map but the tiles your player will cross through the movement.
I will be checking all possible blocks.
Title: Re: MinePrime - Minecraft on a Hp Prime!
Post by: DJ Omnimaga on April 24, 2015, 05:41:00 AM
Make sure to not check both directions at the same time when doing collision so if you move diagonally you can't go through two tiles that are diagonally aligned next to each others. :P
Title: Re: MinePrime - Minecraft on a Hp Prime!
Post by: alexgt on April 24, 2015, 07:23:56 PM
^ Yup. EDIT: though it does not sense diagnol movement it just moves to the side then up/down in two sections so that won't be an issue :)

And @DJ Omnimaga I tried to implement the 320x240 GROB as the display but I couldn't use it with features like portals that I will add so I had to scrap that :(

Player movement is down pat right now I am revamping the entire world rendering system :)

Mining looks like it will be in the update after this one I just don't have the time and I want to give you guys something to test :)

Map will be implemented but tweaks will be made by your suggestions

Thanks :)
Title: Re: MinePrime - Minecraft on a Hp Prime!
Post by: DJ Omnimaga on April 24, 2015, 11:49:54 PM
Aaah sorry to hear about the 320x240. How is the speed so far by the way?
Title: Re: MinePrime - Minecraft on a Hp Prime!
Post by: Unicorn on April 25, 2015, 07:06:40 PM
I just tried it out with the Prime emulator, and wow, the textures and everything are amazing! Will the world be much bigger?
Title: Re: MinePrime - Minecraft on a Hp Prime!
Post by: alexgt on April 25, 2015, 10:32:28 PM
When I make the planned 3D version it will hopefully have infinite worlds but right now this will be a copy of 2D minecraft in LUA for the Nspire just so I can turn out something and learn HPPL better because if I started coding a 3D game now it would SUCK :)

And DJ the speed is awesome when I have portals implemented I will have a variable to tell it how fast or slow to scroll the screen right now it is set to scroll 1/16 of a block but I could even have it scroll 1 block instantly so speed is fine :)

thanks for the help and support :)
Title: Re: MinePrime - Minecraft on a Hp Prime!
Post by: DJ Omnimaga on April 26, 2015, 04:08:07 AM
IMHO you should focus on the 2D version first, though, unless you really get many ideas and need to put them into code form for the 3D version.  Plus with a 2D version being completed, when you make the 3D version you would mostly need to worry about the 3D and speed side of things rather than having to worry about implementing everything else (although you would still need to implement the extra axis)


By the way, do you use the TICKS command to restrict the game speed? That can be handy if you want it to run at the same speed on both the emulator and calc. WAIT(<seconds>) also works, but it's not as accurate.
Title: Re: [Minecraft] [HP Prime] MinePrime - Minecraft on a Hp Prime!
Post by: Snektron on April 26, 2015, 09:20:41 AM
Yeah i agree on you should focus on the 2d version first :)
Title: Re: MinePrime - Minecraft on a Hp Prime!
Post by: Unicorn on April 27, 2015, 07:38:10 AM
Wait wut? 3D ? I thought 2D?

Unicorn is a confused walrus o.O :walrii:

Omagersh it didnt add an i :(
Title: Re: [Minecraft] [HP Prime] MinePrime - Minecraft on a Hp Prime!
Post by: Snektron on April 27, 2015, 07:45:59 AM
This is 2D, but he also wants to make a 3D version :)

EDIT: the leet is real
Title: Re: MinePrime - Minecraft on a Hp Prime!
Post by: Unicorn on April 27, 2015, 07:48:20 AM
Cool! anything 3D is amazing if ya ask me.

Screenshot the leetness!
Title: Re: MinePrime - Minecraft on a Hp Prime!
Post by: alexgt on April 27, 2015, 07:28:14 PM
Quote from: DJ Omnimaga on April 26, 2015, 04:08:07 AM
IMHO you should focus on the 2D version first, though, unless you really get many ideas and need to put them into code form for the 3D version.  Plus with a 2D version being completed, when you make the 3D version you would mostly need to worry about the 3D and speed side of things rather than having to worry about implementing everything else (although you would still need to implement the extra axis)


By the way, do you use the TICKS command to restrict the game speed? That can be handy if you want it to run at the same speed on both the emulator and calc. WAIT(<seconds>) also works, but it's not as accurate.
Yup I am focusing on 2D for right now and also I have to look at tutorials because I have no idea how to do 3D stuff. Thanks for the TICKS suggestion I saw it before but I will implement it now since you reminded me :P.  The 3D version will probably be completely re-written but based on the stuff I learn making this one but that will be in the future probably over summer vacation.

As of now I will complete homework and then work on this today

Look forward to:
- Got the collision for the player done remind me to implement a SUB() that will check at given coords
- Make player model
- Will start on block breaking
- Add map tweaks will be made
- Light levels probably not in this update but I want to get it done soon so I don't run into bugs in the future
- time of day might end up in this one but I am restricted on time

Thanks for all the help and support :) my time is limited on the computer because of parents <_< so If the update is ready it might be rushed and there might not be screenies at first but I will post some. Thanks again :)

Title: Re: MinePrime - Minecraft on a Hp Prime!
Post by: DJ Omnimaga on April 29, 2015, 04:00:30 PM
As long as your parents don't block CodeWalrus in the filters or stuff like that. <_< Make sure to keep your grades up, though, in case.

What do you mean by light levels by the way?
Title: Re: MinePrime - Minecraft on a Hp Prime!
Post by: Unicorn on April 29, 2015, 04:15:54 PM
If the light is a certain level,or brightness in a place, it tells whether monsters can spawn or not.

My parents also limit my time on the computer, as my mac is broken.
Title: Re: MinePrime - Minecraft on a Hp Prime!
Post by: DJ Omnimaga on April 29, 2015, 05:11:47 PM
Oh right, I forgot about monsters. Thanks for the explanation.

Also I hope they didn't limit your computer time in retaliation to the Mac getting broken, thinking you did it >.<
Title: Re: MinePrime - Minecraft on a Hp Prime!
Post by: Unicorn on April 29, 2015, 05:43:48 PM
Oh, no it was a really run down mac when I got it. Once I get a new laptop, I will get more time to do my stuffs.
Title: Re: MinePrime - Minecraft on a Hp Prime!
Post by: CKH4 on April 29, 2015, 06:33:33 PM
I recommend anything with above an A6 or dedicated nvidia card. This is the one that I use and it can handle a lot of gaming stuff: http://www.bestbuy.com/site/toshiba-satellite-15-6-laptop-amd-a8-series-4gb-memory-1tb-hard-drive-jet-black/8541017.p?id=1219345074266

Anyways good luck alexgt.
Title: Re: MinePrime - Minecraft on a Hp Prime!
Post by: DJ Omnimaga on April 29, 2015, 07:17:46 PM
Quote from: CKH4 on April 29, 2015, 06:33:33 PM
I recommend anything with above an A6 or dedicated nvidia card. This is the one that I use and it can handle a lot of gaming stuff: http://www.bestbuy.com/site/toshiba-satellite-15-6-laptop-amd-a8-series-4gb-memory-1tb-hard-drive-jet-black/8541017.p?id=1219345074266

Anyways good luck alexgt.
Yeah I think that was why he made a computer topic a week ago. You might want to post about this there instead. :)
Title: Re: MinePrime - Minecraft on a Hp Prime!
Post by: alexgt on April 29, 2015, 07:29:24 PM
Quote from: DJ Omnimaga on April 29, 2015, 04:00:30 PM
As long as your parents don't block CodeWalrus in the filters or stuff like that. <_< Make sure to keep your grades up, though, in case.

What do you mean by light levels by the way?
My dad says he will put a filter on but i don't think he will. Also my grades are pretty much all A's not to brag though.

Light levels wont just include monsters but I will use it to stop you from seeing too far from layered blocks eg: the visibility of blocks diminishes the more blocks there are on top if it so you can't cheat in caves and see all them diamonds :)

All that stuff will not be in the next update sorry I am working on breaking blocks and once I get that sorted out I will post it than the other stuff will come

Thanks for the help and support :)
Title: Re: MinePrime - Minecraft on a Hp Prime!
Post by: Unicorn on April 29, 2015, 09:44:35 PM
Whoa, hidden ores... never thought of that! Anyways, that is more a cool feature, block breaking is VERY important.
Title: Re: MinePrime - Minecraft on a Hp Prime!
Post by: DJ Omnimaga on April 30, 2015, 04:53:43 AM
Wow I hope light levels like this aren't too hard to implement. Good luck! Will the next update allow you to place blocks?
Title: Re: MinePrime - Minecraft on a Hp Prime!
Post by: Strontium on April 30, 2015, 04:57:54 AM
Quote from: DJ Omnimaga on April 29, 2015, 04:00:30 PM
As long as your parents don't block CodeWalrus in the filters or stuff like that. <_< Make sure to keep your grades up, though, in case.

Thats what proxies are for :P
Title: Re: [Minecraft] [HP Prime] MinePrime - Minecraft on a Hp Prime!
Post by: Snektron on April 30, 2015, 07:56:41 AM
My dad used to set a timer on my internet, so i could only use it for instance 16:00 - 17:00... But my phone wasn't on that timer, so i used USB-tethering :3
Title: Re: MinePrime - Minecraft on a Hp Prime!
Post by: alexgt on April 30, 2015, 04:27:46 PM
Quote from: DJ Omnimaga on April 30, 2015, 04:53:43 AM
Wow I hope light levels like this aren't too hard to implement. Good luck! Will the next update allow you to place blocks?
Once I get block breaking implemented it will (hopefully) be easy to make block placing but I would need and inventory and stuff before I release it so the next update will just have collision, breaking, and a map. I am working on breaking then I will be done and release it.
EDIT: The light levels will update when you break/place blocks and only in that area. I will use FILLPOLY() and it's alpha channels to do that so it really won't be super difficult I just will have to fugure out where to draw them and how dark they should be.

Thanks for the help and support :)
Title: Re: MinePrime - Minecraft on a Hp Prime!
Post by: alexgt on April 30, 2015, 07:40:24 PM
The ID list is currently updated to the updated release once I have level loading you will be  able to MCEdit worlds kind of in the matrix editor
Title: Re: MinePrime - Minecraft on a Hp Prime!
Post by: DJ Omnimaga on May 01, 2015, 04:57:51 AM
Quote from: Strontium on April 30, 2015, 04:57:54 AM
Quote from: DJ Omnimaga on April 29, 2015, 04:00:30 PM
As long as your parents don't block CodeWalrus in the filters or stuff like that. <_< Make sure to keep your grades up, though, in case.

Thats what proxies are for :P
Yeah and if you get caught using one I heard stories about people getting banned for life from the computer labs and worse. Although I would personally be tempted to do it if I absolutely wanted to access a website, I would rather first make sure that my grades are good before thinking about visiting gaming/social sites and then make sure to not get caught. Of course sometimes you have no choice if some schools/parents use abusive restrictive measures, but you do it at your own risk (and the risk of having even more restrictions afterward).
Quote from: alexgt on April 30, 2015, 04:27:46 PM
Quote from: DJ Omnimaga on April 30, 2015, 04:53:43 AM
Wow I hope light levels like this aren't too hard to implement. Good luck! Will the next update allow you to place blocks?
Once I get block breaking implemented it will (hopefully) be easy to make block placing but I would need and inventory and stuff before I release it so the next update will just have collision, breaking, and a map. I am working on breaking then I will be done and release it.
EDIT: The light levels will update when you break/place blocks and only in that area. I will use FILLPOLY() and it's alpha channels to do that so it really won't be super difficult I just will have to fugure out where to draw them and how dark they should be.

Thanks for the help and support :)
FILLPOLY can cause some slowdowns if you use many commands in one loop if I remember, so if you notice a major performance hit, then you might want to try with a second sprite layer instead to see if it's faster:

(https://codewalr.us/proxy.php?request=http%3A%2F%2Fimg.codewalr.us%2Fditheredshading.png&hash=38729044009a1abebfbafed634f5e5c1a83a59bf)

Or you could make the shading less accurate and use 32x32 blocks, checking every 2 tile, so that it's 4 times faster.
Title: Re: MinePrime - Minecraft on a Hp Prime!
Post by: alexgt on May 08, 2015, 07:32:29 PM
That is why I would draw them onto the GROB when I start the program and thaI would just have to update a updated/ placed/ broken block that would help with the speed.

Once I get on my desktop I will post the download. I have a online school project so that will be a good excuse.
Title: Re: [Minecraft] [HP Prime] MinePrime - Minecraft on a Hp Prime!
Post by: alexgt on May 09, 2015, 12:22:40 AM
It has certainly been a while since there has been an updated download for this so here is one :).

UPDATE:
- Added a player no texture yet and he is only seen on the left side of the map
- Added Pause Menu when Esc is pressed
- Added Map when View is pressed - Note: will be updated to only show parts you have explored


Future updates:
- Will add ability to break blocks then release it as a new version
- Place blocks then release
- Inventory, GUI blocks like a crafting table, furnace, ect.
- Fix leaves/ Player skin. Also Menus will work
- Save worlds

It runs a little fast on the emulator so trying on-calc is recommended but there isn't much to see yet.
Title: Re: MinePrime - Minecraft on a Hp Prime!
Post by: Unicorn on May 09, 2015, 02:44:04 AM
Great! Could you add custom skins in the future?

EDIT: lol, there's a diamond at level 2 and iron ore in the middle of the sky :P
Title: Re: MinePrime - Minecraft on a Hp Prime!
Post by: DJ Omnimaga on May 09, 2015, 03:04:21 AM
Ooh this got better now. :D I just tried it on the emulator. Is it normal that the character placeholder vanish when visiting the second half of the map, though? Also for some reasons, the tree leaves are gray instead of green.

Quote from: Unicorn on May 09, 2015, 02:44:04 AM
Great! Could you add custom skins in the future?

EDIT: lol, there's a diamond at level 2 and iron ore in the middle of the sky :P
I'm fairly sure that custom skins would be possible, but the author would probably need to ask people to submit them  to him so he manually adds them to the program. Unless there's a way to load external ICON data on the HP Prime?


EDIT: Nevermind, it's because I was outside the map bounds and the emulator wraps graphics around so I didn't notice. I tried it on calc now and WOAH! The smooth scrolling is amazing! O.O

(https://img.ourl.ca/mineprime.gif)

It runs much smoother on the calc (scrolling 1 pixel at a time) than in the screenshot.
Title: Re: MinePrime - Minecraft on a Hp Prime!
Post by: Unicorn on May 09, 2015, 03:26:30 AM
Make sure to make saplings passthrough-able.
Title: Re: MinePrime - Minecraft on a Hp Prime!
Post by: DJ Omnimaga on May 09, 2015, 04:45:21 AM
On a side note, how big is the map and how is it stored? It seemed like a big picture in the demo, but I was unsure.
Title: Re: [Minecraft] [HP Prime] MinePrime - Minecraft on a Hp Prime!
Post by: Snektron on May 09, 2015, 06:45:04 AM
Whoa that screen looks amazing :D does the player flicker on the calc too though?
Title: Re: MinePrime - Minecraft on a Hp Prime!
Post by: Unicorn on May 10, 2015, 06:42:35 AM
I think DJ's screenie is oncalc. ;)
Title: Re: MinePrime - Minecraft on a Hp Prime!
Post by: DJ Omnimaga on May 10, 2015, 06:46:17 AM
It's not on-calc, but I slowed it down so that it runs at identical speed. The flicker is much less severe in the original screenshot, but it was over 2 MB large. Reducing the frame rate to 10 caused the flicker to get worse in the new screenshot.

This flicker can easily be eliminated. It's probably just a placeholder. By the way being able to mine using the touchscreen would definitively be nice, if you can manage to make it as realistic as the real Minecraft.
Title: Re: MinePrime - Minecraft on a Hp Prime!
Post by: Unicorn on May 10, 2015, 06:49:00 AM
A terraria like mining sceme using the touchscreen? Check out terraria for IOS.
Title: Re: MinePrime - Minecraft on a Hp Prime!
Post by: Snektron on May 10, 2015, 08:37:55 AM
Quote from: DJ Omnimaga on May 10, 2015, 06:46:17 AM
It's not on-calc, but I slowed it down so that it runs at identical speed. The flicker is much less severe in the original screenshot, but it was over 2 MB large. Reducing the frame rate to 10 caused the flicker to get worse in the new screenshot.

This flicker can easily be eliminated. It's probably just a placeholder. By the way being able to mine using the touchscreen would definitively be nice, if you can manage to make it as realistic as the real Minecraft.

Ohh okay. When i have a big gif i usually just post a link to it :) Also mining with touch would be very cool :D
Title: Re: [Minecraft] [HP Prime] MinePrime - Minecraft on a Hp Prime!
Post by: alexgt on May 10, 2015, 03:11:15 PM
Quote from: Unicorn on May 09, 2015, 02:44:04 AM
Great! Could you add custom skins in the future?

EDIT: lol, there's a diamond at level 2 and iron ore in the middle of the sky :P
The iron is a test, and yes you will be able to have a custom skin and custom textures but I will be optimizing the texture so it will be as small as possible so if you want to make your own then you will follow a template and copy/paste the blocks on there then convert it to an ICON format.

Quote from: DJ Omnimaga on May 09, 2015, 03:04:21 AM
Ooh this got better now. :D I just tried it on the emulator. Is it normal that the character placeholder vanish when visiting the second half of the map, though? Also for some reasons, the tree leaves are gray instead of green.
The player vanishing is known I just didn't fix it yet :P. The tree leaves are gray because in Minecraft it replaces the gray with different shades of green depending on the biome and that is another thing that is on the to do list.

Quote from: DJ Omnimaga on May 09, 2015, 03:04:21 AM
Quote from: Unicorn on May 09, 2015, 02:44:04 AM
Great! Could you add custom skins in the future?

EDIT: lol, there's a diamond at level 2 and iron ore in the middle of the sky :P
I'm fairly sure that custom skins would be possible, but the author would probably need to ask people to submit them  to him so he manually adds them to the program. Unless there's a way to load external ICON data on the HP Prime?
I have all the ICON data at the very start of the program so what I do to delete long lengths of code (on-calc) is select it all then cut it then copy the ICON data from a converter to that spot rename it to the original name and poof you got a custom texture/skin. I am not shure if there is a way to load it externally but if there is I will make it happen :). Also thanks for the screenie DJ I just didn't have any time :-\

Quote from: Unicorn on May 09, 2015, 03:26:30 AM
Make sure to make saplings passthrough-able.
Yup I can do that I will just have to implement a check to see if I should draw a sapling or air.

Quote from: DJ Omnimaga on May 09, 2015, 04:45:21 AM
On a side note, how big is the map and how is it stored? It seemed like a big picture in the demo, but I was unsure.
I store the data in a matrix that I generate and then store the visual data to two GROBs then I take it and display it. The reason that the smooth scrolling is so smooth is because I pre-draw the GROBs that what the last and longest progress bar is for, now all I have to do is display the GROB 16 time in different places. I will try to make a 320x240 GROB that displays the world so I can have the hotbar not flicker like the player.

Sorry for the extended post but there is more :P

!!!UPDATE!!!:
___________________
- Made block breaking a thing  :w00t:! you destroy them instantly (I am working on that) but you can break blocks with the touch screen! Placing will be happening soon, how does a button like toolbox sound for switching between placing/breaking or using a crafting table sound? Still no screenshot right now because I have a major school project I have to work on today that is due at the end of the week.
- Added but did not test a delay in the PRGM so the emulator and calc should run the same speed

Thank you soo much for the help, suggestions, and support :)

Also happy mother's day to any moms out there :)
Title: Re: MinePrime - Minecraft on a Hp Prime!
Post by: DJ Omnimaga on May 10, 2015, 03:33:26 PM
OOh great to see block destroying :D. And yeah it would be nice to have something allowing us to switch between breaking and placing stuff.

As for tree colors, thanks for explaining. :)
Title: Re: MinePrime - Minecraft on a Hp Prime!
Post by: Unicorn on May 10, 2015, 04:57:21 PM
Awesome! I can't wait to try bock breaking out!

My sister and I tried to make breakfast for our mom, but there was no waffle mix. (her favorite breakfast) :P

So instead, she got bagels and coffee. :=|
Title: Re: MinePrime - Minecraft on a Hp Prime!
Post by: alexgt on May 10, 2015, 05:52:13 PM
I made a little animation that I will share when it is done rendering, and I tried to give her chocolate but she said she was still on a diet today which makes no sense because its mother's day.
Title: Re: MinePrime - Minecraft on a Hp Prime!
Post by: Unicorn on May 10, 2015, 05:54:33 PM
Lol, So is the breaking like terraia?
Title: Re: MinePrime - Minecraft on a Hp Prime!
Post by: alexgt on May 10, 2015, 06:10:12 PM
Yup. The hard part with making breaking take longer is varying the breaking length aka stone vs. dirt.
Title: Re: MinePrime - Minecraft on a Hp Prime!
Post by: Unicorn on May 10, 2015, 06:16:19 PM
Cool! I'm gonna try it out in a bit!
Title: Re: MinePrime - Minecraft on a Hp Prime!
Post by: DJ Omnimaga on May 10, 2015, 06:50:05 PM
Will there be a setting in creative mode that lets you destroy every block instantly?
Title: Re: MinePrime - Minecraft on a Hp Prime!
Post by: bb010g on May 10, 2015, 09:16:40 PM
Quote from: DJ Omnimaga on May 01, 2015, 04:57:51 AM
Quote from: Strontium on April 30, 2015, 04:57:54 AM
Quote from: DJ Omnimaga on April 29, 2015, 04:00:30 PM
As long as your parents don't block CodeWalrus in the filters or stuff like that. <_< Make sure to keep your grades up, though, in case.

Thats what proxies are for :P
Yeah and if you get caught using one I heard stories about people getting banned for life from the computer labs and worse. Although I would personally be tempted to do it if I absolutely wanted to access a website, I would rather first make sure that my grades are good before thinking about visiting gaming/social sites and then make sure to not get caught. Of course sometimes you have no choice if some schools/parents use abusive restrictive measures, but you do it at your own risk (and the risk of having even more restrictions afterward).
I had to use a proxy for a school-sanctioned program at my school once because I was setting up a nginx server for FRC and the firewall was all like "OH NOEZ PROXY" because it's a web server, of course they'll be talking about proxies. :D
Title: Re: MinePrime - Minecraft on a Hp Prime!
Post by: alexgt on May 10, 2015, 09:48:30 PM
Quote from: DJ Omnimaga on May 10, 2015, 06:50:05 PM
Will there be a setting in creative mode that lets you destroy every block instantly?
Probably but I might make an undo button for that so if you mis-clicked you can undo it  (I find that a 16x16 space is pretty small to be acurate).
Title: Re: [Minecraft] [HP Prime] MinePrime - Minecraft on a Hp Prime!
Post by: Snektron on May 10, 2015, 11:52:25 PM
Oh thats kinda handy actally. I wish there was a pc mc mod for that :P
Title: Re: MinePrime - Minecraft on a Hp Prime!
Post by: DJ Omnimaga on May 11, 2015, 03:57:32 AM
That would definitively be a nice feature, especially that touchscreens are prone to such misclick.
Title: Re: MinePrime - Minecraft on a Hp Prime!
Post by: Unicorn on May 11, 2015, 06:48:53 AM
COMMAND Z!

I yell that at my sister a lot.
Title: Re: [Minecraft] [HP Prime] MinePrime - Minecraft on a Hp Prime!
Post by: alexgt on May 12, 2015, 12:05:13 AM
/\ ? Commands might be possible. If I find a way to make "mods" then I might make it an addon, any ideas on how to do that, it people could make mods for MinePrime I think game play could be really interesting and involve you guys more :)
Title: Re: MinePrime - Minecraft on a Hp Prime!
Post by: bb010g on May 12, 2015, 12:30:55 AM
Quote from: alexgt on May 12, 2015, 12:05:13 AM
/\ ? Commands might be possible. If I find a way to make "mods" then I might make it an addon, any ideas on how to do that, it people could make mods for MinePrime I think game play could be really interesting and involve you guys more :)
The thing that bugs me about extensible behaviors, like mods, on the Prime is that they would have to be referenced (AFAIK) through strings and called via expr. That makes things slow. Even in a simple paint program, using strings and expr function calls, as opposed to direct calls, is noticeably slower. The alternative I see is hard coding in your mods when adding them, but that smells. PPL needs some way to deal with program/namespace, variable, and function references for a mod API to work. With more than 3 calls per tick, it'll get slow.
Title: Re: MinePrime - Minecraft on a Hp Prime!
Post by: DJ Omnimaga on May 12, 2015, 01:52:44 AM
This totally smells like the TI-OS VAT on the 83+/84+ series >.<. Games with lots of sub-programs gets atrociously slow, especially under low RAM conditions.


Also a bug report in the latest version: The delay that makes the game runs at the same speed in the emulator doesn't appear to work at all. Another issue is that we can destroy bedrock.
Title: Re: MinePrime - Minecraft on a Hp Prime!
Post by: bb010g on May 12, 2015, 02:01:55 AM
Quote from: DJ Omnimaga on May 12, 2015, 01:52:44 AM
This totally smells like the TI-OS VAT on the 83+/84+ series >.<. Games with lots of sub-programs gets atrociously slow, especially under low RAM conditions.
Functions themselves aren't the problem. They're fine. The problem is that using strings for higher-order functions is horrible because strings.
Title: Re: MinePrime - Minecraft on a Hp Prime!
Post by: alexgt on May 12, 2015, 02:15:57 AM
Quote from: DJ Omnimaga on May 12, 2015, 01:52:44 AM
Also a bug report in the latest version: The delay that makes the game runs at the same speed in the emulator doesn't appear to work at all. Another issue is that we can destroy bedrock.
I haven't made checks for what blocks you can break so you can break the world I guess :P!

Quote from: bb010g on May 12, 2015, 12:30:55 AM
Quote from: alexgt on May 12, 2015, 12:05:13 AM
/\ ? Commands might be possible. If I find a way to make "mods" then I might make it an addon, any ideas on how to do that, it people could make mods for MinePrime I think game play could be really interesting and involve you guys more :)
The thing that bugs me about extensible behaviors, like mods, on the Prime is that they would have to be referenced (AFAIK) through strings and called via expr. That makes things slow. Even in a simple paint program, using strings and expr function calls, as opposed to direct calls, is noticeably slower. The alternative I see is hard coding in your mods when adding them, but that smells. PPL needs some way to deal with program/namespace, variable, and function references for a mod API to work. With more than 3 calls per tick, it'll get slow.
Yeah I thought you would have to hard code it into the game but the problem with that is I didn't start this project with other people understanding my code enough to make a mod so I should go through and comment it all <_<.

I hope subs don't slow it down too much I have 99999999999999999 of them it seems O.O

I wonder if Source ever gets completed I could do that. It would be nice to see more people with Primes to program as they are my new obsession.
Title: Re: MinePrime - Minecraft on a Hp Prime!
Post by: bb010g on May 12, 2015, 02:26:36 AM
Quote from: alexgt on May 12, 2015, 02:15:57 AM
Quote from: bb010g on May 12, 2015, 12:30:55 AM
Quote from: alexgt on May 12, 2015, 12:05:13 AM
/\ ? Commands might be possible. If I find a way to make "mods" then I might make it an addon, any ideas on how to do that, it people could make mods for MinePrime I think game play could be really interesting and involve you guys more :)
The thing that bugs me about extensible behaviors, like mods, on the Prime is that they would have to be referenced (AFAIK) through strings and called via expr. That makes things slow. Even in a simple paint program, using strings and expr function calls, as opposed to direct calls, is noticeably slower. The alternative I see is hard coding in your mods when adding them, but that smells. PPL needs some way to deal with program/namespace, variable, and function references for a mod API to work. With more than 3 calls per tick, it'll get slow.
Yeah I thought you would have to hard code it into the game but the problem with that is I didn't start this project with other people understanding my code enough to make a mod so I should go through and comment it all <_<.

I hope subs don't slow it down too much I have 99999999999999999 of them it seems O.O
As I said with @DJ Omnimaga¸ functions aren't the problem. A nice method of dispatching arbitrary functions is. It would be nice to be able to auto-detect mods and load them on startup and disable them live. You could do this right now with Programs and checking MyMod.isMinePrimeMod or something, adding it to a list, and then iterating through that every tick, calling functions that have been separated out on functionality likewise like tickMods(i).onGameTick(state, whatever) and invMods(i).onInvTick(state, whatever) (I'm not familiar with your code), but to make those calls currently you'd need to use strings and EXPR. You'd STRING the arguments, EXPR would re-tokenize them, the function would be evaluated, and the result would be returned. String manipulation is slow. That is why a nice reference system for programs/namespaces, variables, and functions would be great. That wouldn't be as slow. It wouldn't be as fast as a single compiled program, but it's still compiled at compile-time, not run-time repeatedly, and would be very usable (unless they're implemented extremely jankily). See also: C function pointers.
Title: Re: MinePrime - Minecraft on a Hp Prime!
Post by: bb010g on May 12, 2015, 02:39:00 AM
Quote from: alexgt on May 12, 2015, 02:15:57 AM
I wonder if Source ever gets completed I could do that. It would be nice to see more people with Primes to program as they are my new obsession.
You're thinking of inlining. That wouldn't fix everything. Inlining fixes a specific set of problems: short (relative) functions. Function calls are not as fast as just go go going through a piece of code straight through. E.g. min or max. In C they're normally implemented like #define min(x, y) (((x) < (y)) ? (x) : (y)). This is quite literal inlining—before compilation, the pre-processor turns min(1, 2) into (((1) < (2)) ? (1) : (2)), which the compiler normally reduces to 1, even before it's ran. In C++, you'd use templates, as they have the same aggressive inlining of any function in a modern C/C++ compiler and can be made to work on any type that has < (basically). In Haskell, it's just min x y = if x < y then x else y, as Haskell inlines aggressively also. However, figuring out when to inline is hard. C++ and Haskell inline aggressively because they're finely tuned and know what's too aggressive, an important piece of knowledge at runtime. A beginning language, like PPL or Source, would probably have a distinct inline tag on functions or macros. Both are going to be compiled away always. (Probably macros, as you could reference inline functions and force the insertion of such a function into a program like normal to be used. This may not be desirable. I haven't looked into the logistics that much.) Anyhow, with a large macro or function, code duplication starts to set in—not in the source proper, but in the compiled output. Repeating all those statements isn't free. That's why functions exist: they allow for reuse at runtime. Making a game out of macros would be large and unwieldy, as the compiler essentially deals with a monolithic function. Macros are not a magic bullet.
Title: Re: MinePrime - Minecraft on a Hp Prime!
Post by: Duke "Tape" Eiyeron on May 12, 2015, 05:47:27 AM
I also want to note that since few version of GCC (like a dozen), inline functions on C and C++ exist only to give the control and the syntax check of any normal function while asking the compiler to be inlined as a macro would.
Title: Re: MinePrime - Minecraft on a Hp Prime!
Post by: bb010g on May 12, 2015, 04:15:38 PM
Quote from: Duke "Tape" Eiyeron on May 12, 2015, 05:47:27 AM
I also want to note that since few version of GCC (like a dozen), inline functions on C and C++ exist only to give the control and the syntax check of any normal function while asking the compiler to be inlined as a macro would.
AFAIK, inline only serves to not error on repeated function declarations (e.g. in a header included multiple times). Suggestions to inline are pretty much completely ignored in most modern compilers. Without aggressive inlining, templates wouldn't work.
Title: Re: MinePrime - Minecraft on a Hp Prime!
Post by: Duke "Tape" Eiyeron on May 12, 2015, 06:55:12 PM
ANother indication inline gives : type checking. Oh and templates, IIRC, allows to check which type will use which member/function.
Title: Re: MinePrime - Minecraft on a Hp Prime!
Post by: bb010g on May 12, 2015, 07:06:34 PM
This is what inline does in C: http://stackoverflow.com/a/7767858/1098906
This is what inline does in C++: http://stackoverflow.com/a/1759575/1098906
In general, the inline notation does not do what you'd think it would do in C/C++.
Title: Re: MinePrime - Minecraft on a Hp Prime!
Post by: Duke "Tape" Eiyeron on May 12, 2015, 07:26:49 PM
Yeah, unfortunately, the compilers are in their right to allow/deny the user use of the keyword. Alas, I was still in the "in a decade it was true" mindset. Well, I hoped they were cleaner to use than preprocessor macros. :/
Title: Re: MinePrime - Minecraft on a Hp Prime!
Post by: alexgt on May 12, 2015, 08:38:21 PM
Mods could be written in external programs that are then called where the modder makes them called at in the program. But all of that will be really complex to incorporate into it so if stuff ever surfaces so we don't need to d allot of trickery would work quite well but until then guess we will have to stick to no mods :(.

I will post this now encase I don't have enough time to make and update post be cause one is ready and I don't want to rely on DJ_O or anyone else to post screenshots although it is appreciated :).
Title: Re: [Minecraft] [HP Prime] MinePrime - Minecraft on a Hp Prime!
Post by: alexgt on May 13, 2015, 01:37:17 AM
UPDATE:
- App for sprint
- Animations for block break
That is all :)
(https://codewalr.us/proxy.php?request=http%3A%2F%2Fi.imgur.com%2F67blCG9.gif&hash=9ebab393ce3b63c58e1632db0d6cc0b08b7b3c66)
Title: Re: MinePrime - Minecraft on a Hp Prime!
Post by: bb010g on May 13, 2015, 04:37:51 AM
Quote from: alexgt on May 13, 2015, 01:37:17 AM
- App for sprint
wat
Title: Re: MinePrime - Minecraft on a Hp Prime!
Post by: DJ Omnimaga on May 13, 2015, 04:59:00 AM
YEah I am curious about what that means too. Also nice animation. Do you use the same for every block using transparency and stuff?
Title: Re: MinePrime - Minecraft on a Hp Prime!
Post by: Unicorn on May 13, 2015, 07:28:49 AM
Looks cool! Do you have to hold it down to activate the animation, or is that just one tap/click making that animation?
Title: Re: MinePrime - Minecraft on a Hp Prime!
Post by: CKH4 on May 13, 2015, 01:39:16 PM
I think that you press the app key to sprint.
Title: Re: [Minecraft] [HP Prime] MinePrime - Minecraft on a Hp Prime!
Post by: Snektron on May 13, 2015, 01:50:43 PM
That looks awesome! Are you going to add some kind of background btw?
Title: Re: MinePrime - Minecraft on a Hp Prime!
Post by: alexgt on May 13, 2015, 07:59:15 PM
Sorry I lost my mouse at school with the usb transmitter so I can't use my keyboard either so I am typing with the on-screen keyboard, that is why it was short :(.
Quote from: CKH4 on May 13, 2015, 01:39:16 PM
I think that you press the app key to sprint.
Yup! Good guess :)

Quote from: Cumred_Snektron on May 13, 2015, 01:50:43 PM
That looks awesome! Are you going to add some kind of background btw?
The sky will change color and there will be a sun and moon also.

Quote from: Unicorn on May 13, 2015, 07:28:49 AM
Looks cool! Do you have to hold it down to activate the animation, or is that just one tap/click making that animation?
Both because I have not made the block's durability reset after a time so once you damage it the animation will stay but that will be fixed next time.

Sorry for any misunderstandings but it takes a while to type with the on-screen key board with an unresponsive mouse.

Thanks for the help and support :)
Title: Re: MinePrime - Minecraft on a Hp Prime!
Post by: Unicorn on May 14, 2015, 02:43:55 AM
Cool. I hope you find your mouse soon.
Title: Re: MinePrime - Minecraft on a Hp Prime!
Post by: DJ Omnimaga on May 14, 2015, 04:54:32 AM
Sorry about your mouse. Hopefully you can find it again or get a new one soon. As for the game I guess backgrounds shouldn't be hard since HP PPL supports transparency. Will there be precipitations such as snow and rain?
Title: Re: MinePrime - Minecraft on a Hp Prime!
Post by: Snektron on May 14, 2015, 08:31:02 AM
Quote from: alexgt on May 13, 2015, 07:59:15 PM
Quote from: Unicorn on May 13, 2015, 07:28:49 AM
Looks cool! Do you have to hold it down to activate the animation, or is that just one tap/click making that animation?
Both because I have not made the block's durability reset after a time so once you damage it the animation will stay but that will be fixed next time.
That's actually a cool effect :) Though it would maybe ruin buildings, but i don't if you can make it to decay over time or something?
Title: Re: MinePrime - Minecraft on a Hp Prime!
Post by: alexgt on May 14, 2015, 08:24:38 PM
Quote from: Cumred_Snektron on May 14, 2015, 08:31:02 AM
Quote from: alexgt on May 13, 2015, 07:59:15 PM
Quote from: Unicorn on May 13, 2015, 07:28:49 AM
Looks cool! Do you have to hold it down to activate the animation, or is that just one tap/click making that animation?
Both because I have not made the block's durability reset after a time so once you damage it the animation will stay but that will be fixed next time.
That's actually a cool effect :) Though it would maybe ruin buildings, but i don't if you can make it to decay over time or something?
Added something so you can take back the damage you caused by lifting your finger off the screen.

Alert! I need some bug tests!!! For you guys can you break blocks on the right to where you spawn? I can't with the version on my calc but I made some major changes that could cause that.
Also I added gravity!

Quote from: DJ Omnimaga on May 14, 2015, 04:54:32 AM
Sorry about your mouse. Hopefully you can find it again or get a new one soon. As for the game I guess backgrounds shouldn't be hard since HP PPL supports transparency. Will there be precipitations such as snow and rain?
Rain in the real Minecraft was gust really annoying so if I find a way to make the rain not obscure your view and make it fast then probably :). Backgrounds like ones the ones in terraria that you can pass through but make it so your house doesn't look like it has sky in it
Title: Re: MinePrime - Minecraft on a Hp Prime!
Post by: Unicorn on May 14, 2015, 09:54:38 PM
Yay! Gravity! I agree about the rain though. Maybe an option to turn it off?
Title: Re: MinePrime - Minecraft on a Hp Prime!
Post by: DJ Omnimaga on May 15, 2015, 07:20:49 AM
Actually I like the background idea. I am curious about how they could be implemented. Would they just be background blocks you can place? That would be cool. I'll try your latest version on-calc to see if I can reproduce the issue you think it might have. Probably later, though, since I am about to go to bed. Feel free to poke me in this topic (with the @DJ Omnimaga syntax) if I forget. :)
Title: Re: [Minecraft] [HP Prime] MinePrime - Minecraft on a Hp Prime!
Post by: Snektron on May 15, 2015, 09:27:35 AM
Maybe you could have it so you need to press (and hold?) a certain button to activate background placing
Title: Re: MinePrime - Minecraft on a Hp Prime!
Post by: alexgt on May 15, 2015, 07:28:40 PM
Background stuff could be used but it might slow stuff down a bit.
Quote from: Cumred_Snektron on May 15, 2015, 09:27:35 AM
Maybe you could have it so you need to press (and hold?) a certain button to activate background placing
I like the idea because I was thinking of a separate type of block... Maybe we could use a tool to switch between that and regular placing.
Title: Re: [Minecraft] [HP Prime] MinePrime - Minecraft on a Hp Prime!
Post by: Snektron on May 15, 2015, 07:35:02 PM
Oh thats a cool idea too :)
Title: Re: MinePrime - Minecraft on a Hp Prime!
Post by: Unicorn on May 15, 2015, 08:38:23 PM
It will be TeraCraft! Anyways, I like the way this is progressing.
Title: Re: MinePrime - Minecraft on a Hp Prime!
Post by: alexgt on May 15, 2015, 08:39:17 PM
As in the mod TerraFirmaCraft? Thanks :)
Title: Re: MinePrime - Minecraft on a Hp Prime!
Post by: Unicorn on May 15, 2015, 08:40:30 PM
No, terraria with minecraft textures and engine. ;)
Title: Re: MinePrime - Minecraft on a Hp Prime!
Post by: alexgt on May 15, 2015, 08:45:18 PM
Ohh.. I see what you did there.
Title: Re: MinePrime - Minecraft on a Hp Prime!
Post by: DJ Omnimaga on May 16, 2015, 06:12:01 AM
Ok so I tried the new version last night and nope I cannot destroy blocks to the right of where you spawn. I can destroy blocks to the complete left of the map, though, which you cannot reach.
Title: Re: MinePrime - Minecraft on a Hp Prime!
Post by: alexgt on May 16, 2015, 10:44:05 PM
With the new firm ware? it isn't working for me GROB two stays at 0x0 when I try to set it at 1600x800 :(. If this is on purpose I might have to recode it all :(. I will download the latest version from here and try it out... this makes me sad :( :'( :( even :walrii: is sad :'(

EDIT: I tried it with the emulator and it worked fine
Title: Re: MinePrime - Minecraft on a Hp Prime!
Post by: Unicorn on May 17, 2015, 01:32:14 AM
O.o all the sadness... :'(
Title: Re: MinePrime - Minecraft on a Hp Prime!
Post by: alexgt on May 17, 2015, 02:50:02 AM
ikr :'(. It works on the emulator so updates might be paused until the next firmware update :(
Title: Re: MinePrime - Minecraft on a Hp Prime!
Post by: Unicorn on May 17, 2015, 02:50:56 AM
The emulator probably isn't updated to firmware yet.
Title: Re: MinePrime - Minecraft on a Hp Prime!
Post by: alexgt on May 17, 2015, 02:52:40 AM
Ohhh.... true I will see about that now thanks :P
Title: Re: MinePrime - Minecraft on a Hp Prime!
Post by: DJ Omnimaga on May 17, 2015, 03:47:00 PM
Quote from: alexgt on May 16, 2015, 10:44:05 PM
With the new firm ware? it isn't working for me GROB two stays at 0x0 when I try to set it at 1600x800 :(. If this is on purpose I might have to recode it all :(. I will download the latest version from here and try it out... this makes me sad :( :'( :( even :walrii: is sad :'(

EDIT: I tried it with the emulator and it worked fine
Wow that sucks. I think that either they broke the BLIT or DIMGROB commands or they decided to add a limit about its size. Could you test via a FOR loop if it works with smaller ones? (have it increase in size via the loop).

@timwessman definitively has to investigate and get this fixed, because many older programs probably no longer work now.

I would suggest downgrading to the previous firmware and warn MinePrime users that the game will not run on the latest firmware.

In case Tim doesn't check CodeWalrus anymore, you might want to create a new topic about the bug at http://www.hpmuseum.org/forum/forum-5.html
Title: Re: [Minecraft] [HP Prime] MinePrime - Minecraft on a Hp Prime!
Post by: alexgt on May 17, 2015, 04:13:50 PM
I think they limited the size because I tried this code:
FOR A FROM 1 TO 800 DO
DIMGROB_P(G1,A*2,A);
DIMGROB_P(G2,A*2,A);
END;

Instead of:
DIMGROB_P(G1,1600,800);
DIMGROB_P(G2,1600,800);

and it only went up to 1075x552 or something like that so your games will probably be good but MinePrime will not fair well, especially the smooth scrolling :'(. I really hope this is  a bug I really don't want to recode it even though I could with 3 GROBS but still I would probably have to start from scratch :(.

I will make an account there and make a topic... I should have an account already come to think of it since I have a Prime :P.
Title: Re: MinePrime - Minecraft on a Hp Prime!
Post by: bb010g on May 17, 2015, 04:18:48 PM
Quote from: alexgt on May 17, 2015, 04:13:50 PM
and it only went up to 1075x552 or something like that
Maybe this is to fix those memory crashes that would sometimes happen after GROB-happy programs? I haven't really had any, but I know @DJ Omnimaga has reported some in the past.
Title: Re: MinePrime - Minecraft on a Hp Prime!
Post by: alexgt on May 17, 2015, 04:28:57 PM
I forgot to mention this, but I think it is a bug or they didn't block the size fully because G1 or the left of the world works fine.
Title: Re: MinePrime - Minecraft on a Hp Prime!
Post by: DJ Omnimaga on May 17, 2015, 05:49:07 PM
Oh I see now. You are using DIMGROB (based on graph coordinated) instead of DIMGROB_P (pixels).
Title: Re: MinePrime - Minecraft on a Hp Prime!
Post by: alexgt on May 17, 2015, 05:57:01 PM
Oops that is a mistake I will change it to DIMGROB_P() in the example because that is what I actually use :P sorry.
Title: Re: MinePrime - Minecraft on a Hp Prime!
Post by: DJ Omnimaga on May 17, 2015, 06:07:54 PM
Be sure to post an example on the HP thread and also a link to your gamr by the way. Tim usually requires the non working program.
Title: Re: MinePrime - Minecraft on a Hp Prime!
Post by: alexgt on May 17, 2015, 06:09:11 PM
I put a link to here but I will do that to.

EDIT: I tried to make an attachment and it said it was an incorrect file type?!
Title: Re: MinePrime - Minecraft on a Hp Prime!
Post by: DJ Omnimaga on May 17, 2015, 10:20:58 PM
Oh you need to put it in a zip file if I remember correctly. Unless you mean HP Museum?

EDIT: I just realized this topic has the ID 404 O.O


EDIT: By the way have you ever thought about using 8x8 tiles and 160x120 instead? That would give you more room even with limitations. In any case I hope this project continues no matter what.
Title: Re: MinePrime - Minecraft on a Hp Prime!
Post by: Unicorn on May 17, 2015, 11:47:23 PM
Quote from: DJ Omnimaga on May 17, 2015, 10:20:58 PM
EDIT: I just realized this topic has the ID 404 O.O

That doesn't seem good.
Title: Re: MinePrime - Minecraft on a Hp Prime!
Post by: DJ Omnimaga on May 18, 2015, 12:12:42 AM
Well at least it actually works, unlike codewalr.us/42/1337 :P
Title: Re: MinePrime - Minecraft on a Hp Prime!
Post by: alexgt on May 18, 2015, 01:14:13 AM
Quote from: Unicorn on May 17, 2015, 11:47:23 PM
Quote from: DJ Omnimaga on May 17, 2015, 10:20:58 PM
EDIT: I just realized this topic has the ID 404 O.O

That doesn't seem good.
Lol

Quote from: DJ Omnimaga on May 17, 2015, 10:20:58 PM
Oh you need to put it in a zip file if I remember correctly. Unless you mean HP Museum?

EDIT: I just realized this topic has the ID 404 O.O


EDIT: By the way have you ever thought about using 8x8 tiles and 160x120 instead? That would give you more room even with limitations. In any case I hope this project continues no matter what.
The textures look horrible when I scaled them down and also imagine trying yo break blocks that are that small O.O I don't even want to think about it.
Title: Re: MinePrime - Minecraft on a Hp Prime!
Post by: DJ Omnimaga on May 18, 2015, 01:19:57 AM
Oh I meant so that you can scale the game up afterward. It would still show 20x15 blocks at a time on the screen.

Anyway I think the best solution for now would be to generate the map in real-time, so that only what's supposed to be in the screen gets generated when warping or stuff, and when you walk around it generates the row of map and scroll the current GROB around. Kinda like how tilemappers are done in Axe Parser. This would definitively make scrolling slower, though. Otherwise you can split the map across multiple GROB's but then that's not really reliable.
Title: Re: MinePrime - Minecraft on a Hp Prime!
Post by: alexgt on May 18, 2015, 01:37:05 AM
I will see what I can do. But... I think I am going to pause development on this as of now but will still be trying to solve the problem, and that might mean starting from scratch. Even if I do start over I will keep the old versions incase a fix comes out. As of now I will finish Nagoji 4x3 as it is 95% done (screen shot will come once I get a keyboard for my Desktop because the laptop I am using can't record anything :( ). But mostly I will work on S.I.F.S (http://codewalr.us/index.php?topic=476).

Even though dev is paused MinePrime will prevail do not worry :P

Help with solving this problem is very much appreciated :)
Title: Re: MinePrime - Minecraft on a Hp Prime!
Post by: DJ Omnimaga on May 18, 2015, 02:42:14 AM
Ok cool to hear. I definitively hope that you won't give up on this. I would still be willing to play even if for example smooth scrolling had to be scrapped or if you had to revert to more blocky graphics (maybe a custom tileset could be used?).

On top of that I was about to make a sub-forum for this project when placing blocks was gonna be implemented or a while before, depending of free time :P
Title: Re: MinePrime - Minecraft on a Hp Prime!
Post by: alexgt on May 18, 2015, 03:31:37 AM
Awesome :). But what is more awesome is that MinePrime works now YAY YAY YAY! I was really worried but I just ran it and it worked perfectly. Maybe Optimus (that is what I named my calc... Optimus Prime hehe... get it) just needed to get used to the new firmware?! YAY!!!
Title: Re: MinePrime - Minecraft on a Hp Prime!
Post by: DJ Omnimaga on May 18, 2015, 03:34:55 AM
Question: Are you sure that you didn't do anything else that could have caused the error? Because I just upgraded my calc to see if all my games ran fine and your game ran somewhat OK (the map was off by hundred pixels). I wasn't too sure so I just tried making a 1800x1800 GROB in another program and it worked perfectly.

Also it's possible that your calc was in need of a reset. I noticed that when I run games with many graphics then attempt running another with large GROBs, then some graphics won't display. Rebooting the calc fixes it.

EDIT: After a reboot, the first time I ran MinePrime the loading bar appeared on the title screen without me pressing anything then the map had some white squares O.O. The second time I ran the game it worked fine.
Title: Re: MinePrime - Minecraft on a Hp Prime!
Post by: alexgt on May 18, 2015, 03:41:12 AM
Really it worked for me now. And a 1800x1800 GROB is double the size of the ones I use so idk what is wrong. Like you said you might need a reset?

I will get block breaking working 100% then in a couple of weeks when school is over I will start with placing because I will have to make an inventory, optimize the texture image to be smaller, and all that fun stuff :)
Title: Re: MinePrime - Minecraft on a Hp Prime!
Post by: DJ Omnimaga on May 18, 2015, 04:33:12 AM
Good luck :D, and yeah I noticed that the less complex textures are, the smaller the images. I was surprised that my Walrii invasion thing was about 19 KB in size (from what I remember). GROB version was like 500 KB IIRC.
Title: Re: [Minecraft] [HP Prime] MinePrime - Minecraft on a Hp Prime!
Post by: Snektron on May 18, 2015, 06:03:39 AM
Whats a GROB btw? i see it a lot with prime things but don't really know what it is :P. Some kind of image?
Title: Re: MinePrime - Minecraft on a Hp Prime!
Post by: bb010g on May 18, 2015, 02:41:04 PM
GRaphics OBject. Basically an expandable memory buffer that holds bunches of pixels. Or colored points on a 2D plane, but those are weird and hard to manually control.
Title: Re: [Minecraft] [HP Prime] MinePrime - Minecraft on a Hp Prime!
Post by: timwessman on May 18, 2015, 02:47:03 PM
Quote from: Cumred_Snektron on May 18, 2015, 06:03:39 AM
Whats a GROB btw?

It's been the HP parlance for GRaphic OBject since 1989 or so.


As for the problem for which I was summoned - there are a couple of questions to ask here.

Are you really meaning to create a 1600x800 <unit> sized GROB?

If so, are you remembering that the <unit> size comes from the Cartesian grid of the current application? So if the function app is running and the user has zoomed in by 2x on the graph, your GROB size just doubled which would already cause your memory to run out. My recommendation would be to always use the _P options to specify an exact size else you are left at the mercy of what the user has done to the Cartesian grid. If you really want to use the cartesian grid, you'd better make certain you set the values to the desired setting by using the Xmin/Xmax/Ymin/Ymax. However, those only exists for about half of the apps that have graphing. Better to just pick your correct pixel size.

Are you cleaning up after the exit of the game? By this, I'd recommend clearing out your large graphics by setting them to 0 or 1 pixel in size. Else that memory will stay in use until the user either resets, or stores something else in there.

With the new firmware, I'd recommend switching to an application. That will give you access to permanent variables that aren't lost on editing, as well as files and an icon for your program. My recommendation would be:

1. Save a copy of the Quad Explorer app (this will be very tiny).
2. Make your START routine be to launch the game, as well as the Plot, Symb and Num routines.
3. In the code itself, get rid of all the uses of ICON. On the PC, you will see that the applications are now folders of the form "<name>.hpappdir". Put all your graphic assets into that directory as png files (.png on the name is not necessary for use/loading - we check the header to determine type) and they will be sent along with it when sending from the connkit.
4. Give a 38x38pix item a name of "icon.png". That will be what is used for your application icon.
5. When you want to load your png files, use G2:=AFiles("filename") or similar. I'd avoid using the AFiles(1) as that file order could change! It depends on what the underlying file system does with the files in how it lists them. Then once you have G2, you can use that to create your larger GROB. Going directly from the png decode to the blit will definitely increase load time.
6. If you have data you want to save, AFiles("name"):=G1 will store it out. You might even be able to store the PNG as built to disk. Not certain of that though due to the large sizes that appear to be involved.
7. If you have data you want saved (scores, map info, etc), do a AVars("name"):=<list_or_whatever>. Note that the primary difference between using AFiles or AVars is that AVars will allow you to use the object directly as a variable (tying MyVar for example) while AFiles will not. You have to load to a variable from AFiles before use. AVars will consume RAM when the app is loaded. AFiles will not until they are recalled to a variable.

8. To distribute your new application, just package the "name.hpappdir" in a zip file! People just need to drop that zip on the calc in the connkit and it will send the application. No messing with pasting of source. This is the strucutre we like to use for distributing HP developed apps for teacher use for example:

<ZIP>
  |-- appname.hpappdir
  |    |-- stuff
  |-- readme.txt
  |--help.pdf
  \--last file

Provided your stuff is not an hp object type (.txt, .pdf, etc) it will not be sent. Anything in the hpappdir WILL be sent as a file, but it will not recursively add things (aka, no nesting of directories in there).

A post over on the HP museum saying the calcuator was out of memory or something if you feel that was the case and have nothing else to discuss about it.
Title: Re: MinePrime - Minecraft on a Hp Prime!
Post by: Unicorn on May 18, 2015, 04:13:09 PM
Wooooo!

Thats great that its working again!
Title: Re: MinePrime - Minecraft on a Hp Prime!
Post by: DJ Omnimaga on May 18, 2015, 04:39:46 PM
Quote from: Cumred_Snektron on May 18, 2015, 06:03:39 AM
Whats a GROB btw? i see it a lot with prime things but don't really know what it is :P. Some kind of image?
To sum it up, think of it as L1, L3 and L6 in Axe Parser. They are fixed memory areas to put temporary graphics in, but unlike Axe, GROBs can be set to any size rather than just 768 bytes.
Quote from: timwessman on May 18, 2015, 02:47:03 PMAre you cleaning up after the exit of the game? By this, I'd recommend clearing out your large graphics by setting them to 0 or 1 pixel in size. Else that memory will stay in use until the user either resets, or stores something else in there.

With the new firmware, I'd recommend switching to an application. That will give you access to permanent variables that aren't lost on editing, as well as files and an icon for your program. My recommendation would be:

1. Save a copy of the Quad Explorer app (this will be very tiny).
2. Make your START routine be to launch the game, as well as the Plot, Symb and Num routines.
3. In the code itself, get rid of all the uses of ICON. On the PC, you will see that the applications are now folders of the form "<name>.hpappdir". Put all your graphic assets into that directory as png files (.png on the name is not necessary for use/loading - we check the header to determine type) and they will be sent along with it when sending from the connkit.
4. Give a 38x38pix item a name of "icon.png". That will be what is used for your application icon.
5. When you want to load your png files, use G2:=AFiles("filename") or similar. I'd avoid using the AFiles(1) as that file order could change! It depends on what the underlying file system does with the files in how it lists them. Then once you have G2, you can use that to create your larger GROB. Going directly from the png decode to the blit will definitely increase load time.
6. If you have data you want to save, AFiles("name"):=G1 will store it out. You might even be able to store the PNG as built to disk. Not certain of that though due to the large sizes that appear to be involved.
7. If you have data you want saved (scores, map info, etc), do a AVars("name"):=<list_or_whatever>. Note that the primary difference between using AFiles or AVars is that AVars will allow you to use the object directly as a variable (tying MyVar for example) while AFiles will not. You have to load to a variable from AFiles before use. AVars will consume RAM when the app is loaded. AFiles will not until they are recalled to a variable.

8. To distribute your new application, just package the "name.hpappdir" in a zip file! People just need to drop that zip on the calc in the connkit and it will send the application. No messing with pasting of source. This is the strucutre we like to use for distributing HP developed apps for teacher use for example:

<ZIP>
  |-- appname.hpappdir
  |    |-- stuff
  |-- readme.txt
  |--help.pdf
  \--last file

Provided your stuff is not an hp object type (.txt, .pdf, etc) it will not be sent. Anything in the hpappdir WILL be sent as a file, but it will not recursively add things (aka, no nesting of directories in there).

A post over on the HP museum saying the calcuator was out of memory or something if you feel that was the case and have nothing else to discuss about it.
Ooh that is nifty. I didn't know we could now have applications with custom icons and files this way. I will definitively have to keep this in mind when I make larger games.  Just a question, though: Are application icons and files compressed like PNGs? Because the other HP Prime format seemed extremely large and I would rather have my programs not be 400 KB large again like in 2013.


Also I didn't know that on program exit the GROB content was not cleared automatically. That might explain why some games behaved strangely after running several other ones.
Title: Re: MinePrime - Minecraft on a Hp Prime!
Post by: Unicorn on May 18, 2015, 04:43:30 PM
Yeah, that i cool that there is a icon you can make. I bet the conectivity pogram compresses them.
Title: Re: MinePrime - Minecraft on a Hp Prime!
Post by: DJ Omnimaga on May 18, 2015, 04:46:52 PM
In the past, we just loaded our graphics directly with DIMGROB and the string of data was massive. However, I believe that this might have been faster overall and might explain the lag that I got in one of my programs. I will definitively have to experiement with the tilemapper I made once to see if displaying graphics froma GROB is much faster than from an ICON.
Title: Re: MinePrime - Minecraft on a Hp Prime!
Post by: alexgt on May 18, 2015, 05:22:00 PM
Quote from: timwessman on May 18, 2015, 02:47:03 PM
Quote from: Cumred_Snektron on May 18, 2015, 06:03:39 AM
Whats a GROB btw?

It's been the HP parlance for GRaphic OBject since 1989 or so.


As for the problem for which I was summoned - there are a couple of questions to ask here.

Are you really meaning to create a 1600x800 <unit> sized GROB?

If so, are you remembering that the <unit> size comes from the Cartesian grid of the current application? So if the function app is running and the user has zoomed in by 2x on the graph, your GROB size just doubled which would already cause your memory to run out. My recommendation would be to always use the _P options to specify an exact size else you are left at the mercy of what the user has done to the Cartesian grid. If you really want to use the cartesian grid, you'd better make certain you set the values to the desired setting by using the Xmin/Xmax/Ymin/Ymax. However, those only exists for about half of the apps that have graphing. Better to just pick your correct pixel size.

Are you cleaning up after the exit of the game? By this, I'd recommend clearing out your large graphics by setting them to 0 or 1 pixel in size. Else that memory will stay in use until the user either resets, or stores something else in there.

With the new firmware, I'd recommend switching to an application. That will give you access to permanent variables that aren't lost on editing, as well as files and an icon for your program. My recommendation would be:

1. Save a copy of the Quad Explorer app (this will be very tiny).
2. Make your START routine be to launch the game, as well as the Plot, Symb and Num routines.
3. In the code itself, get rid of all the uses of ICON. On the PC, you will see that the applications are now folders of the form "<name>.hpappdir". Put all your graphic assets into that directory as png files (.png on the name is not necessary for use/loading - we check the header to determine type) and they will be sent along with it when sending from the connkit.
4. Give a 38x38pix item a name of "icon.png". That will be what is used for your application icon.
5. When you want to load your png files, use G2:=AFiles("filename") or similar. I'd avoid using the AFiles(1) as that file order could change! It depends on what the underlying file system does with the files in how it lists them. Then once you have G2, you can use that to create your larger GROB. Going directly from the png decode to the blit will definitely increase load time.
6. If you have data you want to save, AFiles("name"):=G1 will store it out. You might even be able to store the PNG as built to disk. Not certain of that though due to the large sizes that appear to be involved.
7. If you have data you want saved (scores, map info, etc), do a AVars("name"):=<list_or_whatever>. Note that the primary difference between using AFiles or AVars is that AVars will allow you to use the object directly as a variable (tying MyVar for example) while AFiles will not. You have to load to a variable from AFiles before use. AVars will consume RAM when the app is loaded. AFiles will not until they are recalled to a variable.

8. To distribute your new application, just package the "name.hpappdir" in a zip file! People just need to drop that zip on the calc in the connkit and it will send the application. No messing with pasting of source. This is the strucutre we like to use for distributing HP developed apps for teacher use for example:

<ZIP>
  |-- appname.hpappdir
  |    |-- stuff
  |-- readme.txt
  |--help.pdf
  \--last file

Provided your stuff is not an hp object type (.txt, .pdf, etc) it will not be sent. Anything in the hpappdir WILL be sent as a file, but it will not recursively add things (aka, no nesting of directories in there).

A post over on the HP museum saying the calcuator was out of memory or something if you feel that was the case and have nothing else to discuss about it.
I do use the _P system that was just a mistake in the example code but it works fine now.  I will definitely switch it to an app when I have time.
Title: Re: MinePrime - Minecraft on a Hp Prime!
Post by: timwessman on May 18, 2015, 05:39:08 PM
Quote from: DJ Omnimaga on May 18, 2015, 04:39:46 PM
Ooh that is nifty. I didn't know we could now have applications with custom icons and files this way. I will definitively have to keep this in mind when I make larger games.  Just a question, though: Are application icons and files compressed like PNGs? Because the other HP Prime format seemed extremely large and I would rather have my programs not be 400 KB large again like in 2013.

Any GROB object saved to disk is converted to a PNG. You can also load directly from a PNG file to a GROB object (it uses the headers not extension to determine if it is a PNG - so no need to restrict your filename to .png extension if desired). Note that the calculator screen is 16 bits with 1 bit for transparency on/off. You do *not* have ALPHA support, but you *do* have transparency support. So a png with a completely transparent region will have a transparent region when loaded (think sprites).

Quote
Also I didn't know that on program exit the GROB content was not cleared automatically. That might explain why some games behaved strangely after running several other ones.

Yes. There would be no way to know if the user wanted G1 or similar to be used elsewhere and hence no way to "clean" the memory up.

The act of using an ICON keyword would *also* make an object in memory that would never be freed. The ICON keyword was meant for objects where absolute speed was required and is essentially a hex representation of a bitmap. Not small at all, but absolutely fast. I would recommend not using ICON for anything however unless you really feel you have to do so. The speed difference between decoding a PNG to a G2, then using G2 for your tile copy multiple times will be essentially non-existent. Now if you read and decoded the PNG each time that would be another thing entirely...

See the screenshot where I created an icon.png with a completely transparent region. You'll note the icon has transparency around the edge of the silly little walrus...  :D
Title: Re: [Minecraft] [HP Prime] MinePrime - Minecraft on a Hp Prime!
Post by: Snektron on May 18, 2015, 06:32:48 PM
A bit off topic but: What's Ebola2 for kind of library? :P
Title: Re: [Minecraft] [HP Prime] MinePrime - Minecraft on a Hp Prime!
Post by: timwessman on May 18, 2015, 06:37:29 PM
Quote from: Cumred_Snektron on May 18, 2015, 06:32:48 PM
A bit off topic but: What's Ebola2 for kind of library? :P

It comes from a statistics activity being prepared using data from the recent outbreaks to discuss logistic fits. Just happened to be the one I clicked on when adding the icon...
Title: Re: MinePrime - Minecraft on a Hp Prime!
Post by: DJ Omnimaga on May 18, 2015, 07:09:14 PM
Quote from: timwessman on May 18, 2015, 05:39:08 PM
Quote from: DJ Omnimaga on May 18, 2015, 04:39:46 PM
Ooh that is nifty. I didn't know we could now have applications with custom icons and files this way. I will definitively have to keep this in mind when I make larger games.  Just a question, though: Are application icons and files compressed like PNGs? Because the other HP Prime format seemed extremely large and I would rather have my programs not be 400 KB large again like in 2013.

Any GROB object saved to disk is converted to a PNG. You can also load directly from a PNG file to a GROB object (it uses the headers not extension to determine if it is a PNG - so no need to restrict your filename to .png extension if desired). Note that the calculator screen is 16 bits with 1 bit for transparency on/off. You do *not* have ALPHA support, but you *do* have transparency support. So a png with a completely transparent region will have a transparent region when loaded (think sprites).

Quote
Also I didn't know that on program exit the GROB content was not cleared automatically. That might explain why some games behaved strangely after running several other ones.

Yes. There would be no way to know if the user wanted G1 or similar to be used elsewhere and hence no way to "clean" the memory up.

The act of using an ICON keyword would *also* make an object in memory that would never be freed. The ICON keyword was meant for objects where absolute speed was required and is essentially a hex representation of a bitmap. Not small at all, but absolutely fast. I would recommend not using ICON for anything however unless you really feel you have to do so. The speed difference between decoding a PNG to a G2, then using G2 for your tile copy multiple times will be essentially non-existent. Now if you read and decoded the PNG each time that would be another thing entirely...

See the screenshot where I created an icon.png with a completely transparent region. You'll note the icon has transparency around the edge of the silly little walrus...  :D
Nice. Will DIMGROBHelper work for app icons? I do not have any image editing software that can produce 32768 color PNGs with transparency.
Title: Re: MinePrime - Minecraft on a Hp Prime!
Post by: alexgt on May 18, 2015, 07:28:43 PM
I thought that ICONs were smaller than GROBs?
Title: Re: MinePrime - Minecraft on a Hp Prime!
Post by: timwessman on May 18, 2015, 07:51:57 PM
Quote from: DJ Omnimaga on May 18, 2015, 07:09:14 PM
I do not have any image editing software that can produce 32768 color PNGs with transparency.

You don't need one. It is a fully compliant png implementation. Conversion to specific colors happens internally on load. Do you have something that will edit and save a png image? Now if you really want to have complete control down to exact colors you'll need an editor or converter that handles it at that color depth, but I seriously doubt that is needed except in possibly the most exacting uses.

Quote from: alexgt on May 18, 2015, 07:28:43 PM
I thought that ICONs were smaller than GROBs?

Exactly the opposite. ICON represents the GROB, but using a plain text hex format - two 16 bit characters to represent the single 16 bit pixel. When parsed, it creates an internal GROB from the text. You thus have used 3x the space needed then just for the GROB alone.
Title: Re: MinePrime - Minecraft on a Hp Prime!
Post by: DJ Omnimaga on May 18, 2015, 07:59:32 PM
I have Photofiltre Studio, which saves as PNG  but only 8 and 24 bits. Would non-alpha transparency be preserved upon importing to the connectivity kit?
Title: Re: MinePrime - Minecraft on a Hp Prime!
Post by: alexgt on May 18, 2015, 08:13:12 PM
Then MinePrime could be 3x smaller O.O (I use the ICON format for the texture pic). Is there any way to name a GROB? Can you just do:

LOCAL ABC;
DIMGROB_P(ABC,320,240,data);

to make a GROB with its own name?

Also for S.I.F.S. is there any way to call a program in a program because I want it to be a shell kind of.

Thanks for all the help Tim :) :)
Title: Re: MinePrime - Minecraft on a Hp Prime!
Post by: bb010g on May 18, 2015, 08:45:53 PM
Quote from: DJ Omnimaga on May 18, 2015, 07:59:32 PM
I have Photofiltre Studio, which saves as PNG  but only 8 and 24 bits. Would non-alpha transparency be preserved upon importing to the connectivity kit?
The GIMP or Krita should work fine.
Title: Re: MinePrime - Minecraft on a Hp Prime!
Post by: alexgt on May 18, 2015, 11:32:14 PM
Quote from: timwessman on May 18, 2015, 07:51:57 PM
Exactly the opposite. ICON represents the GROB, but using a plain text hex format - two 16 bit characters to represent the single 16 bit pixel. When parsed, it creates an internal GROB from the text. You thus have used 3x the space needed then just for the GROB alone.
I just made the DIMGROB_P() data and it was 747Kb in size compared to 356Kb for the ICON data? what did I do wrong?
Title: Re: MinePrime - Minecraft on a Hp Prime!
Post by: DJ Omnimaga on May 18, 2015, 11:41:27 PM
I think I'll stick to regular programs if the program size is gonna be this much larger, especially with complex images that lacks compression. At least with ICON format, when the program is not running it doesn't take that space once I cleared it out.
Title: Re: MinePrime - Minecraft on a Hp Prime!
Post by: alexgt on May 18, 2015, 11:50:11 PM
No I wasn't saying that the App size was larger. I was actually in a regular program what I did was use DIMGROB helper to make a DIMGROB() command. I am sure that Apps are ok for anything. Also they have a nice GUI in the apps menu :P.
Title: Re: MinePrime - Minecraft on a Hp Prime!
Post by: DJ Omnimaga on May 19, 2015, 01:08:24 AM
Oh I see lol. That said, when we compare GROB format with ICON, the difference isn't always 3 times larger. Sometimes it's even worse, because ICON uses some sort of compression for simple images. For example, if you converted a 1920x1080 picture containing just white into ICON format, then the resulting code is about 3 KB large. However, the GROB version is 11.5 MB large!! *.*
Title: Re: MinePrime - Minecraft on a Hp Prime!
Post by: alexgt on May 19, 2015, 01:51:47 AM
Whelp I thinks we need more explanation because this makes no sense with the tests:
Quote from: timwessman on May 18, 2015, 07:51:57 PM
Quote from: alexgt on May 18, 2015, 07:28:43 PM
I thought that ICONs were smaller than GROBs?

Exactly the opposite. ICON represents the GROB, but using a plain text hex format - two 16 bit characters to represent the single 16 bit pixel. When parsed, it creates an internal GROB from the text. You thus have used 3x the space needed then just for the GROB alone.
Title: Re: MinePrime - Minecraft on a Hp Prime!
Post by: bb010g on May 19, 2015, 02:11:27 AM
Quote from: DJ Omnimaga on May 19, 2015, 01:08:24 AM
Oh I see lol. That said, when we compare GROB format with ICON, the difference isn't always 3 times larger. Sometimes it's even worse, because ICON uses some sort of compression for simple images. For example, if you converted a 1920x1080 picture containing just white into ICON format, then the resulting code is about 3 KB large. However, the GROB version is 11.5 MB large!! *.*
GROBs are continuous sections of memory, with each pixel represented in memory equally. PNG uses compression. (Unless I understand this wrong; feel free to correct me.)
Title: Re: MinePrime - Minecraft on a Hp Prime!
Post by: DJ Omnimaga on May 19, 2015, 04:02:16 AM
Yeah it uses compression. I wonder if it's like RLE compression?
Title: Re: [Minecraft] [HP Prime] MinePrime - Minecraft on a Hp Prime!
Post by: Lionel Debroux on May 19, 2015, 05:45:15 AM
Though there are better generic compression algorithms, DEFLATE is already much better than RLE compression or Huffman encoding. The vast majority of ZIP files use DEFLATE as well.
Title: Re: [Minecraft] [HP Prime] MinePrime - Minecraft on a Hp Prime!
Post by: Snektron on May 19, 2015, 12:52:59 PM
DEFLATE sound like quite a general name :P Also for fun i calculated some time ago you'd need around 1x10^40 different characters to compress a file to a single character (and the number of rounds used to compress). Though i've probably messed up something :P
Title: Re: [Minecraft] [HP Prime] MinePrime - Minecraft on a Hp Prime!
Post by: bb010g on May 19, 2015, 02:36:37 PM
Quote from: Lionel Debroux on May 19, 2015, 05:45:15 AM
Though there are better generic compression algorithms, DEFLATE is already much better than RLE compression or Huffman encoding. The vast majority of ZIP files use DEFLATE as well.
Doesn't 7z use LZMA by default, a variant of what DEFLATE uses?
Title: Re: MinePrime - Minecraft on a Hp Prime!
Post by: DJ Omnimaga on May 19, 2015, 04:46:21 PM
Quote from: Lionel Debroux on May 19, 2015, 05:45:15 AM
The vast majority of ZIP files, along with the New England Patriots, use DEFLATE as well.
Fixed. :P

I am definitively curious about what PNG uses, though. What is more interesting is that HP PPL PNG format is 16 bits instead of 8 or 24. All I know is that if you use very simple sprite textures, the file size is much smaller than with complex ones, which tells me that the file size only increases on every color change or something.
Title: Re: MinePrime - Minecraft on a Hp Prime!
Post by: alexgt on May 19, 2015, 05:26:02 PM
I am experimenting with the app stuff it is awesome :)
Title: Re: MinePrime - Minecraft on a Hp Prime!
Post by: DJ Omnimaga on May 19, 2015, 06:57:42 PM
Did you have to change a considerable amount of things in your code? With BasicBuilder for the 84+ you had to change so much picture calls that most people including myself didn't even bother.
Title: Re: MinePrime - Minecraft on a Hp Prime!
Post by: alexgt on May 19, 2015, 08:01:27 PM
Right now I am learning how to do most of it but it really looks promising :) as of now I am still trying to figure out everything Tim said :P
Title: Re: MinePrime - Minecraft on a Hp Prime!
Post by: DJ Omnimaga on May 20, 2015, 02:02:36 AM
Ah OK, good luck then. Hopefully it won't be too much hassle. >.< My real favorite part is the ability to have an icon, though. With regular programs it gets hard to find out which one is what unless you use a name like Minecraft. I even had a program that alternates the screen between red and cyan at 30 FPS  but had forgotten which name it had, then I ran it in the dark. >.<
Title: Re: [Minecraft] [HP Prime] MinePrime - Minecraft on a Hp Prime!
Post by: Snektron on May 20, 2015, 01:44:41 PM
Oh thats cool. I wish android had the possibility to have dynamic icons, though that would probably be too heavy :/
Title: Re: MinePrime - Minecraft on a Hp Prime!
Post by: alexgt on May 20, 2015, 07:41:04 PM
I bet that you can hook it up with the connectivity kit, if I am wrong it would be cool if you could.
Title: Re: [Minecraft] [HP Prime] MinePrime - Minecraft on a Hp Prime!
Post by: Snektron on May 20, 2015, 07:51:22 PM
I can probably do it with an overlay service too
Title: Re: MinePrime - Minecraft on a Hp Prime!
Post by: alexgt on May 20, 2015, 07:57:15 PM
I will agree with you but I have no idea what that is :P
Title: Re: [Minecraft] [HP Prime] MinePrime - Minecraft on a Hp Prime!
Post by: Snektron on May 20, 2015, 08:16:06 PM
It's a service that allows you to render on the screen outside of the app. Maybe with a bit of hacking you can get the offset of the menu, and what menu the phone is in. Then you can calculate the position of an app icon and render something there. Though it sounds like its not really gping to work very well.
Title: Re: MinePrime - Minecraft on a Hp Prime!
Post by: alexgt on May 20, 2015, 08:49:36 PM
Oh. cool :)
Title: Re: MinePrime - Minecraft on a Hp Prime!
Post by: DJ Omnimaga on May 21, 2015, 07:19:01 AM
Quote from: Cumred_Snektron on May 20, 2015, 01:44:41 PM
Oh thats cool. I wish android had the possibility to have dynamic icons, though that would probably be too heavy :/
Can't you change the icons of apps that you create, though? Or do you mean icons that change based on certain guidelines? (eg if you got a new message the icon becomes red)
Title: Re: [Minecraft] [HP Prime] MinePrime - Minecraft on a Hp Prime!
Post by: Snektron on May 21, 2015, 07:44:47 AM
Yeah you can change the icon, but thats not suitable for continuous updating. That actually removes and reinstalls a shortcut. Would be a bit bad to do that 10 or more times a second.
Title: Re: MinePrime - Minecraft on a Hp Prime!
Post by: timwessman on May 21, 2015, 04:47:51 PM
Quote from: DJ Omnimaga on May 19, 2015, 04:02:16 AM
Yeah it uses compression. I wonder if it's like RLE compression?

You were right. I'd compltetely forgotten there was compression in there. Yes, it was an RLE.

Sorry for the wrong info. Either way, don't use ICON. :-)

Title: Re: MinePrime - Minecraft on a Hp Prime!
Post by: DJ Omnimaga on May 21, 2015, 11:18:17 PM
But what about storage? Because an RPG will grow fast at a dramatic rate with GROB >.<. I would rather sacrify 250 KB in ICON then temporarily copy them in a 10 MB GROB that will be cleared in my exit code than have a program permanently take 10 MB even when not running.

Besides, if ICON use is discouraged, then why did HP implement it in the first place in the 2nd firmware? ???
Title: Re: MinePrime - Minecraft on a Hp Prime!
Post by: alexgt on May 22, 2015, 12:02:37 AM
Me thinks Tim was talking about in an App :). Please correct if I am wrong :)
Title: Re: MinePrime - Minecraft on a Hp Prime!
Post by: bb010g on May 22, 2015, 04:10:41 AM
Quote from: DJ Omnimaga on May 21, 2015, 11:18:17 PM
Besides, if ICON use is discouraged, then why did HP implement it in the first place in the 2nd firmware? ???
Temporary solution?
Title: Re: MinePrime - Minecraft on a Hp Prime!
Post by: DJ Omnimaga on May 22, 2015, 06:30:18 AM
But then it would kinda suck if they encouraged people to use icon back then and that some programs got updated to use it, then HP ended up deciding to remove support for it in new firmwares. Many old programs would then stop working.

It's definitively nice to have it for storage. If it gets removed, then users will only be able to store about 10-50 mViewer pictures on their calc.
Title: Re: MinePrime - Minecraft on a Hp Prime!
Post by: alexgt on May 22, 2015, 02:53:22 PM
Yeah, I really like having custom names with ICONs, can you make custom GROB names?
Title: Re: MinePrime - Minecraft on a Hp Prime!
Post by: DJ Omnimaga on May 22, 2015, 04:09:59 PM
Nah we can't, sadly, but you can get around that by commenting code before your image data and stuff. It usually helps.
Title: Re: MinePrime - Minecraft on a Hp Prime!
Post by: alexgt on May 22, 2015, 04:44:58 PM
That is sad... it would be nice if you could make vars and do:
LOCAL TEST;
DIMGROB_P(TEST,320,240);

but you can't which is sad :'(
Title: Re: MinePrime - Minecraft on a Hp Prime!
Post by: DJ Omnimaga on May 23, 2015, 03:33:06 AM
Yeah true. Oh well, I'm glad that at least this language is so fast. Minecraft scrolling speed definitively speaks for itself.
Title: Re: MinePrime - Minecraft on a Hp Prime!
Post by: alexgt on May 25, 2015, 07:35:41 PM
This will be worked on more once summer vacation starts and the 4x3 contest is over :).

Though in the summer I have two camps that I can't use access CW for a total of 3 weeks <_<. And also I can't use my calc <_< <_< <_<. Hopefully I will be able o remember what the heck I was doing with code after then...
Title: Re: MinePrime - Minecraft on a Hp Prime!
Post by: DJ Omnimaga on May 26, 2015, 11:54:34 AM
Lol I hope you return after the camp thing. Anyway glad that you still plan to work on this soon. I was wondering how it was progressing actually. :P
Title: Re: MinePrime - Minecraft on a Hp Prime!
Post by: alexgt on May 26, 2015, 05:04:02 PM
I haven't been working with it much because of school... Sadly school should be winding down for the summer but I have less time somehow O.O

I will be able to work on it in the car though so that is a total of ~20 hours :P
Title: Re: MinePrime - Minecraft on a Hp Prime!
Post by: DJ Omnimaga on May 26, 2015, 06:26:58 PM
Is it due to exams or due to other life obligations such as a small job, parents wanting you to do chores all summer long or something?
Title: Re: MinePrime - Minecraft on a Hp Prime!
Post by: alexgt on May 26, 2015, 07:21:28 PM
No (we haven't really started any exams yet) but last weekend was strange (we had 3 days off because of memorial day and I only had time to do stuff on one day). and today we were busy at school with freshman orientation, but I will get a bit more active now since all that stuff is out of the way :).
Title: Re: MinePrime - Minecraft on a Hp Prime!
Post by: DJ Omnimaga on May 26, 2015, 07:25:14 PM
Oh right you didn't do the exams yet. I tend to always mistake the end of May for the end of school for many people when Juju finishes. :P But some people finish school on June 30th. :P
Title: Re: MinePrime - Minecraft on a Hp Prime!
Post by: alexgt on May 26, 2015, 07:26:10 PM
Well I finish on June 5th so I am lucky?!

EDIT: But a week after that I go to camp where I can't program <_<... it is still fun there though :)
Title: Re: MinePrime - Minecraft on a Hp Prime!
Post by: DJ Omnimaga on May 26, 2015, 07:27:32 PM
As long as you aren't gone during all Summer O.O (some people tend to move on to other hobbies when they are left with no calcs nor internet for months)
Title: Re: [Minecraft] [HP Prime] MinePrime - Minecraft on a Hp Prime!
Post by: alexgt on May 26, 2015, 07:33:45 PM
Well in total I think I will be gone for three weeks but my mom hasn't signed me up for the two week one and it might be past the due date now so...  :-\

(I will stick to calcs definitely since that is the only thing that I am really extremely good at (I think :P))
Title: Re: MinePrime - Minecraft on a Hp Prime!
Post by: alexgt on June 02, 2015, 01:02:33 AM
I am moving this to an App and re-coding it because there were some major bugs in the old version <_<. Just so you know this is being worked on :)
Title: Re: MinePrime - Minecraft on a Hp Prime!
Post by: DJ Omnimaga on June 02, 2015, 05:24:58 AM
Glad to see this back into action. :) What were the bugs you ran into?

By the way, I think that on map edges there shouldn't be blocks outside the map. Maybe have some indestructable bedrock?
Title: Re: MinePrime - Minecraft on a Hp Prime!
Post by: alexgt on June 02, 2015, 09:38:21 PM
Quote from: DJ Omnimaga on June 02, 2015, 05:24:58 AM
Glad to see this back into action. :) What were the bugs you ran into?
Thanks, The main one was that I couldn't figure out why I couldn't break blocks on the second half of the map :(

Quote from: DJ Omnimaga on June 02, 2015, 05:24:58 AM
By the way, I think that on map edges there shouldn't be blocks outside the map. Maybe have some indestructable bedrock?
What will happen is the world will stop going forward and you will continue on until you reach the real edge.

Also I am using the spread sheet app so I can get real time info with out having to keep adding vars to together because the app will do it all for me! this will make mobs WAY easier! 
Title: Re: MinePrime - Minecraft on a Hp Prime!
Post by: DJ Omnimaga on June 03, 2015, 01:58:42 AM
Aaah OK. I  noticed that but I thought it was because I was outside the map.

And do you mean the character will move to the edge of the screen and the map stop scrolling when reaching edges like in Mario?

And nice trick to use the spread sheet app. I should check into it more at one point to see if it could make it easy to make a strategy game or RPG.
Title: Re: MinePrime - Minecraft on a Hp Prime!
Post by: alexgt on June 07, 2015, 05:03:27 AM
Quote from: DJ Omnimaga on June 03, 2015, 01:58:42 AM
Aaah OK. I  noticed that but I thought it was because I was outside the map.

And do you mean the character will move to the edge of the screen and the map stop scrolling when reaching edges like in Mario?

And nice trick to use the spread sheet app. I should check into it more at one point to see if it could make it easy to make a strategy game or RPG.
yeah the screen will stop scrolling and the character will keep moving :).

The spread sheet will be really helpful because you can name cells so they act just like vars with real time adding so it will be simple to add the mobs up for a mob cap or something :)

After I get the shell worked out for SIFS then I will start heavy development on this since I am on summer break now :)
Title: Re: MinePrime - Minecraft on a Hp Prime!
Post by: Unicorn on June 07, 2015, 07:56:31 AM
Yay! Walrifythis game to :P Secret mob...
Title: Re: [Minecraft] [HP Prime] MinePrime - Minecraft on a Hp Prime!
Post by: Snektron on June 07, 2015, 08:59:04 AM
Walrium ore? O.O
Title: Re: MinePrime - Minecraft on a Hp Prime!
Post by: CKH4 on June 07, 2015, 02:48:26 PM
Quote from: alexgt on June 07, 2015, 05:03:27 AM
Quote from: DJ Omnimaga on June 03, 2015, 01:58:42 AMAnd do you mean the character will move to the edge of the screen and the map stop scrolling when reaching edges like in Mario?
yeah the screen will stop scrolling and the character will keep moving :).
Maybe you should loop the edges of the map, it would make it feel more like a planet.
Title: Re: MinePrime - Minecraft on a Hp Prime!
Post by: alexgt on June 07, 2015, 03:27:59 PM
Quote from: CKH4 on June 07, 2015, 02:48:26 PM
Quote from: alexgt on June 07, 2015, 05:03:27 AM
Quote from: DJ Omnimaga on June 03, 2015, 01:58:42 AMAnd do you mean the character will move to the edge of the screen and the map stop scrolling when reaching edges like in Mario?
yeah the screen will stop scrolling and the character will keep moving :).
Maybe you should loop the edges of the map, it would make it feel more like a planet.
That would be a good idea but there would have to be an animation so you know you went to the other end, also the terrain would have to match up and that would be difficult :-\

A walrii mob could work, should it be a pet or what?

walrium ore O.O that is a good idea, what would you use it for tho
Title: Re: MinePrime - Minecraft on a Hp Prime!
Post by: CKH4 on June 07, 2015, 03:30:55 PM
It wouldn't be too bad. The hardest part would be the edge terrain looping. If you are on the right side of the map then have it read the data from the first few columns of the spreadsheet and if you're on the left read the last few columns of data in reverse order.
Title: Re: MinePrime - Minecraft on a Hp Prime!
Post by: alexgt on June 07, 2015, 03:53:50 PM
But the terrain generates randomly so I would have to link the two sides when I generate the terrain but that wouldn't be too difficult (I hope :P) with the app I may try for infinite world gen tho so it might be irrelevant.

@timwessman can you use .txt documents with the AFiles section of the app?

@timwessman - well mentions still no work :-\

Title: Re: MinePrime - Minecraft on a Hp Prime!
Post by: DJ Omnimaga on June 07, 2015, 03:57:07 PM
For terrain looping it wouldn't be too bad if we ended up with cliffs and stuff, but the harder part would be lava and water flow. Maybe there could be a mini map feature too? (which we could turn off)

As for mentions this seems like something I will have to report to the author at http://www.simplemachines.org/community/index.php?topic=522005.0
Title: Re: MinePrime - Minecraft on a Hp Prime!
Post by: alexgt on June 07, 2015, 03:59:33 PM
There will be a map when you press View but when (and if) I make a 3D version I think a mini-map would be a good Idea :)
Title: Re: MinePrime - Minecraft on a Hp Prime!
Post by: DJ Omnimaga on June 09, 2015, 03:44:17 PM
Ah that could work too. :)
Title: Re: MinePrime - Minecraft on a Hp Prime!
Post by: alexgt on June 09, 2015, 04:04:00 PM
I will test if you can use .txt files in the Apps :)
Title: Re: MinePrime - Minecraft on a Hp Prime!
Post by: alexgt on June 14, 2015, 12:49:21 PM
Now that I have the shell for SIFS I will start on this

last post for a week :(
Title: Re: [Minecraft] [HP Prime] MinePrime - Minecraft on a Hp Prime!
Post by: Snektron on June 14, 2015, 02:45:14 PM
Cya in a week, and have fun!
Title: Re: MinePrime - Minecraft on a Hp Prime!
Post by: Unicorn on June 14, 2015, 05:22:58 PM
Bye in a week! :P
Title: Re: MinePrime - Minecraft on a Hp Prime!
Post by: DJ Omnimaga on June 14, 2015, 07:20:15 PM
Have fun Alexgt :walrii:
Title: Re: MinePrime - Minecraft on a Hp Prime!
Post by: alexgt on June 20, 2015, 11:37:29 PM
Back! This week I will start on this so let us pray that the 404 curse does not descend on this project again *.*
Title: Re: MinePrime - Minecraft on a Hp Prime!
Post by: Unicorn on June 20, 2015, 11:43:00 PM
/me Prays hard

Good luck!
Title: Re: MinePrime - Minecraft on a Hp Prime!
Post by: DJ Omnimaga on June 21, 2015, 04:13:45 AM
What was the 404 Curse? I forgot. Is it because you had no Internet for a while or lost some data? Or do you mean you ran out of ideas/motivation?

Good luck and welcome back :)
Title: Re: MinePrime - Minecraft on a Hp Prime!
Post by: Unicorn on June 21, 2015, 07:02:26 AM
The Topic ID :P
Title: Re: MinePrime - Minecraft on a Hp Prime!
Post by: DJ Omnimaga on June 21, 2015, 03:39:30 PM
Oh right, I forgot that this topic had that ID. Good thing Juju didn't add an easter egg to the CW URL shortener like with topic 42 when you type http://codewalr.us/404 nor made it redirect to the site's 404 page. With topic 42, if you also specify the post and try with post ID 1337, it redirects to a rickroll.
Title: Re: MinePrime - Minecraft on a Hp Prime!
Post by: alexgt on June 22, 2015, 01:59:23 PM
Yeah that would have been horrible O.O
Title: Re: MinePrime - Minecraft on a Hp Prime!
Post by: Unicorn on June 22, 2015, 09:11:39 PM
The funny thing is, is that that rickroll came on just as I went to that link O.o So Looomenaty was apon me. Or was it satan? O.o
Title: Re: MinePrime - Minecraft on a Hp Prime!
Post by: DJ Omnimaga on June 25, 2015, 03:10:47 AM
It's called Flash and/or auto-playing videos. :P

By the way alexgt any luck so far working on this? :)
Title: Re: MinePrime - Minecraft on a Hp Prime!
Post by: alexgt on June 25, 2015, 02:06:37 PM
I have hardly been programming at all lately (mostly looking up stuff for neural nets for SIFS) but today I am starting this project :) By that I mean making the textures into a .png and probably making world generation.
Title: Re: MinePrime - Minecraft on a Hp Prime!
Post by: Unicorn on June 26, 2015, 01:43:42 AM
Great! I expect texturepacks and modding allowed in the near future! :trollface:
Title: Re: MinePrime - Minecraft on a Hp Prime!
Post by: DJ Omnimaga on June 27, 2015, 05:03:32 PM
Yeah custom texture packs support would be nice, although not a priority. Glad to see this resumed. :)
Title: Re: MinePrime - Minecraft on a Hp Prime!
Post by: Unicorn on June 29, 2015, 09:24:52 PM
A texturepack file would have to be sooooo big though. Like a megabit of two right?
Title: Re: MinePrime - Minecraft on a Hp Prime!
Post by: CKH4 on June 29, 2015, 09:30:15 PM
No because they are using an old style 256x256 bulk image for textures.
Title: Re: MinePrime - Minecraft on a Hp Prime!
Post by: Unicorn on June 29, 2015, 09:32:05 PM
Oh... Instead of separate files for each sprite, one file divided up for all sprites, right?
Title: Re: MinePrime - Minecraft on a Hp Prime!
Post by: CKH4 on June 29, 2015, 09:33:46 PM
Yep, one big image (relatively) for each sprite.
Title: Re: [Minecraft] [HP Prime] MinePrime - Minecraft on a Hp Prime!
Post by: alexgt on June 30, 2015, 05:40:49 PM
Quote from: Unicorn on June 26, 2015, 01:43:42 AM
Great! I expect texturepacks and modding allowed in the near future! :trollface:
Textures will defaultly be able to be custom :)
all you will have to do is replace the tex.png with another tex.png with the texture in it (there will probably be multiple tex files for terrain, items, GUI, and mobs)

Modding would work by making a separate program and putting

AProgram:="string of copied code from mineprime app wit edits (mods)";

into a program, running MinePrime APP, then run the program and it will store the source (the string) into MinePrime :) but you will only have one mod :(

Modders: I would edit the code in MinePrime and test it then copy to the AProgram var so you won't have to copy delete, copy, delete over and over again :)
Title: Re: MinePrime - Minecraft on a Hp Prime!
Post by: Unicorn on June 30, 2015, 11:14:29 PM
One mod at a time is certainly awesome! :D If you wanted multiple, you could combine one with the others if possible.;)
Title: Re: MinePrime - Minecraft on a Hp Prime!
Post by: DJ Omnimaga on July 01, 2015, 04:06:57 AM
Seems good to me. Custom textures and mods are not 100% needed and rather a big plus, but it's good to have them I guess.

Make sure to focus on the main game first, though, notably crafting/mining. :)

Have you gotten any luck storing the map into some map data rather than one large picture?
Title: Re: MinePrime - Minecraft on a Hp Prime!
Post by: alexgt on July 02, 2015, 05:03:49 PM
Quote from: DJ Omnimaga on July 01, 2015, 04:06:57 AM
Seems good to me. Custom textures and mods are not 100% needed and rather a big plus, but it's good to have them I guess.

Make sure to focus on the main game first, though, notably crafting/mining. :)
Mods will come after the game is done while textures will already be able to be custom (I will make a vid on that when world gen and player movement is complete)
But yeah completing the game will come first before features :)

Quote from: DJ Omnimaga on July 01, 2015, 04:06:57 AM
Have you gotten any luck storing the map into some map data rather than one large picture?
Yes I have (I think), what I am going to do is have a matrix for the current world that you can load saves or the like onto. Also there will be characters that keep their inventory from world to world like Terraria so you will never run out of resources.

To display the world I will have a GROB that will have a one block space off the screen as a buffer: so if I had a 320x240 screen with 20x15 blocks that fit on the screen the GROB would have one more block on each side so it would be 352x272 pixels big and 22x17 blocks big :)
Title: Re: MinePrime - Minecraft on a Hp Prime!
Post by: Unicorn on July 02, 2015, 05:36:50 PM
That's good, you adding mod support, then losing inspiration would not be good.
Title: Re: MinePrime - Minecraft on a Hp Prime!
Post by: alexgt on July 02, 2015, 05:40:00 PM
Quote from: Unicorn on July 02, 2015, 05:36:50 PM
That's good, you adding mod support, then losing inspiration would not be good.
I wonder if apps can store programs in their files O.O!?
Title: Re: MinePrime - Minecraft on a Hp Prime!
Post by: Unicorn on July 02, 2015, 05:41:05 PM
Kind of like appvars getting used by apps in the 84+?
Title: Re: [Minecraft] [HP Prime] MinePrime - Minecraft on a Hp Prime!
Post by: alexgt on July 02, 2015, 05:56:12 PM
If you can store them can you run them is what I am wondering  ???
Title: Re: MinePrime - Minecraft on a Hp Prime!
Post by: Unicorn on July 02, 2015, 05:59:11 PM
umm so taking a paice of code from an app and running it using a program ???
Title: Re: MinePrime - Minecraft on a Hp Prime!
Post by: alexgt on July 02, 2015, 06:16:02 PM
No having a program in the App's files and running in the app
Title: Re: MinePrime - Minecraft on a Hp Prime!
Post by: Unicorn on July 02, 2015, 06:19:26 PM
Oh, so like an appvar that contains a program instead of sprite files or something?
Title: Re: MinePrime - Minecraft on a Hp Prime!
Post by: alexgt on July 02, 2015, 06:34:44 PM
Yeah, kind of :P
Title: Re: MinePrime - Minecraft on a Hp Prime!
Post by: Unicorn on July 02, 2015, 10:36:20 PM
That would be fairly cool in sifs. ;)
Title: Re: MinePrime - Minecraft on a Hp Prime!
Post by: alexgt on July 03, 2015, 01:32:12 AM
I meant for mods in MinePrime since you can already run programs in SIFS :)
Title: Re: MinePrime - Minecraft on a Hp Prime!
Post by: Unicorn on July 03, 2015, 02:27:23 AM
Ah... I see:P That would be nice to be able to have a mods menu.
Title: Re: MinePrime - Minecraft on a Hp Prime!
Post by: alexgt on July 05, 2015, 08:29:15 PM
Ok, I have world gen almost ruled out now comes the fun part! making the world render :P
Title: Re: MinePrime - Minecraft on a Hp Prime!
Post by: alexgt on July 06, 2015, 08:31:36 PM
Got rendering done and almost the moving (moving down is giving me trouble) after that I will release MinePrime v2.1 O.O
Title: Re: MinePrime - Minecraft on a Hp Prime!
Post by: Unicorn on July 06, 2015, 10:02:23 PM
Development is faster than real minecraft :P

Unless this is alpha? :P

Good luck on moving!
Title: Re: MinePrime - Minecraft on a Hp Prime!
Post by: alexgt on July 07, 2015, 02:13:50 AM
^Thanks :)

have world movement 100% now working on saves and title menu then onto player movement (after that the release 2.1 will be released :)) after that right to block braking and then inventory after that will be placing blocks and after that I will make ore spawns and pretty up the world. I think that is a good plan :P
Title: Re: MinePrime - Minecraft on a Hp Prime!
Post by: DJ Omnimaga on July 07, 2015, 02:52:46 AM
Awesome! Does it still use a large image to store the map? I can't wait to try the new version :)
Title: Re: MinePrime - Minecraft on a Hp Prime!
Post by: Unicorn on July 07, 2015, 03:07:48 AM
Quote from: DJ Omnimaga on July 07, 2015, 02:52:46 AM
Awesome! Does it still use a large image to store the map? I can't wait to try the new version :)
^ Ditto Hopefuly there won't be a red flashing player :P
Title: Re: MinePrime - Minecraft on a Hp Prime!
Post by: alexgt on July 07, 2015, 03:15:21 PM
Quote from: DJ Omnimaga on July 07, 2015, 02:52:46 AM
Awesome! Does it still use a large image to store the map? I can't wait to try the new version :)
Nope, the new world size is 500x100 so I couldn't imagine a 8000x1600 GROB containing 12,800,000 pixels O.O so I just have one 352x272 GROB that has a 16 pixel buffer on all sides so you can display the screen and then generate the new terrain of screen :)

Quote from: Unicorn on July 07, 2015, 03:07:48 AM
Quote from: DJ Omnimaga on July 07, 2015, 02:52:46 AM
Awesome! Does it still use a large image to store the map? I can't wait to try the new version :)
^ Ditto Hopefuly there won't be a red flashing player :P
Just got on the computer to work on custom skins :P
Title: Re: MinePrime - Minecraft on a Hp Prime!
Post by: Unicorn on July 07, 2015, 09:01:50 PM
Nice, I'm liking the progress so far. Are screenies on the way?
Title: Re: MinePrime - Minecraft on a Hp Prime!
Post by: alexgt on July 08, 2015, 01:42:04 PM
Quote from: Unicorn on July 07, 2015, 09:01:50 PM
Nice, I'm liking the progress so far. Are screenies on the way?
No real screenshots but there is an update on the horizon today or tomorrow if I don't run into problems :P (Ijust have to add player collisions and render the player and BAM v2.1 is done :))
Title: Re: MinePrime - Minecraft on a Hp Prime!
Post by: Unicorn on July 08, 2015, 01:52:19 PM
So that means movement and terrain gen will be done?
Title: Re: MinePrime - Minecraft on a Hp Prime!
Post by: alexgt on July 09, 2015, 03:11:32 PM
Movement will be complete (without gravity) and terrain gen is working but not complete (I needed it working for player movement and the basics but I am adding the ore spawns and stuff later :))
Title: Re: MinePrime - Minecraft on a Hp Prime!
Post by: Unicorn on July 09, 2015, 03:14:05 PM
Good work :)
Title: Re: MinePrime - Minecraft on a Hp Prime!
Post by: DJ Omnimaga on July 09, 2015, 10:01:24 PM
Quote from: alexgt on July 07, 2015, 03:15:21 PM
Quote from: DJ Omnimaga on July 07, 2015, 02:52:46 AM
Awesome! Does it still use a large image to store the map? I can't wait to try the new version :)
Nope, the new world size is 500x100 so I couldn't imagine a 8000x1600 GROB containing 12,800,000 pixels O.O so I just have one 352x272 GROB that has a 16 pixel buffer on all sides so you can display the screen and then generate the new terrain of screen :)
Awesome, at one point I need to figure out how to do this, so I can continue working on SWL more. Was the speed drop noticeable?

Quote from: alexgt on July 09, 2015, 03:11:32 PM
Movement will be complete (without gravity) and terrain gen is working but not complete (I needed it working for player movement and the basics but I am adding the ore spawns and stuff later :))
Wait, wasn't terrain generation already implemented several months ago? O.O I mean, I swear the first few versions already generated random maps that still ressembled Minecraft maps. ???
Title: Re: MinePrime - Minecraft on a Hp Prime!
Post by: Unicorn on July 09, 2015, 10:34:21 PM
He restarted, making the code better, I believe
Title: Re: MinePrime - Minecraft on a Hp Prime!
Post by: alexgt on July 10, 2015, 08:47:01 PM
Quote from: DJ Omnimaga on July 09, 2015, 10:01:24 PM
Quote from: alexgt on July 07, 2015, 03:15:21 PM
Quote from: DJ Omnimaga on July 07, 2015, 02:52:46 AM
Awesome! Does it still use a large image to store the map? I can't wait to try the new version :)
Nope, the new world size is 500x100 so I couldn't imagine a 8000x1600 GROB containing 12,800,000 pixels O.O so I just have one 352x272 GROB that has a 16 pixel buffer on all sides so you can display the screen and then generate the new terrain of screen :)
Awesome, at one point I need to figure out how to do this, so I can continue working on SWL more. Was the speed drop noticeable?

Quote from: alexgt on July 09, 2015, 03:11:32 PM
Movement will be complete (without gravity) and terrain gen is working but not complete (I needed it working for player movement and the basics but I am adding the ore spawns and stuff later :))
Wait, wasn't terrain generation already implemented several months ago? O.O I mean, I swear the first few versions already generated random maps that still ressembled Minecraft maps. ???
There was no real speed drop since all it is doing extra is drawing 17 or 22 blocks so it didn't take a hit at all :)

Unicorn is right when I switched to an app I started recoding it (there was a bug that I couldn't fix and my code was really messy :P)
Title: Re: MinePrime - Minecraft on a Hp Prime!
Post by: Unicorn on July 11, 2015, 02:04:58 PM
I bet it'll be a bit easier to have things running if your code is nice and organized :)
Title: Re: MinePrime - Minecraft on a Hp Prime!
Post by: DJ Omnimaga on July 11, 2015, 02:38:02 PM
Ah I see alexgt. I was worried about speed drops because it involves drawing 17-22 blocks instead of just 1 sprite and I always had the impression that For loops slowed things down in HP PPL (for example, I only get 15 FPS from drawing a 20x15 grid of tiles, but again I used ICON instead of GROB data)
Title: Re: [Minecraft] [HP Prime] MinePrime - Minecraft on a Hp Prime!
Post by: alexgt on July 12, 2015, 01:46:05 PM
Yep, and the for loops aren't that bad either they are only drawing a single column and or row :).

UPDATE:  :w00t:
- Added The Title Screen
- Added World Generation
- Added 5 new blocks: dirt, grass, bedrock, stone, and air :trollface:
- Added The Player (sorry Unicorn no skins yet :()
- Added player collision
- Added gravity
- Added auto jumping when you press left/right against a block
- Fixed major rendering bug when going down.
- Drank 1 cup of coffee  8)

NOTE: This is why I have not been active lately :P
Also you sadly have to use a calc (I think) because I have not had time to post any screenshots but those will role around tomorrow I hope :)
Title: Re: MinePrime - Minecraft on a Hp Prime!
Post by: CKH4 on July 12, 2015, 01:54:58 PM
Yay, can't wait to see the screenshot. I'm glad you added auto jumping that always helps me in mcpe so hopefully it'll translate here. Also for the most part thats a solid block list :trollface:
Title: Re: MinePrime - Minecraft on a Hp Prime!
Post by: Unicorn on July 12, 2015, 03:16:44 PM
Work on the blocks before skins! I wish I could try it out right now :(

Anyways, you stayed up late doing this?
Title: Re: MinePrime - Minecraft on a Hp Prime!
Post by: DJ Omnimaga on July 12, 2015, 03:25:33 PM
Awesome, I'm gonna give it a try later if HP Connectivity Kit is done updating. :)


EDIT: @alexgt it doesn't work D:, when I drag and drop the files or the folder into the app library, if I run the app afterwards, but instead of launching the game it launches a spreadsheet. I'm using the latest firmware (July)

@timwessman you really need to make applications into 1 file or at least allow sending full zip or rar files, because currently, custom app transfer is completely broken and will not work 98% of the time. Not only that, but when sending three apps my calculator froze and I had to press the reset button on the back. I'm definitively sticking to .hpprgm until this is solved. There is also barely any official documentation on how to make apps so the only way is to browse community forums and hope you'll find that one post explaining how to properly make an app. Sorry.


@alexgt could you release a non-application version of MinePrime and SIFS in the future so that I can use them? Else I will never be able to run them at all.
Title: Re: MinePrime - Minecraft on a Hp Prime!
Post by: alexgt on July 13, 2015, 12:44:29 AM
Hmmm... If you open the unzipped file does another file appear or is there MinePrime.hpappprgm, MinePrime.hpappnote, ect.?
If it does I am stumped, and the problem with making a pure program version is that I can't store files or pictures outside the program (the app files are stored in the archive so they don't take up program space). I will try to work it out :)

Quote from: Unicorn on July 12, 2015, 03:16:44 PM
Work on the blocks before skins! I wish I could try it out right now :(

Anyways, you stayed up late doing this?
The latest I stayed up was 2 a.m. but I had a friend over to spend the night so the coffee was in the morning :P
Title: Re: MinePrime - Minecraft on a Hp Prime!
Post by: DJ Omnimaga on July 13, 2015, 12:46:18 AM
Yes, they are there on Windows. I cannot open the folders in the HP Prime connectivity kit, though, if that's what you mean.

But yeah, basically, I am unable to launch the game no matter what I try. It just displays a spreadsheet.
Title: Re: MinePrime - Minecraft on a Hp Prime!
Post by: Unicorn on July 13, 2015, 03:32:00 AM
lol alex you were working on it with a friend over? They always tease me when I do, and then I have them try out one of my games, but they end up playing calcuzap :P
Title: Re: MinePrime - Minecraft on a Hp Prime!
Post by: DJ Omnimaga on July 13, 2015, 01:08:15 PM
Maybe remove Calcuzap and all other games from your calc first? :P

Anyway Alexgt I'm thinking that application support is broken in HP PPL or the HP Prime or you probably didn't write the header that Tim once showed properly.

Quote from: timwessman on June 04, 2015, 04:53:45 PM

#pragma mode( separator(.,;) integer(h32) )

//Declare function
SIFS_PROG_RUN();

//Local vars
Local ProgNum; //Prog number to display/edit
....
<snip>


You'll want to put this at the top of your source file.

The pragma line is so that anyone who has different internationalization/integer settings won't have issues. It tells: , is the separator for arguments, . is the separator for mantissa, ; terminates your command statements.

The next part is why the program isn't running. There is a error when trying to compile because the compiler has no idea what SIFS_PROG_RUN() is since you are creating it on runtime (not sure why exactly, haven't looked at the code). Hence, you should declare it as a function earlier and it will run fine.

The reason the icon isn't showing is because it isn't being sent. I went through this process: Unzip to the content directory, drag the zip file to the calculator tree and it was all sent fine. I will investigate if coming directly from a zip is having an issue or something.
Title: Re: [Minecraft] [HP Prime] MinePrime - Minecraft on a Hp Prime!
Post by: alexgt on July 13, 2015, 02:45:15 PM
Ohhhh... that might be why O.O I don't even have that in there at all and I have it set to h64 on my calc. Before I fix it will you look and see if it actually sent the AFiles by typing in MinePrime.Afiles() and see if it comes up with this:
(https://codewalr.us/proxy.php?request=http%3A%2F%2Fi.imgur.com%2F7WUO1AX.png&hash=06682f8c210e076b8f49c7edb5126994fcf60f07)
Also is the app icon there because that will also indicate that all the files were sent correctly :)

I will make that patch right now :)
Title: Re: MinePrime - Minecraft on a Hp Prime!
Post by: DJ Omnimaga on July 13, 2015, 04:08:19 PM
Ok I'll check that out when I'm back home. :)
Title: Re: MinePrime - Minecraft on a Hp Prime!
Post by: alexgt on July 13, 2015, 08:16:14 PM
Yep, I have it all ready with the patch I just need to upload it :P
Title: Re: MinePrime - Minecraft on a Hp Prime!
Post by: Unicorn on July 13, 2015, 10:28:43 PM
Good job fixing it! :)
Title: Re: [Minecraft] [HP Prime] MinePrime - Minecraft on a Hp Prime!
Post by: alexgt on July 14, 2015, 12:57:44 AM
Ok, here is the patch tell me if it fixes everything, and also I tried it on my PC emu and I had the same problem so this should fix it ;)
Title: Re: MinePrime - Minecraft on a Hp Prime!
Post by: DJ Omnimaga on July 14, 2015, 01:42:21 AM
Nope, still the same problem: The app icon is showing up, but only a spreadsheet comes up. :( I also ran MinePrime.AFiles on the main screen and I got {"DefaultSkin.png","icon.png","Main_Title.png", TEX_Terrain.png","WMAT"}

I also tried deleting the app, rebooting my calc then resending it, and still no luck.

You really need to ditch applications like me, even if it means removing features from SIFS and MinePrime, because HP Prime apps are absolute garbage (no offense Tim Wessman). If HP ever kills support for programs without fixing apps first, I'm probably quitting HP Prime dev. For now I'm boycotting apps.

EDIT: I made a topic about this: http://codewalr.us/index.php?topic=610.0 and cross-posted it on HP Museum and TI-Planet.
Title: Re: MinePrime - Minecraft on a Hp Prime!
Post by: Unicorn on July 14, 2015, 02:43:35 AM
If alex had it working, how does it not work for you, DJ? Is there some setting that needs to be enabled?
Title: Re: MinePrime - Minecraft on a Hp Prime!
Post by: DJ Omnimaga on July 14, 2015, 02:46:02 AM
He mentions in his last post that the previous version didn't work for him on the emulator. I don't know if he tested the new one before posting it.

I have the feeling that some setting needs to be enabled or that I might have bad hardware. Otherwise, it's possible that when he distributes the app, some files goes missing.

In any case, sending apps is extremely confusing anyway due to little to no official doc about it.

But in short terms, it looks more and more like I will never be able to play MinePrime again unless Alexgt decides to switch back to hpprgm format. :(
Title: Re: MinePrime - Minecraft on a Hp Prime!
Post by: Unicorn on July 14, 2015, 02:49:26 AM
Or someone sends an email to hp or they read that forum post you made. I think someone needs to make a youtube video explaining how it works.
Title: Re: MinePrime - Minecraft on a Hp Prime!
Post by: DJ Omnimaga on July 14, 2015, 02:51:08 AM
Tim Wessman once posted an advice which I quoted above, but even that didn't work it seems. ANd there is a Youtube video and I send stuff exactly as demonstrated, but for MinePrime and earlier versions of SIFS it still doesn't work (and even with the current version of SIFS, it took me three tries before I finally get it to work)
Title: Re: MinePrime - Minecraft on a Hp Prime!
Post by: Unicorn on July 14, 2015, 02:53:00 AM
Ah! But it did work! So that means there's hope yet! :) I wonder what went right the time it worked...
Title: Re: [Minecraft] [HP Prime] MinePrime - Minecraft on a Hp Prime!
Post by: alexgt on July 14, 2015, 01:30:35 PM
Quote from: DJ Omnimaga on July 14, 2015, 02:51:08 AM
Tim Wessman once posted an advice which I quoted above, but even that didn't work it seems. ANd there is a Youtube video and I send stuff exactly as demonstrated, but for MinePrime and earlier versions of SIFS it still doesn't work (and even with the current version of SIFS, it took me three tries before I finally get it to work)
Tim Wessman was correct I just got it wrong so it was my fault (http://codewalr.us/610/18256) :(
now it is working but we need to inform everyone that you MUST have this code in your App just in case:
#pragma mode( separator(.,;) integer(h32) )
You can also do that by pressing menu and selecting insert pragma but make sure that it has h32 not something else as that was the problem. Everything works just two characters screwed up the whole App

Quote from: Unicorn on July 14, 2015, 02:49:26 AM
Or someone sends an email to hp or they read that forum post you made. I think someone needs to make a youtube video explaining how it works.
I am going to start a series on that/ programming in HP PPL since I know I learn best from vids I hope other people learn well from them to :)

The problem was my fault so do not be alarmed (unless this patch does not work but I garentee it will) Apps work fine but it did take allot of trouble shooting the problem  is solved :)
Title: Re: MinePrime - Minecraft on a Hp Prime!
Post by: DJ Omnimaga on July 14, 2015, 01:44:11 PM
Nope, even that version doesn't work. :(
Title: Re: MinePrime - Minecraft on a Hp Prime!
Post by: alexgt on July 14, 2015, 02:12:48 PM
Ok, this is weird, I cleared the memory on my emu and it didn't work (same problem as you). Then I thought it needs to compile the code or something! and so I went to the program menu edited the App (didn't change any code) and exited the editor and the App ran fine. I will make an updated video explaining this :)
Steps:
1. Install latest version of MinePrime (if you already have go to step two)
2. Run MinePrime (if it works and you see the title menu skip the rest of the steps otherwise continue :))
3. Go to the Program Menu (Shift + 1)
4. At the top of the page click on MinePrime (App) to edit it
5. Once you are in the editor press Esc
6. Now run MinePrime from the App menu

I think the problem is that the app says to the program "you are not compiled" and so it will not let it run so by exiting the program editor you compile it and the app says "OK, you are compiled you may run now :)"

This better be the problem <_<

EDIT: this post was my 1000th post O.O
Title: Re: MinePrime - Minecraft on a Hp Prime!
Post by: DJ Omnimaga on July 14, 2015, 03:33:45 PM
I hope it works. Hp should have this done on runtime if it's the case and that the code isn't compiled.

I'll trylater tonight.
Title: Re: MinePrime - Minecraft on a Hp Prime!
Post by: Unicorn on July 14, 2015, 03:36:52 PM
If it doesn't work, maybe a post on the prime forums will catch HP's attention?
Title: Re: MinePrime - Minecraft on a Hp Prime!
Post by: DJ Omnimaga on July 14, 2015, 03:39:04 PM
Oh, there is already a topic there. I'll bump it if the new solution doesn't work.
Title: Re: MinePrime - Minecraft on a Hp Prime!
Post by: alexgt on July 14, 2015, 09:01:03 PM
Quote from: DJ Omnimaga on July 14, 2015, 03:33:45 PM
I hope it works. Hp should have this done on runtime if it's the case and that the code isn't compiled.

I'll trylater tonight.
Ok, I hope this works but I am very certain this will work since I replicated your problem, but I agree that it should be compiled on runtime :)
Title: Re: MinePrime - Minecraft on a Hp Prime!
Post by: Unicorn on July 14, 2015, 11:39:43 PM
Well, in any case, it's not very user friendly :P
Title: Re: MinePrime - Minecraft on a Hp Prime!
Post by: DJ Omnimaga on July 15, 2015, 12:07:42 AM
Quote from: alexgt on July 14, 2015, 09:01:03 PM
Quote from: DJ Omnimaga on July 14, 2015, 03:33:45 PM
I hope it works. Hp should have this done on runtime if it's the case and that the code isn't compiled.

I'll trylater tonight.
Ok, I hope this works but I am very certain this will work since I replicated your problem, but I agree that it should be compiled on runtime :)
Ok so I tried your solution and neither that worked >.<
Title: Re: [Minecraft] [HP Prime] MinePrime - Minecraft on a Hp Prime!
Post by: alexgt on July 15, 2015, 01:19:15 AM
 >:(  :banghead: :crazy: ???  O.O WTF!!!!!!!!

I have no I dea, try sending it and trouble shooting on the emu and then transferring it from the emu to the irl clac?!
Title: Re: MinePrime - Minecraft on a Hp Prime!
Post by: DJ Omnimaga on July 15, 2015, 01:26:52 AM
Direct transfer from emu to calc are no longer possible on Hardware revision A. That feature was removed about 4 firmwares ago.

EDIT:

Ok so I tried your sending trick and recompile on the emulator and it still won't run. However, I noticed that the following screen appears for about 0.1 seconds before the spreadsheet appears:

(https://codewalr.us/proxy.php?request=http%3A%2F%2Fimg.codewalr.us%2Fmineprime2.png&hash=5e596aa720a149e7ec6cdc7727cd6fc71da368b6)

I had to use a video capture software in order to extract the frame, else it disappeared too fast.

Also, I forgot to mention that earlier, the first three times I tried to delete then resend your app to my calc, my calc froze.


EDIT: After further tests, I managed to run it on-calc! (somewhat)! O.O However, it won't get past the loading screen. After the loading, it displays the spreadsheet again >.<

On the emulator, it still displays the title screen or parts of it for a split second before quitting to the spreadsheet. The farthest it reached was this screen:

(https://codewalr.us/proxy.php?request=http%3A%2F%2Fimg.codewalr.us%2Fmineprime2s.png&hash=c6b50d2b868203952af59c9f41335e5551c63e37)

So we have now found part of what is happening: Your game exits prematurely and until now it exited so fast that it was unnoticeable.


And after another ON+Symb, the game now runs on-calc! I can't count how many tries it took me.

From symptoms seen in MViewer GX (crashes when sending many 2 MB files) I am thinking that the calculator RAM gets lower and lower after every APP transfer and your game probably runs out of RAM. In fact, I ran the game again now then moved east for one minute and it eventually exited to the spreadsheet.


HP should make the firmware clear any RAM usage after file transfers and everytime we exit a program back to the home screen or program menu. With mViewer GX, we basically have to press ON+Symb after every file transfer and that's when the actual transfer won't freeze the calc.
Title: Re: MinePrime - Minecraft on a Hp Prime!
Post by: Unicorn on July 15, 2015, 03:01:02 AM
Yay! So HP didn't get the ram usage right in the firmware updates?
Title: Re: MinePrime - Minecraft on a Hp Prime!
Post by: DJ Omnimaga on July 15, 2015, 03:27:52 AM
I think that was an issue since the very beginning.
Title: Re: MinePrime - Minecraft on a Hp Prime!
Post by: Lionel Debroux on July 15, 2015, 05:04:23 AM
Memory leaks in transfer and program execution have been plaguing the Prime since the beginning, indeed.
Title: Re: [Minecraft] [HP Prime] MinePrime - Minecraft on a Hp Prime!
Post by: alexgt on July 15, 2015, 12:49:28 PM
So what does ON=Symb do? And awesome you got it running but is not exactly user friendly :(, but it looks like it displays Main_Title.png then quits O.O, that is quite weird, I hope HP gives a good fix :)

HYPE: Block breaking/ placing/ inventory in next update!!!!!!!
Title: r:3=
Post by: DJ Omnimaga on July 16, 2015, 05:36:51 AM
On+Symb is a soft-reset key combo. It reboots the calc. The reset button on the back of the calc does something similar, but it's for when ON+Symb doesn't work. It's more an hard-reset.

Anyway yeah I can manage to play the game and it looks quite nice. The speed didn't drop too much and it's pretty smooth, still. I also can't wait for block breaking to be back and eespecially being able to place them :)
Title: Re: MinePrime - Minecraft on a Hp Prime!
Post by: alexgt on July 16, 2015, 01:51:05 PM
Yup I am working on the inventory first but I can't test it until I get placing/breaking under control
Title: Re: MinePrime - Minecraft on a Hp Prime!
Post by: Unicorn on July 16, 2015, 02:09:15 PM
Good, at least you can make progress on this without HP App fails :P
Title: Re: MinePrime - Minecraft on a Hp Prime!
Post by: alexgt on July 16, 2015, 05:31:59 PM
 That would be bad if it didn't work for me O.O
Title: Re: MinePrime - Minecraft on a Hp Prime!
Post by: alexgt on July 17, 2015, 06:40:20 PM
Got block breaking working! I just need to add the animation and I will move onto the inventory :)
Title: Re: MinePrime - Minecraft on a Hp Prime!
Post by: Unicorn on July 17, 2015, 08:02:26 PM
Yay! You are making quite some progress with this, are you spending like 2 hours a day Alex?
Title: Re: MinePrime - Minecraft on a Hp Prime!
Post by: DJ Omnimaga on July 17, 2015, 10:14:19 PM
Awesome to see progress :)
Title: Re: MinePrime - Minecraft on a Hp Prime!
Post by: alexgt on July 17, 2015, 11:33:42 PM
Quote from: DJ Omnimaga on July 17, 2015, 10:14:19 PM
Awesome to see progress :)
Thanks :)

Quote from: Unicorn on July 17, 2015, 08:02:26 PM
Yay! You are making quite some progress with this, are you spending like 2 hours a day Alex?
Today I felt like playing games :P but I did block breaking last night and I got so tired I fell asleep with a calc in my hands xD
Title: Re: MinePrime - Minecraft on a Hp Prime!
Post by: DJ Omnimaga on July 18, 2015, 01:22:54 AM
That almost happened to me with my phone a few times. I wanted to check some messages before bed time and ended up falling asleep for a second or so :P

Don't do that with a calc, in case you accidentally delete your program. <_<
Title: Re: MinePrime - Minecraft on a Hp Prime!
Post by: Unicorn on July 18, 2015, 02:59:56 AM
I ocasionally forget to exit a program and leave my calc alone until it turns off, and when my sister askes for it to play a game and turns it on to see code. luckily sh never hurt any of it yet. O.O
Title: Re: MinePrime - Minecraft on a Hp Prime!
Post by: alexgt on July 19, 2015, 12:14:07 AM
Quote from: DJ Omnimaga on July 18, 2015, 01:22:54 AM
That almost happened to me with my phone a few times. I wanted to check some messages before bed time and ended up falling asleep for a second or so :P

Don't do that with a calc, in case you accidentally delete your program. <_<
That would be horable to delete Mineprime O.O my only back up is when I upload it here, but I have my auto off to ~3 minutes so it shuts of and doesn't waste battery or deletes programs :)

Quote from: Unicorn on July 18, 2015, 02:59:56 AM
I ocasionally forget to exit a program and leave my calc alone until it turns off, and when my sister askes for it to play a game and turns it on to see code. luckily sh never hurt any of it yet. O.O
Lol, Unicorn if I had a younger sister (both are older) I would be like NO you cannot use my calc, did YOU pay $100 for it excluding shipping, DID YOU?!?!?
Title: Re: MinePrime - Minecraft on a Hp Prime!
Post by: Unicorn on July 19, 2015, 12:28:28 AM
Eh,  she knows that she owes me 130 if she messes anything up. ;)
Title: Re: MinePrime - Minecraft on a Hp Prime!
Post by: DJ Omnimaga on July 19, 2015, 10:05:46 PM
Quote from: alexgt on July 19, 2015, 12:14:07 AM
Quote from: DJ Omnimaga on July 18, 2015, 01:22:54 AM
That almost happened to me with my phone a few times. I wanted to check some messages before bed time and ended up falling asleep for a second or so :P

Don't do that with a calc, in case you accidentally delete your program. <_<
That would be horable to delete Mineprime O.O my only back up is when I upload it here, but I have my auto off to ~3 minutes so it shuts of and doesn't waste battery or deletes programs :)

Quote from: Unicorn on July 18, 2015, 02:59:56 AM
I ocasionally forget to exit a program and leave my calc alone until it turns off, and when my sister askes for it to play a game and turns it on to see code. luckily sh never hurt any of it yet. O.O
Lol, Unicorn if I had a younger sister (both are older) I would be like NO you cannot use my calc, did YOU pay $100 for it excluding shipping, DID YOU?!?!?
You should probably also keep a copy on your computer outside the connectivity kit/emulator folders.
Title: Re: MinePrime - Minecraft on a Hp Prime!
Post by: alexgt on July 19, 2015, 11:23:08 PM
I make many copied Apps now so it should be backed up ;).

Also I have added from the last update:
- Block breaking
- Saving in a world
- Major Bug fixes (mostly with player movements but some still linger <_<)
- Ding Ding Ding O.O for the first tine ever Block PLACING!!!!!!!!!!
- And working on and inventory and finishing block placing :)

When I get the last two working I will provide a download :)
Title: Re: MinePrime - Minecraft on a Hp Prime!
Post by: DJ Omnimaga on July 20, 2015, 12:26:04 AM
Good to hear. Saving will definitively be handy. Does apps preserve saves as long as you don't recompile the code? One upside of apps over programs is that it's much harder to accidentally open the program code than with programs. Inventory doesn't have to be complex for now, it could just let people cycle through items like that 2011 or 2012 TI-Nspire Minecraft 3D clone. Good luck getting those working! :)
Title: Re: MinePrime - Minecraft on a Hp Prime!
Post by: Unicorn on July 20, 2015, 01:48:46 AM
Nice! It will be great to have an actual minecraft creative clone already!
Title: Re: MinePrime - Minecraft on a Hp Prime!
Post by: alexgt on July 20, 2015, 01:45:17 PM
Quote from: DJ Omnimaga on July 20, 2015, 12:26:04 AM
Good to hear. Saving will definitively be handy. Does apps preserve saves as long as you don't recompile the code? One upside of apps over programs is that it's much harder to accidentally open the program code than with programs. Inventory doesn't have to be complex for now, it could just let people cycle through items like that 2011 or 2012 TI-Nspire Minecraft 3D clone. Good luck getting those working! :)
I actually use App Vars so as long as some body doesn't say AVars("Save1"):="trains" or something like that they will be preserved (I do not know about transferring them to your calc but I think if I uploaded it without deleting a world and you put it on your calc it would still have the same worlds so this opens up custom maps ;))

Quote from: Unicorn on July 20, 2015, 01:48:46 AM
Nice! It will be great to have an actual minecraft creative clone already!
you should see my world that I play on it is full of placed dirt blocks already O.O
Title: Re: MinePrime - Minecraft on a Hp Prime!
Post by: Unicorn on July 20, 2015, 02:58:30 PM
Not diamond blocks? :P Nice!
Title: Re: MinePrime - Minecraft on a Hp Prime!
Post by: alexgt on July 20, 2015, 03:33:02 PM
I have yet to make world gen with ores and trees and the such but right now placing the dirt doesn't even take it from the inventory :P
alsoo I am working on a screen shot ;)
Title: Re: MinePrime - Minecraft on a Hp Prime!
Post by: Unicorn on July 20, 2015, 03:40:48 PM
Quote from: alexgt on July 20, 2015, 03:33:02 PM
I have yet to make world gen with ores and trees and the such but right now placing the dirt doesn't even take it from the inventory :P
alsoo I am working on a screen shot ;)
Yay! Well, at least there is progress :)
Title: Re: MinePrime - Minecraft on a Hp Prime!
Post by: alexgt on July 20, 2015, 04:18:00 PM
stupid recording software didn't record the sound <_< GIF it then :(
Title: Re: MinePrime - Minecraft on a Hp Prime!
Post by: Duke "Tape" Eiyeron on July 20, 2015, 04:18:46 PM
Have you tried OBS (https://duckduckgo.com/?q=obs&t=ffab&ia=meanings)?
Title: Re: MinePrime - Minecraft on a Hp Prime!
Post by: alexgt on July 20, 2015, 04:19:16 PM
That was what I was using :P
Title: Re: MinePrime - Minecraft on a Hp Prime!
Post by: Unicorn on July 20, 2015, 04:19:40 PM
Quote from: alexgt on July 20, 2015, 04:18:00 PM
stupid recording software didn't record the sound <_< GIF it then :(
Sound? What? Please elaborate O.O
Title: Re: MinePrime - Minecraft on a Hp Prime!
Post by: alexgt on July 20, 2015, 04:20:42 PM
I was gong to make a youtube vid so I could explain stuff
Title: Re: MinePrime - Minecraft on a Hp Prime!
Post by: Unicorn on July 20, 2015, 04:21:37 PM
Quote from: alexgt on July 20, 2015, 04:20:42 PM
I was gong to make a youtube vid so I could explain stuff
Oh, I get it. I though there was sound in mineprime O.O
Title: Re: MinePrime - Minecraft on a Hp Prime!
Post by: alexgt on July 20, 2015, 04:23:31 PM
No, I was saying how to run it for the first time, and the different controls :P
Title: Re: MinePrime - Minecraft on a Hp Prime!
Post by: Unicorn on July 20, 2015, 04:46:28 PM
Well duh :P

Anyways, is the screenshot done yet?
Title: Re: MinePrime - Minecraft on a Hp Prime!
Post by: alexgt on July 20, 2015, 04:59:45 PM
No :( I have to re record it so it will fit in a GIF <_<
Title: Re: MinePrime - Minecraft on a Hp Prime!
Post by: Unicorn on July 20, 2015, 05:45:12 PM
/me waits, and waits

I just really want to see it :P
Title: Re: [Minecraft] [HP Prime] MinePrime - Minecraft on a Hp Prime!
Post by: alexgt on July 20, 2015, 06:43:28 PM
Here is the GIF!!!!!
(https://codewalr.us/proxy.php?request=http%3A%2F%2Fim.ezgif.com%2Ftmp%2Fezgif-1036707855.gif&hash=6af789893171e3e899c06887579f428ced876389)
Title: Re: MinePrime - Minecraft on a Hp Prime!
Post by: Unicorn on July 20, 2015, 09:44:48 PM
The image you entered is not valid. Reupload using imgur? :/
Title: Re: MinePrime - Minecraft on a Hp Prime!
Post by: DJ Omnimaga on July 21, 2015, 05:34:29 AM
Yeah you might be better off with http://img.ourl.ca . While its recent uptime is questionable, it does the job well. Or there's WalrusIRC uploader, although the file size limit is 128 KB. Imgur works well too.
Quote from: alexgt on July 20, 2015, 01:45:17 PM
Quote from: DJ Omnimaga on July 20, 2015, 12:26:04 AM
Good to hear. Saving will definitively be handy. Does apps preserve saves as long as you don't recompile the code? One upside of apps over programs is that it's much harder to accidentally open the program code than with programs. Inventory doesn't have to be complex for now, it could just let people cycle through items like that 2011 or 2012 TI-Nspire Minecraft 3D clone. Good luck getting those working! :)
I actually use App Vars so as long as some body doesn't say AVars("Save1"):="trains" or something like that they will be preserved (I do not know about transferring them to your calc but I think if I uploaded it without deleting a world and you put it on your calc it would still have the same worlds so this opens up custom maps ;))

That's nice at least :)
Title: Re: MinePrime - Minecraft on a Hp Prime!
Post by: alexgt on July 22, 2015, 02:58:32 PM
Quote from: Unicorn on July 20, 2015, 09:44:48 PM
The image you entered is not valid. Reupload using imgur? :/
Oh, yeah sorry I am away from home now but ater tonight I will get it up :) (I took the URL off of ezgif and never uploaded it to imgur.com so that is the problem xD)
Title: Re: MinePrime - Minecraft on a Hp Prime!
Post by: Unicorn on July 22, 2015, 03:01:48 PM
Well, in any case, I cant' wait :P
Title: Re: MinePrime - Minecraft on a Hp Prime!
Post by: alexgt on July 22, 2015, 03:04:18 PM
Yeah, sorry about that xD
Title: Re: MinePrime - Minecraft on a Hp Prime!
Post by: Unicorn on July 22, 2015, 03:06:34 PM
Ah, its ok, though it better impress for all this wait.... :P
Title: Re: MinePrime - Minecraft on a Hp Prime!
Post by: alexgt on July 22, 2015, 03:08:00 PM
Well it is the first terraria like game for the prime and it features touch screen, the ony thing you can ask for now is a Prime :P
Title: Re: MinePrime - Minecraft on a Hp Prime!
Post by: Unicorn on July 22, 2015, 03:09:28 PM
Quote from: alexgt on July 22, 2015, 03:08:00 PM
Well it is the first terraria like game for the prime and it features touch screen, the ony thing you can ask for now is a Prime :P
Very nice, and yeah, thats it. I wonder if you could display the prime screen on a computer if the screen is broken?
Title: Re: MinePrime - Minecraft on a Hp Prime!
Post by: alexgt on July 22, 2015, 03:11:49 PM
You can play it on the PC but movement is sped up allot but braking and placing is functional still :)
Title: Re: MinePrime - Minecraft on a Hp Prime!
Post by: Unicorn on July 22, 2015, 04:27:59 PM
Quote from: alexgt on July 22, 2015, 03:11:49 PM
You can play it on the PC but movement is sped up allot but braking and placing is functional still :)
Cool, will there be a PC version? Just like Nagoji?
Title: Re: MinePrime - Minecraft on a Hp Prime!
Post by: alexgt on July 22, 2015, 05:11:45 PM
Once the game is finished, also you reminded me about slowing down Nagoji. I should dothat since I am staring on the sequel :P
Title: Re: MinePrime - Minecraft on a Hp Prime!
Post by: Unicorn on July 22, 2015, 05:14:46 PM
Quote from: alexgt on July 22, 2015, 05:11:45 PM
Once the game is finished, also you reminded me about slowing down Nagoji. I should dothat since I am staring on the sequel :P
Nag Nag remind. Cool about the sequel I should make a port for the CSE as it is the same dimensions. O.O
Title: Re: MinePrime - Minecraft on a Hp Prime!
Post by: alexgt on July 22, 2015, 05:19:12 PM
You can try you have my permision but it will have very interesting features.
Title: Re: MinePrime - Minecraft on a Hp Prime!
Post by: Unicorn on July 22, 2015, 05:20:58 PM
Well, first I need to try to port the first one. ;) and finish GOP
Title: Re: MinePrime - Minecraft on a Hp Prime!
Post by: alexgt on July 22, 2015, 08:52:24 PM
I can port it to the 84+ since I have one ;)
Title: Re: MinePrime - Minecraft on a Hp Prime!
Post by: Unicorn on July 22, 2015, 09:05:47 PM
Quote from: alexgt on July 22, 2015, 08:52:24 PM
I can port it to the 84+ since I have one ;)
Then I can port it to  the 83+ SE because I have one. Then someone can port it to the 83+ because they have one :trollface:

Anyways, thats cool :)
Title: Re: MinePrime - Minecraft on a Hp Prime!
Post by: alexgt on July 23, 2015, 12:54:43 AM
Quote from: Unicorn on July 22, 2015, 09:05:47 PM
Quote from: alexgt on July 22, 2015, 08:52:24 PM
I can port it to the 84+ since I have one ;)
Then I can port it to  the 83+ SE because I have one. Then someone can port it to the 83+ because they have one :trollface:

Anyways, thats cool :)
I will use Axe so it will be made for the 83+ too
Title: Re: MinePrime - Minecraft on a Hp Prime!
Post by: Unicorn on July 23, 2015, 01:59:21 AM
Yeah, that would be hard to do in BASIC O.O
Title: Re: MinePrime - Minecraft on a Hp Prime!
Post by: alexgt on July 23, 2015, 02:00:05 PM
I would never atempt as I am not nearly good enough to make this at a reasonable speed O.O
Title: Re: MinePrime - Minecraft on a Hp Prime!
Post by: Unicorn on July 23, 2015, 08:22:36 PM
No kidding, I'm actually not so sure about hybrid cse basic either O.O
Title: Re: MinePrime - Minecraft on a Hp Prime!
Post by: alexgt on July 23, 2015, 09:19:59 PM
It will be better I should think but with Axe it should be pretty fast.

Back on topic: I haven't really done anything with MinePrime lately as I am quite busy :P
Title: Re: MinePrime - Minecraft on a Hp Prime!
Post by: Unicorn on July 24, 2015, 12:25:52 AM
It actually will

be fast, I think Im going to need to add some rand( delays. O.O


Anyways, I feel like that screenie is gonna be overhyped :P
Title: Re: MinePrime - Minecraft on a Hp Prime!
Post by: alexgt on July 24, 2015, 01:05:21 AM
I have my computer now but I might not have much time today but I will try.
Also I removed random delays from the last stage as it made it too easy O.O (somehow)
Title: Re: MinePrime - Minecraft on a Hp Prime!
Post by: Unicorn on July 24, 2015, 02:33:05 AM
Oooo Anyways, tomorrow'll be big :) With screenshots.
Title: Re: MinePrime - Minecraft on a Hp Prime!
Post by: DJ Omnimaga on July 24, 2015, 03:07:46 AM
Do you think you will have enough computer access to upload the screenshot before your vacation begins?
Title: Re: MinePrime - Minecraft on a Hp Prime!
Post by: Snektron on July 24, 2015, 11:41:59 AM
Quote from: Unicorn on July 23, 2015, 08:22:36 PM
No kidding, I'm actually not so sure about hybrid cse basic either O.O
Is a shame there is no compiled language for CSE.
Title: Re: MinePrime - Minecraft on a Hp Prime!
Post by: alexgt on July 24, 2015, 01:38:51 PM
Quote from: Unicorn on July 24, 2015, 02:33:05 AM
Oooo Anyways, tomorrow'll be big :) With screenshots.
I have actually run into a road block :-\ even when I do WAIT(0.001) the game still freezes because it has to run through the loop many times to move a block so the simple method of making it wait 0.001 seconds per loop cycle is just way too long (I even tried my UTILPACK milisecind timer and it still froze). So  need to relearn my code and almost completely revamp the timing :(

Quote from: DJ Omnimaga on July 24, 2015, 03:07:46 AM
Do you think you will have enough computer access to upload the screenshot before your vacation begins?

I should, the main question is whether I can make the PC version of the game because as of now you die instantly on PC <_<
Title: Re: MinePrime - Minecraft on a Hp Prime!
Post by: Unicorn on July 24, 2015, 03:27:53 PM
Quote from: alexgt on July 24, 2015, 01:38:51 PM
Quote from: Unicorn on July 24, 2015, 02:33:05 AM
Oooo Anyways, tomorrow'll be big :) With screenshots.
I have actually run into a road block :-\ even when I do WAIT(0.001) the game still freezes because it has to run through the loop many times to move a block so the simple method of making it wait 0.001 seconds per loop cycle is just way too long (I even tried my UTILPACK milisecind timer and it still froze). So  need to relearn my code and almost completely revamp the timing :(
Uh oh....

Quote
I should, the main question is whether I can make the PC version of the game because as of now you die instantly on PC <_<
Uh oh again... It that because of the roadblock?
Title: Re: MinePrime - Minecraft on a Hp Prime!
Post by: alexgt on July 24, 2015, 06:18:36 PM
^ Fixed download on the Nagoji topic
Title: Re: MinePrime - Minecraft on a Hp Prime!
Post by: DJ Omnimaga on July 26, 2015, 04:26:27 AM
If you are trying to slow down the game to run at the same speed on all platforms, you need to use TICKS. It returns the current calculator time in milliseconds. Once you are done rendering the following frame, do TICKS again. Then you run a WAIT command, but you substract the value of the two TICKS from the total wait time. Or maybe something like that.
Title: Re: [Minecraft] [HP Prime] MinePrime - Minecraft on a Hp Prime!
Post by: Snektron on July 26, 2015, 09:20:36 AM
You can also make and update loop and render loop, where the render loop runs at max power, and the update loop runs at for example 1/30th of a sec
(This technique is used in pc games and such too :3)
Title: Re: MinePrime - Minecraft on a Hp Prime!
Post by: alexgt on July 26, 2015, 01:41:56 PM
Quote from: DJ Omnimaga on July 26, 2015, 04:26:27 AM
If you are trying to slow down the game to run at the same speed on all platforms, you need to use TICKS. It returns the current calculator time in milliseconds. Once you are done rendering the following frame, do TICKS again. Then you run a WAIT command, but you substract the value of the two TICKS from the total wait time. Or maybe something like that.
Quote from: Cumred_Snektron on July 26, 2015, 09:20:36 AM
You can also make and update loop and render loop, where the render loop runs at max power, and the update loop runs at for example 1/30th of a sec
(This technique is used in pc games and such too :3)
It is fixed but the problem was that I had a delay of 900+LEVEL*25 (in other words I made my own WAIT() function) so even if I delayed it 1 millisecond per loop it would delay it much more so I just increased 900 to ~15000 :3
Title: Re: MinePrime - Minecraft on a Hp Prime!
Post by: Unicorn on July 27, 2015, 03:58:09 AM
So do we have to wait 2 weeks for a screenshot?
Title: Re: MinePrime - Minecraft on a Hp Prime!
Post by: alexgt on August 12, 2015, 02:37:06 PM
It has been very busy for me (tommorow I am leaving for my Uncles house again to straighten out some stuff and will be back sunday and then possibly taking a road trip with my friends <_<) I am very sorry for the delay but there is not much I can do about it :(
Title: Re: MinePrime - Minecraft on a Hp Prime!
Post by: DJ Omnimaga on August 12, 2015, 03:11:46 PM
You should convince your friends to do a road trip to Quebec if they don't mind french :P

Can't wait for your return but nice to see you again nonetheless :walrii:
Title: Re: MinePrime - Minecraft on a Hp Prime!
Post by: Unicorn on August 12, 2015, 06:21:29 PM
eh, ots fine. Have a great time on your roadtrip though!
Title: Re: MinePrime - Minecraft on a Hp Prime!
Post by: alexgt on August 21, 2015, 06:12:34 PM
Thanks, So next week possibly today I will get some screenies out (How many times have I said that before <_< :P)
Title: Re: MinePrime - Minecraft on a Hp Prime!
Post by: DJ Omnimaga on August 21, 2015, 08:56:16 PM
As long as you aren't on a permanent road trip and out of school for 2 years or something :P

Good luck
Title: Re: [Minecraft] [HP Prime] MinePrime - Minecraft on a Hp Prime!
Post by: iso on August 22, 2015, 03:16:44 PM
New here and just reviewed the entire thread, it's really great to see how much progress has been made. It's very impressive.
Title: Re: MinePrime - Minecraft on a Hp Prime!
Post by: alexgt on August 23, 2015, 11:50:01 PM
Quote from: DJ Omnimaga on August 21, 2015, 08:56:16 PM
As long as you aren't on a permanent road trip and out of school for 2 years or something :P

Good luck
Lol :P

Quote from: iso on August 22, 2015, 03:16:44 PM
New here and just reviewed the entire thread, it's really great to see how much progress has been made. It's very impressive.
Hey, and welcome to the forums do you have a Prime? also thanks ;)
Title: Re: [Minecraft] [HP Prime] MinePrime - Minecraft on a Hp Prime!
Post by: iso on August 24, 2015, 12:07:44 AM
I don't have a Prime, just my trusty TI-84 Plus Silver Edition.
Title: Re: MinePrime - Minecraft on a Hp Prime!
Post by: DJ Omnimaga on August 24, 2015, 01:44:20 PM
You should download the HP Prime emulator at ftp://ftp.hp.com/pub/calculators/Prime/ :D (it's free but it's Windows-only) since it would probably let you play this game (providing alexgt added speed limits or timers, otherwise the game will run much faster than on the real calc and become unplayable)
Title: Re: MinePrime - Minecraft on a Hp Prime!
Post by: alexgt on August 24, 2015, 03:50:59 PM
Quote from: DJ Omnimaga on August 24, 2015, 01:44:20 PM
You should download the HP Prime emulator at ftp://ftp.hp.com/pub/calculators/Prime/ :D (it's free but it's Windows-only) since it would probably let you play this game (providing alexgt added speed limits or timers, otherwise the game will run much faster than on the real calc and become unplayable)
You can use it on calc (the movement is really fast tho but block breaking and placing is the same)

I forget have I uploaded the version that you can break/ place blocks???
Title: Re: MinePrime - Minecraft on a Hp Prime!
Post by: DJ Omnimaga on August 24, 2015, 07:22:51 PM
I haven't seen any version allowing us to place blocks yet ???
Title: Re: MinePrime - Minecraft on a Hp Prime!
Post by: alexgt on August 25, 2015, 01:01:12 AM
Ok, I will make sure there are no big bugs and release that version :)
Title: Re: MinePrime - Minecraft on a Hp Prime!
Post by: Unicorn on August 25, 2015, 04:31:38 AM
Well, thats what these releases are for! bugs! Will it work for the emu?
Title: Re: MinePrime - Minecraft on a Hp Prime!
Post by: alexgt on August 26, 2015, 01:38:06 PM
Well testing and unknown bugs...
Title: Re: MinePrime - Minecraft on a Hp Prime!
Post by: Unicorn on August 28, 2015, 06:44:55 AM
Exactly. So when can we expect a/an alpha/beta to play?
Title: Re: MinePrime - Minecraft on a Hp Prime!
Post by: DJ Omnimaga on August 30, 2015, 05:08:04 PM
That reminds me, in reference to CW, maybe you could add an :walrii: mob or something but make it inoffensive and indestructible (or at least make it so it flies away once you hit it).
Title: Re: MinePrime - Minecraft on a Hp Prime!
Post by: alexgt on September 02, 2015, 05:43:54 AM
Quote from: Unicorn on August 28, 2015, 06:44:55 AM
Exactly. So when can we expect a/an alpha/beta to play?
No promises as they have all fell through <_< but when I have time and start school (I will spend more time on the computer and then upload and program more frequently) but as it stands I need to take one bug out and then I am left with a perfectly playable early alpha realease ;)

Quote from: DJ Omnimaga on August 30, 2015, 05:08:04 PM
That reminds me, in reference to CW, maybe you could add an :walrii: mob or something but make it inoffensive and indestructible (or at least make it so it flies away once you hit it).
Ans if somehow you kill it it haunts your world forever, but if you tame it it poops diamonds into nearby chests O.O
Title: Re: MinePrime - Minecraft on a Hp Prime!
Post by: Unicorn on September 02, 2015, 06:41:05 AM
Ok, and I actually do more coding to, as I have less time for gaming :P

Maybe it poops random things on the geound?
Title: Re: MinePrime - Minecraft on a Hp Prime!
Post by: alexgt on September 02, 2015, 04:14:16 PM
Quote from: Unicorn on September 02, 2015, 06:41:05 AM
Ok, and I actually do more coding to, as I have less time for gaming :P

Maybe it poops random things on the geound?
Why I don't think that it could poop things on the ground would be that I don't actually intend to implement items outside of the inventory (you can't drop stuff and when you mine blocks it is placed in your inventory)
Title: Re: MinePrime - Minecraft on a Hp Prime!
Post by: Unicorn on September 02, 2015, 04:25:20 PM
yeah... I guess that would be hard to implement
Title: Re: MinePrime - Minecraft on a Hp Prime!
Post by: alexgt on September 02, 2015, 09:53:15 PM
Yeah if I did do it they would probably count as mobs and it would get laggy fast _<_<
Title: Re: MinePrime - Minecraft on a Hp Prime!
Post by: DJ Omnimaga on September 04, 2015, 03:40:31 PM
Yeah dropped items and being able to pick stuff up on the group might be too slow. Imagine if you used TNT and 40 items got dropped.
Title: Re: MinePrime - Minecraft on a Hp Prime!
Post by: alexgt on September 04, 2015, 04:00:24 PM
Quote from: DJ Omnimaga on September 04, 2015, 03:40:31 PM
Yeah dropped items and being able to pick stuff up on the group might be too slow. Imagine if you used TNT and 40 items got dropped.
User inflicted error - not my problem :P
Title: Re: MinePrime - Minecraft on a Hp Prime!
Post by: DJ Omnimaga on September 05, 2015, 04:28:33 AM
True, but there are probably other more common instances where many items get dropped and managing all of those mobs or sprites would still put strain on the game engine.
Title: Re: MinePrime - Minecraft on a Hp Prime!
Post by: Unicorn on September 06, 2015, 05:18:04 AM
yup. Make sure to note that mods, of you put them in, need to not overload the calc O>O
Title: Re: MinePrime - Minecraft on a Hp Prime!
Post by: nullweist on October 17, 2015, 09:57:38 PM
Has a version that supports block breaking been released?
Title: Re: MinePrime - Minecraft on a Hp Prime!
Post by: DJ Omnimaga on October 17, 2015, 10:29:48 PM
Hi Andrew Weist and welcome to the forums. UNfortunately nope, since the author appears to have disappeared from the calculator scene (whether it's permanently or temporarily is unknown) :(. I don't know when or if this project will ever be updated again.
Title: Re: MinePrime - Minecraft on a Hp Prime!
Post by: alexgt on October 29, 2015, 10:51:44 PM
I have accidentally deleted it from my calc which was the latest version, I have a backup but I don't know how up to date it is. I will check if it has block breaking.
Title: Re: MinePrime - Minecraft on a Hp Prime!
Post by: alexgt on October 29, 2015, 11:00:26 PM
Yep, I checked ;).
UPDATE TIME!!!!

- Moved project ti GitHub
- Movement!!
- Better rendering
- Block Breaking
- Block Placing
- Gravity
- No progress for past month...

Download and readme in GitHub:
https://github.com/alexgt9123/MinePrime
Title: Re: MinePrime - Minecraft on a Hp Prime!
Post by: DJ Omnimaga on October 31, 2015, 05:15:47 AM
Wow nice to see block placing finally added. I was worried that this feature would never see the light of the day due to the lack of updates. I'll try to install this on my calc when I have some time. Do you plan to make it open-source in the future to allow other people to contribute, in case you cannot find anymore time to finish this?
Title: Re: [Minecraft] [HP Prime] MinePrime - Minecraft on a Hp Prime!
Post by: Snektron on October 31, 2015, 10:39:08 AM
The source is on github and it's public; so it's already open source ;)
Title: Re: MinePrime - Minecraft on a Hp Prime!
Post by: alexgt on November 01, 2015, 02:57:37 AM
Any one is free to do anything with any of my projects just as long as they give credit where credit is due ;)
Title: Re: MinePrime - Minecraft on a Hp Prime!
Post by: DJ Omnimaga on November 04, 2015, 06:26:43 AM
Quote from: Cumred_Snektron on October 31, 2015, 10:39:08 AM
The source is on github and it's public; so it's already open source ;)
True, but sometimes people put source on Github with no license and no license apparently means "all rights reserved".


By the way, you should make the readme warn about having to ON+SYMB before launching the game, because the game needs all the memory it can get and a soft reset will clear it out. Else the game just shows the spreadsheet or will only partially load then skip to the spread sheet.

I like the work as always, btw. I am running it on my calc as I write this and I'm happy that it's finally updated :walrii:


EDIT: Darn it exits to the spread sheet as soon as I hit the arrow keys :(. I think your game requires too much RAM. EDIT Fixed after deleting several games. It looks nice and I like how you jump automatically when reaching higher platforms.
Title: Re: MinePrime - Minecraft on a Hp Prime!
Post by: alexgt on November 12, 2015, 01:35:13 AM
^Thank you....

But...

I think I have to restart again, I can't get it working on my calc xD so what I am going to do is make a code editor so I can organize my stuff and then program it on that so I won't have to start over just because I can't read it <_<
Expect major developments on a IDE for the Prime because I really want to work on Mineprime <_<

AHHGRRRSDFIDEFGonsfivdsifonaisNBAOUBD(*&^#%)@#$&^)#Q its not that bad though I will optimize it further so like you said it won't crash because of RAM restrictions (I hope <_<) <_< I still am mad tho <_<
Title: Re: MinePrime - Minecraft on a Hp Prime!
Post by: DJ Omnimaga on November 12, 2015, 07:51:22 AM
One thing to keep in mind is that the calc has 16 MB of RAM for the user or perhaps less, since the OS uses half of it. Using a massive GROB for the map you navigate through is probably not a good idea as a result, as the data gets large very fast. It's best to use tilemapping via a minimap stored in a GROB, a 2D array or list containing the tilemap data. It might be slower that way but it would take much less space.
Title: Re: MinePrime - Minecraft on a Hp Prime!
Post by: alexgt on November 12, 2015, 05:27:16 PM
Quote from: DJ Omnimaga on November 12, 2015, 07:51:22 AM
One thing to keep in mind is that the calc has 16 MB of RAM for the user or perhaps less, since the OS uses half of it. Using a massive GROB for the map you navigate through is probably not a good idea as a result, as the data gets large very fast. It's best to use tilemapping via a minimap stored in a GROB, a 2D array or list containing the tilemap data. It might be slower that way but it would take much less space.
That is what I did in MinePrime 2.0 :P
|
\/
Quote from: alexgt on July 07, 2015, 03:15:21 PM
Quote from: DJ Omnimaga on July 07, 2015, 02:52:46 AM
Awesome! Does it still use a large image to store the map? I can't wait to try the new version :)
Nope, the new world size is 500x100 so I couldn't imagine a 8000x1600 GROB containing 12,800,000 pixels O.O so I just have one 352x272 GROB that has a 16 pixel buffer on all sides so you can display the screen and then generate the new terrain of screen :)

Quote from: Unicorn on July 07, 2015, 03:07:48 AM
Quote from: DJ Omnimaga on July 07, 2015, 02:52:46 AM
Awesome! Does it still use a large image to store the map? I can't wait to try the new version :)
^ Ditto Hopefuly there won't be a red flashing player :P
Just got on the computer to work on custom skins :P

I will have the same method in MinePrime v3.0 though but way more optimized ;)
Title: Re: MinePrime - Minecraft on a Hp Prime!
Post by: DJ Omnimaga on November 15, 2015, 06:03:49 AM
Ah I see I missed that part. I hope you can solve the memory issues, if any. Would DIMGROB_P every GROB (1 through 9) to 1x1 pixel on startup free up RAM used by GROB's in other games?
Title: Re: MinePrime - Minecraft on a Hp Prime!
Post by: alexgt on November 15, 2015, 10:49:17 PM
Definitely, that would free up tons of RAM, also clearing all matrices and list would help. So long as games don't store stuff in lists and matrices from runtime to runtime (which is a bad practice anyways) there should be no trouble ;)
Title: Re: MinePrime - Minecraft on a Hp Prime!
Post by: DJ Omnimaga on November 16, 2015, 09:58:26 PM
I am unsure if clearing matrices out is a good idea, though, because if they are used by a math program I am unsure if students will like if a game overwrites all their school stuff. KInda like how some people dislikes when BASIC games don't restore the graph screen content on exit.
Title: Re: MinePrime - Minecraft on a Hp Prime!
Post by: alexgt on November 16, 2015, 10:54:27 PM
Very true, then I would test if it is large matrix like 50x50 or greater in size, if you have any school problem with that size of a matrix then you need to talk to your teacher :P.
Title: Re: MinePrime - Minecraft on a Hp Prime!
Post by: DJ Omnimaga on November 18, 2015, 12:27:26 AM
On a side note you should add options to allow the user to choose between creative and survival, even if they wouldn't do much for now. In creative mode we would be able to destroy blocks instantly with anything.
Title: Re: MinePrime - Minecraft on a Hp Prime!
Post by: alexgt on November 18, 2015, 01:19:42 AM
Yeah, that would also be useful for testing too :) I will start on this right away after I finish SynText (I started making SynText so I could neatly code this on calc xD).
Title: Re: MinePrime - Minecraft on a Hp Prime!
Post by: DJ Omnimaga on November 21, 2015, 08:22:42 AM
Word of advice: If you are gonna experiment with SynText when developing MinePrime, backup often at first, because I remember programming stuff in the official HP PPL editor, only to end up with a calculator crash and losing either my code or the entire file. We never know what might happen.
Title: Re: MinePrime - Minecraft on a Hp Prime!
Post by: alexgt on December 10, 2015, 07:05:21 PM
I will have it so it will automatically save if you want but if you save and then reset you will not loose any code because it directly saved to the RAM, when I get SynText done I am starting on MinePrime ;)
Title: Re: MinePrime - Minecraft on a Hp Prime!
Post by: DJ Omnimaga on December 10, 2015, 07:20:55 PM
Ah I see now. That would definitively help.

Also, how long does it take to save?
Title: Re: MinePrime - Minecraft on a Hp Prime!
Post by: alexgt on December 10, 2015, 07:48:12 PM
Depends how long the program is but all I have to do is put the lines together into a string from the list and store the string into the program (I can do that in under 10 lines of code and have the sub to combine the list into a string already made)

So it should be really fast even for a large program ;)
Title: Re: MinePrime - Minecraft on a Hp Prime!
Post by: DJ Omnimaga on December 11, 2015, 04:47:34 AM
On a side note, if SynText ever died or stalled for 2 years for example, does it mean that MinePrime would stop for as long? O.O
Title: Re: MinePrime - Minecraft on a Hp Prime!
Post by: alexgt on December 11, 2015, 08:40:33 PM
No, I want to get SynText done soon (or useable) because I want to let other people use it and I will completely move to programming with SynText when it is finished. So it will not go down for 2 years (progress has slowed because of the walrii contest tho). If I do not finish though then I will just do what I am doing now with the regular editor to make the code readable.
Title: Re: MinePrime - Minecraft on a Hp Prime!
Post by: DJ Omnimaga on December 12, 2015, 10:04:00 AM
Ah ok I was wondering in case SynText was a very large scale (eg larger than MinePrime) that might take even longer and you recently had two periods of hiatus including one where you were extremely busy.
Title: Re: MinePrime - Minecraft on a Hp Prime!
Post by: alexgt on December 13, 2015, 07:26:03 AM
Yeah, as of now though I really only need to add the text display and editing to the main list and I can release/use a functional version and if I focused on it it would take less than a week, but all my time is taken with Zampy's quest since I estimate it will take a better part of a month to complete :P
Title: Re: MinePrime - Minecraft on a Hp Prime!
Post by: DJ Omnimaga on December 16, 2015, 09:19:51 AM
Good move I think. That said, try to not make Zampy Quest too big. Maybe start with a mini game with less features than planned first, get it done as soon as possible, then if you still have extra free time, add features. Else a deadline or the scale of a project can easily be underestimated.
Title: Re: MinePrime - Minecraft on a Hp Prime!
Post by: alexgt on December 16, 2015, 02:00:07 PM
I have all of the physics done so I just need to add enemies and levels ;)
Title: Re: MinePrime - Minecraft on a Hp Prime!
Post by: DJ Omnimaga on December 19, 2015, 10:03:04 PM
That's good. We should move the discussion to the Zampy Quest thread now I think :)
Title: Re: MinePrime - Minecraft on a Hp Prime!
Post by: alexgt on December 19, 2015, 10:35:27 PM
Yep! Poor MinePrime, won't get worked on for a whole month :'(
Title: Re: MinePrime - Minecraft on a Hp Prime!
Post by: DJ Omnimaga on December 24, 2015, 03:48:07 AM
It's ok, just don't do like some people with 20 projects that never get finished because the author jumps from one project to another :P
Title: Re: MinePrime - Minecraft on a Hp Prime!
Post by: alexgt on December 31, 2015, 09:50:40 PM
Yeah, it is hard with 4 projects, let alone more O.O
Title: Re: MinePrime - Minecraft on a Hp Prime!
Post by: DJ Omnimaga on January 07, 2016, 05:28:04 AM
By the way, you should really use your Zampy Quest engine for this game, at least for walking, because from the contest screenshots it really looked smooth. Also maybe allow destroying blocks with the keypad as an option (maybe the numpad?)
Title: Re: [Minecraft] [HP Prime] MinePrime - Minecraft on a Hp Prime!
Post by: kegwaan on January 07, 2016, 11:45:12 AM
Quote from: DJ Omnimaga on January 07, 2016, 05:28:04 AM
By the way, you should really use your Zampy Quest engine for this game, at least for walking, because from the contest screenshots it really looked smooth. Also maybe allow destroying blocks with the keypad as an option (maybe the numpad?)
When you say using the numpad, do you mean directional controls similar to Portal Prelude and Portal Returns? Or do you mean using the numbers to move an on-screen cursor?
Title: Re: MinePrime - Minecraft on a Hp Prime!
Post by: alexgt on January 07, 2016, 12:59:21 PM
Quote from: kegwaan on January 07, 2016, 11:45:12 AM
Quote from: DJ Omnimaga on January 07, 2016, 05:28:04 AM
By the way, you should really use your Zampy Quest engine for this game, at least for walking, because from the contest screenshots it really looked smooth. Also maybe allow destroying blocks with the keypad as an option (maybe the numpad?)
When you say using the numpad, do you mean directional controls similar to Portal Prelude and Portal Returns? Or do you mean using the numbers to move an on-screen cursor?
Yep that is what he means

Quote from: DJ Omnimaga on January 07, 2016, 05:28:04 AM
By the way, you should really use your Zampy Quest engine for this game, at least for walking, because from the contest screenshots it really looked smooth. Also maybe allow destroying blocks with the keypad as an option (maybe the numpad?)
Yeah, I am going to re write the engine of MinePrime but I a going to use a different collision detection system because a side effect of keeping it loaded in the spread sheet is it calculates the out come more than you need it to, making more lag. It is fine for a platformer like Zampy's quest since it rests after every level but if you are playing for 20 min + you will run out of RAM <_<
Title: Re: MinePrime - Minecraft on a Hp Prime!
Post by: DJ Omnimaga on January 14, 2016, 06:50:16 PM
Oh right, I forgot about the apps thing such as how the game actually uses a cellsheet thing. It would be cool if HP allowed us to use apps that don't contain anything, so that they're closer to real apps.

As for running out of RAM, that seems like a serious memory leak issue that needs to be fixed (is it due to an HP bug)?
Title: Re: MinePrime - Minecraft on a Hp Prime!
Post by: alexgt on January 22, 2016, 03:24:15 AM
Quote from: DJ Omnimaga on January 14, 2016, 06:50:16 PM
Oh right, I forgot about the apps thing such as how the game actually uses a cellsheet thing. It would be cool if HP allowed us to use apps that don't contain anything, so that they're closer to real apps.

As for running out of RAM, that seems like a serious memory leak issue that needs to be fixed (is it due to an HP bug)?
Meh, Memory problems are a thing of the past! I was get a young padawan in the ways of HP PPL, I am now a MASTER!!! :P

To conserve space I am taking the matrix as completely out of the RAM as possible, that should cut the size down a lot. I will use pixel test for collision I think.

I made updates to the first post so the download will be current!

Also I am starting back up on this and SynText to!


EDIT: I searched MinePrime in google and 8 pictures of it came up, all within the first 30 O.O
Title: Re: MinePrime - Minecraft on a Hp Prime!
Post by: DJ Omnimaga on January 22, 2016, 05:46:46 AM
But to use the calc to its full potential, you still need to stop rendering the entire game map into a large GROB like you did with Zampy's Quest. Normally, games only render what's in the screen, then when scrolling around it renders the 15 or 20 missing tiles from outside the screen. :P


And nice about Google. I noticed this topic is among the most viewed topics in the forum stats too. I hope it eventually gets released (as well as Zampy's Quest)
Title: Re: MinePrime - Minecraft on a Hp Prime!
Post by: alexgt on January 22, 2016, 12:48:24 PM
Yeah, I am still figuring it out :P I might use the matrix but if there is anything that is a good alternative I will use it ;)
Title: Re: [Minecraft] [HP Prime] MinePrime - Minecraft on a Hp Prime!
Post by: alexgt on January 24, 2016, 04:37:19 AM
Ok, so I got everything worked out how I am not going to use matrices at ALL!!! AND have HUGE worlds, many block types, super fast load speeds, barely any RAM consumption, minimaps, super ubber precise collision, and did I mention a 2000x150 map being able to be stores in 130KB *.*

Well enough with the suspense, since the Prime uses base ten for colors every pixel has a value from 0 to 16,777,121 (or something). We can read that value with a command like GETPIX_P(), so we can use colors on a GROB as variables, map data, or huge matrices! And since I am using an app you can store hundreds of Maps in the archive (I have lots of space taken up in the archive and I still have ~200MB free!! That means 153 2000x15 size maps O.O). So now the biggest things that took up RAM, huge pre-loaded GROBs for rendering the world and a huge matrix are no longer a problem. The dream of having a 500x150 world that didn't suck up all the RAM now fits in 96 bytes!

So MinePrime will be back better and faster than EVAR!!!!!!!!!
[spoiler=WARNING loooottttsss of emojis]:w00t: :w00t: :w00t: >:D >:D 8) 8) O.O ;D (-_(//)); :ninja: :love: :crazy: :blah: >B) >:D >:D >:D :P :P :P O.O O.O O.O :w00t: :w00t: (-_(//)); (-_(//)); :love: :thumbsup: :crazy: :crazy: :banghead: :blah: <_< :love: :love: :ninja: :ninja: :ninja: :w00t: :w00t: (-_(//)); (-_(//)); (-_(//)); (I am excited :P)[/spoiler]
Title: Re: MinePrime - Minecraft on a Hp Prime!
Post by: DJ Omnimaga on January 24, 2016, 06:01:14 AM
Do you mean 2000x150 tiles or an actual picture of the rendered map? GETPIX seems like a nice solution although larger than matrices, because if you ever make a game with your own maps then you can edit your maps on Paint, GIMP or whatever image editor you like, then import the image data for use with GETPIX. I never actually tried using that command for collision, though.

In any case, that is a good move. Just don't render the entire map every frame :P (even rendering the 21x16 every frame would be slow, although 15 FPS is still bearable)

Also why use so many emoticons when one :walrii: can do the job? :P
Title: Re: MinePrime - Minecraft on a Hp Prime!
Post by: alexgt on January 24, 2016, 07:35:55 AM
2000x150 pixels and their color would represent the block value. And I will be doing what I did for the old version which is just rendering one line of blocks, one block off screen. Also I just used AFilesB("Test") to get the size of the GROB and it is actually smaller than a matrix O.O (it is still compressed but either way t is much smaller than a matrix).

and you meen this walrii (https://codewalr.us/omnomirc_www/smileys/rainbowwalrii3b.gif) :P
Title: Re: MinePrime - Minecraft on a Hp Prime!
Post by: DJ Omnimaga on January 24, 2016, 08:35:04 AM
Ah ok, and yeah rendering the line of blocks that is off-screen and scrolling in would be better (providing that you check for diagonal movement). And yeah that's the walrus I mean but I was too lazy to go to the fanart thread :P


Good luck!
Title: Re: MinePrime - Minecraft on a Hp Prime!
Post by: alexgt on January 24, 2016, 03:25:10 PM
Yup that is what I meant. And a matrix that is 50x15 (what I used for Zampy's Quest) is just over 20KB so GROBs are certainly smaller, IDK why since they have to store color and transparency values also.
Title: Re: [Minecraft] [HP Prime] MinePrime - Minecraft on a Hp Prime!
Post by: SiphonicSugar on January 25, 2016, 04:10:07 AM
You know, too bad that I will never get an HP calculator... This version of Minecraft looks really promising!
Title: Re: MinePrime - Minecraft on a Hp Prime!
Post by: alexgt on January 25, 2016, 04:48:05 AM
Never say never :P. But you can play in the emulator ;)
Title: Re: [Minecraft] [HP Prime] MinePrime - Minecraft on a Hp Prime!
Post by: SiphonicSugar on January 25, 2016, 05:11:12 AM
Lol, okay... :P
Title: Re: MinePrime - Minecraft on a Hp Prime!
Post by: DJ Omnimaga on January 26, 2016, 08:01:58 AM
Quote from: alexgt on January 24, 2016, 03:25:10 PM
Yup that is what I meant. And a matrix that is 50x15 (what I used for Zampy's Quest) is just over 20KB so GROBs are certainly smaller, IDK why since they have to store color and transparency values also.
Probably because the HP Prime uses 32768 colors instead of 65536. That's the trade-off for having transparency support, I think.
Quote from: SiphonicSugar on January 25, 2016, 04:10:07 AM
You know, too bad that I will never get an HP calculator... This version of Minecraft looks really promising!
Sorry to hear. It would have been cool if you got the Prime D:

You can use the emulator and connectivity kit, though, to code.
Title: Re: [Minecraft] [HP Prime] MinePrime - Minecraft on a Hp Prime!
Post by: alexgt on January 26, 2016, 09:20:44 PM
I got a new and improved title screen!
(https://codewalr.us/proxy.php?request=http%3A%2F%2Fi.imgur.com%2FNo9Ojgl.png&hash=f03619391d3c4e16ceae8d781fc4d9df2ed16d01)

Update (Kinda):
- Added 73 new blocks (ID list will be updated when I get around to it :P)
- Added break animations (not in the game but are there in .png form)
- Didn't code anything for gameplay (focusing on making the code readable and understandable)

Made poll about how big world size should be! (Voting will end when it becomes irrelevant to current progress :P)
Title: Re: [Minecraft] [HP Prime] MinePrime - Minecraft on a Hp Prime!
Post by: Dudeman313 on January 26, 2016, 11:06:03 PM
Nice! With my emulator, I'll get to play Minecraft for the very first time when this is finished!
Title: Re: MinePrime - Minecraft on a Hp Prime!
Post by: alexgt on January 27, 2016, 12:28:18 AM
Well it certainly won't be finished soon (I started this in early 2015 so almost a year later it is at v3 and hardly any coed has been written xD) but progress is being made ;)
Title: Re: MinePrime - Minecraft on a Hp Prime!
Post by: DJ Omnimaga on January 28, 2016, 08:43:14 AM
Wow this looks even better. How did you do the text by the way? Did you make the background a big picture instead of a tilemap? Did you use special text effects for the 3D perspective on the copyright or did you just draw it on a gray background so that you can still have anti-aliasing without noticeable artifacts?

As for world size, I think it should be 500x150 for maximum features and less RAM hiccups
Title: Re: MinePrime - Minecraft on a Hp Prime!
Post by: alexgt on January 28, 2016, 05:45:36 PM
I used http://textcraft.net/ for the text so the MINEPRIME logo is made by me, then I just used GIMP 2 to copy the stone, ore, player, and pickaxe textures into one layer and outputted it as a .png so I could add it to the app.

There is an update and I will record a screen shot but all it is is the level selector menu. It has touch scrolling too (exactly like SIFS but more optimized and faster ;))

And also @timwessman there is a bug (I think) it throws errors when you use length() in a for loop like this:

LOCAL FileList
FileList:=AFiles();
FOR A FROM 1 TO length(FileList) DO
//Code
END;

And it isn't a problem with AFiles() or that it is a LOCAL var (I tried not using both)

I have it working but I just used length outside of any loops ;)

EDIT: Video!
https://youtu.be/szp10o7aihE
Title: Re: [Minecraft] [HP Prime] MinePrime - Minecraft on a Hp Prime!
Post by: timwessman on January 28, 2016, 06:47:11 PM
Change it to SIZE(...) rather then length(...) and you will work fine I think. Basically, CAS commands don't have access to local variables yet in your version.

As a general rule, avoid any commands in lowercase. Those will be CAS commands and be much, much slower then the uppercase ones.
Title: Re: MinePrime - Minecraft on a Hp Prime!
Post by: alexgt on January 28, 2016, 06:57:20 PM
oh really, cool I didn't know that ;) thanks (and I forgot about SIZE to xD)
Title: Re: MinePrime - Minecraft on a Hp Prime!
Post by: SiphonicSugar on January 28, 2016, 11:40:41 PM
Quote from: DJ Omnimaga on January 26, 2016, 08:01:58 AM
Quote from: alexgt on January 24, 2016, 03:25:10 PM
Yup that is what I meant. And a matrix that is 50x15 (what I used for Zampy's Quest) is just over 20KB so GROBs are certainly smaller, IDK why since they have to store color and transparency values also.
Probably because the HP Prime uses 32768 colors instead of 65536. That's the trade-off for having transparency support, I think.
Quote from: SiphonicSugar on January 25, 2016, 04:10:07 AM
You know, too bad that I will never get an HP calculator... This version of Minecraft looks really promising!
Sorry to hear. It would have been cool if you got the Prime D:

You can use the emulator and connectivity kit, though, to code.
Well, maybe I might get it... You convince me... And also it seems like it is  really fast...
Title: Re: MinePrime - Minecraft on a Hp Prime!
Post by: alexgt on January 29, 2016, 01:23:40 AM
The connectivity kit and emu is free ;)
Title: Re: MinePrime - Minecraft on a Hp Prime!
Post by: DJ Omnimaga on January 29, 2016, 01:29:34 AM
Quote from: alexgt on January 29, 2016, 01:23:40 AM
The connectivity kit and emu is free ;)
^this. You don't even need a ROM.
Title: Re: MinePrime - Minecraft on a Hp Prime!
Post by: alexgt on January 29, 2016, 01:52:58 AM
Another update!
- Added New World menu, includes Big World, Med World, Small World, and Custom world. Since that was kinda the census of the poll (So the poll is taken down since it has been decided ;))
- Working on world generation
- Working on basic player movement and map drawing after world gen in some what working (I just need a world to test stuff in)
- Completed world loading and creating inderectly (I just have to add one more line for world loading. For creating I just need to finish the GenRandoWorld() function :P)
Title: Re: MinePrime - Minecraft on a Hp Prime!
Post by: DJ Omnimaga on January 29, 2016, 07:48:44 AM
Did you change the main sprite placeholder to the one shown in the title screen, by the way? Also I thought that world generation was already done a few months ago? Glad to see new progress, though! :)
Title: Re: MinePrime - Minecraft on a Hp Prime!
Post by: alexgt on January 29, 2016, 01:08:31 PM
No, I am completely redoing the game again (but more optimized) and the world generator is being redone with looking ahead to bigger mechanics, since I am using GROBs for map data I need to recode the game (again), but a big plus is the collision will be super accurate because how PIXON_P() works ex:

PIXON_P(25,25);
//Works the same as
PIXON_P(25.99999999999,25.999999999)

Both of those will display a pixel at (25,25) even though one is almost 26 it will still not round up!
Title: Re: MinePrime - Minecraft on a Hp Prime!
Post by: DJ Omnimaga on January 29, 2016, 10:48:00 PM
Is the recoding the one you restarted recently or are you actually restarting the game from scratch as of today? O.O

Also yeah I like how decimals work on the HP Prime for graphics.
Title: Re: MinePrime - Minecraft on a Hp Prime!
Post by: alexgt on January 30, 2016, 12:58:57 AM
That screen shot is from one day of work (but that was a few days ago :P) now I am working on rendering and VERY simple world gen (superflat world like the CW server xD) just so I can implement and test player movement.

For world gen I have these vars: OreSpawnFreq, TreeSpawnFreq, WaterLevel, OreSpawnLevel, TerrainNoise, WorldName, SizeX, SizeY. and I am nowhere near figuring actually using them all :P
Title: Re: MinePrime - Minecraft on a Hp Prime!
Post by: alexgt on January 31, 2016, 05:15:36 AM
I ran into a slight (ok very major) problem. It is going to be very hard to use GROBs to store data in, the values I found increment by eight. so if you store 20 in a pixel it will round to 24 (ok so no big deal just add 8 instead of one and when you need to get a value just divide the GETPIX_P() val by 8) but logically the next step would be 32, right? Well nope, it is 33 ??? I don't know why but it just does that, I have used other values and it isn't too major. 80 turns into 82, that can be fixed by doing this: IP(GETPIX_P(G9,0,0)/8) but if it fluctuates to much it could display the wrong block. I will look and see if I can get around this tomorrow. If this is a bug I hope @timwessman can solve it :-\
Title: Re: MinePrime - Minecraft on a Hp Prime!
Post by: DJ Omnimaga on January 31, 2016, 11:46:53 PM
Hm that sucks man. I hope there is a workaround. I assume this is for tilemapping, right? What about tile based collision rather than pixel by pixel?
Title: Re: MinePrime - Minecraft on a Hp Prime!
Post by: alexgt on February 01, 2016, 01:59:41 AM
Yeah, this is for the map, I still could use it for collision but I would still have to use a matrix for the map, this still might be accurate enough though, I could even choose values that would work. I have not run into any problems that I have noticed, maybe it is not exponential on how much the value changes from what it should be. I don't know as I haven't really tested it too much yet <_<. I hope tim contacts us, I will make a topic on hp museum just in case ;)

I think I can make it work tho it will be much harder to do so :P
Title: Re: MinePrime - Minecraft on a Hp Prime!
Post by: DJ Omnimaga on February 01, 2016, 02:06:56 AM
I think matrix-based collision would still be fine. It would just be akward. For example you would probably need to divide the character position by 16, but keep track of the decimals so that when they are higher or lower than a certain amount (depending of which direction you are facing and if you are jumping or falling) to check for walls. Or you could just go the cheap route of centering wall boundaries in the middle of the tiles and allow the character to move 8 pixels into walls.

I wouldn't wait until the bug is fixed, though, otherwise it could take like half a year before MinePrime resumes O.O
Title: Re: MinePrime - Minecraft on a Hp Prime!
Post by: alexgt on February 01, 2016, 02:14:27 AM
Yeah, no kidding, but I used matrix collision for Zampy's quest and I had to majorly optimise it for it to run that fast, pixel collision would be blazing fast. For example if Zampy's quest was written with pixel collision it would be at least 2.5X faster, so fast I would have to slow it down. That is because with matrix collision I had to calculate 4 places in the matrix if you were moving left/ right/ jumping if you were moving left/ right while jumping then it has to calculate 6 places simultaneously slowing it down tons. Pixel detection is not only faster but if each pixel represented a block the max pixels you would have to check would only be 2 O.O.
Title: Re: [Minecraft] [HP Prime] MinePrime - Minecraft on a Hp Prime!
Post by: alexgt on February 03, 2016, 02:44:31 PM
Post from HP Museum
Quote from: alexgt
Quote from: Tim Wessman

Why? 75000chars*2 bytes, will be much smaller then a graphical representation.

my_string:="1234"
mystring(3)  --> 3
mystring(3):="4" ->"1244"

That last one will even do direct access to the string - no memory allocations involved - so it should be rather fast too.

I think what I will do is make a list that is the height of the world and store strings in each of those elements ;)

So progress will resume ;)
Title: Re: MinePrime - Minecraft on a Hp Prime!
Post by: Unicorn on February 03, 2016, 06:26:14 PM
So can we expect a new screenshot soon? I'm excited to see this progress more, I may buy a prime soon...
Title: Re: MinePrime - Minecraft on a Hp Prime!
Post by: alexgt on February 03, 2016, 06:31:36 PM
Well, no moar progress has been made since the last one, but I have found a solution to world storage as you saw. So I will start on world creation and then get cracking on other stuff ;)
Title: Re: MinePrime - Minecraft on a Hp Prime!
Post by: DJ Omnimaga on February 14, 2016, 08:40:32 PM
Thanks for the tip about strings by the way. I use them for map storage in some BASIC games and it's usually quite small. But it can be weird to replace a string element.
Title: Re: MinePrime - Minecraft on a Hp Prime!
Post by: aeTIos on March 05, 2016, 03:10:10 PM
*poke*

This thing still alive? it's been a month since the last update.
Title: Re: MinePrime - Minecraft on a Hp Prime!
Post by: DJ Omnimaga on March 05, 2016, 08:59:30 PM
This is not how to poke. You must do *pokes @alexgt * :3=
Title: Re: [Minecraft] [HP Prime] MinePrime - Minecraft on a Hp Prime!
Post by: Dudeman313 on March 05, 2016, 09:09:45 PM
I didn't even notice who started the project...then again, I didn't notice when I became a Super User... :P
Title: Re: MinePrime - Minecraft on a Hp Prime!
Post by: alexgt on March 08, 2016, 01:17:13 PM
This is still being worked on I just didn't have time in the past few weeks with FRC Robotics... so now I will be more active.

I also have freecodecamp to complete which takes lots of time... so I will not have that much time for MinePrime.
I could really use some help with this project though. Feel free to contact me if you do ;)
Title: Re: [Minecraft] [HP Prime] MinePrime - Minecraft on a Hp Prime!
Post by: Dudeman313 on March 08, 2016, 02:39:22 PM
Oh! I completely forgot FCC existed... :P
Title: Re: MinePrime - Minecraft on a Hp Prime!
Post by: alexgt on March 08, 2016, 03:57:29 PM
Yeah, I was at a competition for half the weekend and after that I was away from home xD
Title: Re: MinePrime - Minecraft on a Hp Prime!
Post by: DJ Omnimaga on March 08, 2016, 05:45:55 PM
Sorry to hear @alexgt . I hope you had fun with your two competitions, though. Is Freecodecamp ending soon or is it a recurring event or something that lasts all year long?

As for Mineprime I doubt many people can help, though, since not many people make HP Prime games, but we never know. I just hope that you still don't mind continuing this project even if no one decides to help.
Title: Re: MinePrime - Minecraft on a Hp Prime!
Post by: alexgt on March 09, 2016, 01:10:41 PM
I intend to finish it, I am still trying to get a good way to store data. I will probably go back to large matrices and just handle them so they won't have a large impact on memory.

Freecodecamp is a long course so it will take me a long while, probably into 2017.

I can do it on my own but the time I have in the summer to work on it could be taken by cross country and robotics <_<

I will start again before I have spring break and work on it super hard on spring break.

Updates will hopefully be soon :P
Title: Re: MinePrime - Minecraft on a Hp Prime!
Post by: DJ Omnimaga on March 10, 2016, 08:27:04 AM
What current data do you use? IIRC on Omnimaga there was a topic with benchmarks about which way is faster, but I forgot where is it. Just as long as you don't stick to storing the entire map into a massive GROB, so that players don't land on a spreadsheet everytime they run the app. >.<

Hopefully you stick around no matter what. But good luck. :)
Title: Re: MinePrime - Minecraft on a Hp Prime!
Post by: alexgt on May 05, 2016, 01:36:35 AM
Quote from: DJ Omnimaga on March 10, 2016, 08:27:04 AM
What current data do you use? IIRC on Omnimaga there was a topic with benchmarks about which way is faster, but I forgot where is it. Just as long as you don't stick to storing the entire map into a massive GROB, so that players don't land on a spreadsheet everytime they run the app. >.<

Hopefully you stick around no matter what. But good luck. :)
Well I came back! And figured out and planned the entire engine of the game! So YaY.

I totally re-write the first post and my plan is completely explained in the first spoiler in the first post ;)

And also I am not going to set dates for updates since we all know how that goes for me... instead I will just post it ;)
Title: Re: MinePrime - Minecraft on a Hp Prime!
Post by: DJ Omnimaga on May 05, 2016, 06:50:57 AM
I hope the engine doesn't get rewritten over and over, though. That's how most projects die >.< (and that is also how certain projects takes over 9 years to reach completion or beta stage, like Escheron, which started in 2007 as Lost Legends II), but sometimes it's for the best.

ANyway I like the new ideas, especially the color for block durability idea. :)
Title: Re: MinePrime - Minecraft on a Hp Prime!
Post by: Unicorn on May 05, 2016, 06:53:32 AM
Seeing this get to a releasable state would be amazing, get right to it!
Title: Re: MinePrime - Minecraft on a Hp Prime!
Post by: alexgt on May 05, 2016, 11:47:38 AM
Quote from: DJ Omnimaga on May 05, 2016, 06:50:57 AM
I hope the engine doesn't get rewritten over and over, though. That's how most projects die >.< (and that is also how certain projects takes over 9 years to reach completion or beta stage, like Escheron, which started in 2007 as Lost Legends II), but sometimes it's for the best.

ANyway I like the new ideas, especially the color for block durability idea. :)
Yeah, the 3rd engine will be the charm hopefully.

Quote from: Unicorn on May 05, 2016, 06:53:32 AM
Seeing this get to a releasable state would be amazing, get right to it!
It will hopefully keep up the pace I am going ;)

Also world generation will be much more complex. But we will see how that goes :P
Title: Re: MinePrime - Minecraft on a Hp Prime!
Post by: DJ Omnimaga on May 05, 2016, 06:18:36 PM
On a side note, one idea I have is when you wander in an area that is a cavern, the screen gets darker and darker the farther you get under a roof or away from lava/fire. It would be quite rudimentary compared to Minecraft 2D shading on the Nspire but it would still look quite realistic. I don't know hard it would be to implement, though.
Title: Re: MinePrime - Minecraft on a Hp Prime!
Post by: alexgt on May 06, 2016, 11:28:35 AM
I would just use fillpoly with alpha. But if I wanted to decrease shading and everything I could calculate in real time (which would be really slow) or I could use a large GROB like for collision and load that before the world loads. at max it would be 500x150 if that is what I keep the max world size, but it will probably be smaller...
Title: Re: MinePrime - Minecraft on a Hp Prime!
Post by: DJ Omnimaga on May 07, 2016, 02:03:43 AM
Something you could do if you can manage to implement a dynamic shading algorithm would be to pre-generate it after the map is loaded, then only update it when you destroy blocks. Just like in the real Minecraft game, updating blocks at the top would take longer and some lag might occur, but I guess it would be bearable.
Title: Re: MinePrime - Minecraft on a Hp Prime!
Post by: alexgt on May 10, 2016, 02:05:42 AM
Quote from: DJ Omnimaga on May 07, 2016, 02:03:43 AM
Something you could do if you can manage to implement a dynamic shading algorithm would be to pre-generate it after the map is loaded, then only update it when you destroy blocks. Just like in the real Minecraft game, updating blocks at the top would take longer and some lag might occur, but I guess it would be bearable.
Yep that is about how I planned to do it ;).
That would call for another GROB but it will only be as large as the collision GROB. I also have to be careful and conserve as much on those as possible since I only have 9 xD
Title: Re: MinePrime - Minecraft on a Hp Prime!
Post by: DJ Omnimaga on May 10, 2016, 02:34:42 AM
You can actually use 1 GROB for multiple buffers. Just offset the second buffer so it's lower in the GROB. :P But don't run out of RAM. (I think 9 GROBs that are 320x240 each will take over 1.4 MB of RAM in total.)
Title: Re: MinePrime - Minecraft on a Hp Prime!
Post by: alexgt on May 10, 2016, 11:54:33 AM
Yeah, I have the largest world size down to 250x150 so the world matrix will not take up so much space. And yeah, you can use 1 GROB to have multiple sprites (possibly in multiple zooms), that is what I use to get blocks.
Title: Re: [Minecraft] [HP Prime] MinePrime - Minecraft on a Hp Prime!
Post by: p4nix on May 10, 2016, 12:35:46 PM
Can't you implement a chunk-like system? This is what I had in mind when I started to program something minecraft like for my calc. I guess it's not too hard.
Title: Re: MinePrime - Minecraft on a Hp Prime!
Post by: alexgt on May 10, 2016, 01:52:18 PM
I guess I could, but what would I use chunks for? I could use them for lighting updates but I was going to do that in a 6x6 area around the block that changed it's light level. Unless there is something I am missing...

One thing that I am in the dark about it how to store tile entities <_< eg: Chests Furnaces, anything that stores blocks inside
Title: Re: [Minecraft] [HP Prime] MinePrime - Minecraft on a Hp Prime!
Post by: p4nix on May 10, 2016, 03:32:23 PM
A chunk system could make it possible to save RAM and make a huge (depending on the size of your memory) world. I'm currently trying to program a kind of Minecraft clone too for my calculator, but I will wait to make a post since it doesn't make sense in that early state right now...
Title: Re: MinePrime - Minecraft on a Hp Prime!
Post by: alexgt on May 10, 2016, 04:33:02 PM
Ohhh, I think I get what you mean. you could just load the world around you xD like a 3x3 chunk radius and have the rest of the world stored out of ram!

I should still be able to so that with the method I am using right now.

Thanks for the suggestion!
Title: Re: MinePrime - Minecraft on a Hp Prime!
Post by: DJ Omnimaga on May 10, 2016, 06:56:15 PM
Yeah with chunks you could basically keep the world split into smaller worlds, such as 128x128. When you get close to the edge of the chunk it would load the next chunk into RAM (with noticeable lag though) or vice versa. I don't know if it would be necessary, though, because I doubt many people will have unlimited worlds on their calcs. But it could be handy if you want for example 512x128 worlds but don't have enough RAM.
Title: Re: MinePrime - Minecraft on a Hp Prime!
Post by: alexgt on May 11, 2016, 12:54:39 AM
Yeah, I think chunks will be separated into 20x15 blocks since that is the screen size and load 9 at a time. but I don't think that it will work too well with the way I am restoring the worlds, unless I skipped the whole using AFilesB() thing. The reason being that if you try to store something into AFilesB you cannot just insert it in there you have to store a whole list into it, so at one piont the entire world data has to mbe in RAM <_<. so I would have to store individual chunks into multiple files making it very messy...

So I might use chunks but that would just be for updates.
Title: Re: MinePrime - Minecraft on a Hp Prime!
Post by: DJ Omnimaga on May 11, 2016, 04:05:19 PM
Ah I see. That seems like a big inconvenience. I guess the best thing then would be to make the world as large as you can (keeping it small enough so you don't need to reboot the calc everytime you play the game due to running out of RAM, but large enough so the world can be like 250x150 or so) but not use any chunk.
Title: Re: MinePrime - Minecraft on a Hp Prime!
Post by: alexgt on May 11, 2016, 04:40:03 PM
Yep, now if in the next updates we could have folders in AFiles() that would be amazing O.O Then I wold gladly use chunks. But by then I ill probably have the game mostly complete and just be adding features not major parts to it.
Title: Re: [Minecraft] [HP Prime] MinePrime - Minecraft on a Hp Prime!
Post by: p4nix on May 11, 2016, 04:42:58 PM
Folders are a great thing to have xD I'm still trying to figure out a nice data format for the blocks and the textures and stuff if my Minecraft clone really gets a thing - which I doubt :P
Title: Re: MinePrime - Minecraft on a Hp Prime!
Post by: alexgt on May 11, 2016, 05:24:49 PM
What calc are you making it on?
Title: Re: [Minecraft] [HP Prime] MinePrime - Minecraft on a Hp Prime!
Post by: p4nix on May 11, 2016, 05:27:53 PM
Casio fx9860GII (the SH4 one).
Title: Re: MinePrime - Minecraft on a Hp Prime!
Post by: alexgt on May 11, 2016, 06:39:50 PM
Nice (even though I don't have one :P)! Have you made any progress?
Title: Re: MinePrime - Minecraft on a Hp Prime!
Post by: DJ Omnimaga on May 12, 2016, 04:11:33 AM
I hope you can manage to complete it p4nix, as well as First Fantasy: Mana Force. :)


Anyway alexgt I wonder how cool it would look like if when you went in lava or water your character became 50% transparent?
Title: Re: MinePrime - Minecraft on a Hp Prime!
Post by: alexgt on May 12, 2016, 11:43:45 AM
That would work, but it would also me cool if the character was displayed behind the lava and then the lava was made transparent.
Title: Re: MinePrime - Minecraft on a Hp Prime!
Post by: DJ Omnimaga on May 12, 2016, 09:52:13 PM
But then wouldn't it be slower to draw many translucent lava tiles than just 1 player sprite?
Title: Re: MinePrime - Minecraft on a Hp Prime!
Post by: alexgt on May 13, 2016, 02:03:19 AM
Yeah, but it would look cooler :P. Also I would have to have each loop run in 16.6 repeating milliseconds for it to be 60fps, and 33.3 repeating for 30fps so I am going to try for 30fps or higher. (I only need like 20 for it to look smooth though :P).
Title: Re: MinePrime - Minecraft on a Hp Prime!
Post by: DJ Omnimaga on May 13, 2016, 06:31:13 AM
30 FPS would be fine. That said, even 15 would be ok, considering many calc games run at that speed. Good luck
Title: Re: MinePrime - Minecraft on a Hp Prime!
Post by: alexgt on May 13, 2016, 11:51:30 AM
Yeah, I have been doing some tests and I should definitely be able to make it run quickly. Drawing 15 or 20 blocks to the edges of a GROB only takes 1 millisecond O.O. So if I can keep it below 33.3 milliseconds per loop I can use a wait function at the end that adjusts the wait duration dynamically with the amount of time it takes to run the code up in the actual game loop, that would make lag spikes very few and far between, and the ones there would be wouldn't be noticeable at all :)
Title: Re: MinePrime - Minecraft on a Hp Prime!
Post by: DJ Omnimaga on May 14, 2016, 07:16:06 AM
That is good to hear. I was curious about how updating the screen sides was in terms of speed, since just storing the entire map rendering in a massive GROB was a RAM hog. I'm glad you made the switch :3=
Title: Re: MinePrime - Minecraft on a Hp Prime!
Post by: alexgt on May 15, 2016, 01:11:31 AM
Yeah, I am glad too :P.

Today I got the menus finalized and made the new world menus use the INPUT() command so the GUI isn't that pretty but it works :P And also I have world rendering for the whole screen at once is working to. I just have to design an in game GUI and then I can make a demo where you fly around the world ;).

And hopefully with my experience before I won't have any problems or as many bugs with previous versions xD
Title: Re: MinePrime - Minecraft on a Hp Prime!
Post by: alexgt on May 16, 2016, 07:15:34 PM
Ok, so I have made progress and got a loading bar in :P! Now I just have to make the render'er that renders the sides and the top/bottom. Also the when I render the entire screen (320x240 or 20x15 blocks) it only takes 126 milliseconds to draw 300 BLIT_P() commands O.O. So I will hopefully get the world display working and a collision map generator by the end of today ;)
Title: Re: MinePrime - Minecraft on a Hp Prime!
Post by: DJ Omnimaga on May 16, 2016, 08:13:32 PM
I wonder how it looks like now :). Did you add the main character in the game?
Title: Re: MinePrime - Minecraft on a Hp Prime!
Post by: alexgt on May 16, 2016, 08:22:24 PM
No, I have just made world rendering but I am working on my PC for skins right now.
Title: Re: MinePrime - Minecraft on a Hp Prime!
Post by: DJ Omnimaga on May 16, 2016, 08:37:13 PM
Ah ok. I was wondering since it has been a year since the game character was just a red rectangle. :trollface:
Title: Re: MinePrime - Minecraft on a Hp Prime!
Post by: alexgt on May 16, 2016, 09:47:40 PM
Yeah, this time I am ironing out the little things as I go (That is why I haven't got a playable version yet) I just want to not over look anything with the essential stuff ;)
Title: Re: MinePrime - Minecraft on a Hp Prime!
Post by: DJ Omnimaga on May 17, 2016, 03:29:03 AM
Yeah it's a good move. I wish you good luck :3=
Title: Re: MinePrime - Minecraft on a Hp Prime!
Post by: alexgt on May 17, 2016, 11:52:39 AM
Just have some bugs to be worked out with collision map generation.
Title: Re: MinePrime - Minecraft on a Hp Prime!
Post by: DJ Omnimaga on May 17, 2016, 04:14:52 PM
Which bug are they? I never really tried collision detection on tilemaps that are tile-based but have smooth movement between tiles. Sometimes in Axe I just used a second map with a different tileset that served for pixel-testing but that was twice slower :P

How are you doing it and how do you check for each side?
Title: Re: [Minecraft] [HP Prime] MinePrime - Minecraft on a Hp Prime!
Post by: alexgt on May 18, 2016, 03:13:14 AM
I am using a GROB that is the same size as the world (as in the number of blocks not a huge one, more like 200x150 so not that big). Then I just go through the morld matrix and use this equation to make the colors different shades: 100*BlockID so BlockID is the id of the block pulled from the matrix, so I can use this as  a durability map to (the lower the color is the faster you can break it and so on). And if a pixel is equal to 0 then that means there is air there, and also there is no collision then ;).

For detecting what the color is I use GETPIX_P().

But I have collision map generation done and we can move on. (Now to world rendering which I am kinda rethinking so smoothscrolling will be easier).

Also I need a couple BETA testers!
All you need is a PC (with the emu) or an HP Prime!

I will hopefully make the game run on the PC and calc at the same fps so you won't have to install two separate games xD.

If you want to test it out e-mail me at [email protected]
Title: Re: MinePrime - Minecraft on a Hp Prime!
Post by: Unicorn on May 18, 2016, 03:49:07 AM
I would like to beta test!

Also, can we get some screenshots?
Title: Re: MinePrime - Minecraft on a Hp Prime!
Post by: alexgt on May 18, 2016, 04:12:16 AM
Quote from: Unicorn on May 18, 2016, 03:49:07 AM
I would like to beta test!

Also, can we get some screenshots?

Awesome!

And about the screenshots there isn't that much to screenshot right now but when I get some notable stuff I will definitely post some pics ;)
Title: Re: MinePrime - Minecraft on a Hp Prime!
Post by: DJ Omnimaga on May 19, 2016, 08:00:09 PM
I would like to be beta-tester for sure. Just tell mr if I need OS 10077 (I'm not in an hurry to upgrade :P)
Title: Re: MinePrime - Minecraft on a Hp Prime!
Post by: alexgt on May 19, 2016, 08:50:27 PM
Awesome! I don't think you would have to upgrade but if you have persistent problems you might have to do so :/
Title: Re: MinePrime - Minecraft on a Hp Prime!
Post by: DJ Omnimaga on May 19, 2016, 09:48:56 PM
Ah ok. I was asking since you were considering using alpha blending for lava and such.
Title: Re: MinePrime - Minecraft on a Hp Prime!
Post by: alexgt on May 20, 2016, 12:08:46 PM
Well that won't be for quite a while, and hat depends if it slows it down too much :P So for now I think you can use it on the old OS
Title: Re: MinePrime - Minecraft on a Hp Prime!
Post by: DJ Omnimaga on May 20, 2016, 06:28:40 PM
Yay! By the way did you plan to send the demo soon?
Title: Re: MinePrime - Minecraft on a Hp Prime!
Post by: alexgt on May 20, 2016, 08:03:11 PM
I plan to send the demo out before the end of may (hopefully before the end of next week). That should give me time to implement some gameplay and stuff while sorting out very major and obvious bugs :P
Title: Re: MinePrime - Minecraft on a Hp Prime!
Post by: DJ Omnimaga on May 21, 2016, 04:34:02 AM
Quote from: alexgt on May 20, 2016, 08:03:11 PM
I plan to send the demo out before the end of may (hopefully before the end of next week). That should give me time to implement some gameplay and stuff while sorting out very major and obvious bugs :P
May 2016? :trollface:

More seriously, I wish you good luck implementing all the stuff again. I hope this is the last rewrite >.<. Otherwise if there was for example a 4th rewrite then this could probably alienate some fans and make them stop reading the topic altogether (like what happened with Escheron, which has been under development for 9 years as a result of so many rewrites)
Title: Re: [Minecraft] [HP Prime] MinePrime - Minecraft on a Hp Prime!
Post by: Dudeman313 on May 21, 2016, 03:02:57 PM
Or like Pokemon Purple?
Title: Re: MinePrime - Minecraft on a Hp Prime!
Post by: alexgt on May 22, 2016, 01:36:33 AM
Quote from: DJ Omnimaga on May 21, 2016, 04:34:02 AM
Quote from: alexgt on May 20, 2016, 08:03:11 PM
I plan to send the demo out before the end of may (hopefully before the end of next week). That should give me time to implement some gameplay and stuff while sorting out very major and obvious bugs :P
May 2016? :trollface:

More seriously, I wish you good luck implementing all the stuff again. I hope this is the last rewrite >.<. Otherwise if there was for example a 4th rewrite then this could probably alienate some fans and make them stop reading the topic altogether (like what happened with Escheron, which has been under development for 9 years as a result of so many rewrites)
Yes, May 2016 :P

And yeah, I noticed that only you and Dudeman were posting on here :P. But I have actually been making lots of progress, today I made a little mock up and was able to navigate through the world. And with that mock up it looks like 30 fps could be possible... but it could drop if I implement mobs (I have hardly any idea on how to do those :P). I am pushing to distribute closed BETA next weekend though, I just hope no game breaking bugs make themselves present xD
Title: Re: [Minecraft] [HP Prime] MinePrime - Minecraft on a Hp Prime!
Post by: Dudeman313 on May 22, 2016, 03:57:35 AM
Sounds good. Too bad I don't have an HP Prime or enough time to figure out how to use the free emulator.
Title: Re: MinePrime - Minecraft on a Hp Prime!
Post by: DJ Omnimaga on May 22, 2016, 04:13:16 AM
Quote from: alexgt on May 22, 2016, 01:36:33 AM
Quote from: DJ Omnimaga on May 21, 2016, 04:34:02 AM
Quote from: alexgt on May 20, 2016, 08:03:11 PM
I plan to send the demo out before the end of may (hopefully before the end of next week). That should give me time to implement some gameplay and stuff while sorting out very major and obvious bugs :P
May 2016? :trollface:

More seriously, I wish you good luck implementing all the stuff again. I hope this is the last rewrite >.<. Otherwise if there was for example a 4th rewrite then this could probably alienate some fans and make them stop reading the topic altogether (like what happened with Escheron, which has been under development for 9 years as a result of so many rewrites)
Yes, May 2016 :P

And yeah, I noticed that only you and Dudeman were posting on here :P. But I have actually been making lots of progress, today I made a little mock up and was able to navigate through the world. And with that mock up it looks like 30 fps could be possible... but it could drop if I implement mobs (I have hardly any idea on how to do those :P). I am pushing to distribute closed BETA next weekend though, I just hope no game breaking bugs make themselves present xD
Yeah that might have something to do with the HP Prime lack of popularity (we need to find a way to get the HP Prime coders to check forums other than HP museum :P) or perhaps game delays. But most people tend to not reply unless they have suggestions nowadays it seems. Considering it's the largest thread here I would say it's quite popular :P

I can't wait for the beta. Good luck fixing any bug left :)
Title: Re: MinePrime - Minecraft on a Hp Prime!
Post by: Lionel Debroux on May 22, 2016, 07:44:27 AM
Dudeman: there's nothing special about installing and using the computer version of the Prime software, which is not an emulator :)
Title: Re: MinePrime - Minecraft on a Hp Prime!
Post by: DJ Omnimaga on May 22, 2016, 06:39:57 PM
I think he means he doesn't know how to use the calculator at all.
Title: Re: [Minecraft] [HP Prime] MinePrime - Minecraft on a Hp Prime!
Post by: Dudeman313 on May 22, 2016, 08:09:34 PM
It's just so confusing. It's touchscreen? It's not touchscreen? Make up your mind, HP!
And how exactly do you do a file transfer??
Title: Re: MinePrime - Minecraft on a Hp Prime!
Post by: DJ Omnimaga on May 22, 2016, 08:52:39 PM
You can control the program and app launcher, along with the home screen without the touchscreen
Title: Re: MinePrime - Minecraft on a Hp Prime!
Post by: alexgt on May 22, 2016, 11:10:09 PM
Quote from: Dudeman313 on May 22, 2016, 08:09:34 PM
It's just so confusing. It's touchscreen? It's not touchscreen? Make up your mind, HP!
And how exactly do you do a file transfer??
Just made an updated tutorial ;)
https://www.youtube.com/watch?v=hR5z5BdYsaQ
Title: Re: MinePrime - Minecraft on a Hp Prime!
Post by: DJ Omnimaga on May 23, 2016, 12:57:22 AM
I think what would be cool is if you also made a text tutorial with screenshots in a forum post in a new topic. It could definitively be stickied
Title: Re: MinePrime - Minecraft on a Hp Prime!
Post by: alexgt on May 23, 2016, 11:37:38 AM
Sure thing ;). And have you had any luck with uploading Apps btw?
Title: Re: MinePrime - Minecraft on a Hp Prime!
Post by: DJ Omnimaga on May 23, 2016, 08:10:36 PM
Do you mean creating my own apps or just installing them? I could install them fine after a few tries and a reboot but I didn't figure out how to actually create them.
Title: Re: MinePrime - Minecraft on a Hp Prime!
Post by: alexgt on May 24, 2016, 12:21:09 PM
Quote from: DJ Omnimaga on May 23, 2016, 08:10:36 PM
Do you mean creating my own apps or just installing them? I could install them fine after a few tries and a reboot but I didn't figure out how to actually create them.
I was talking about installing them, which it looks like you just have to edit the apps program code a little with a comment and then it will save 100% of the time.

But I should make a tutorial on how to make apps also. It is the same as a program but you just save (or make a copy of an app) and then you edit the source code and change the EXPORT AppName() to EXPORT START() or START() and just program it is usual. I will still make a tutorial if I have time ;).


UPDATE:
So I am working with camera movement so you can scroll around the world but I am working out a bug that when the world scrolls left the screen flickers, I found the cause (something is displaying the GROB 16 pixels over for one frame every 16 frames but I don't know the exact command that does so <_<).

Other than that everything seems to be working smoothly ;).
Title: Re: MinePrime - Minecraft on a Hp Prime!
Post by: DJ Omnimaga on May 24, 2016, 04:35:30 PM
Glad to see new progress :3=
Title: Re: MinePrime - Minecraft on a Hp Prime!
Post by: alexgt on May 24, 2016, 07:22:12 PM
Thanks ;). I don't think I will have collision implemented by the end of the month though <_<. But that should be relatively easy to implement (famous last words :P)
Title: Re: MinePrime - Minecraft on a Hp Prime!
Post by: DJ Omnimaga on May 24, 2016, 09:23:22 PM
If you have any issue with implementing collision detection, then you could maybe post your code in a separate HP PPL topic if you need any help :)
Title: Re: MinePrime - Minecraft on a Hp Prime!
Post by: alexgt on May 25, 2016, 03:08:23 AM
Yeah, that should not be a problem hopefully since the pixel placement mechanics are perfect for my application ;). Though displaying the world with a 352x272 GROB isn't working like I would have hoped <_<. But don't worry I won't chicken out and make a 16000x10000 GROB :P.
Title: Re: MinePrime - Minecraft on a Hp Prime!
Post by: DJ Omnimaga on May 25, 2016, 04:22:54 AM
Or worse, imagine if you went the cheap route of using two GROB's (one with the real game sprites and another with just black and white that is used for collision detection) like I did with Supersonic Ball on the 84+ :P


As for the 352x272 GROB good luck. This seems like the ideal way to do it IMHO, but it can be difficult to figure out which side you need to redraw <_< (you can always redraw all sides every frame but still)
Title: Re: MinePrime - Minecraft on a Hp Prime!
Post by: alexgt on May 25, 2016, 11:41:29 AM
Yeah, I could draw all sides but that isn't the problem, I know what is causing it but I can't seem to find out how to fix it xD
Title: Re: MinePrime - Minecraft on a Hp Prime!
Post by: DJ Omnimaga on May 26, 2016, 03:02:04 AM
What is causing it? Also I wonder if there should be a separate map engine made available even if MinePrime isn't released, as some sort of lib or template, released in CW archives? That could be handy for people who wants to develop platformers or something quickly.
Title: Re: MinePrime - Minecraft on a Hp Prime!
Post by: alexgt on May 26, 2016, 11:37:02 AM
Quote from: DJ Omnimaga on May 26, 2016, 03:02:04 AM
What is causing it? Also I wonder if there should be a separate map engine made available even if MinePrime isn't released, as some sort of lib or template, released in CW archives? That could be handy for people who wants to develop platformers or something quickly.
I can do that ;). I am not exactly sure but I think I have narrowed it down it the bug is almost crushed.

I also added world loading ;)
Title: Re: MinePrime - Minecraft on a Hp Prime!
Post by: DJ Omnimaga on May 27, 2016, 06:44:36 AM
Yay! How long does it take to load a world now, by the way?
Title: Re: MinePrime - Minecraft on a Hp Prime!
Post by: alexgt on May 27, 2016, 11:44:50 AM
Currently it takes 2 seconds to load a world (that time will probably not change). And to generate a new world takes 9 seconds, that will vary since world generation will be much more complex latter ;)
Title: Re: MinePrime - Minecraft on a Hp Prime!
Post by: DJ Omnimaga on May 28, 2016, 12:44:01 AM
O.O that's not much! I remember the last public version took over 20 seconds to load worlds. 

Also I thought of something: I wonder if the game would slow down too much if you added a pseudo 3D effect to the map with a background? That's assuming you have enough space for extra sprites, though, although you could always just use plain rectangles. Basically, what you would need to do is have about 8 map layers, one with 16x16 tiles (the current layer), one with 15x15 blocks, the other 14x14, then 13x13, and those extra layers would scroll slightly slower. All tiles would be pre-rendered in a GROB, unless they're just rectangles with a gradient. Basically it would be parallax scrolling with 7 parallax layers, except they would be very close to the front layer and just be slowed down slightly.
Title: Re: MinePrime - Minecraft on a Hp Prime!
Post by: alexgt on May 29, 2016, 02:40:06 PM
UPDATE!
- Fixed world jittery bug (made one zero into 0.9375 :P)
- Now camera movement is sorted
- Noticed bug with world rendering and have to fix that
- Closed BETA will be released at the end of the month (tomorrow ;))
- Remember to email me if you want to be in closed BETA ;)!

Quote from: DJ Omnimaga on May 28, 2016, 12:44:01 AM
O.O that's not much! I remember the last public version took over 20 seconds to load worlds. 

Also I thought of something: I wonder if the game would slow down too much if you added a pseudo 3D effect to the map with a background? That's assuming you have enough space for extra sprites, though, although you could always just use plain rectangles. Basically, what you would need to do is have about 8 map layers, one with 16x16 tiles (the current layer), one with 15x15 blocks, the other 14x14, then 13x13, and those extra layers would scroll slightly slower. All tiles would be pre-rendered in a GROB, unless they're just rectangles with a gradient. Basically it would be parallax scrolling with 7 parallax layers, except they would be very close to the front layer and just be slowed down slightly.
Yeah, I am pretty happy with that, the reason why it loads so fast is it only has to generate the collision map ;)

For the pseudo 3D effect I think that it would  slow it down if you did eight layers but  it might work. As of now I have the game loop running with out any time restrictions and it  is running at about 3x as fast as I would like so it may be possible without any noticeable speed drops ;). and also I could turn it on/off in the settings :P..
Title: Re: MinePrime - Minecraft on a Hp Prime!
Post by: DJ Omnimaga on May 29, 2016, 06:18:05 PM
Yay! I can't wait for the closed beta release. Glad you got most issues sorted out :)
Title: Re: MinePrime - Minecraft on a Hp Prime!
Post by: alexgt on May 29, 2016, 10:00:47 PM
awesome! I will hopefully stomp out that bug ;)
Title: Re: MinePrime - Minecraft on a Hp Prime!
Post by: DJ Omnimaga on May 29, 2016, 11:00:12 PM
I missed your 3D comment for some reasons. The trick to avoid lag would be to pre-render every zoomed sprite rather than redraw them everytime. Or you could render them at full size then display the final result zoomed out, which might still lag a bit but not as much as zooming out two entire rows/columns of tiles one tile at a time. But yeah at 8 layers there could definitively be noticeable lag.
Title: Re: MinePrime - Minecraft on a Hp Prime!
Post by: alexgt on May 30, 2016, 01:13:25 PM
Well, I was talking about the lag from displaying the grobs on top of eachother. If I were to do this I would probably use some tileable backgrounds like the ones is Super Mario Bros
Title: Re: MinePrime - Minecraft on a Hp Prime!
Post by: DJ Omnimaga on May 30, 2016, 04:44:30 PM
Oh ok. Yeah I meant tileable backgrounds, but with the same layout as the front map (you would need to update 8 times as many left, right, up and down rows of tiles in map layers, though, which I think might be where the slowdown would occur. It's up to you, though. Just 1 layer of parallax scrolling (maybe a tiny row of clouds at the top, not a fullscreen background?) and the sun/moon would be fine.
Title: Re: MinePrime - Minecraft on a Hp Prime!
Post by: alexgt on May 30, 2016, 08:08:40 PM
Yeah, I think 1 layer would add a lot with no slow down ;)

I will be emailing the BETA to all my testers within 30 minutes ;)
Title: Re: MinePrime - Minecraft on a Hp Prime!
Post by: DJ Omnimaga on May 30, 2016, 08:49:36 PM
Cool. I'll check my e-mails out :)
Title: Re: MinePrime - Minecraft on a Hp Prime!
Post by: alexgt on May 30, 2016, 08:53:54 PM
Just sent it ;)
Title: Re: MinePrime - Minecraft on a Hp Prime!
Post by: DJ Omnimaga on May 30, 2016, 09:07:50 PM
It doesn't work @alexgt  . It just shows the Y= equation screen straight at startup, both in the Virtual Calculator and real calculator. I tried an hard reset and the ON+SYMB soft-reset, then I tried running a program that contained the following at the start, to no avail:

DIMGROB_P(G1,1,1);
DIMGROB_P(G2,1,1);
DIMGROB_P(G3,1,1);
DIMGROB_P(G4,1,1);
DIMGROB_P(G5,1,1);
DIMGROB_P(G6,1,1);
DIMGROB_P(G7,1,1);
DIMGROB_P(G8,1,1);
DIMGROB_P(G9,1,1);


Even after formating my calc via the F C O menu it didn't fix it @alexgt . I think your app is corrupted upon transfer because I clicked the APP in the connectivity kit and the program source is empty. Or it might be exclusively compatible with 10077.

And this, @timwessman , is why I have been insisting for a year that the ICON command inside regular .hpprgm files remains compatible with future firmwares as long as .hpappdir transfer and execution becomes 100% functional.


EDIT: By the way I just upgraded to the newest firmware. This time the program code shows up in the connectivity kit, but the app still won't run. It just shows a spreadsheet. If I try to edit the code, I get a Syntax Error on Line 75 (Tri();)
Title: Re: MinePrime - Minecraft on a Hp Prime!
Post by: alexgt on May 31, 2016, 03:14:41 AM
Check out my last post: http://codewalr.us/1301/39451

I will definitely check Line 75 ;)

My spidy senses are telling my that it is to do with storing vars in the actual spread sheet app <_< I will fix that, send you a copy and see if t works ;)
Title: Re: MinePrime - Minecraft on a Hp Prime!
Post by: DJ Omnimaga on May 31, 2016, 03:42:09 AM
Maybe you might have to avoid relying on app-specific vars and stick to local/global vars, in case. That's unless there is a way to send those vars as part of the app. But it's definitively not an issue on my end since even a freshly formated calc could not run the game and none of the symptoms you mentioned in the other thread happened. That,s unless I am doing something wrong during transfer but I followed your tutorial as described.
Title: Re: MinePrime - Minecraft on a Hp Prime!
Post by: alexgt on May 31, 2016, 03:56:21 AM
I think you are completely right, I only added those into the app because I was lazy but in the next release (hopefully soon) they will be gone ;)
Title: Re: MinePrime - Minecraft on a Hp Prime!
Post by: DJ Omnimaga on May 31, 2016, 04:54:33 AM
I hope it isn't too hard to do. Are variables stored inside apps in different format and are they called differently? Or are they similar enough to not cause any hassle?
Title: Re: MinePrime - Minecraft on a Hp Prime!
Post by: alexgt on May 31, 2016, 05:40:24 AM
No they are almost identical to regular vars ;)
Title: Re: MinePrime - Minecraft on a Hp Prime!
Post by: DJ Omnimaga on June 01, 2016, 03:08:42 AM
Ah that's good. I personally always used the A to Z vars before because that's what I got used to with TI-BASIC but I learned that other HP users don't like when people do that since it can alter their important math values and it's thus considered as bad practice.
Title: Re: MinePrime - Minecraft on a Hp Prime!
Post by: alexgt on June 01, 2016, 11:37:31 AM
I only use A-Z vars when I am testing or need to return a certain var, but I always replace them with custom ones :P
Title: Re: MinePrime - Minecraft on a Hp Prime!
Post by: alexgt on June 06, 2016, 09:39:03 PM
I somehow fixed that bug, and now working on retireing the app vars :P
Title: Re: MinePrime - Minecraft on a Hp Prime!
Post by: DJ Omnimaga on June 06, 2016, 11:27:26 PM
Did you have any luck fixing the map scrolling bug at the bottom of the screen? Also I was wondering what other features were implemented besides scrolling in the demo?
Title: Re: MinePrime - Minecraft on a Hp Prime!
Post by: alexgt on June 07, 2016, 02:33:16 AM
That is the bug I fixed ;) ( guess I could have been more specific :P). So to make it look cooler I thinkk I will start on a skin generator! Then you can put any minecraft skin in the folders and make it into a MinePrime skin ;)
Title: Re: MinePrime - Minecraft on a Hp Prime!
Post by: DJ Omnimaga on June 07, 2016, 02:36:46 AM
Will there be a default skin, though? :P
Title: Re: MinePrime - Minecraft on a Hp Prime!
Post by: alexgt on June 07, 2016, 05:46:30 PM
Yup, right now it is set as dead pool :P
Title: Re: MinePrime - Minecraft on a Hp Prime!
Post by: DJ Omnimaga on June 07, 2016, 09:54:18 PM
It would be nice if we could finally see the main character in action in the game, though. :P
Title: Re: MinePrime - Minecraft on a Hp Prime!
Post by: alexgt on June 08, 2016, 01:58:26 PM
Yeah, I have to work out world gen to get at least a primitive world working and then I can start on collision ;) because as of now there would be no point to world collision because it is one giant block of blocks :P
Title: Re: MinePrime - Minecraft on a Hp Prime!
Post by: DJ Omnimaga on June 08, 2016, 07:40:09 PM
Yeah true. Can you re-use old code from the map generation and adapt it to the new map format, though?

Also you could use a :walrii: as character placeholder for now, even if it's a little large.
Title: Re: MinePrime - Minecraft on a Hp Prime!
Post by: alexgt on June 10, 2016, 08:33:58 PM
Quote from: DJ Omnimaga on June 08, 2016, 07:40:09 PM
Yeah true. Can you re-use old code from the map generation and adapt it to the new map format, though?

Also you could use a :walrii: as character placeholder for now, even if it's a little large.
I could use old code but I have an idea of what I want to do for it ;)

Yeah, right now I am not working a bunch on this (no I am not dropping the project) but I have to get JavaCV and OpenCV working so I am putting all my time into that...
Title: Re: MinePrime - Minecraft on a Hp Prime!
Post by: DJ Omnimaga on June 10, 2016, 09:02:34 PM
What are OpenCV and JavaCV? Are they languages?
Title: Re: [Minecraft] [HP Prime] MinePrime - Minecraft on a Hp Prime!
Post by: TheMachine02 on June 10, 2016, 09:15:30 PM
OpenCV is a library about picture real time treatment and javaCV is the java interface to the lib.  :P
Title: Re: MinePrime - Minecraft on a Hp Prime!
Post by: DJ Omnimaga on June 11, 2016, 12:10:08 AM
Like for dynamic picture or picture editing?
Title: Re: MinePrime - Minecraft on a Hp Prime!
Post by: alexgt on June 13, 2016, 09:34:30 PM
Quote from: TheMachine02 on June 10, 2016, 09:15:30 PM
OpenCV is a library about picture real time treatment and javaCV is the java interface to the lib.  :P
What he said.

Ans OpenCV is an image processing lib
Title: Re: MinePrime - Minecraft on a Hp Prime!
Post by: DJ Omnimaga on June 14, 2016, 01:43:36 AM
I see. Thanks for the info.

On an off-topic note, is Zampy's Quest dead?
Title: Re: MinePrime - Minecraft on a Hp Prime!
Post by: alexgt on June 14, 2016, 11:52:09 PM
Quote from: DJ Omnimaga on June 14, 2016, 01:43:36 AM
On an off-topic note, is Zampy's Quest dead?
At the moment (hence lack of time) but I have put some thought into it lately and if it returns it will use the same engine as in MinePrime ;)
Title: Re: MinePrime - Minecraft on a Hp Prime!
Post by: DJ Omnimaga on June 14, 2016, 11:58:18 PM
Yeah I figured it would probably use the same engine, but with pre-made maps. I was still curious, though, in case.
Title: Re: MinePrime - Minecraft on a Hp Prime!
Post by: DJ Omnimaga on July 06, 2016, 04:28:32 AM
@alexgt it looks like you have some competition now :P (although that other game is different, kinda)

https://www.youtube.com/watch?v=t8qQlLfxIIE
https://www.omnimaga.org/hp-prime/'openworld'-game-for-hp-prime/
Title: Re: MinePrime - Minecraft on a Hp Prime!
Post by: alexgt on July 08, 2016, 12:52:55 PM
It does look like a bit of competition...

I have still been working on this as far as world gen goes so hopefully I will have a new BETA with collision detection and a player ;)
Title: Re: MinePrime - Minecraft on a Hp Prime!
Post by: DJ Omnimaga on July 08, 2016, 08:50:43 PM
Will the player have a sprite? :P I'm also curious about how fast world generation will be.
Title: Re: MinePrime - Minecraft on a Hp Prime!
Post by: alexgt on February 17, 2017, 05:03:19 AM
Well, I am sad to say but this project is officially dead for the foreseeable future :/ if anyone wants to continue it I will be glad to PM them the source but it has been so long since I have worked on it I have no idea what everything does (I do have lots of comments though).

On a side note it looks like the aforementioned competition is dead as well :(.

All in all I recoded the entire game 4 times, the reason I am not continuing this is because I would have to recode it a 5th time xD. So obviously I don't want to do that...

sorry for any disappointment (if any :P)
Title: Re: [Minecraft] [HP Prime] MinePrime - Minecraft on a Hp Prime!
Post by: p2 on February 17, 2017, 06:22:41 AM
Awww  :-\
In fact I am sad about this... even tho I didn't have the necessary hardware I still followed this project and really liked it <3

I can't say I support ur decision but I understand it...  not having worked in a project for a longer time, having forgot how the code works, that's one of the worst things to happen :'(

I really hope someone is willing to continue it for you <3
Title: Re: MinePrime - Minecraft on a Hp Prime!
Post by: alexgt on February 17, 2017, 01:35:30 PM
Quote from: p2 on February 17, 2017, 06:22:41 AM
Awww  :-\
In fact I am sad about this... even tho I didn't have the necessary hardware I still followed this project and really liked it <3

I can't say I support ur decision but I understand it...  not having worked in a project for a longer time, having forgot how the code works, that's one of the worst things to happen :'(

I really hope someone is willing to continue it for you <3
Thanks, I am sad to. I had tried to work on it the past few weeks but I just made the programs hat I was having worse xD. If I ever come back to it I will do a lot better because I have had tons of experience working with HP Apps now (I am currently working on a project with them) and I would be able to make it pretty well, I just don't have time and if I did I would spend it on other things.
Title: Re: MinePrime - Minecraft on a Hp Prime!
Post by: DJ Omnimaga on February 18, 2017, 04:32:48 AM
Sorry to hear. I kinda saw it coming, though, to be honest, due to how many rewrites it got (like what happened to most projects that got so many rewrites. I wish it could at least have been a platformer/tilemapper engine, though, as it would be handy for HP PPL programmers. :(
Title: Re: MinePrime - Minecraft on a Hp Prime!
Post by: alexgt on February 21, 2017, 05:18:46 AM
Yeah, if I were ever to release a world engine I would just write a new one because the ones I made for MinePrime would just be to specialized for it's use case it wouldn't work to well with any other implementation I don't think :/
Title: Re: MinePrime - Minecraft on a Hp Prime!
Post by: DJ Omnimaga on February 21, 2017, 05:23:52 AM
Ah I see. Too bad. A new engine IMHO would probably need to focus on at least jumping and moving around, with maybe allowing a range of blocks to be solid, the middle ones events and the last ones non-solid, and the code would definitively need to be easy to understand by other people, which can be difficult since it's usually hard to read anyone's code.
Title: Re: MinePrime - Minecraft on a Hp Prime!
Post by: alexgt on February 21, 2017, 05:34:25 AM
Yep, but you should see my code for a project I am working on, literally over 95% of the lines have comments, all of it hand typed on the prime (I even made a program to edit sprites on the calculator so I wouldn't use a PC) as a little challenge xD.
Title: Re: MinePrime - Minecraft on a Hp Prime!
Post by: DJ Omnimaga on February 21, 2017, 06:26:07 AM
Which reminds me, do you use that one program editor you made once? I forgot the name.

Also if I had motivation I would still like to do a :walrii: game on the Prime...
Title: Re: MinePrime - Minecraft on a Hp Prime!
Post by: alexgt on February 23, 2017, 01:48:06 PM
No, I wish I finished that editor. It is possible but really time consuming
Title: Re: MinePrime - Minecraft on a Hp Prime!
Post by: DJ Omnimaga on March 19, 2017, 04:00:01 AM
By the way, I'm gonna move this sub-forum in a new inactive/discontinued projects section in the calc projects section in the near future (Mineprime will continue appearing in both those sections). It will be moved back if it ever gets revived in any form.