trueSpace 7.61 Unofficial Update Patches

User avatar
clintonman
Captain
Posts: 5432
Joined: 21 May 2009, 21:08
Type the number ten into the box: 0
Location: California
Contact:

trueSpace 7.61 Unofficial Update Patches

Post by clintonman »

Stack View Patch

fixes instability when opening a new stack view and drag/docking it into position.

install - drag into the link editor and press the Run button

Problem Details

sequence of steps:
close the stack view
press the stack view button to open a new stack view
ctrl+drag the new stack view to the original stack view position
result - bad window artifact and unstable/crashy trueSpace

Fix

problem is caused by assigning an owner to the stack view so it does not get covered by the main tS window
so remove the owner assignment
result: upside - no crashes, downside - the main window can cover it up the floating stack view


Edit: Removed attachment. Updated file is below in new post.
Last edited by clintonman on 16 Sep 2023, 15:44, edited 1 time in total.
Clinton Reese

http://clintons3d.com
User avatar
clintonman
Captain
Posts: 5432
Joined: 21 May 2009, 21:08
Type the number ten into the box: 0
Location: California
Contact:

Re: trueSpace 7.61 Unofficial Update Patches

Post by clintonman »

Attached is the "original camera plus" widget from uu4clinton 2.0
trueBlue has offered to add it to the UU directly, so no patch installer for this one.
Attachments
OriginalCameraPlus.RsObj
(330.73 KiB) Downloaded 42 times
Clinton Reese

http://clintons3d.com
User avatar
clintonman
Captain
Posts: 5432
Joined: 21 May 2009, 21:08
Type the number ten into the box: 0
Location: California
Contact:

Re: trueSpace 7.61 Unofficial Update Patches

Post by clintonman »

clintonman wrote: 15 Sep 2023, 19:16 Stack View Patch

fixes instability when opening a new stack view and drag/docking it into position.

install - drag into the link editor and press the Run button

Problem Details

sequence of steps:
close the stack view
press the stack view button to open a new stack view
ctrl+drag the new stack view to the original stack view position
result - bad window artifact and unstable/crashy trueSpace

Fix

problem is caused by assigning an owner to the stack view so it does not get covered by the main tS window
so remove the owner assignment
result: upside - no crashes, downside - the main window can cover it up the floating stack view
Updated patch

After the floating stack view is open it will automatically dock back into the default position.
This requires that the Info Panel is still in it's original position. If not then the panel remains floating.

Edit: attachment removed because it worked with all layouts except for the Default layout
Last edited by clintonman on 16 Sep 2023, 18:15, edited 1 time in total.
Clinton Reese

http://clintons3d.com
User avatar
clintonman
Captain
Posts: 5432
Joined: 21 May 2009, 21:08
Type the number ten into the box: 0
Location: California
Contact:

Re: trueSpace 7.61 Unofficial Update Patches

Post by clintonman »

clintonman wrote: 15 Sep 2023, 19:16 Stack View Patch

fixes instability when opening a new stack view and drag/docking it into position.

install - drag into the link editor and press the Run button

Problem Details

sequence of steps:
close the stack view
press the stack view button to open a new stack view
ctrl+drag the new stack view to the original stack view position
result - bad window artifact and unstable/crashy trueSpace

Fix

problem is caused by assigning an owner to the stack view so it does not get covered by the main tS window
so remove the owner assignment
result: upside - no crashes, downside - the main window can cover it up the floating stack view


Edit: Removed attachment. Updated file is below in new post.
Updated patch

After the floating stack view is open it will automatically dock back into the default position.
This requires that the Info Panel is still in it's original position. If not then the panel remains floating

The previous patch worked for all layouts except the default.
Now it works with all the layouts.
Attachments
Stack View Patch04.RsObj
(70.34 KiB) Downloaded 45 times
Clinton Reese

http://clintons3d.com
User avatar
clintonman
Captain
Posts: 5432
Joined: 21 May 2009, 21:08
Type the number ten into the box: 0
Location: California
Contact:

Re: trueSpace 7.61 Unofficial Update Patches

Post by clintonman »

Hide / Show Patch

Fixed bug so Hide and Show works without the need to check "Use Intensive Visibility mode".
No installer.
Attachments
Visibility Function Set.RsObj
(47.69 KiB) Downloaded 41 times
Clinton Reese

http://clintons3d.com
User avatar
trueBlue
Captain
Posts: 5216
Joined: 06 Jul 2009, 22:50
Type the number ten into the box: 10

Re: trueSpace 7.61 Unofficial Update Patches

Post by trueBlue »

clintonman wrote: 17 Sep 2023, 14:11 Hide / Show Patch

