Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

AppGameKit Studio Chat / Code folding

Author
Message
Zaxxan
AGK Developer
3
Years of Service
User Offline
Joined: 17th Nov 2020
Location: England
Posted: 21st Sep 2021 14:44
The original code folding request was added quite a long time ago in March 2020 so that's probably why it was requested again. A nudge to the developers probably.
Virtual Nomad
Moderator
18
Years of Service
User Offline
Joined: 14th Dec 2005
Location: SF Bay Area, USA
Posted: 21st Sep 2021 16:23 Edited at: 21st Sep 2021 16:24
Quote: "A nudge to the developers probably."

not so much. i'd gone through and tagged everything a few months ago. what TGC addresses it up to them but "bumping"/duplicates just cause more housekeeping.

i've entered a few myself only to have to close them once i did a proper search after the fact.
[My Itch.io Home] [AGK on Itch.io]
[AGK Resource Directory] [TGC @ GitHub]
[CODE lang=agk] YOUR CODE HERE [/CODE]
[VIDEO=youtube] VIDEO ID [/VIDEO]
[AGK Showcase][Google Forum Search]
Zaxxan
AGK Developer
3
Years of Service
User Offline
Joined: 17th Nov 2020
Location: England
Posted: 21st Sep 2021 17:25
So how do TGC decide what features to implement? The code folding issue has been mentioned quite a few times in the forums but seems to be ignored by TGC. I've only been using AppGameKit for about a year and I think it's a great language and I have really enjoyed using it but in my short time on these forums I have noticed that TGC post very few comments and don't really engage with the community. So if we need a feature how do we get across to TGC how important it is? If it is raised on github several times it is a duplicate and as you say it is wasting your time so how do we highlight something that is important? I know TGC are currently focusing on Gameguru and I have even purchased Gameguru and Gameguru Max to support TGC. The code folding save status request was submitted to github 18 months ago, it can't be that difficult to implement can it?
blink0k
Moderator
11
Years of Service
User Offline
Joined: 22nd Feb 2013
Location: the land of oz
Posted: 21st Sep 2021 18:07
Quote: "so how do we highlight something that is important?"

Give it a thumbs up in the github. Tell your friends to give it a thumbs up too. Maybe tell strangers as well
PartTimeCoder
AGK Tool Maker
9
Years of Service
User Offline
Joined: 9th Mar 2015
Location: London UK
Posted: 21st Sep 2021 18:25
Quote: "I think it's just how it's supposed to be ."


PureBasic IDE saves folds, one line of commented text at the bottom of the file with a delimited string of the folded line numbers, who was it that said simplicity is genius?

Quote: "request for this was added in june."


Any idea what script editor framework it uses?

Might be able to hack it
Open Source plugins
Cl - DnD Plugin
Buy Me A Coffee
Zaxxan
AGK Developer
3
Years of Service
User Offline
Joined: 17th Nov 2020
Location: England
Posted: 21st Sep 2021 18:26 Edited at: 21st Sep 2021 18:59
I didn't even know you could do that. I bought AppGameKit and I visit their official forum, as i said in my last post TGC rarely show a presence on here. Ok I will give a thumbs up on github but would still be good if TGC could actually participate on these forums. In the last 12 months their posts have been about an update that has been released and a few more posts of how they are going to to fix the broken update.
Virtual Nomad
Moderator
18
Years of Service
User Offline
Joined: 14th Dec 2005
Location: SF Bay Area, USA
Posted: 21st Sep 2021 18:48
Quote: "So how do TGC decide what features to implement?"

i don't know the answer to that as i'm sure there's plenty to it that i have no knowledge of. business decisions, $$, time, etc., and how difficult the fixes or features might be to implement, etc, (and, again, i'm sure there are more facets that i don't know about - maybe "how many users would it help?" is in there, too?).

what i do know is that i was asked to help label the github issues in early june i think it was, in preparation for future Updates where the labels hadn't been added for some time. i
labelled everything going back to late beta (2019). some i was able to close as being fixed but not removed from the queue. some were duplicates, and some turned out to not be bugs (i spent a lot of time testing what i could, etc, beyond the labelling).

otherwise, High Priority was added to basically "crippling" issue where commands or functionality was broken. everything was also labelled by platform/OS, whether it was a core, studio IDE, export issue, etc.. i asked for additional labels such as Help/Document issues (all of which were provided to me) and tried to organize it all as best i could.
and, i know that what i did on the gihub issues is not all that was done there where rick and others swept through it, added to it, etc, leading up to beginning on this Update.

