Change default project

For discussion of Phil Tobin's Tuner Studio software (Only about the tuning software itself, not about how to tune or firmware features)

Moderator: LT401Vette

Post Reply
UnaClocker
Super MS/Extra'er
Posts: 1933
Joined: Fri May 07, 2004 12:59 pm
Location: Tacoma, WA
Contact:

Change default project

Post by UnaClocker »

I'm using the latest version, and ever since updating to that version, it's done a great job of loading my original project, whereas the last version didn't. But I've since created a new project, and I'd like it to load that one by default for the time being. How do I go about doing that? I assumed it would just load my last project.. But it isn't doing that.
Brian
'84 Dodge Rampage
LT401Vette
Super MS/Extra'er
Posts: 12733
Joined: Sat Jul 16, 2005 8:07 am
Location: Moorseville, NC
Contact:

Re: Change default project

Post by LT401Vette »

It should be loading the last project you opened on start up....

Which latest version are you using :). I just put out 0.987.5 yesterday.

Also, how are you exiting? Are your other app preferences getting saved? like window position?
Phil Tobin
EFI Analytics, helping to simplify EFI
Next Generation tuning software.
Supporting all MegaSquirt versions and firmwares.
http://www.TunerStudio.com
http://www.efiAnalytics.com/MegaLogViewer/
Support the firmware running your engine:
http://www.msextra.com/doc/donations.html
UnaClocker
Super MS/Extra'er
Posts: 1933
Joined: Fri May 07, 2004 12:59 pm
Location: Tacoma, WA
Contact:

Re: Change default project

Post by UnaClocker »

It was .4, I hadn't gotten .5 yet.. And no, the other app preferences are not getting saved either.
Brian
'84 Dodge Rampage
24c
Master MS/Extra'er
Posts: 847
Joined: Tue Jan 20, 2009 10:21 am
Location: Lancashire UK
Contact:

Re: Change default project

Post by 24c »

Check your user.properties file (it'll open with TextEdit) and see if your current project is the one you want. IIRC, I had the same issue some time ago, and the preferences were checked to open last project.

I seem to remember you can always edit the file TunerStudio.properties, but maybe better to perhaps trash it and when TunerStudio restarts, you just have to open your project again, and point to your Tune, and it'll create a new one...AFAIK :)
Yamaha GTS1000 v2 MicroSquirt, B&G 2.891
Yamaha GTS1000 v3 beta MicroSquirt, B&G3.760
Yamaha GTS1000 MSExtra 3.1, Dual VR Board
Yamaha YZF1000 MSExtra 3.1
UnaClocker
Super MS/Extra'er
Posts: 1933
Joined: Fri May 07, 2004 12:59 pm
Location: Tacoma, WA
Contact:

Re: Change default project

Post by UnaClocker »

I deleted the TunerStudioProjects directory, and the TunerStudio directory itself, redownloaded and re-installed. It's all good now. I think that initial run as root I did last time seriously hosed the permissions. I didn't do that this time.
Brian
'84 Dodge Rampage
LT401Vette
Super MS/Extra'er
Posts: 12733
Joined: Sat Jul 16, 2005 8:07 am
Location: Moorseville, NC
Contact:

Re: Change default project

Post by LT401Vette »

Hmm, that's interesting. If you ran as root I think I know what happened. Preferences like window position, last project... Are in the user.properties file. It is loaded at startup, then written on app shut down. I suppose if you run as root I suppose this file could end up with root as the owner and next time you run not as root you would not have permissions. The could happen to the project.properties file too.
I'll have to try it and see if this is true.
Phil Tobin
EFI Analytics, helping to simplify EFI
Next Generation tuning software.
Supporting all MegaSquirt versions and firmwares.
http://www.TunerStudio.com
http://www.efiAnalytics.com/MegaLogViewer/
Support the firmware running your engine:
http://www.msextra.com/doc/donations.html
LT401Vette
Super MS/Extra'er
Posts: 12733
Joined: Sat Jul 16, 2005 8:07 am
Location: Moorseville, NC
Contact:

Re: Change default project

Post by LT401Vette »

I tried running it as root on linux, it didn't change the owner or permissions.
But it just occurred to me... If you ran it the 1st time as root, or created a new project as root, it might
Phil Tobin
EFI Analytics, helping to simplify EFI
Next Generation tuning software.
Supporting all MegaSquirt versions and firmwares.
http://www.TunerStudio.com
http://www.efiAnalytics.com/MegaLogViewer/
Support the firmware running your engine:
http://www.msextra.com/doc/donations.html
UnaClocker
Super MS/Extra'er
Posts: 1933
Joined: Fri May 07, 2004 12:59 pm
Location: Tacoma, WA
Contact:

Re: Change default project

Post by UnaClocker »

Yeah, I ran the first time as root because that was in 24c's OSX instructions.. I already had to repair some of the permissions just to be able to create a project after having done that.. So for future reference, he should remove that step from his instructions.
Brian
'84 Dodge Rampage
24c
Master MS/Extra'er
Posts: 847
Joined: Tue Jan 20, 2009 10:21 am
Location: Lancashire UK
Contact:

Re: Change default project

Post by 24c »

Sorry, I thought I had, I only used root early on in the "Testing on OSX" thread, because i didn't know my user name...(I didn't understand the permissions thing at that point. :oops: )

