Skip to main content

Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
TagsGame Engines

Bitphoria

The moddable procedurally-generated voxel-world multiplayer action shooter engine! · By Deftware

[Bug] Command func_find doesn't exist

A topic by GDavid created May 14, 2022 Views: 117 Replies: 1
Viewing posts 1 to 2

The command func_find is not available despite being listed in the scripting manual.

It appears to be usable via bitfile editing (opcode: 0x1B, args: function id, entity type id) but the command itself isn't registered.

Developer(+1)

Good catch! I just dug up the old archive for the code that went to v1.0 and yes, the command is never registered with the others but the functionality for it also might not work even if you include it in a bitfile because it sorta just bleeds over into findradius. I'll try to set aside some time in June to go over everything and release a new version of Bitphoria with all the crazy new stuff that's been added since v1.0. Maybe I'll even fire up the master server again and see if we can't track down that long standing server crash bug that always eventually seemed to happen.

Anyway, I'd suggest just using findradius with a big radius for the interim - it should behave virtually the same though it will be a tad slower because it is doing some spatial indexing and distance checks so I'd recommend against having it constantly called by dozens of entities at the same time.

Glad someone is fiddling around with Bitphoria!

 - Charlie