Jump to content
XCOMUFO & Xenocide

Windows 7 Errors


Mad

Recommended Posts

I got several errors on Windows 7 Systems. Most go together with Xenocide wanting write access to it's installation directory (for the logfiles). Maybe we should change the location of these.

 

One error I can't make heads or tails out - I suspect it got something to do with x64. Could somebody with an x64 Vista or Windows 7 please confirm?

 

downloaded on 17 jan 2010, onto windows 7 64 bit and got following error after running windows 7 compatability (got error prior to doing this as well)

Exception: No Imageset named \'TaharezLook\' is present in the system.
StackTrace:
  at CeGui.ImagesetManager.GetImageset(String name) in E:\\ProjectX\\trunk\\Dependancies\\CeGui\\CeGui\\Source\\ImageSetManager.cs:line 197
  at ProjectXenocide.Xenocide.InitializeCegui() in E:\\ProjectX\\trunk\\Xenocide\\Source\\Xenocide.cs:line 136
  at ProjectXenocide.Xenocide.Initialize() in E:\\ProjectX\\trunk\\Xenocide\\Source\\Xenocide.cs:line 118
  at Microsoft.Xna.Framework.Game.Run()
  at ProjectXenocide.Program.Main() in E:\\ProjectX\\trunk\\Xenocide\\Source\\Program.cs:line 52

Edited by Mad
Link to comment
Share on other sites

I got several errors on Windows 7 Systems. Most go together with Xenocide wanting write access to it's installation directory (for the logfiles). Maybe we should change the location of these.

I'm a bit confused, what log files are we talking about here?

Also, as regards Documents and Settings vs Users, that should be taken care of automatically for the save files. (We're using API calls to find the user's directory for them.)

 

One error I can't make heads or tails out - I suspect it got something to do with x64. Could somebody with an x64 Vista or Windows 7 please confirm?

 

downloaded on 17 jan 2010, onto windows 7 64 bit and got following error after running windows 7 compatability (got error prior to doing this as well)

Exception: No Imageset named \'TaharezLook\' is present in the system.
StackTrace:
  at CeGui.ImagesetManager.GetImageset(String name) in E:\\ProjectX\\trunk\\Dependancies\\CeGui\\CeGui\\Source\\ImageSetManager.cs:line 197
  at ProjectXenocide.Xenocide.InitializeCegui() in E:\\ProjectX\\trunk\\Xenocide\\Source\\Xenocide.cs:line 136
  at ProjectXenocide.Xenocide.Initialize() in E:\\ProjectX\\trunk\\Xenocide\\Source\\Xenocide.cs:line 118
  at Microsoft.Xna.Framework.Game.Run()
  at ProjectXenocide.Program.Main() in E:\\ProjectX\\trunk\\Xenocide\\Source\\Program.cs:line 52

IIRC, Darkhomb was running at least one version of Xenocide under 64 bit Vista. Other than that I can't help you much.

Link to comment
Share on other sites

I got several errors on Windows 7 Systems. Most go together with Xenocide wanting write access to it's installation directory (for the logfiles). Maybe we should change the location of these.

I'm a bit confused, what log files are we talking about here?

Also, as regards Documents and Settings vs Users, that should be taken care of automatically for the save files. (We're using API calls to find the user's directory for them.)

 

We're talking about install.log and CEgui.log. Those two go into the installation directory. The first one is not a problem, the second one is.

 

IIRC, Darkhomb was running at least one version of Xenocide under 64 bit Vista. Other than that I can't help you much.

 

Yes, he was, but he was running as Admin. Is there a way to ensure that the game won't need admin rights to run? Or if it absolutely does, could we check for it and pop up a box "Needs admin rights" or something like this?

Link to comment
Share on other sites

We're talking about install.log and CEgui.log. Those two go into the installation directory. The first one is not a problem, the second one is.
The first sounds like an installer file, and I didn't have anything to do with that. The other, if it's Cegui logging, should be easy enough to fix.

 

Yes, he was, but he was running as Admin. Is there a way to ensure that the game won't need admin rights to run? Or if it absolutely does, could we check for it and pop up a box "Needs admin rights" or something like this?
Well, we really shouldn't require running as an Admin. We should fix anything that requires it. However, if we do require it, then you add a manifest that requires Admin rights. http://msdn.microsoft.com/en-us/library/bb756929.aspx
Link to comment
Share on other sites

