Jump to content


Photo

Can't Run Or Reinstall Ufo2000 On A Windows Account


  • Please log in to reply
3 replies to this topic

#1 Jamaru

Jamaru

    Captain

  • Forum Members
  • PipPipPipPip
  • 267 posts

Posted 17 April 2009 - 01:58 PM

For some reason, I can run it on the windows admin account, but not a user account, so how do I fix that? I don't use the admin account because of security purposes. I tried to reinstall, but the account won't let me. It is windows xp by the way. :)

The error says "./init-scripts/main.lua:50: attempt to index local 'fh' (a nil value) stack traceback: ./init-scripts/main.lua:50: in main chunk".
~Plasma

#2 Serge

Serge

    Project Leader: UFO 2000

  • Xenocide Programming Department
  • 785 posts

Posted 17 April 2009 - 02:37 PM

The win32 installer needs to be updated to support user home directories and their private data. If I remember correctly, windows started behaving like a real OS and does not allow changing files in 'Program Files' directory.

edit: So in order to play the game right now, you can probably copy all the UFO2000 directory to some other place and set file permissions so that the game can modify them (write log files, change config file, edit soldiers data, etc.).

Edited by Serge, 17 April 2009 - 02:43 PM.

ufo2000 development team
http://ufo2000.sourceforge.net

#3 kafros

kafros

    Creative Text Department

  • Xenocide Creative-Text Departmen
  • 1,800 posts

Posted 17 April 2009 - 03:40 PM

If I remember correctly, windows started behaving like a real OS and does not allow changing files in 'Program Files' directory.

That's why the %APPDATA% folder exists (you know that, but it doesn't hurt to make a notice)

#4 Jamaru

Jamaru

    Captain

  • Forum Members
  • PipPipPipPip
  • 267 posts

Posted 17 April 2009 - 04:15 PM

Alright, yay! It works now, thanks! ^_^
~Plasma