Edit:This is the later instructions that can be found in the Testing in OSX thread, for 10.5, 10.4 is the next post
http://www.msextra.com/viewtopic.php?f= ... 00#p200647

All that matters is you restart your Mac or logout to enable them, and everything is fine. I did have an isssue with permissions later, issue with my Projects folder after using RXTX 2.2, that was corrected by using Get info, but you won't be using this.

PS I have made a double clickable .jar to .app conversion with JarBundler last night, with icon, but the paths are scrambled and I get error messages on the way to the opening screen and dash display. I need to understand this some more, but this is the way to go, my other stuff is a kludge/temp fix.
Yamaha GTS1000 v2 MicroSquirt, B&G 2.891
Yamaha GTS1000 v3 beta MicroSquirt, B&G3.760
Yamaha GTS1000 MSExtra 3.1, Dual VR Board
Yamaha YZF1000 MSExtra 3.1
UnaClocker
Super MS/Extra'er
Posts: 1933
Joined: Fri May 07, 2004 12:59 pm
Location: Tacoma, WA
Contact:

Re: Change default project

Post by UnaClocker »

type sudo sh ./TunerStudio.sh
from your instructions you just linked to.. That's the part that is causing the problem.
Brian
'84 Dodge Rampage
24c
Master MS/Extra'er
Posts: 847
Joined: Tue Jan 20, 2009 10:21 am
Location: Lancashire UK
Contact:

Re: Change default project

Post by 24c »

OK thanks for that, I just condensed and simplified what I had done for 10.5, and I think the issue is as you say it is. With hindsight, as looking at the 10.4 install I didn't mess with Terminal at all. All that step did in 10.5 was make the .sh file executable, but it sounds like it can be bypassed as the TunerStudio.jar has the necessary permissions now anyway. I have since read you only need to do a chmod +x on the filename, so the sudo is way too heavy, besides you can do it with Get Info anyway.

It definitely looks like that step isn't needed, but my MacBook is messed up...what it needs now is somebody with 10.5 to skip it, and just carry out the 10.4 instructions, but use the Leopard RXTX installer installer.

PS I'm still playing with JarBundler, but I'll edit it later when I do a clean up on the MacBook, and after I do a check back. I don't think too many folks are using OSX and TunerStudio ... yet! :)
Yamaha GTS1000 v2 MicroSquirt, B&G 2.891
Yamaha GTS1000 v3 beta MicroSquirt, B&G3.760
Yamaha GTS1000 MSExtra 3.1, Dual VR Board
Yamaha YZF1000 MSExtra 3.1
Post Reply