Skip to content

Conversation

@Treer
Copy link

@Treer Treer commented Mar 18, 2023

Disabled by default. Set Console.History.persistent to true to enable it

Does not limit file size, as the Console's existing code to limit History size doesn't seem to work

Also fixes a crash when you use the down arrow to reverse back through the history

[This is on the Godot4 branch]

Off by default. Set Console.History.persistent to true to enable it

Does not limit file size, as the code to limit History size doesn't seem to work
@Treer Treer force-pushed the feature/persist-history branch from adb93d9 to 00248b2 Compare March 21, 2023 02:49
Treer added a commit to Treer/WorldWanderer that referenced this pull request Apr 4, 2023
The QueueCollection stuff is buggy and not necessary, use an array instead.

The misc/collection stuff uses a dictionary for a queue, with consecutive integers stored in the dict keys instead of indexing, I assume its some holdover from early versions of Godot. Once items are removed from the start of the queue rather than the end (e.g. if maxLength exceeded) then the length of the dictionary ends up less than the largest key/"index" and a lot of the collection functions break.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant