• Login
  • Register
  • Dolphin Forums
  • Home
  • FAQ
  • Download
  • Wiki
  • Code


Dolphin, the GameCube and Wii emulator - Forums › Game Modifications › Custom Texture Projects v
1 2 3 4 5 ... 12 Next »

Custom Texture Tool PS v50.1
View New Posts | View Today's Posts

Pages (117): « Previous 1 ... 53 54 55 56 57 ... 117 Next »
Jump to page 
Thread Rating:
  • 8 Vote(s) - 4.88 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Thread Modes
Custom Texture Tool PS v50.1
09-03-2018, 09:45 PM (This post was last modified: 09-03-2018, 09:48 PM by Bighead.)
#541
Bighead Offline
Oversized Cranium
*******
Posts: 1,985
Threads: 15
Joined: Aug 2011
Hopefully this version is a bit more stable, I found a few more issues as well that needed fixing. My brief testing says it should be okay. Can you see if the options import correctly now?

http://www.mediafire.com/file/h57cr462zhecps0/Custom+Texture+Tool+PS+v34.2.7z
Donate - Custom Texture Tool - Xenoblade Chronicles HD - New Super Mario Bros. Wii HD - Paper Mario: TTYD HD (Contributor) - Skies of Arcadia HD
Website Find
Reply
09-03-2018, 10:19 PM (This post was last modified: 09-03-2018, 10:21 PM by Admentus.)
#542
Admentus Offline
Nothing but perfection for gaming
*******
Posts: 1,977
Threads: 25
Joined: May 2015
I tested it. It seems about right. I imported the program paths from version v33.0 into v34.2 and it worked. I have the proper program paths now.

But then... I tried to import the settings from v34.2 which were imported from v33.0 (successfully so far) into a new and fresh v34.2. And the following error showed itself:

Code:
Invoke-Expression : At line:1 char:122
+ ... rrent\ -Name BinPath -ErrorAction SilentlyContinue).BinPath + \magick ...
+                                                                  ~
You must provide a value expression following the '+' operator.
At line:1 char:123
+ ... t\ -Name BinPath -ErrorAction SilentlyContinue).BinPath + \magick.exe
+                                                               ~~~~~~~~~~~
Unexpected token '\magick.exe' in expression or statement.
At F:\Emulation\Wii\Custom Texture Tool PS\Custom Texture Tool PS v34.2 (2).ps1:724 char:37
+         'Expression'  { $VarValue = Invoke-Expression $LineValue }
+                                     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : ParserError: (:) [Invoke-Expression], ParseException
    + FullyQualifiedErrorId : ExpectedValueExpression,Microsoft.PowerShell.Commands.InvokeExpressionCommand

Invoke-Expression : At line:1 char:28
+ ([IO.Path]::GetTempPath() + CTT-PS)
+                            ~
You must provide a value expression following the '+' operator.
At line:1 char:29
+ ([IO.Path]::GetTempPath() + CTT-PS)
+                             ~~~~~~
Unexpected token 'CTT-PS' in expression or statement.
At line:1 char:28
+ ([IO.Path]::GetTempPath() + CTT-PS)
+                            ~
Missing closing ')' in expression.
At line:1 char:35
+ ([IO.Path]::GetTempPath() + CTT-PS)
+                                   ~
Unexpected token ')' in expression or statement.
At F:\Emulation\Wii\Custom Texture Tool PS\Custom Texture Tool PS v34.2 (2).ps1:724 char:37
+         'Expression'  { $VarValue = Invoke-Expression $LineValue }
+                                     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : ParserError: (:) [Invoke-Expression], ParseException
    + FullyQualifiedErrorId : ExpectedValueExpression,Microsoft.PowerShell.Commands.InvokeExpressionCommand
Super Mario 64 - Super Smash Bros. 64 - Mario Kart 64 - Zelda 64 - Star Fox 64 - Patreon - Discord
Find
Reply
09-03-2018, 10:32 PM (This post was last modified: 09-03-2018, 10:39 PM by Bighead.)
#543
Bighead Offline
Oversized Cranium
*******
Posts: 1,985
Threads: 15
Joined: Aug 2011
http://www.mediafire.com/file/2fieg984hmr83ky/Custom+Texture+Tool+PS+v34.2.zip

I just reupload. I knew not including braces there was a mistake... If there is still an error I'll need to reevaluate how I store ImageMagick path.

Edit: Now that I think about it, that version probably won't fix it either since the issue was the old script not having the braces. So ignore that above.

