Game Engine Forum - Grit Open Source Streaming Game Engine
Site Header
It is currently Sat May 25, 2013 10:35 pm

All times are UTC




Post new topic Reply to topic  [ 3 posts ] 
Author Message
 Post subject: Error: Loading INIT.LUA
PostPosted: Tue May 24, 2011 5:55 pm 
Offline
Newbie
User avatar

Joined: Sun Jul 04, 2010 9:42 am
Posts: 26
Location: Netherlands (holland)
I made a new object called test.mesh / test.tcol and some bmp files.
After i loading my configuration file (init.lua) i get this message:
ERROR (.\src\gfx\gfx.c++:1537): Mesh "/test/test.mesh" references non-existing material "/test/FrontCol"

this is my init.lua file:
Code:
material "concrete" { diffuseMap="concrete.bmp", normalMap="concrete.bmp" }
material "road_103" { diffuseMap="road_103.bmp", normalMap="road_103.bmp" }
material "road_104" { diffuseMap="road_104.bmp", normalMap="road_104.bmp" }
material "wall_101" { diffuseMap="wall_101.bmp", normalMap="wall_101.bmp" }
material "wall_104" { diffuseMap="wall_104.bmp", normalMap="wall_104.bmp" }

class "test" (ColClass) {castShadows=true,renderingDistance=300}


object "test" (0.0, 0.0, 0.0) {name="test"}

_________________
Image
Image


Top
 Profile  
 
 Post subject: Re: Error: Loading INIT.LUA
PostPosted: Tue May 24, 2011 7:35 pm 
Offline
Newbie
User avatar

Joined: Sun Jul 04, 2010 9:42 am
Posts: 26
Location: Netherlands (holland)
Fixed! .. forgot something :p

_________________
Image
Image


Top
 Profile  
 
 Post subject: Re: Error: Loading INIT.LUA
PostPosted: Wed May 25, 2011 12:53 am 
Offline
Site Admin
Site Admin
User avatar

Joined: Fri Mar 26, 2010 10:06 am
Posts: 348
Sweet :D For others who perhaps one day find this thread, this was just a problem with the mesh having a material named "FrontCol" without a definition in the lua for it, where the mesh was expecting "frontcol" to be the name "here":

material "HERE" { diffuseMap="wall_104.bmp", normalMap="wall_104.bmp" }

I suppose you fixed it by changing that, or simply applying the material again when renamed to whichever one it was for?


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 3 posts ] 

All times are UTC


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  
cron
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
Localized by MaĆ«l Soucaze © 2010 phpBB.fr