Previous Thread
Next Thread
Print Thread
Nestopia permanant configuration for controller #62884
06/18/10 02:14 AM
06/18/10 02:14 AM
Joined: Jun 2010
Posts: 1
A
ac1102 Offline OP
Member
ac1102  Offline OP
Member
A
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
Re: Nestopia permanant configuration for controller [Re: ac1102] #63080
07/01/10 01:33 AM
07/01/10 01:33 AM
Joined: May 2008
Posts: 61
M
Mighty Mo Offline
Member
Mighty Mo  Offline
Member
M
Joined: May 2008
Posts: 61
Just make your nestopia.xml file read-only.

Re: Nestopia permanant configuration for controller [Re: Mighty Mo] #63171
07/06/10 12:08 AM
07/06/10 12:08 AM
Joined: Jul 2010
Posts: 4
Z
zargon33 Offline
Member
zargon33  Offline
Member
Z
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?

Re: Nestopia permanant configuration for controller [Re: zargon33] #63188
07/06/10 06:30 PM
07/06/10 06:30 PM
Joined: Sep 2008
Posts: 11
Washington State
B
buzbard Offline
Member
buzbard  Offline
Member
B
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.
Re: Nestopia permanant configuration for controller [Re: buzbard] #63249
07/08/10 02:40 AM
07/08/10 02:40 AM
Joined: Jul 2010
Posts: 3
B
BuddMan Offline
Member
BuddMan  Offline
Member
B
Joined: Jul 2010
Posts: 3
How do you get rid of the warning that it cannot write to the file on exit?

Re: Nestopia permanant configuration for controller [Re: BuddMan] #63468
07/18/10 07:32 PM
07/18/10 07:32 PM
Joined: Jul 2010
Posts: 4
Z
zargon33 Offline
Member
zargon33  Offline
Member
Z
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

Re: Nestopia permanant configuration for controller [Re: zargon33] #63469
07/18/10 08:48 PM
07/18/10 08:48 PM
Joined: Mar 2001
Posts: 15,966
USA
R
R. Belmont Offline
Very Senior Member
R. Belmont  Offline
Very Senior Member
R
Joined: Mar 2001
Posts: 15,966
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.

Re: Nestopia permanant configuration for controller [Re: R. Belmont] #63492
07/19/10 06:56 PM
07/19/10 06:56 PM
Joined: Jul 2010
Posts: 4
Z
zargon33 Offline
Member
zargon33  Offline
Member
Z
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!

Re: Nestopia permanant configuration for controller [Re: zargon33] #63507
07/20/10 04:29 PM
07/20/10 04:29 PM
Joined: Sep 2008
Posts: 11
Washington State
B
buzbard Offline
Member
buzbard  Offline
Member
B
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.
Re: Nestopia permanant configuration for controller [Re: ac1102] #63954
08/22/10 04:39 AM
08/22/10 04:39 AM
Joined: Nov 2009
Posts: 1
S
Squega Offline
Member
Squega  Offline
Member
S
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
2 registered members (Pernod, 1 invisible), 23 guests, and 3 spiders.
Key: Admin, Global Mod, Mod
Shout Box
Forum Statistics
Forums9
Topics8,555
Posts111,753
Members4,801
Most Online225
May 26th, 2014
Powered by UBB.threads™ PHP Forum Software 7.6.1.1
(Release build 20180111)
Page Time: 0.031s Queries: 14 (0.012s) Memory: 5.6618 MB (Peak: 5.8802 MB) Zlib enabled. Server Time: 2018-07-21 01:56:06 UTC