If you modify imagemagick var to be like: ((Get-ItemProperty -LiteralPath "HKLM:\Software\ImageMagick\Current\" -Name BinPath -ErrorAction SilentlyContinue).BinPath + '\magick.exe')

It will probably import correctly. I'll make a work-around to that. I changed the path to now include the executable, but that one version I didn't put braces around it, so it may just be that one version that is screwed up. For the future I'm just going to store a generic path there, and do the registry check later, and replace it if it exists.
Donate - Custom Texture Tool - Xenoblade Chronicles HD - New Super Mario Bros. Wii HD - Paper Mario: TTYD HD (Contributor) - Skies of Arcadia HD
Website Find
Reply
09-03-2018, 10:38 PM (This post was last modified: 09-03-2018, 10:40 PM by Admentus.)
#544
Admentus Offline
Nothing but perfection for gaming
*******
Posts: 1,977
Threads: 25
Joined: May 2015
Did the same process again. Imported the settings from v34.2 which were imported from v33.0 (successfully so far) into a new and fresh v34.2. The following issue occurred:

Code:
Invoke-Expression : At line:1 char:123
+ ... rrent\ -Name BinPath -ErrorAction SilentlyContinue).BinPath + \magick ...
+                                                                  ~
You must provide a value expression following the '+' operator.
At line:1 char:124
+ ... \ -Name BinPath -ErrorAction SilentlyContinue).BinPath + \magick.exe)
+                                                              ~~~~~~~~~~~
Unexpected token '\magick.exe' in expression or statement.
At line:1 char:123
+ ... rrent\ -Name BinPath -ErrorAction SilentlyContinue).BinPath + \magick ...
+                                                                  ~
Missing closing ')' in expression.
At line:1 char:135
+ ... \ -Name BinPath -ErrorAction SilentlyContinue).BinPath + \magick.exe)
+                                                                         ~
Unexpected token ')' in expression or statement.
At F:\Emulation\Wii\Custom Texture Tool PS\Custom Texture Tool PS v34.2 (2).ps1:706 char:37
+         'Expression'  { $VarValue = Invoke-Expression $LineValue }
+                                     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : ParserError: (:) [Invoke-Expression], ParseException
    + FullyQualifiedErrorId : ExpectedValueExpression,Microsoft.PowerShell.Commands.InvokeExpressionCommand

Invoke-Expression : At line:1 char:28
+ ([IO.Path]::GetTempPath() + CTT-PS)
+                            ~
You must provide a value expression following the '+' operator.
At line:1 char:29
+ ([IO.Path]::GetTempPath() + CTT-PS)
+                             ~~~~~~
Unexpected token 'CTT-PS' in expression or statement.
At line:1 char:28
+ ([IO.Path]::GetTempPath() + CTT-PS)
+                            ~
Missing closing ')' in expression.
At line:1 char:35
+ ([IO.Path]::GetTempPath() + CTT-PS)
+                                   ~
Unexpected token ')' in expression or statement.
At F:\Emulation\Wii\Custom Texture Tool PS\Custom Texture Tool PS v34.2 (2).ps1:706 char:37
+         'Expression'  { $VarValue = Invoke-Expression $LineValue }
+                                     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : ParserError: (:) [Invoke-Expression], ParseException
    + FullyQualifiedErrorId : ExpectedValueExpression,Microsoft.PowerShell.Commands.InvokeExpressionCommand

The path for ImageMagick is set to "True" (without quotation marks) rather than a path, which is the only program path that is installed to the register.

Is it a different error log?
Super Mario 64 - Super Smash Bros. 64 - Mario Kart 64 - Zelda 64 - Star Fox 64 - Patreon - Discord
Find
Reply
09-03-2018, 10:40 PM
#545
Bighead Offline
Oversized Cranium
*******
Posts: 1,985
Threads: 15
Joined: Aug 2011
Read my edits, I saw that coming. Tongue
Donate - Custom Texture Tool - Xenoblade Chronicles HD - New Super Mario Bros. Wii HD - Paper Mario: TTYD HD (Contributor) - Skies of Arcadia HD
Website Find
Reply
09-03-2018, 10:42 PM (This post was last modified: 09-03-2018, 10:43 PM by Admentus.)
#546
Admentus Offline
Nothing but perfection for gaming
*******
Posts: 1,977
Threads: 25
Joined: May 2015
I should be fine if I manually set the program paths this once, and from there on keep importing with each new version. I hope? I have to test.
Super Mario 64 - Super Smash Bros. 64 - Mario Kart 64 - Zelda 64 - Star Fox 64 - Patreon - Discord
Find
Reply
09-03-2018, 11:18 PM
#547
Bighead Offline
Oversized Cranium
*******
Posts: 1,985
Threads: 15
Joined: Aug 2011
I've been looking at the problem the wrong way. This should fix importing for all old versions no matter how old.
http://www.mediafire.com/file/n47ubp900jyxtab/Custom+Texture+Tool+PS+v34.3.zip

I also noticed I've been uploading these with the PS console visible, it's supposed to be hidden by default. You're free to enable it just to see if the errors are gone, but I'm fairly certain this should take care of it.
Donate - Custom Texture Tool - Xenoblade Chronicles HD - New Super Mario Bros. Wii HD - Paper Mario: TTYD HD (Contributor) - Skies of Arcadia HD
Website Find
Reply
09-03-2018, 11:35 PM (This post was last modified: 09-03-2018, 11:38 PM by Admentus.)
#548
Admentus Offline
Nothing but perfection for gaming
*******
Posts: 1,977
Threads: 25
Joined: May 2015
Nope. Sorry to tell you.

