The shoutbox is currently out of service. Join us on Discord instead.
You can help CodeWalrus stay online by donating here.

[TI84+CSE] DovahCalc CSE

Started by Snektron, April 18, 2015, 11:18:58 pm

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Snektron

April 18, 2015, 11:18:58 pm Last Edit: April 18, 2015, 11:28:43 pm by Cumred_Snektron
I wanted to try out CSE Developement for a while, and i also wanted to see my DovahCalc for the CSE, since it has a higher res. Most of the code is the same, only the menu and the way it loads fonts (because the bitmap layout is ridiculous - i even made a small editor for it).

Turned out quite nice i think. Now, it should chain, but i don't know any font hook for CSE and i didn't really have time either (its 1:17 am and i kinda want to sleep).

EDIT: it looks like DCSE8.1 turns the hook on after a program has ran. thats strange, since DCSE8.1 probably doesnt do chaining correctly, then
Legends say if you spam more than DJ Omnimaga, you will become a walrus...


DJ Omnimaga

Wow that looks even better in high resolution. :D Do you mean it works fine even with DCS installed? I am curious about how First Fantasy looks like with this font. :P

If it worka fine with DCSE and has no adverse effects, do you think you could do some editor? I might be interested for doing something with FFMF.

Snektron

April 19, 2015, 04:25:12 pm #2 Last Edit: April 19, 2015, 09:43:29 pm by Cumred_Snektron
i thied to run it with FFMF and it looks like the hook doesnt work then. It doesnt get removed, it just won't work when inside a program. A normal program does work, though

And yeah it works with DSCE installed, only DCSE does something weird with the chain. i'll have to look at that.
EDIT: it also looks like DCSE removes the hook when running a ti-basic program. verry strange
Legends say if you spam more than DJ Omnimaga, you will become a walrus...


DJ Omnimaga

April 19, 2015, 11:56:31 pm #3 Last Edit: April 20, 2015, 12:01:39 am by DJ Omnimaga
Aw sorry to hear. Do you think it could be fixable? By the way here is a screenshot of FFMF in action with it:



Maybe DCSE removes the hook during BASIC runtime in case of hook conflicts?

Also yeah, it would be nice if it had the option to change other characters too. Some people might want, for example, to replace the theta or delta symbol with a crystal and the weird accented letters to other single-color sprites.

By the way, one thing I wonder that could be the culprit: When DoorsCSE's Celtic color font features get installed, it modifies the behavior of the Output command so that it adds extra lines of pixels below font backgrounds so that the background color fills the entire case. Normally, the TI-OS leaves white horizontal gaps between each line of text.

Snektron

April 20, 2015, 07:00:45 am #4 Last Edit: April 20, 2015, 07:47:58 pm by DJ Omnimaga
Quote from: Kerm Martian
So I created a bit of a fonthook at the expense of about 200 bytes on page 1 that fills in the two pixels below homescreen characters with the background color when DCSE's color-text mode is enabled, like so:

I have two questions for you guys:
1) Should I bother trying to find a safe way to back up and restore any existing font hooks?
2) Should I insist people release their DCSE8 ASM programs unlocked, so that users can see the OpenLib(DoorsCSE) header? With them locked, that header is sort of useless as a hint to download the shell.


I found this post on cemetech (https://www.cemetech.net/forum/viewtopic.php?p=210716), and i think it re-installs the font hook everytime it runs a basic program. As for why it deactivates the font hook after it runs and restores it when disabled via my app, i have absolutely no idea. (Though i suspect it's bad saving/restoring of the hook)

EDIT (DJ): Added link to original Cemetech post
Legends say if you spam more than DJ Omnimaga, you will become a walrus...


DJ Omnimaga

Aaah right that is the post. Thanks for the find. I am thinking that his hook overwrites yours, but I wonder if you could ask him if there are ways to get around it so that custom fonts can be used with this, for example.

Snektron

Yeah, though i think that would require some code change in DCSE itself :/
Legends say if you spam more than DJ Omnimaga, you will become a walrus...


Duke "Tape" Eiyeron

I like the result. This is a good example of how the bigger screen can give more details to simple things like fonts.

Snektron

Thanks :) and thats why i made it
Legends say if you spam more than DJ Omnimaga, you will become a walrus...


DJ Omnimaga

April 20, 2015, 07:45:24 pm #9 Last Edit: April 20, 2015, 07:56:30 pm by DJ Omnimaga
Quote from: Cumred_Snektron on April 20, 2015, 04:37:53 pm
Yeah, though i think that would require some code change in DCSE itself :/
Yeah probably. I wonder if Kerm would be willing to do that (if it's possible) or maybe include a font feature in DCSE. The issue is that the CE is out so it's not clear if DCSE will still be updated

EDIT I brought the matter up with Kerm in case he would like to share a workaround, if any. https://www.cemetech.net/forum/viewtopic.php?p=234325#234325

DJ Omnimaga

Update: Kerm replied to my post at http://www.cemetech.net/forum/viewtopic.php?p=234347#234347 and it appears that the reason why your fonts won't show up when using det(12,?,?,?,? is that det(12 disables chaining due to too much slowdowns. With chaining enabled for a custom font, every character output would require an appvar lookup it seems.

Snektron

yeah thats why i store my hook in a random ram location
Legends say if you spam more than DJ Omnimaga, you will become a walrus...


DJ Omnimaga

Would that get around the speed problem?

Snektron

yeah, that doesnt require some random TI routine :P
Legends say if you spam more than DJ Omnimaga, you will become a walrus...


DJ Omnimaga

Ah ok. And are you 100% sure you aren't overwriting RAM locations used by Doors CSE hooks?

Powered by EzPortal