Skip to main content

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

Asset Forge

Create your own 3D models and 2D sprites! · By Kenney

[minor] Object names cannot contain semi-colons

A topic by prozacgod created Sep 03, 2020 Views: 168 Replies: 3
Viewing posts 1 to 6
(1 edit)

When a user renames an object to include a ';' it works in the gui, saves the file (the ';' is saved to the file) but upon reload it loses the data after the semi-colon

If I put "test; foo" in the name field  for an object, then save the file, everything past the semi-colon is lost upon reload.

(I would be nice to consider JSON for the save format?)

What lead me to test this is I'm currently writing a model -> tscn converter for godot to more directly convert asset forge data into godot.

The quick fix would be to just dissallow ';' in the model name field.

(1 edit)

Okay I went a bit far, I injected stuff to see if I could outright break it...


You can name the object "\nmodel:\n" and then save it... it saves!

BUT when you load it, it absolutely breaks, it renders the model I saved, but the mesh in the model is unclickable, I'm impressed it didn't break further.

Copy this text block below with both blank lines above and below to get the same effect.

model:

... (I'm going to keep breaking your file load/save until you convert it to JSON ... MUAHAHAAhahaha :P)

Thanks for reporting this issue! I'll make sure to limit some special characters in the name input field, feel free to continue reporting more bugs. JSON for saving is currently not planned because changing the file format between versions isn't ideal and prone to errors, plus JSON files would be bigger in filesize. Thanks for reporting!

locked this topic
unlocked this topic