Skip to content

u/cgeadas

In this archive from Mar 2020 to Aug 2020

6
posts
26
comments
5
media
95
score

Thank you for trying it. I'm using a 2013 Macbook Pro, so I guess I'll have worst times than most people around here. I've noticed that the hex_encode method was slower, that's why I've commented it, but having other metrics than mine is very helpful.

I'm starting to see that, the "problem" with GDScript, is that it seems so easy that a person ends up believing it can do anything, much more than what it really can.

1 points

I agree with you. What I find strange here is that I'm not really processing data. Well, for the Godot release file that I'm using as test, being the file 27MB, I'm doing 27 million comparisons :-) That is work, but seems like, or the match statement is a wrong choice instead of if statements, or maybe using arrays and dictionaries takes up too many processing cycles. A few weeks ago, for example, I needed to create some color palettes from images and I've ported a javascript program that does a simple histogram and returns the top colors. The original javascript code runs in less than 2 seconds, the gdscript port I've made takes 6 seconds (for the same image file). I've implemented threads and a "processing, please wait..." message but, nevertheless it's a great difference.

In this tool, when a file is loaded, I scan the full file and create an array with regions, one region for each metadata zone, with some formatting info and description. Then, for the visualisation, I use a sliding window with the size of all the bytes the GUI can display (less than 300). As the user scrolls, I change the base address of the sliding window (offset from the start of the file) and load the segment, which I compare, byte by byte, with the map that I created when the file was first selected, and get the visual formatting atributes. This approach seems reasonable but is obviously not working. So I really don't know what to do now. The idea of using Godot for this tool was to keep things simple, being gdscript Python related.

1 points

This week I've made an hex viewer.

https://i.imgur.com/8pwCwkq.png

Am not really impressed. It kills my laptop, putting the temperature into the 90s (celsius). Also, typing all the 128 entries of the extended ASCII table was a pain... but I've found no other way to display the characters that have byte number between 128 and 255. So I've used this code page ( https://en.wikipedia.org/wiki/Code_page_437 ) and, for each byte, I created an array of the 2 or 3 bytes that make up the corresponding UTF-8 byte. Then I use ascii_nodes[pos].text = PoolByteArray(ASCIIextended[byte - 128]).get_string_from_utf8() to make the conversion.

I thought I would like the end result more than I do.

3 points

"Documented" may mean several things. Everything is documented here (https://docs.godotengine.org/en/stable/classes/index.html), but that is not the same as a tutorial, or "something" that a Godot user (not the same as a Godot developer) can use to learn how to make games with Godot.

I don't know if this requires someone full-time or just on a project basis. My point is that providing Godot users not only with the tools/features but the information and knowledge to use them should be one of the top concerns and not a nice to have thing. I'm not including here the general game developing concepts, patterns and/or architectures as some people request (that is beyond the game engine's responsibility and, that yes, is a nice to have). I'm just point that Godot is a tool (and a very good one) and every tool should (must) include the information to use it properly, otherwise it doesn't reach it's full potential or people just use it wrong or users just move on to another tool that helps them better doing their jobs/projects. And this last sentence reminds me of an answer a senior Godot developer gave some time ago, saying that it's ok to people to move on because Godot is here to stay and it will be here when (if) that person wants to come back - I think this is a bad attitude regarding the project because, even if it's an open source one, it has (it should, it must) the objective to strive and be bigger and better, and that ambition must be backed with concern for it's users/community (but now I'm diverging the subject... but the Reddits box does say "what are your thoughts?" :-) )

So let's hope documentation gets better. I do find GDQuest tutorials' of superior quality.

2 points

"There may be small exceptions to this, like doing one-time hires for people experienced for specific tasks, like improving documentation".

Improving documentation should not be a small and eventual thing, like it is, but should be a number one priority. Having a great product with no instructions manual is almost the same as having a bad product and Godot is a great great product with a total disregard for documentation. Yes, there are people around the net who make some videos and write some tutorials but, although there are excellent contributions, most are poor, incomplete or just use bad programming technics. This makes Godot extremely expensive to learn.

Please document, explain and teach what you implement.

6 points

I've looked at Youtube and found one video (https://youtu.be/nk0YQGb08IA), but it didn't explore the features that make TextEdit so different (for me), like keywords with colours, syntax highlights, code completion... So far, for my games, I haven't used TextEdit for more than just displaying "dumb" text, but I'm thinking about some tools I want to develop and, I believe Godot may be able to do it, and they involve text/code editing. I've done some things with RichTextLabel (the credits page of my last game, for example) but found it too buggy for something as serious/long/complex as a text/code editor (and I've seen in the release notes from 3.2.2 that some of those bugs were fixed). So I've thought that someone might have done something with it or maybe write a few lines of code so that I figure the idea behind it.

1 points

Nevarek, thank you for taking the time to answer my post. However, before asking for help here, I've read the documentation, which enumerates the parameters and methods but not how to use the control. As for the source code, for me, it's useless, not only because I would need to understand C++ much more than I do, but also because I would need to learn how the engine is built for that to make sense.

