Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

FPSC Classic Product Chat / FPSC Creator - Fix all Models

Author
Message
Kemerd
13
Years of Service
User Offline
Joined: 8th Apr 2013
Location:
Posted: 15th Apr 2013 13:14 Edited at: 17th Apr 2013 13:13
We all know that .jpgs, went unsupported a while ago, but a lot of the files we download today are still jpeg, and when we have jpeg, they don't appear in the test or build game. I, have a fix.

First, download Notepad++ (I use the portable version for no installation!) We'll use that later on.

Go to your FPS Creator/files

Hold Shift, and right click on entity bank, click Open CMD Here

Copy this code.


Now in the cmd, right click, and paste. This should convert all current .jpg(s) to .png(s).

But we're not done. We have to modify the .fpe files to use the new .png texture. This is where notepad ++ comes in.

Open up Notepad++, mouse over the Search tab, and hit find in files. Make it look like this:

Find what: jpg
Replace with: png
Filters: *.fpe

Search Mode: Extended

Yes, it has the *.fpe, that is not a mistake. It makes it search for .fpe. Now, the directory, you should direct to your entitiy bank, and make sure 'In all sub-folders' is checked, under the close button to the right.

Click Find All. It should find all the fpe files telling them to get the jpg instead of png.

Go down the the box on the bottom.

CRTL+A or Select all.

Right click and open all. Now go to the search tab again. Click find.

Hit the replace tab and make it look like this.

Find what: jpg
Replace with: png

Now hit 'Replace All in All Opened Documents'

-----------------------------------------------


EDIT: Never do the stuff in the code snippet. It crashes your PC by opening too many files. I need to find a way to only edit recently edited files. My best advice is to search for another solution, or manually do it. -----|
| Do not do!
|
V


You're done!

Meh
xplosys
20
Years of Service
User Offline
Joined: 5th Jan 2006
Playing: FPSC Multiplayer Games
Posted: 15th Apr 2013 18:13
This sounds interesting. Just to clarify a few things...

Where does the command "Open CMD Here" here come from, as I don't see it available to me in regular Windows. (W7) What program installs it?
Does the command "for /r %a in (*.jpg) do ren "%a" "%~na.png" actually change the image format to png, or just change the extension?

Brian.
yrkoon
22
Years of Service
User Offline
Joined: 14th Jan 2004
Location:
Posted: 15th Apr 2013 18:34
Quote: "Where does the command "Open CMD Here" here come from, as I don't see it available to me in regular Windows. (W7) What program installs it?"


that is a Shell Extension, available from the context menu; I think there are several ways to get it

Quote: "Does the command "for /r %a in (*.jpg) do ren "%a" "%~na.png" actually change the image format to png, or just change the extension?"


That one made me smile, too. Of course, it's only a rename, so,it won't be of much use when jpg-support will really be dropped.

Lives of great men all remind us we may make our lives sublime
BlackFox
FPSC Master
18
Years of Service
User Offline
Joined: 5th May 2008
Location: Knight to Queens Bishop 3
Posted: 15th Apr 2013 20:08
Why would you want to rename a file extension when you can use something like XnView which supports "batch" conversion? Renaming the file extension only allows the engine to use it since the source either lists "dds", "png", or "tga" in the source when calling for file(s). A simple rename may be fine, but it could yield strange results for some. It is better to use an app (like XnView, Photoshop, etc) to open the JPG and then save in the different format.

Also, just to clarify- JPG can be used in v1.17 and lower; it could also be used in v1.18+ but then you won't have shaders working properly. The reason for this was due to JPG textures not working with the "shaders" and causing all kinds of anomalies for people.


There's no problem that can't be solved without applying a little scripting.
Kemerd
13
Years of Service
User Offline
Joined: 8th Apr 2013
Location:
Posted: 16th Apr 2013 23:12
Because maybe people don't want to install programs.

There.

Meh
BlackFox
FPSC Master
18
Years of Service
User Offline
Joined: 5th May 2008
Location: Knight to Queens Bishop 3
Posted: 17th Apr 2013 01:10
Quote: "Because maybe people don't want to install programs."


You are missing the point. Yes, you can "rename" the file from "jpg" to "png" using a standard DOS rename command function, but it is still in JPG format even though the extention has changed. Some shaders do not work properly with JPG, so even though you simply rename the file, it is still a JPG and still could cause issues. Now someone decides to use a shader and gets some weird anomaly only to later discover it is the file they renamed that caused the issue.

That was my point.


There's no problem that can't be solved without applying a little scripting.
Kemerd
13
Years of Service
User Offline
Joined: 8th Apr 2013
Location:
Posted: 17th Apr 2013 12:34 Edited at: 17th Apr 2013 13:14
I'll add a part to the tutorial that fixes it. Give me a moment.

Thanks for the feedback.

Grr, no luck. Sorry guys.

Meh
s4real
VIP Member
19
Years of Service
User Offline
Joined: 22nd Jul 2006
Location:
Posted: 20th Apr 2013 15:12
just to clarify- JPG is still supported in FPSC and was never taken out.

The reason they don't show is something to do with the fullscreen shaders and jpg should work fine with fullscreen shaders are off.


best s4real

Pack ya games with vishnu packer its free. Vishnu game launcher is now released.
Help keep vishnu free by pledging now :- http://vishnu.chipin.com/vishnu
BlackFox
FPSC Master
18
Years of Service
User Offline
Joined: 5th May 2008
Location: Knight to Queens Bishop 3
Posted: 20th Apr 2013 17:21
Quote: "just to clarify- JPG is still supported in FPSC and was never taken out.

The reason they don't show is something to do with the fullscreen shaders and jpg should work fine with fullscreen shaders are off."


Funny, that is what I said. You can't just rename a JPG extension to PNG and expect it to work as the renamed file is still in JPG format. It has to be properly converted from one format to the next.


There's no problem that can't be solved without applying a little scripting.
Kemerd
13
Years of Service
User Offline
Joined: 8th Apr 2013
Location:
Posted: 22nd Apr 2013 12:41
Ok then, you can use a program like photoshop to convert them over, but I still think the Notepad ++ part of the guide is pretty useful.

Thanks for all the help.

Meh
rolfy
20
Years of Service
User Offline
Joined: 23rd Jun 2006
Location:
Posted: 22nd Apr 2013 13:40
Quote: "Because maybe people don't want to install programs."

Quote: "Ok then, you can use a program like photoshop to convert them over"

Darn, and there I was thinking I could do things without installing any programs ever again. Sigh! I miss the good old days

I don't trip over...I do random gravity checks.
Kemerd
13
Years of Service
User Offline
Joined: 8th Apr 2013
Location:
Posted: 22nd Apr 2013 23:28
http://forum.thegamecreators.com/?m=forum_view&t=169854&b=21

Meh
Teabone
Valued Member
20
Years of Service
User Offline
Joined: 8th Jun 2006
Location: Canada
Posted: 23rd Apr 2013 07:33
Yeah changing extensions does not change their format.

You have batch convert. You can even do that with photoshop i believe.

Login to post a reply

Server time is: 2026-07-05 15:23:20
Your offset time is: 2026-07-05 15:23:20