TIC-80 icon indicating copy to clipboard operation
TIC-80 copied to clipboard

[request] Add ram formats to help command

Open ian5 opened this issue 2 years ago • 21 comments

The new help command in 0.90 can answer most questions about the api and system you might have; at least once you're somewhat familiar with it.

One of the easier things to forget is the actual layout of memory areas; I couldn't tell you the layout of MUSIC PATTERNS off the top of my head, and I doubt many people could.

There's no way to find these in the current version of TIC-80, and so you're left to tab out and move on to the wiki.

I think it'd be nice if a format of something like help ram tiles or help tiles was added, that showed the actual layouts of that ram area.

ian5 avatar Jan 22 '22 21:01 ian5

My 0.02. I'm personally not sure it's good to slowly duplicate all the wiki content inside the application (and also and squeeze it into the tiny TIC-80 screen) - it just doubles the maintenance costs and makes it harder to keep the docs up-to-date/in sync. I've already run into this just a bit with memory maps. With all this text content "static" inside the app it slowly starts to rot and then requires someone manually keep it up-to-date with the wiki, etc...

It feels like if we really want access to the wiki from inside the app then we should build a wiki viewer (or something) that loads wiki content rather than including static versions... though this seems a bit excessive to me.

Having the basic RAM layout and API there, I kind of see the thinking behind that, but I hope it stops soon rather than trying to build a whole help system/wiki into the app...

joshgoebel avatar Jan 25 '22 01:01 joshgoebel

My 0.02. I'm personally not sure it's good to slowly duplicate all the wiki content inside the application (and also and squeeze it into the tiny TIC-80 screen) - it just doubles the maintenance costs and makes it harder to keep the docs up-to-date/in sync.

I agree. Maybe 'help' should cover just the console commands and a 'wiki' command which opens a browser details the API. in the same way that many apps open on-line help from their 'Help' menu these days.

Personally I never use the built-in help, I find it tiresome to read lots of text on such a small display and I'm never sure if it's current... it's worse than my code :D

paul59 avatar Jan 25 '22 08:01 paul59

I often use tic-80 where there is no interwebs, so I'd rather the help api feature stays - at least listing the parameters and return values.

eglavas avatar Jan 25 '22 12:01 eglavas

To be clear I wasn't suggesting we tip the minimal API help out. I think obviously that's something nesbox thinks is valuable, so I'm sure it's staying, I was just suggesting we not go crazy expanding the scope of the built-in help more and more that there are costs to doing so that I hope we're considering.

joshgoebel avatar Jan 25 '22 16:01 joshgoebel

My initial suggestion was just going to be to return the help wiki option, to help streamline things, but I assumed that the team wanted to move away from that, given that they got rid of it.

I'd be happy with either.

ian5 avatar Jan 26 '22 03:01 ian5

Got rid of what?

joshgoebel avatar Jan 26 '22 03:01 joshgoebel

You used to be able to use help wiki to open the wiki directly, but that was removed alongside the addition of the API reference.


From: Josh Goebel @.> Sent: Tuesday, January 25, 2022 10:45:40 PM To: nesbox/TIC-80 @.> Cc: Ian A. Fights @.>; Author @.> Subject: Re: [nesbox/TIC-80] [request] Add ram formats to help command (Issue #1822)

Got rid of what?

— Reply to this email directly, view it on GitHubhttps://github.com/nesbox/TIC-80/issues/1822#issuecomment-1021834340, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AEK3LWJ7V3HYKNEUQR7PJDLUX5U6JANCNFSM5MSOPBVQ. Triage notifications on the go with GitHub Mobile for iOShttps://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Androidhttps://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub. You are receiving this because you authored the thread.Message ID: @.***>

ian5 avatar Jan 26 '22 03:01 ian5

As a variant, we could add something like clickable wiki links somewhere below the API description, or add a special wiki parameter to open the API help on the web.

nesbox avatar Jan 26 '22 09:01 nesbox

As a variant, we could add something like clickable wiki links somewhere below the API description, or add a special wiki parameter to open the API help on the web.

A 'help wiki' seems to make more sense as ian5 says. As it stands, 'help' for some API functions is of limited use, eg 'help key' isn't much use without being able to see the key codes.

paul59 avatar Jan 26 '22 09:01 paul59

isn't much use without being able to see the key codes.

Keycodes are included in the in-app help system also.

joshgoebel avatar Jan 26 '22 14:01 joshgoebel

or add a special wiki parameter to open the API help on the web.

I'm being told we had that before - was there a reason it got removed?

joshgoebel avatar Jan 26 '22 14:01 joshgoebel

isn't much use without being able to see the key codes.

Keycodes are included in the in-app help system also.

I didn't know that - how are they accessed?

paul59 avatar Jan 26 '22 15:01 paul59

or add a special wiki parameter to open the API help on the web.

I'm being told we had that before - was there a reason it got removed?

The reason is that we have most of the docs inside TIC and I wanted to clean up the console commands a bit.

nesbox avatar Jan 27 '22 15:01 nesbox

I didn't know that - how are they accessed?

help buttons and help keys, respectively! :) I added those a couple of weeks ago.

Personally, I love that TIC-80 is self-documenting, and these were some of the most urgent information I felt was missing. I also sometimes use TIC-80 without an Internet connection, and for me, it's nice not having to leave the "fantasy environment". I'm with @ian5 in that I'd like to see more in-depth documentation of the RAM. Could be a couple more tables in the output of help ram? The RAM layout will be extremely static anyway, I'm thinking.

blinry avatar Feb 11 '22 22:02 blinry

I didn't know that - how are they accessed?

help buttons and help keys, respectively! :) I added those a couple of weeks ago.

I'm on 0.90.1723 and those commands do nothing... maybe I'm out of date? :D

paul59 avatar Feb 12 '22 07:02 paul59

That is the latest released version, @paul59, released in July last year. :) You'd need to build the current main branch yourself to get features added after that, I think. Not sure whether there's already another release on the horizon, @nesbox?

blinry avatar Feb 12 '22 11:02 blinry

Not sure whether there's already another release on the horizon

Don't know, we could fix most serious crashes and release 1.0

nesbox avatar Feb 14 '22 07:02 nesbox

Don't know, we could fix most serious crashes and release 1.0

Can we get WASM into that? I can get back to the PR soon and bump the API to use the new float data types you added everywhere then move it out of draft...

joshgoebel avatar Feb 14 '22 19:02 joshgoebel

Can we get WASM into that?

sure, we are waiting...

nesbox avatar Feb 15 '22 11:02 nesbox