You can help CodeWalrus stay online by donating here. | New CodeWalrus | Old (dark mode) | Old (light) | Discord server

UtilPack/ UtilComp [hp prime][lib]

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

0
b/Calculator Development publicado por u/alexgt June 20, 2015, 11:33:47 PM
This is UtilPack and UtilComp (I will post a download tomorrow). UtilPack is a lib for the HP Prime! Right now it has three functions:
Functions
GETTIME(); returns the time in a list: {H,M,S}
GETDATE(); returns the date in a list: {Y,M,D}
RUNPROG(Prog); runs Prog (but has the same limitation as SIFS right now (it cannot run programs with arguments in the main function :())

UtilComp will be a UtilPack compiler so when you release the program/ game to the public the user won't have to have UtilPack on their calc.
NOTE: if you have UtilPack on your calc and you are a developer you don't need to compile it because it uses the functions right out of UtilPack ;)
Inicia sesión o crea una cuenta para dejar un comentario
u/Unicorn June 20, 2015, 11:41:17 PM
So is UtilPack kind of like a third party library?
u/Dream of Omnimaga June 21, 2015, 04:12:51 AM
Seems very nice. I am curious if eventually this could be developed into some sort of library for use by HP PPL programmers to make it easier to program games.
u/Snektron June 21, 2015, 04:18:24 PM
Would definitely be awesome :D also we still need a cross compiled language that supports TI 84 +/ CSE / CE and HP Prime too <_<
u/alexgt June 21, 2015, 05:24:26 PM
Quote from: Unicorn on June 20, 2015, 11:41:17 PM
So is UtilPack kind of like a third party library?
Yup.

Quote from: DJ Omnimaga on June 21, 2015, 04:12:51 AM
Seems very nice. I am curious if eventually this could be developed into some sort of library for use by HP PPL programmers to make it easier to program games.
Yeah, that would be awesome! Also anyone can make a Utility for UtilPack, or if you have an idea just post it here and I will try to make it work ;)

Quote from: Cumred_Snektron on June 21, 2015, 04:18:24 PM
Would definitely be awesome :D also we still need a cross compiled language that supports TI 84 +/ CSE / CE and HP Prime too <_<
If only.......

EDIT: Here is a download :)
Last Edit: June 21, 2015, 05:26:53 PM by alexgt
u/Dream of Omnimaga June 25, 2015, 12:37:11 AM
Ok I'll try this soon :) Sorry for not checking sooner, I was quite busy and had lots of posts to catch up on. D:
u/alexgt June 25, 2015, 02:38:43 PM
Meh, all it does right now is tell you the date and time and execute programs semi reliably :P

the real coolness is when I get UtilComp working where it will replace all of the GETTIME(); with the actual code to get the time inside the program O.O
u/Snektron June 25, 2015, 03:12:06 PM
Sounds cool :D
You should add more functions too :P
u/alexgt June 25, 2015, 05:03:48 PM
Quote from: Cumred_Snektron on June 25, 2015, 03:12:06 PM
Sounds cool :D
You should add more functions too :P
I am kind of out of ideas (not that I have really been thinking about it)
I came up with the idea to make this when I got into getting the time (turns out it is allot more complicated than I thought) so I wanted it to be available to anybody :)
Also as I add features to SIFS I am going to add more stuff to this because SIFS is pretty much a UtilPack with a GUI and UtilPack is for easy neat coding :)

Also if anybody has ideas I will add them to UtilPack :)
u/Unicorn June 26, 2015, 01:39:05 AM
Quote from: DJ Omnimaga on June 25, 2015, 12:37:11 AM
Ok I'll try this soon :) Sorry for not checking sooner, I was quite busy and had lots of posts to catch up on. D:

Catching up on posts oh boy! :P

So will this Lib be included in Sifs?
u/Dream of Omnimaga June 29, 2015, 07:00:12 AM
I think a scrolling tilemap routine (that supports actual tilemaps, not just scrolling through a very large pic) would be nice.
u/Unicorn June 29, 2015, 10:10:05 PM
Would creating random tilemaps be feasible? IE a floppy bird thing? RAndom pipe lengths?
u/Dream of Omnimaga July 01, 2015, 05:00:46 AM
Perhaps not specific to Flappy Bird, but I think random maze generation would not be too slow in HP PPL if coded properly.
u/Unicorn July 01, 2015, 09:06:55 AM
Hmm, that woul be nice. (my mind emediatly went to drawing a maze on the CSE's graphscreen ) :P
u/alexgt July 02, 2015, 05:29:00 PM
 :w00t: UPDATE! :w00t:
- Added TWAIT(Duration) Function that waits duration milliseconds :)

This is much better than the WAIT() command because the wait command goes down to 0.0001 (at times I needed a shorter wait believe it or not :P)
Last Edit: July 02, 2015, 06:39:19 PM by alexgt
Start a Discussion

b/Calculator Development

Showcase your newest TI, Casio, HP, Numworks or Sharp calculator projects here, discuss programming and share or browse user tutorials!

320
Topics
Explore Board
Website statistics


MyCalcs | Ticalc.org | Cemetech | Omnimaga | TI-Basic Developer | MaxCoderz | TI-Story | Casiocalc.org | Casiopeia | The Museum of HP Calculators | HPCalc.org | CnCalc.org | Music 2000 Community | TI Education | Casio Education | HP Calcs | NumWorks | SwissMicros | Sharp Calculators
Powered by EzPortal