We're talking about install.log and CEgui.log. Those two go into the installation directory. The first one is not a problem, the second one is.
The first sounds like an installer file, and I didn't have anything to do with that.

Yes, I know, that's why I said it's not a problem (if it's created by the installer Windows doesn't mind. I just mentioned it to have a complete "list" of all logfiles)

 

The other, if it's Cegui logging, should be easy enough to fix.

That would be perfect. Thank you!

 

I've got Windows 7 x64 and I don't have any problems running Xenocide, although I run as admin.

I don't think there are any problems when running as admin. It's only if people use the standard setting (not an admin) when they develop difficulties.

Edited by Mad
Link to comment
Share on other sites

Just tried it, no errors, I do not change anything, no compatibility. I just launch the exe.

 

 

Exception: No Imageset named \'TaharezLook\' is present in the system

 

This isn't a windows error. I think you are just missing the actual image set.

 

Edit 2 - Just deleted, and recompiled and tested. Works fine.

 

Edit 3 - If you'd like we could try some desktop sharing to see if I can figure out what is wrong.

Edited by Darkhomb
Link to comment
Share on other sites

Just tried it, no errors, I do not change anything, no compatibility. I just launch the exe.

 

 

Exception: No Imageset named \'TaharezLook\' is present in the system

 

This isn't a windows error. I think you are just missing the actual image set.

 

Edit 2 - Just deleted, and recompiled and tested. Works fine.

 

Edit 3 - If you'd like we could try some desktop sharing to see if I can figure out what is wrong.

Thanks for the offer, but the thing is, it's not a problem I have - it's a user who just installed Xenocide. But he doesn't experience the problem when runnig the game as admin. So I don't see where it could no tbe the game...?

Link to comment
Share on other sites

Sorry must have read that wrong. I am not sure, As it works fine for me. Do we have any details about what build this is? Who compiled it? You said installation directory. So this is a build thats been packaged. Can you give me the link? I run stright from compiling. Maybe that is the problem of how its installed.
Link to comment
Share on other sites

Sorry must have read that wrong. I am not sure, As it works fine for me. Do we have any details about what build this is? Who compiled it? You said installation directory. So this is a build thats been packaged. Can you give me the link? I run stright from compiling. Maybe that is the problem of how its installed.

It's the current build available on the website (http://www.projectxenocide.com/download/xna.Xenocide.0.4.0.1836.exe). I compiled it (AFAIK). But I guess the problem won't occur on a PC with the development environment installed. We've had several problems which only showed on "virgin" installations. But I don't know where the administrator joins in the picture.

Link to comment
Share on other sites

  • 3 weeks later...
I won't be able to test this for a while, but I do plan to do a format/ reinstall in a month or so and can try then. I don't see this as a huge problem as it works in admin mode.

No, it's not a top priority. Just something we should keep in mind.

Link to comment
Share on other sites

  • 1 month later...

i got the 2nd error. i run under Win7 32bit Ultimate.

 

based on

""""

Exception: Access to the path 'C:\Program Files\Xenocide\CEGUI.log' is denied.

StackTrace:

at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)

at System.IO.FileStream.Init(String path, FileMode mode, FileAccess access, Int32 rights, Boolean useRights, FileShare share, Int32 bufferSize, FileOptions options, SECURITY_ATTRIBUTES secAttrs, String msgPath, Boolean bFromProxy)

at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize, FileOptions options)

at System.IO.StreamWriter.CreateFile(String path, Boolean append)

at System.IO.StreamWriter..ctor(String path, Boolean append, Encoding encoding, Int32 bufferSize)

at System.IO.StreamWriter..ctor(String path, Boolean append)

at CeGui.Logger..ctor(String name, Boolean append) in E:\ProjectX\trunk\Dependancies\CeGui\CeGui\Source\Logger.cs:line 80

at CeGui.GuiSystem..ctor(Renderer renderer) in E:\ProjectX\trunk\Dependancies\CeGui\CeGui\Source\GuiSystem.cs:line 166

at CeGui.GuiSystem.Initialize(Renderer renderer) in E:\ProjectX\trunk\Dependancies\CeGui\CeGui\Source\GuiSystem.cs:line 139

at CeGui.Renderers.Xna.GuiManager.createRenderer() in E:\ProjectX\trunk\Dependancies\CeGui\CeGui.Renderers.Xna\Source\GuiManager.cs:line 101

at CeGui.Renderers.Xna.GuiManager.Initialize() in E:\ProjectX\trunk\Dependancies\CeGui\CeGui.Renderers.Xna\Source\GuiManager.cs:line 57

at Microsoft.Xna.Framework.Game.Initialize()

at ProjectXenocide.Xenocide.Initialize() in E:\ProjectX\trunk\Xenocide\Source\Xenocide.cs:line 116

at Microsoft.Xna.Framework.Game.Run()

at ProjectXenocide.Program.Main() in E:\ProjectX\trunk\Xenocide\Source\Program.cs:line 52

 

""""

 