1 points

For my latest game I've created a tool to process and prepare the content. With Godot it was easy to create the GUI, with all kinks of controls working well with each other. I guess that if I tried to develop this tool with other engine/framework would be harder, with more code and complexity. I think improvements are need in themes, which are not intuitive (especially if I want to make changes from code at runtime) and control positioning, which is difficult to learn, unintuitive and buggy (or with some issues that you must take into consideration and force you to do your layouts in a way that it's not obvious but, that's how it must be done).

I would like to make an application with a strong word-processing component but, right now, I don't think Godot's controls are up to it. Maybe it's just the lack of documentation but TextEdit doesn't seem to support bold or italics or mult-font and, RichTextlabel is too buggy.

1 points

there is absolute lack of explanation of how to use things rather than what they are.

This really sums it perfectly.

My favorite "lack of information" in Godot is about sound volume. You have all kinds of information (even tutorials) about sound. But they don't mention how to set the volume (via script), and the method linear2db his some sort of easter egg that you might stumble upon if you happen to read built-in functions :-) For my first game with Godot, I've programmed a complex way to convert "full sound" to "silence" because working with db's was not intuitive and, when I was almost releasing the game, I've found linear2db :-D Praised be the documentation :-D

1 points

az000, thank you for playing my game and commenting it. I'm sorry you didn't found it rewarding. Let me however present the mechanics involved.

Every image is split into 18 squares and each one gets a role. There are 4 roles. Role 1, the independent square, rotates 90 degrees clockwise and stays that way - just that. Role 2, the group square, rotates not only itself but all other squares that belong to the same group, they work in sync, get one straight and all the group is straight. Role 3, the semi-independent, work as independent when you tap one, but work as group when rotated by, the Role 4, the rotators. The squares of Role 4 work as independent, in the way that they don't rotated other Role 4 squares, but each one rotates all Role 3 squares. With this 4 rules/roles, Role 3 is the real trap in each puzzle, since they get rotated all the time (every time the player taps a Role 4 square). Knowing this helps to devise tactics to solve the puzzle or, as you mentioned, just keep tapping until done - some friends and family played the prototype and then the various stages of the game and I've seen some develop funny or smart ways to solve the puzzles while other always stayed with the "just tapping until done" approach.

There is a score, which is stored in a Google Play Leaderboard. The game doesn't show the score in the UI because I think the kind of player that may like this game doesn't care much for a score getting updated with every tap/puzzle - I may be wrong. Every tap grants some points, every solved puzzle adds some more points, if the player finishes the puzzle close enough to a minimum of taps required (par), it get extra points, the closer to the par, more point he/she gets.

There is no campaign or mission in Turzzle. There is also no defined order by which the puzzles are presented. There are however several Google Achievements to reward the player. One of the achievements is solving all the 114 different images of the game. So I agreed when you say that there is no progression, but just like Solitaire: no progression but still fun :-)

I hope this helps you to see the game from a different angle, although, a game should stand by itself and not through explanation. My objective for Turzzle was to make a game where the player could simply enjoy nice pictures and kill some time in a very casual and relaxed way. I liked the way you explained your opinion in a well constructed and justified manner. I also hope more people try the game and comment it, since only with a lot of comment it's possible to reach a conclusion.

2 points

I had a problem like this but it was when "game over" was reached. It froze the image for about 1,5 second - it was ugly. It turned out to be a simple thing: I was writing game over on the screen, using a tween to scale the words and I was using the outline feature of the font. That completely hogged the cpu. It doesn't make any sense to me, but I ended up using an image of the letters and a tween for the same scale effect and it is fast.

So maybe you have that spike because you're still initialising something, like data structures in memory or calling something from the internet (IAP, Adwords, Leaderboards); or you've found one of those inexplicable Godot's "features" that make us completely bend our programming logic.

2 points

I use two trello boards: one for the tasks of the game (one list for features for next version; one for features for the current version; one for what I'm doing now; and one for problems/issues (like Godot's bugs that I have to bypass)); and other for the roadmap of all the games I want to do and when (I use one list per quarter and one list for ideas that I still don't know when (or if) I'll schedule. I need a mix of organisation with liberty and flexibility. Allegro ma nom troppo :-D

Anyway, the "best" way is the one that works for you.

2 points

Keyboard shortcuts

Move and act

jork
Next / previous post or comment
Enteroro
Open the post
f
Open the media viewer
s
Save
h
Hide (the toast has Undo)
Tab
Right after an action: the toast's Undo
x
Collapse the comment
v
Next layout: cards, compact, grid

Go to

/
Search
gthenh
Home
gthena
All
gthens
Subreddits
gthenl
Library
?
This list
Esc
Close a menu or this list

In the viewer

←or→
Previous / next file
↑or↓
Previous / next post
korj
Previous / next post
Space
Play / pause
m
Mute
z
Zoom
s
Save
o
Open the post (on its own page: back to it)
Esc
Close

Keys do nothing while you type in a box.