around that time, i was asked for a top 10 list of what i considered "crucial" based on observation of the forums, etc.. i provided a somewhat shorter list while pointing to the 18 (at the time) "high priority" issues on the github and some of that was addressed (there are 11, now, including yesterday's "failed to check for java").

frankly, this update has a lot more than i expected to be included such as some studio IDE issues that preben had time to sneak in and general "quality of life" work like .IndexOf() and documentation additions like filename case sensitivity and .byc reference/clarification. i truly expected android export work and a "few" other things so i'm pleasantly surprised. alas, that exposes how little i do know about what TGC has on their mind or makes decisions.

i know that a couple/few years ago, rick posted a poll. i don't recall how that translated into what was addressed and what wasn't. i know that none of what i voted for was implemented but, i've got my biases. IE, i use AppGameKit as a hobby, and i dont use a lot of the command sets, while its a source of income for others.

i considered posting a similar poll a couple of months ago but i couldn't think of how to make it "secure" without requiring email addresses (and then validating/confirming them?). what i was afraid of is someone(s) spamming the poll with THEIR wish list leaving the results worthless as an indicator of what we want to see AS A WHOLE.

some have suggested Up-voting on the github. i don't know how accurate that would be where a lot of us don't use github, but i expect it couldn't hurt.

that's about all i know except that i was enlisted to help TGC help US. i've received their support and their attention when necessary which, for me, says something about their dedication to US. and, that's why i continue doing "what i do" to that end.
[My Itch.io Home] [AGK on Itch.io]
[AGK Resource Directory] [TGC @ GitHub]
[CODE lang=agk] YOUR CODE HERE [/CODE]
[VIDEO=youtube] VIDEO ID [/VIDEO]
[AGK Showcase][Google Forum Search]
PartTimeCoder
AGK Tool Maker
9
Years of Service
User Offline
Joined: 9th Mar 2015
Location: London UK
Posted: 21st Sep 2021 19:02
Quote: "without requiring email addresses (and then validating/confirming them?)"


no need, just log the IP, write a cookie with the users vote, job done, if the IP shows as unique double check for the cookie, sure its about 80% but good enough for a public poll

I can write the PHP if you want?
Open Source plugins
Cl - DnD Plugin
Buy Me A Coffee
Virtual Nomad
Moderator
18
Years of Service
User Offline
Joined: 14th Dec 2005
Location: SF Bay Area, USA
Posted: 21st Sep 2021 19:09 Edited at: 21st Sep 2021 19:25
Quote: "I can write the PHP if you want?"

thanks for the offer but i'll hit you up if/when i'm up for it?

what i had in mind was pulling all of the issues on the github into a poll broken down by command sets.

preparing that would be a decent amount of work, i imagine, and i'm not up for that right now (i HAD started one using google sheets as a mock up)

again, i know rick ran a poll awhile back. it seems to me that they could do it again if that's what they're looking for.

add: i never knew Issues could be sorted by the most up-votes. do it
[My Itch.io Home] [AGK on Itch.io]
[AGK Resource Directory] [TGC @ GitHub]
[CODE lang=agk] YOUR CODE HERE [/CODE]
[VIDEO=youtube] VIDEO ID [/VIDEO]
[AGK Showcase][Google Forum Search]
PartTimeCoder
AGK Tool Maker
9
Years of Service
User Offline
Joined: 9th Mar 2015
Location: London UK
Posted: 21st Sep 2021 19:25
Probably easier for TGC to run it on the forum software for sure but if you do want to do your own thing then sure hit me up when your ready, all I need is a list of categories/items and the SQL+PHP does the rest, I'm not so hot on the CSS though, I can build the page but you will have to get someone else to make it look pretty! lol
Open Source plugins
Cl - DnD Plugin
Buy Me A Coffee
Zaxxan
AGK Developer
3
Years of Service
User Offline
Joined: 17th Nov 2020
Location: England
Posted: 22nd Sep 2021 14:29
@Virual Nomad Thank you for such a detailed reply.
huggy70
3
Years of Service
User Offline
Joined: 11th Jun 2020
Location:
Posted: 24th Sep 2021 19:17
Quote: "Added auto folding of user defined types"


I must be blind. How is this supposed to work?
Pfaber1
6
Years of Service
User Offline
Joined: 7th Jan 2018
Location: England
Posted: 25th Sep 2021 21:35
I don't know but what was the point it's still broken .
jd_zoo
5
Years of Service
User Offline
Joined: 12th May 2018
Location: Nova Scotia
Posted: 26th Sep 2021 16:18 Edited at: 26th Sep 2021 16:18
Re: "Added auto folding of user defined types"
Quote: " I must be blind. How is this supposed to work? "


I have the latest version installed and am able to fold my custom defined types, although in my programming style its not something I look to fold when chasing a bug (which is mostly the only time I use code folding, personally.)

Quote: "I don't know but what was the point it's still broken ."

Personal preferences aside, I hate to come into a project and its been "cleaned up" by folding all the badly written and spaghetti code. I think there could be an option, but with out said option I expect all folds to be open on launch. AppGameKit is a really clean language, I can see them adding a defined region down the road and you could have regions by default collapsed on startup but otherwise I feel this is a correct approach.

There are so many personal programming styles I don't expect an IDE to accommodate all. That said I'm not sure why its an option to remember the tab order on load, but every IDE has its quirks and I still think AppGameKit is great. Game Guru Max is way over due, I hope it makes TGC a boatload of money and then AppGameKit gets some more attention after.
PartTimeCoder
AGK Tool Maker
9
Years of Service
User Offline
Joined: 9th Mar 2015
Location: London UK
Posted: 26th Sep 2021 18:16 Edited at: 26th Sep 2021 18:17
Quote: "I hate to come into a project and its been "cleaned up" by folding all the badly written and spaghetti code. "


Same can be said, I hate opening a files only to have to manually fold 50+ functions before I find the one I want to edit, in Classic (ALT+D, F) or (Menu>>Document>>Fold All) or just scroll the symbols list

AutoFolding/SaveFolding is one thing but the ability to fold is another, with lack of a coherent symbols list (whos idea was those stupid dropdowns, we have panels, use them!!!) a fold all option is very much needed, the data and functionality is already there to solve both issues!
Open Source plugins
Cl - DnD Plugin
Buy Me A Coffee
huggy70
3
Years of Service
User Offline
Joined: 11th Jun 2020
Location:
Posted: 27th Sep 2021 18:29 Edited at: 27th Sep 2021 19:03
Quote: "I have the latest version installed and am able to fold my custom defined types"

Yes me too. Is this a new feature? I thought it was there before. But what is 'Auto folding' ? I have to do it manually.

At least there should be an option to fold/unfold all. Without it this feature makes no sense at all to me.
And an option for using a keyboard shortcut to fold/unfold a single block. Grabbing the mouse every time in a mainly text based ide is not very productive.

Quote: "There are so many personal programming styles I don't expect an IDE to accommodate all. That said I'm not sure why its an option to remember the tab order on load"

I agree and because of this the tab order should be restored to where anyone put it to his likes
Virtual Nomad
Moderator
18
Years of Service
User Offline
Joined: 14th Dec 2005
Location: SF Bay Area, USA
Posted: 27th Sep 2021 21:55 Edited at: 27th Sep 2021 22:06
Quote: "I thought it was there before."

we couldn't fold Type/EndType like we could with loops, etc.

as i see it, the term "Auto folding" means we don't have to manually enter FoldStart/FoldEnd keywords:

USer Guide wrote: "Some times you might want to hide a section of code that is not bound by a loop structure. In these cases, you can use the keywords foldstart and foldend.

Code folding will automatically work for these loop structure: while – endwhile, do – loop, function – endfunction, remstart – remend, select – endselect, case – endcase, for – next, if – endif, repeat
– until."

i don't like how the guide states "these loop structure" and then goes on to include Function/EndFunction, RemStart/RemEnd, etc. maybe it was originally strictly Loops.

so, now we want Fold/Unfold "All" & "Single Block" (based on where the cursor is and if it's between "start/end" tags like Function/EndFunction, i assume) keyboard shortcuts and a Preference tick-box for "Remember Code Fold Status on Close".

does that sum it up? If so, i'll add the requests to github (any better wording suggestions appreciated if the above doesn't sound right/isn't clear).

add: i expect a RightClick (Contextual Menu) option to "Make Selected Foldable" should be in here, too where it would add FoldStart/FoldEnd before/after the selected block of code?

...where do we stop?
[My Itch.io Home] [AGK on Itch.io]
[AGK Resource Directory] [TGC @ GitHub]
[CODE lang=agk] YOUR CODE HERE [/CODE]
[VIDEO=youtube] VIDEO ID [/VIDEO]
[AGK Showcase][Google Forum Search]

Attachments

Login to view attachments
Virtual Nomad
Moderator
18
Years of Service
User Offline
Joined: 14th Dec 2005
Location: SF Bay Area, USA
Posted: 27th Sep 2021 22:15 Edited at: 27th Sep 2021 22:16
these were already entered:

Shortcut: Code Fold/Unfold *by me in JAN `21.

Enable Code Folding Not Persistent open since MAR `20.
[My Itch.io Home] [AGK on Itch.io]
[AGK Resource Directory] [TGC @ GitHub]
[CODE lang=agk] YOUR CODE HERE [/CODE]
[VIDEO=youtube] VIDEO ID [/VIDEO]
[AGK Showcase][Google Forum Search]

Login to post a reply

Server time is: 2024-03-29 13:56:46
Your offset time is: 2024-03-29 13:56:46