Fixed bug so Hide and Show works without the need to check "Use Intensive Visibility mode".
No installer.
Great, I will uncheck "Use Intensive Visibility mode" now that the Show and Hide toolbar buttons will work
No longer need to go and get coffee! :mrgreen:
Can not remember, I think I added the function; VisibilityMode()
Looks like all references to that can be removed?
User avatar
clintonman
Captain
Posts: 5432
Joined: 21 May 2009, 21:08
Type the number ten into the box: 0
Location: California
Contact:

Re: trueSpace 7.61 Unofficial Update Patches

Post by clintonman »

trueBlue wrote: 17 Sep 2023, 14:54
clintonman wrote: 17 Sep 2023, 14:11 Hide / Show Patch

Fixed bug so Hide and Show works without the need to check "Use Intensive Visibility mode".
No installer.
Great, I will uncheck "Use Intensive Visibility mode" now that the Show and Hide toolbar buttons will work
No longer need to go and get coffee! :mrgreen:
Can not remember, I think I added the function; VisibilityMode()
Looks like all references to that can be removed?
Yep
Clinton Reese

http://clintons3d.com
User avatar
trueBlue
Captain
Posts: 5216
Joined: 06 Jul 2009, 22:50
Type the number ten into the box: 10

Re: trueSpace 7.61 Unofficial Update Patches

Post by trueBlue »

I have implemented all your trueSpace 7.61 Unofficial Update Patches except for the Stack View Patch

I added a Restore Stack script to UUCommands
This restores the current layout with one exception, if the current layout is the default_layout.rsl, it will be restored to the Default.rsl which is exactly the same
The UUFunctionSet/function OpenHistoryWindow(),
Runs: Activity.Run('Scripts/UUCommands/Restore Stack')

Code: Select all

// Execute 
// Called to execute the command 
function Execute(params)
{
	var WMS = WindowsManager.GetWindowsManagerNodeName();
	var StackPanelNode = FindStackPanel(WMS);
	var layout = Node.Value("/Project/Windows Manager Space", "LayoutName")
	var fso = new ActiveXObject("Scripting.FileSystemObject")

	if(StackPanelNode) {
		System.Alert('Stack View ia already open')
		return;
	}

	if(!fso.FolderExists(System.GetMainDir() + '\\Rs Main Libraries\\')) {
		System.Alert('Rs Main Libraries folder does not exist\n\nSelect a layout from the top titlebar to restore the Stack View')	
		return
	}

	if(layout == 'default_layout') {
		if(fso.FileExists(System.GetMainDir() + '\\Rs Main Libraries\\Layouts - Configurations\\Default.rsl'))
			WindowsManager.LoadLayout('\\Rs Main Libraries\\Layouts - Configurations\\Default.rsl')
		return
	}

	if(fso.FileExists(System.GetMainDir() + '\\Rs Main Libraries\\Layouts - Configurations\\' + layout + '.rsl')) {
		WindowsManager.LoadLayout('\\Rs Main Libraries\\Layouts - Configurations\\' + layout + '.rsl')
	}

}
function FindStackPanel(currentNode)
{
	if(Node.ShortName(currentNode) == "StackPanelView Node") {
		return currentNode;
	}

	var subObjCount = Node.SubObjectCount(currentNode);

	if(subObjCount == 0) return;

	for(var i=0;i<subObjCount;i++) {
		var subObj = currentNode + "/" + Node.SubObject(currentNode, i);
		var foundval = FindStackPanel(subObj);
		if(foundval) {
			return foundval;
		}
	}
}
Hopefully, in the near future, your Stack View Patch installer will not change the upcoming UUCommands
User avatar
clintonman
Captain
Posts: 5432
Joined: 21 May 2009, 21:08
Type the number ten into the box: 0
Location: California
Contact:

Re: trueSpace 7.61 Unofficial Update Patches

Post by clintonman »

Freeze Transform

was easier to just change button labels from to "Local" to "Active" instead of replacing with the original check boxes

refined the help, but still not perfect because of the complexity of doing a combination of pivot and mesh manipulation.


changed a problem line of code, primitives where not behaving

Code: Select all

		//only valid for meshes
		//if(Node.IsRenderable(selName))
		if (Node.Exists(selName + "/Editable shape") || Node.Exists(selName + "/Shape"))
			MeshModifiers.FlattenAxes(selName);
Attachments
freezeTransforms07.RsObj
(21.54 KiB) Downloaded 42 times
Clinton Reese

http://clintons3d.com
User avatar
clintonman
Captain
Posts: 5432
Joined: 21 May 2009, 21:08
Type the number ten into the box: 0
Location: California
Contact:

Re: trueSpace 7.61 Unofficial Update Patches

Post by clintonman »

Replacement Origin Function Set that won't run on dimension objects
Attachments
Origin Function Set01.RsObj
(29.75 KiB) Downloaded 43 times
Clinton Reese

http://clintons3d.com
Post Reply