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

Can't open .model files

A topic by barrybardan created Dec 16, 2020 Views: 254 Replies: 2
Viewing posts 1 to 2

When I try to open previously saved .model file in Asset Forge nothing happens, no error messages, but no model loaded either.

I post my .model file contents here in case it is useful for finding solution


# Made using Asset Forge (2.1.1)

:materials

[name:dark;color:RGBA(0.224, 0.235, 0.275, 1.000);scale:(1.0, 1.0);shader:Default;valueA:0.35;valueB:0;]
[name:_defaultMat;color:RGBA(0.939, 0.953, 1.000, 1.000);scale:(1.0, 1.0);shader:Default;valueA:0.35;valueB:0.25;]
[name:metalPurple;color:RGBA(0.933, 0.404, 0.404, 1.000);scale:(1.0, 1.0);shader:Default;valueA:0.35;valueB:0;]
[name:custom3;color:RGBA(0.000, 0.000, 0.000, 0.000);scale:(1.0, 1.0);shader:Default;valueA:0.5;valueB:0.15;]

:models

[name:;collection:Aircraft;type:engine_round;position:(0.0200, 0.3600, -1.8000);rotation:(0.0000, 0.0000, 0.0000);scale:(0.6400, 0.6400, 0.6000);group:;locked:False;hidden:False;materials:dark+metalPurple+metalPurple;]
[name:;collection:Aircraft;type:turbine_flaps;position:(-0.6100, 0.5000, 1.8000);rotation:(0.0000, 0.0000, 270.0000);scale:(1.0000, 1.2100, 1.0000);group:;locked:False;hidden:False;materials:dark+metalPurple+metalPurple;]
[name:;collection:Aircraft;type:hull_slant;position:(0.0000, -0.2257, -0.5000);rotation:(0.0000, 0.0000, 0.0000);scale:(1.0000, 1.2197, 2.0000);group:Group_2;locked:False;hidden:False;materials:metalPurple+metalPurple;]
[name:;collection:Aircraft;type:hull_front;position:(0.0000, -0.2200, 1.0000);rotation:(0.0000, 0.0000, 0.0000);scale:(1.0000, 1.2100, 1.0000);group:Group_1;locked:False;hidden:False;materials:metalPurple+metalPurple;]
[name:;collection:Aircraft;type:hull_tailEdge;position:(0.0000, 0.3600, 0.7000);rotation:(45.0000, 0.0000, 0.0000);scale:(1.0000, 1.0000, 1.0000);group:Group_9;locked:False;hidden:False;materials:metalPurple+metalPurple;]
[name:;collection:Aircraft;type:hull_tailEdge;position:(0.3800, 0.6500, 0.8100);rotation:(0.0000, 270.0000, 0.0000);scale:(0.5526, 0.6500, 0.5905);group:Group_9;locked:False;hidden:False;materials:metalPurple+metalPurple;]
[name:;collection:Aircraft;type:hull_tailEdge;position:(-0.3778, 0.6550, 0.8137);rotation:(0.0000, 90.0000, 0.0000);scale:(0.5526, 0.6500, 0.5906);group:Group_9;locked:False;hidden:False;materials:metalPurple+metalPurple;]

I've investigated the issue and it seems like your text has some additional characters for line separation, I've improved Asset Forge to ignore these characters (and any other line separation characters) so it's now able to read this file correctly. The fix will be in Asset Forge version 2.1.2, which will soon be released.

Thanks for reporting!

(2 edits)

O, thank you, I guess I can fix the model now, just looking at it in any editor showing \r\n . Maybe this could change when file went through github, because at first it open ok on machine it was created, and on another after synchronizing I go that error the first time. Though still they could be opened on first machine. And eventually it could broke because going through when syncing back, and it stopped working on first machine, too.

Just tried changing line breaks to \n and restored my model! Thanks again!