Facebook Twitter YouTube Frictional Games | Forum | Privacy Policy | Dev Blog | Dev Wiki | Support | Gametee


Thread Rating:
  • 1 Vote(s) - 4 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Level Editor Help Black&White screen effect possible?
DnALANGE Offline
Banned

Posts: 1,549
Threads: 73
Joined: Jan 2012
#41
RE: Black&White screen effect possible?

Sounds good.
Now we have to overwrite files... we modders shouldnt want to..
We have to find a solution for that..
Mudbills idea seems reasanable and maybe doable..
Mudbilk, we can test stuff on skype..
If your intetested.
09-16-2014, 08:20 PM
Find
Mudbill Offline
Muderator

Posts: 3,881
Threads: 59
Joined: Apr 2013
Reputation: 179
#42
RE: Black&White screen effect possible?

Sure, but I'm fairly busy these days so it might take some time. I'm already very much behind on Youtube.

09-16-2014, 10:40 PM
Find
Mudbill Offline
Muderator

Posts: 3,881
Threads: 59
Joined: Apr 2013
Reputation: 179
#43
RE: Black&White screen effect possible?

Wait a second. The shaders folder is already found in the resources.cfg file. Can't you simply exclude it from there and instead add your own mod folder's shaders path in its place? Override the main files without needing to do more than start the mod?

PS: soz for dp

09-17-2014, 09:39 AM
Find
Romulator Offline
Not Tech Support ;-)

Posts: 3,628
Threads: 63
Joined: Jan 2013
Reputation: 195
#44
RE: Black&White screen effect possible?

Possible - but that excludes replacing the core file, a requirement for the colorconv_sepia with the necessary effect to work properly.

Discord: Romulator#0001
[Image: 3f6f01a904.png]
(This post was last modified: 09-17-2014, 10:12 AM by Romulator.)
09-17-2014, 10:12 AM
Find
Mudbill Offline
Muderator

Posts: 3,881
Threads: 59
Joined: Apr 2013
Reputation: 179
#45
RE: Black&White screen effect possible?

Where is this core file located? I can't check atm.

Edit: Oh, I see it's in /core/shaders. And since /core isn't on the resources, a mod doesn't affect it, eh? Well then.

(This post was last modified: 09-17-2014, 10:49 AM by Mudbill.)
09-17-2014, 10:46 AM
Find
TheGreatCthulhu Offline
Member

Posts: 213
Threads: 10
Joined: Oct 2010
Reputation: 32
#46
RE: Black&White screen effect possible?

(09-16-2014, 03:46 PM)Acies Wrote: Hmm.. I have been thinking about this issue - since I intend to change around some shaders. Would be nifty to have a launcher which has buttons for;

Button A. Launch the mod

Button B. Change filenames to fit mod:
[...]

Button C. Change filenames to original:
[...]

The user would have to manually swap between 'Mod-mode' and 'Original content' through the launcher, basically renaming a lot of files quickly.

Hm... The idea is good, but IMO, while this would work well for somewhat more advanced users, it could turn out to be somewhat messy for those who are not too tech-savvy. (By users I mean those who download and play mods, not mod developers.)

I think these options should still be there (most importantly, the "Restore to original" button should be there), but maybe on a different tab (say, "Advanced"), so that the main UI could just consist of maybe a combobox (to select a custom story (or the original game)), and a "Launch" button; all the file swapping required could be done automatically on game startup and shutdown.

A list of installed custom stories could be obtained by inspecting the custom stories folder.

As for full conversions, the launcher could support these as well (via a configuration file - XML format, similar to the files Amnesia itself uses), but it would behave slightly differently - it would be little more than a splash screen (+ the "Advanced" tab).

(09-16-2014, 03:46 PM)Acies Wrote: Could possibly be made customizable by having a separate textfile which specifies which files to rename, so that each user may go and specify what sort of core files they want to swap.

