Skip to content

PoolStringArray in Godot 4: it is PackedStringArray now

By Eduardo Orellana · Updated

PoolStringArray is called PackedStringArray in Godot 4, and the rest of the family followed: PoolIntArray is PackedInt32Array, PoolRealArray is PackedFloat32Array, PoolVector2Array is PackedVector2Array. In a Godot 4 project, PoolStringArray(...) fails to parse with Function "PoolStringArray()" not found in base self. Did you mean to use "PackedStringArray()"?. And PackedStringArray has no join(): call join() on the separator, ", ".join(names).

AppImage, x86_64. Ubuntu 22.04, Debian 12, Fedora 39 or newer.

Intel or AMD Chromebook, with Linux turned on.

Download for macOSDownload for WindowsDownload for Linux

What Godot is checking

The Pool arrays were built-in types, called like constructors. Godot 4 renamed the family to Packed, and the analyzer reads the old name as a call to a missing function, suggesting the new one from its renames table.

Godot 3's names.join(", ") does not port as is: on 4.7.2 PackedStringArray has no join(), and the analyzer stops with Cannot find member "join" in base "PackedStringArray". String.join() takes the array instead: ", ".join(names).

Reproduce it

A Godot 3 string array joined into one line, in a Godot 4 project.

GDScript
extends Node

func _ready():
	var names = PoolStringArray(["Ada", "Lin"])
	print(names.join(", "))

What Godot 4.7.2 prints

Output
Godot Engine v4.7.2.stable.mono.official.ed1daf0bf - https://godotengine.org

SCRIPT ERROR: Parse Error: Function "PoolStringArray()" not found in base self. Did you mean to use "PackedStringArray()"?
   at: GDScript::reload (res://answers/poolstringarray-in-godot-4/repro.gd:4)
ERROR: Failed to load script "res://answers/poolstringarray-in-godot-4/repro.gd" with error "Parse error".
   at: load (modules/gdscript/gdscript_resource_format.cpp:46)

Fix it

A PackedStringArray joined with String.join().

GDScript
extends Node

func _ready() -> void:
	var names := PackedStringArray(["Ada", "Lin"])
	names.append("Sol")
	print(", ".join(names))
	print("a,b,c".split(",").size())

What the fixed script prints

Output
Godot Engine v4.7.2.stable.mono.official.ed1daf0bf - https://godotengine.org

Ada, Lin, Sol
3

Run this fix with your agent

Flockbay is the Godot editor with an AI agent built in. Paste this into Flockbay's chat, or into Claude Code or Codex connected to Flockbay over MCP: the agent finds the cause in your project, applies the fix, runs the game headless and reads Godot's output to check it.

Prompt
My Godot project was written for Godot 3 and Godot 4 stops on this: "Parse Error: Function "PoolStringArray()" not found in base self. Did you mean to use "PackedStringArray()"?". Port every use to Godot 4. PoolStringArray is called PackedStringArray in Godot 4, and the rest of the family followed: PoolIntArray is PackedInt32Array, PoolRealArray is PackedFloat32Array, PoolVector2Array is PackedVector2Array. In a Godot 4 project, PoolStringArray(...) fails to parse with Function "PoolStringArray()" not found in base self. Did you mean to use "PackedStringArray()"?. And PackedStringArray has no join(): call join() on the separator, ", ".join(names). Then run the game headless and check Godot's output for errors.

Verified on Godot 4.7.2

Both scripts on this page were run headless on Godot 4.7.2 (4.7.2.stable.mono.official.ed1daf0bf) on 18 October 2026, and the output above is what Godot printed, unedited.

Where the check lives in Godot's source: gdscript_analyzer.cpp line 3767, the message with its hint, renames_map_3_to_4.cpp line 1432, PoolStringArray to PackedStringArray, PackedStringArray class reference.

Questions

Is PoolIntArray PackedIntArray?
No: PackedInt32Array, with PackedInt64Array for 64-bit values. PoolRealArray is PackedFloat32Array.
Does split() still return a packed array?
Yes, String.split() returns a PackedStringArray.

Flockbay's agent reads Godot's debugger output and fixes errors like this one in your project, on the official Godot.

Download Flockbay free