but when i run in Admin Mode the game runs. but with some glitches. to the GeoGlobe. but its to be expected youre game isnt complete.

Link to comment
Share on other sites

Oops. I can see what's going wrong. I can probably have this fixed in a couple of days.

At which point we may want to update the prebuilt version available for download.

 

i got the 2nd error. i run under Win7 32bit Ultimate.

 

based on

""""

Exception: Access to the path 'C:\Program Files\Xenocide\CEGUI.log' is denied.

StackTrace:

at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)

Link to comment
Share on other sites

I belive I've fixed the problem with Xenocide not running as a User on Windows 7.

Specifically, the problem was the CeGUI library tried to write a log file to the Xenocide directory, and under Win7 security policy, User level apps are not allowed to write to ?Program Files? or any of its sub-directories.

I've changed the code so that GeGUI now writes its log to the My Documents directory. While not the best solution, it should work (not having Win7, I'm unable to test.)

Note, other solutions are:

  • Write to the Xenocide Save Game directory. Problem with this is the code to figure it out depends on XNA, and it is unacceptable to to code the core CeGUI library to require XNA.
  • Write the logging to System.Diagnostics.Trace(). Probably a better solution. (This is what Xenocide does.) The down side is it would mix the CeGUI and Xenocide logging.

Link to comment
Share on other sites

I belive I've fixed the problem with Xenocide not running as a User on Windows 7.

Specifically, the problem was the CeGUI library tried to write a log file to the Xenocide directory, and under Win7 security policy, User level apps are not allowed to write to ?Program Files? or any of its sub-directories.

I've changed the code so that GeGUI now writes its log to the My Documents directory. While not the best solution, it should work (not having Win7, I'm unable to test.)

Note, other solutions are:

  • Write to the Xenocide Save Game directory. Problem with this is the code to figure it out depends on XNA, and it is unacceptable to to code the core CeGUI library to require XNA.
  • Write the logging to System.Diagnostics.Trace(). Probably a better solution. (This is what Xenocide does.) The down side is it would mix the CeGUI and Xenocide logging.

Great! thanks! However, I won't be able to build this for a few more days (It's crazy out here right now). If anybody else can jump in, please, be my guest! I'll even test if it works under W7 64bit.

Link to comment
Share on other sites

  • 5 months later...
I belive I've fixed the problem with Xenocide not running as a User on Windows 7.

Specifically, the problem was the CeGUI library tried to write a log file to the Xenocide directory, and under Win7 security policy, User level apps are not allowed to write to ?Program Files? or any of its sub-directories.

I've changed the code so that GeGUI now writes its log to the My Documents directory. While not the best solution, it should work (not having Win7, I'm unable to test.)

Note, other solutions are:

  • Write to the Xenocide Save Game directory. Problem with this is the code to figure it out depends on XNA, and it is unacceptable to to code the core CeGUI library to require XNA.
  • Write the logging to System.Diagnostics.Trace(). Probably a better solution. (This is what Xenocide does.) The down side is it would mix the CeGUI and Xenocide logging.

 

2nd solution seems the easiest

Link to comment
Share on other sites

I belive I've fixed the problem with Xenocide not running as a User on Windows 7.

Specifically, the problem was the CeGUI library tried to write a log file to the Xenocide directory, and under Win7 security policy, User level apps are not allowed to write to ?Program Files? or any of its sub-directories.

I've changed the code so that GeGUI now writes its log to the My Documents directory. While not the best solution, it should work (not having Win7, I'm unable to test.)

Note, other solutions are:

  • Write to the Xenocide Save Game directory. Problem with this is the code to figure it out depends on XNA, and it is unacceptable to to code the core CeGUI library to require XNA.
  • Write the logging to System.Diagnostics.Trace(). Probably a better solution. (This is what Xenocide does.) The down side is it would mix the CeGUI and Xenocide logging.

 

2nd solution seems the easiest

You're welcome to provide a patch...

Link to comment
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
×
×
  • Create New...