GUI Editor file save problem

GUI Editor file save problem

Postby ZeroKnight » 11 Sep 2011, 10:30

Here's the problem. The GUI file editor, by default starts to look for a file specified that's in the home directory. I can get it to read a file properly from the Red Eclipse data folder if I specifically do:

{l Code}: {l Select All Code}
showfileeditor data/ExtendedCompass/ECcComp.cfg


HOWEVER, when saved, it will NOT save to the same path. However, it will instead save to data/ExtendedCompass/ECcComp.cfg inside the home dir.
Why does it default there? quin, or any other dev, if it's not asking too much, could you give me a source edit to fix this? (I can just add it to my current one) Or to somehow force it to save properly?
Right now this is hindering a rather important feature of Extended Compass D:
[ Github ][ WazuClan -- irc.wazuclan.com #wazuclan ][ Zero's Archive of RE Extensions, Scripts, WeapMods & More! ]
User avatar
ZeroKnight
 
Posts: 524
Joined: 08 Jun 2011, 01:24
Location: Ohio, United States

Re: GUI Editor file save problem

Postby sireus » 11 Sep 2011, 15:28

Now I can't speak for quin, but AFAIK this is completely intentional. RE assumes it can't write to the regular data directory because it's ofetn in C:\Program Files on Windows or in /opt on a *NIX or somewhere else the normal user has no write access to. Therefore, it writes everything to the home directory. The only way to override this would be adding -q. to the command line (provided you do have write access in the main dir).
Either way, I don't get why this is a problem. Please explain.
sireus
 
Posts: 109
Joined: 24 May 2011, 20:10

Re: GUI Editor file save problem

Postby ZeroKnight » 11 Sep 2011, 21:26

Well, I just said quin because he's the only active dev on the forum.
Anyway, the features are the ability to edit ExtendedCompass.cfg INSIDE RE, save it, and re-exec the changes. The same for a separate file that stores user-made compasses. Traditionally, your scripts go in the data folder (I keep all of mine under "data/scripts"). So it would be nice to just keep them there. The odd thing is that it will read from the right spot, but will still save to the home dir.

However, now that it's not 5am and I'm processing at 100%, things are still read from there, so I guess it wouldn't be all that big of a deal to move them all to the home dir. That way it would even stay with the ecdata.cfg file.

I feel pretty retarded solving my own thread, but yeah. You did bring up a good point, sireus, so thanks. Sorry for the rather pointless thread ._.
[ Github ][ WazuClan -- irc.wazuclan.com #wazuclan ][ Zero's Archive of RE Extensions, Scripts, WeapMods & More! ]
User avatar
ZeroKnight
 
Posts: 524
Joined: 08 Jun 2011, 01:24
Location: Ohio, United States

Who is online

Users browsing this forum: No registered users and 0 guests