Right. Or in case of a full conversion, it could specify what exactly to launch.
Now, there should be some sort of convention on where to store these config files and how to handle the replacements, otherwise, if there are several mods using this feature, they could (partially or completely) overwrite each others files, and could generally make a mess. What if one mode replaces a certain file, but another mod wants to use the original one? Looks like (some or all of) the original files would have to be restored on every startup. (... Or on every shutdown - but what if there's a crash?)
For custom stories, the launcher could look for a specific (predetermined) folder/configuration file, and only do the replacements if it finds one. If not, it would just start the CS normally. But the first thing it should do is backup the original files somewhere.

There should also be some clever scheme when it comes to backing up the original files. All this is a bit tricky, though, as it requires a certain amount of file management, otherwise, after some time, the user would probably end up with the Amnesia folder full of junk files/subfolders...

IIRC, Amnesia.exe does handle certain command-line arguments, so it should be possible to use these to control what gets launched, right? Is there some sort of reference for these?

Anyway, it's probably best not to overthink it, and to keep things as simple as possible.

(09-16-2014, 06:37 PM)Mudbill Wrote: Maybe I could try incorporating something like this in my mod loader.
[...]
Alteratively I could try making just a small, separate "patcher" sort of app.

If I am to just quickly think of how it could work within the app, how about this:

You made a custom mod loader? What programming language did you use?
If you guys ever start working on this, and if it turns out to be a non-trivial (albeit a small) project, consider using something like GitHub (https://github.com - FG published the HPL1 source code there) to manage your code; that would give you an online repository, a version control system, and an opportunity to work together on the same project.
09-18-2014, 07:52 PM
Find
Acies Offline
Posting Freak

Posts: 1,643
Threads: 60
Joined: Feb 2011
Reputation: 73
#47
RE: Black&White screen effect possible?

(09-18-2014, 07:52 PM)TheGreatCthulhu Wrote: Hm... The idea is good, but IMO, while this would work well for somewhat more advanced users, it could turn out to be somewhat messy for those who are not too tech-savvy. (By users I mean those who download and play mods, not mod developers.)

Blah, they'll have to cope with it! Should be equivalent of unzipping a file.. Smile

(09-18-2014, 07:52 PM)TheGreatCthulhu Wrote: Right. Or in case of a full conversion, it could specify what exactly to launch.
Now, there should be some sort of convention on where to store these config files and how to handle the replacements, otherwise, if there are several mods using this feature, they could (partially or completely) overwrite each others files, and could generally make a mess. What if one mode replaces a certain file, but another mod wants to use the original one?

Very good point.. There would have to be some sort of log file which stores information on the currently 'active' (default namned shader) - or, less complicated;
Mod A has it's shaders namned as 'Defaultname.glsl'
There is a file named 'Defaultname_original.glsl' (The original shaders - which would be overwritten by Mod A)
Mod B isn't allowed to replace shaders if the folder contains 'Defaultname_original.glsl'

A full backup of shaders could probably be stored in a separate folder.

[Image: mZiYnxe.png]


09-18-2014, 08:26 PM
Find
Mudbill Offline
Muderator

Posts: 3,881
Threads: 59
Joined: Apr 2013
Reputation: 179
#48
RE: Black&White screen effect possible?

(09-18-2014, 07:52 PM)TheGreatCthulhu Wrote: You made a custom mod loader? What programming language did you use?

I made one in Java. It's linked in my signature. Still has a few things I need to fix and a great many possible improvements, but it is currently working for Steam copies. Since I don't have a retail one, it didn't get to properly test it, so my prediction on how it worked didn't pull through. I should be able to fix that though.

09-19-2014, 08:44 AM
Find
TheGreatCthulhu Offline
Member

Posts: 213
Threads: 10
Joined: Oct 2010
Reputation: 32
#49
RE: Black&White screen effect possible?

Did u made the source code available somewhere? Your mod loader could serve as a starting point for this project. I highly recommend setting it up as an online open source project, on a free hosting website like GitHub or SourceForge. Some of us could jump in and help.
09-19-2014, 01:20 PM
Find
Mudbill Offline
Muderator

Posts: 3,881
Threads: 59
Joined: Apr 2013
Reputation: 179
#50
RE: Black&White screen effect possible?

I've never done open-source projects, but I wouldn't mind sharing it. I guess I just didn't do it to begin with as I might have a lot of poor practises in it. I started Java about 2.5 years ago, but only been doing a few small projects, so my experience isn't exactly pro.

I could try setting it up once I get the chance to.

09-19-2014, 01:40 PM
Find




Users browsing this thread: 1 Guest(s)