Code:
Invoke-Expression : At line:1 char:122
+ ... rrent\ -Name BinPath -ErrorAction SilentlyContinue).BinPath + \magick ...
+                                                                  ~
You must provide a value expression following the '+' operator.
At line:1 char:123
+ ... t\ -Name BinPath -ErrorAction SilentlyContinue).BinPath + \magick.exe
+                                                               ~~~~~~~~~~~
Unexpected token '\magick.exe' in expression or statement.
At F:\Emulation\Wii\Custom Texture Tool PS\Custom Texture Tool PS v34.3 - copy.ps1:688 char:20
+       $VarValue = (Invoke-Expression $LineValue).Trim() + '\magick.ex ...
+                    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : ParserError: (:) [Invoke-Expression], ParseException
    + FullyQualifiedErrorId : ExpectedValueExpression,Microsoft.PowerShell.Commands.InvokeExpressionCommand

This is a new error, right? I enabled the console to check it.

I imported the settings from v33.0 into v34.3 and then copy the settings from v34.3 into a new and fresh v34.3. But it did seem the settings did get imported. It just a warning I suppose.
Super Mario 64 - Super Smash Bros. 64 - Mario Kart 64 - Zelda 64 - Star Fox 64 - Patreon - Discord
Find
Reply
09-04-2018, 12:52 AM (This post was last modified: 09-04-2018, 01:22 AM by Bighead.)
#549
Bighead Offline
Oversized Cranium
*******
Posts: 1,985
Threads: 15
Joined: Aug 2011
Yeah its just importing the ImageMagick path that is failing, everything else should be okay. Basically what I'm trying to do is take the string and do different things with it. But it should handle all cases. Surrounded in braces ( ), and added string +something, etc.... Mostly so in the future I can put whatever I want in those variables and not worry about whether or not its gonna work or not.

((Get-ItemProperty -LiteralPath "HKLM:\Software\ImageMagick\Current\" -Name BinPath -ErrorAction SilentlyContinue).BinPath + '\magick.exe')

But this is what I seem to be having issues getting correct. I split it on the + sign.....
string1: (Get-ItemProperty -LiteralPath "HKLM:\Software\ImageMagick\Current\" -Name BinPath -ErrorAction SilentlyContinue).BinPath
string2: \magick.exe

Invoke-Expression on string1 should give us the path: C:\Program Files\Imagemagick, then add string 2 to that '\magick.exe' and now the full path is assembled. That can then be compared to the current path, and if they don't match, update it.

I don't use Invoke-Expression much, so there may be some nuances I'm not familiar with. Plus I shouldn't be working on this while tired and under pressure. I will get it working eventually, I want it to work for all versions regardless of what I had there just for the sake of it.

EDIT: Okay here is a real fix, I'm 1000% sure now.
http://www.mediafire.com/file/704b8oed608v98h/Custom+Texture+Tool+PS+v34.4.zip

How fitting the issue was I forgot the wildcard character. Tongue The last version should have worked if not for that. It wasn't finding the (+), thus not taking the special path, thus not getting split.
Donate - Custom Texture Tool - Xenoblade Chronicles HD - New Super Mario Bros. Wii HD - Paper Mario: TTYD HD (Contributor) - Skies of Arcadia HD
Website Find
Reply
09-04-2018, 01:29 AM (This post was last modified: 09-04-2018, 01:41 AM by Admentus.)
#550
Admentus Offline
Nothing but perfection for gaming
*******
Posts: 1,977
Threads: 25
Joined: May 2015
Yup, you fixed it completely. No more warnings and errors.

I still need to reload (exit and reopen) the Custom Texture Tool so that the imported program paths are usable. For example, setting the DDS Tool within DDS Texture Options only allows for ImageMagick since it is the path is found by default. Once the tool is reloaded the other tools (Compressonator, TextConv and Nvidia Tools) appear. I suppose that is intended? Don't worry about it. It's just me pointing out trivial details.

Now I am probably getting ahead of my self. The new Texture List window is awesome. Perhaps it would be a great addition that you can drag and drop textures directly into the list you wish to modify instead of going through your folder and select it? Althrough it is quite useful that the texture tool picks all textures from the current folder and the subfolders. Sometimes I am just too lazy to move the tool around to folder where I need it. I am more of a drag-and-drop guy, as it makes it easier to visually oversee what exactly I am trying to adjust.
Super Mario 64 - Super Smash Bros. 64 - Mario Kart 64 - Zelda 64 - Star Fox 64 - Patreon - Discord
Find
Reply
« Next Oldest | Next Newest »
Pages (117): « Previous 1 ... 53 54 55 56 57 ... 117 Next »
Jump to page 


  • View a Printable Version
  • Subscribe to this thread
Forum Jump:


Users browsing this thread: 2 Guest(s)



Powered By MyBB | Theme by Fragma

Linear Mode
Threaded Mode