Crystal Space
Welcome, Guest. Please login or register.
November 28, 2014, 07:03:24 pm

Login with username, password and session length
Search:     Advanced search
9026 Posts in 2046 Topics by 9157 Members
Latest Member: Wolqela
* Home Help Search Login Register
+  Crystal Space
|-+  Crystal Space Development
| |-+  Support
| | |-+  Configuration Manager Problems
« previous next »
Pages: [1] Print
Author Topic: Configuration Manager Problems  (Read 2921 times)
billybob
Newbie
*
Posts: 3


View Profile Email
« on: January 07, 2006, 10:15:00 pm »

I am new to programming and crystalspace so bear with me.
I am trying to run an application and I get this error:

ERROR: Failed to initialize configuration manager!
Error saving configuration 'AppTest.cfg'.

I showed this problem to a few programmers I know and they couldn't figure it out.

Please help I have been stuck here for awhile and would like to get moving again.

*admin: changed the topic to something more descriptive from: "n0oob question"*
« Last Edit: January 08, 2006, 02:42:53 am by dingobloo » Logged
dingobloo
Idle Extrordinare.
Global Moderator
Full Member
*****
Posts: 125


View Profile WWW
« Reply #1 on: January 08, 2006, 02:45:01 am »

Which application are you trying to run would be nice information to have.

The error itself is somewhat self explanitory but cannot tell us the reason why it did not load, it might be that you havnt setup the configuration manager in your application, or the configuration manager failed to compile.
Logged
sunshine
Administrator
Sr. Member
*****
Posts: 294


View Profile
« Reply #2 on: January 08, 2006, 04:47:38 am »

This error occurs when your application is unable to find its own configuration file, which is AppTest.cfg, in this case. The actual cause could be any of several reasons, such as the fact that AppTest.cfg is not present in the appropriate VFS directory, or that the VFS plugin failed to load, or that VFS failed to find its vfs.cfg configuration file(s).
Logged
billybob
Newbie
*
Posts: 3


View Profile Email
« Reply #3 on: January 09, 2006, 03:23:03 pm »

I am trying to run the first crystalspace tutorial and I did try looking for AppTest.cfg and couldn't find it .
« Last Edit: January 09, 2006, 06:59:46 pm by billybob » Logged
sunshine
Administrator
Sr. Member
*****
Posts: 294


View Profile
« Reply #4 on: January 09, 2006, 10:19:38 pm »

Which tutorial, exactly? Anyhow, if you don't have a configuration file, you can pass in NULL in place of the configuration file name.
Logged
billybob
Newbie
*
Posts: 3


View Profile Email
« Reply #5 on: January 10, 2006, 12:05:03 am »

I tried putting NULL in place of AppTest.cfg and it worked!
Thanks, you guys are awesome!
Logged
Recon
Newbie
*
Posts: 24


View Profile
« Reply #6 on: August 08, 2006, 02:26:10 am »

I had the same problem , I got passed this error by changing

  // Load application-specific configuration file.
  if (!csInitializer::SetupConfigManager(r,
      "/my/vfs/path/AppSol.cfg", GetApplicationName()))
    return ReportError("Failed to initialize configuration manager!");

to

  // Load application-specific configuration file.
  if (!csInitializer::SetupConfigManager(r,
      "/this/AppSol.cfg", GetApplicationName()))
    return ReportError("Failed to initialize configuration manager!");

this seemed to fix the error as a AppSol.cfg file was created in the current directory. Think it might be usefull later on!

Regards Smiley
Logged
Pages: [1] Print 
« previous next »
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.2 | SMF © 2006-2007, Simple Machines LLC Valid XHTML 1.0! Valid CSS!
Page created in 6.189 seconds with 16 queries.