Previous Thread
Next Thread
Print Thread
#62884 - 06/18/10 02:14 AM Nestopia permanant configuration for controller  
Joined: Jun 2010
Posts: 1
ac1102 Offline
Member
ac1102  Offline
Member

Joined: Jun 2010
Posts: 1
I've looked thru and found a few articles. However, think of me as the guy who read the back of cliff's notes. Here's OUR problem, when we close nestopia it loses the configuration. I've seen a few things where they change file types and save the configuration. I just can't or need the most basic instructions. I bought this HP for my sister and her kids would probably love retro. So I want to plug them in the back of the computer and leave them configured. I'm running Windows 7 - 64 bit. My sister will be running XP Pro - 32bit

Thanks in advance

Last edited by ac1102; 06/18/10 02:38 AM. Reason: O/S information
#63080 - 07/01/10 01:33 AM Re: Nestopia permanant configuration for controller [Re: ac1102]  
Joined: May 2008
Posts: 61
Mighty Mo Offline
Member
Mighty Mo  Offline
Member

Joined: May 2008
Posts: 61
Just make your nestopia.xml file read-only.

#63171 - 07/06/10 12:08 AM Re: Nestopia permanant configuration for controller [Re: Mighty Mo]  
Joined: Jul 2010
Posts: 4
zargon33 Offline
Member
zargon33  Offline
Member

Joined: Jul 2010
Posts: 4
Just wanted to add that I have the exact same problem, and can't seem to find any solution. I made nestopia.xml read-only but that didn't fix it. Every time I exit Nestopia and go back in, I have to remap my controllers from scratch.

Anyone have any ideas?

#63188 - 07/06/10 06:30 PM Re: Nestopia permanant configuration for controller [Re: zargon33]  
Joined: Sep 2008
Posts: 11
buzbard Offline
Member
buzbard  Offline
Member

Joined: Sep 2008
Posts: 11
Washington State
Nestopia re-writes the xml file as it exits, so, if you make changes to Nestopia's configuration and then set the xml file's read-only attribute while Nestopia is still running your changes will not be saved.

Make your changes to Nestopia,
Exit Nestopia,
Set read-only attribute on xml file.

Last edited by buzbard; 07/06/10 06:33 PM.
#63249 - 07/08/10 02:40 AM Re: Nestopia permanant configuration for controller [Re: buzbard]  
Joined: Jul 2010
Posts: 3
BuddMan Offline
Member
BuddMan  Offline
Member

Joined: Jul 2010
Posts: 3
How do you get rid of the warning that it cannot write to the file on exit?

#63468 - 07/18/10 07:32 PM Re: Nestopia permanant configuration for controller [Re: BuddMan]  
Joined: Jul 2010
Posts: 4
zargon33 Offline
Member
zargon33  Offline
Member

Joined: Jul 2010
Posts: 4
Thanks buzbard for adding that info, that worked!

I have the same question that BuddMan, how do you get rid of the warning? I'm guessing an AHK script? I can't seem to find one

#63469 - 07/18/10 08:48 PM Re: Nestopia permanant configuration for controller [Re: zargon33]  
Joined: Mar 2001
Posts: 15,775
R. Belmont Offline
R. Belmont  Offline

Very Senior Member

Joined: Mar 2001
Posts: 15,775
USA
Make a copy of the config, leave it writable (to get rid of the warning), and use a .bat to launch NST that copies the backup config to the real file then launches the emulator.

#63492 - 07/19/10 06:56 PM Re: Nestopia permanant configuration for controller [Re: R. Belmont]  
Joined: Jul 2010
Posts: 4
zargon33 Offline
Member
zargon33  Offline
Member

Joined: Jul 2010
Posts: 4
Aha, brilliant. I thank you, I just started using batch files recently so I can make this happen. THanks again!

#63507 - 07/20/10 04:29 PM Re: Nestopia permanant configuration for controller [Re: zargon33]  
Joined: Sep 2008
Posts: 11
buzbard Offline
Member
buzbard  Offline
Member

Joined: Sep 2008
Posts: 11
Washington State
The problem with a .bat file is that you're left with a command prompt window.

The best solution that I've found is to use a VBScript file.

Make a copy of your nestopia.xml file and rename it to nestopia.xm_
Create a new text document, name it NES.vbs and paste the folloing text:

Quote:
Set wshShell = CreateObject("WScript.Shell")
wshShell.run "cmd /c copy nestopia.xm_ nestopia.xml",0,true
wshShell.run "nestopia.exe",1,false
Set wshShell =nothing


Point your shortcut to the new NES.vbs file.
It just copies the .xm_ back to the .xml before running nestopia and doesn't leave that annoying blank command prompt window in the background.

Last edited by buzbard; 07/20/10 04:32 PM.
#63954 - 08/22/10 04:39 AM Re: Nestopia permanant configuration for controller [Re: ac1102]  
Joined: Nov 2009
Posts: 1
Squega Offline
Member
Squega  Offline
Member

Joined: Nov 2009
Posts: 1
I had a similar issue. I'm running Windows 7 64-bit. When I closed Nestopia the process would hang (stay at 0 cpu utilization) while it tried to write the XML config and I would need to completely reconfigure it on every load. I read either here or somewhere else this is because Windows 7 tries to force 'legacy' applications to write to 'C:\Program Data\<application_name>' (it's a hidden folder) and that conflicts with Nestopia while it tries to write the config. I moved the Nestopia installation to 'C:\Program Data\nestopia' and I haven't had a single issue with this for about 2 months now. I would know if I had this issue again because I use Nestopia with a front-end program (GameEx) that waits for the emulator to close before switching back to itself so having Nestopia hang on close is noticeable and annoying.

I hope this saves someone hours of pain.

Last edited by Squega; 08/22/10 04:40 AM.

Moderated by  Marty, R. Belmont 

Who's Online Now
1 registered members (1 invisible), 23 guests, and 3 spiders.
Key: Admin, Global Mod, Mod
Shout Box
Forum Statistics
Forums9
Topics8,456
Posts109,747
Members4,768
Most Online225
May 26th, 2014
Powered by UBB.threads™ PHP Forum Software 7.6.0
Page Time: 0.025s Queries: 14 (0.007s) Memory: 5.0046 MB (Peak: 5.2265 MB) Zlib enabled. Server Time: 2017-12-15 21:33:24 UTC