Game Development Community

Unable to create any new files... file io error

by David Hanson · in Technical Issues · 01/06/2008 (11:57 pm) · 6 replies

Hi, to answer your first question, yes I have rwx permissions in that dir. First noticed the problem when I couldn't save a new mission. I could however save changes to an existing mission. So I went and created a few new blank .mis files, just on the command line with a simple touch command, then saved a slightly modified mission with that name, and it worked. I checked the console output, and it gave me the "unable to open file, file io error" bit, when trying to save the .mis to a new name. I asked about the problem on irc. A very nice guy name of Quietus told me to just debug the file io in torque. Well, I'm a novice programer, and debuging a major piece of code the size of torque because it can't save a file is way over my head. He suggested that if I didn't have the skills to debug this problem I wouldn't get very far with torque. Well, I didn't buy torque to build a multi-million dollar game. I just want to learn enough to build a simple fps I would like to play with a few friends, and learn a bit in the process. In any event, I don't expect that saving a file should be beyond the abilities of torque. It's sort of one of those things that should work without me having to dive into some code and debug it myself. I'm pretty sure it's not a linux issue, but like I said, I'm a novice, and could be wrong. I dual boot, and don't have this problem with the windows version. Looks like I'm going to have to stay on Windows, even though I despise it, and even though I've spent hours and hours getting torque to run at all on linux. Might anyone have an idea on how to fix this, that doesn't involve me debuging torque ?

#1
01/07/2008 (10:30 am)
Do you try to launch the engine with option -nohomedir ?

/home/.../torqueDemo.bin -nohomedir
#2
01/07/2008 (1:07 pm)
I haven't tried that...but I will in 2 minutes.....

Thanks....

David
#3
01/07/2008 (1:38 pm)
Hi, that did work. Thank you very much...

:)

David
#4
01/13/2008 (3:22 pm)
Hi, I'm having a similar problem now, but it's with the gui editor. I make changes, any changes really, the maingui, like the start button tutorial, and everything works, I can save the changes, but they are all gone the next time I start torque. So I thought, well, I must have forgotten to start torque with the -nohomedir option, so I did everything all over again. Same result. No changes survived. I tried with both the ./torque.bin and the ./torque_DEBUG.bin that I compiled myself, and the result was the same both times. So what does a guy have to do to be able to save a file ?

Thanks much....

David
#5
01/17/2008 (12:19 pm)
@ David

the issue described happens if you don't use the option -nohomedir or if the file that you try to update are in read only access
#6
01/17/2008 (2:25 pm)
The first problem was because I didn't yet know to use the -nohomedir option. I do have rwx permissions for all of torque. "chmod 777 -R /torque/* "might be stupid from a security standpoint, but it also means I won't have any permission problems. The second problem I mentioned turned out to be because I saved mainmenu.gui in the first place that torque brought me when I clicked "Save as". Well, turns out that's not where mainmenu.gui goes, I had to drill down through a few folders to find the right spot. That's just stupidity on my part I guess, first thing I should have checked before bothering anyone here. Thank you for getting back to me. I did double check the permissions for every directory, to try to figure out why I can't get the terrainterraformer to work. I have rwx permissions for everything, and it still won't work. I have no idea what I'm doing wrong there. I am using the -nohomedir option, and I'm certain about the permissions. Anyone have any idea's on what I can try next ?

Ahhh....one more thing....when I change the terrain manually, then try to apply an operation, like sinus, all my changes are gone, and it's back to flatland. I'm completely confused.

Thanks much.....

David