Henkerina wrote: Mon Oct 14, 2024 10:36 am
- Spoiler: show
- Hi all,
I'm in the process of making a tease in the EOS Editor as a fun side project. However, I'm not very knowledgeable about coding and such. Whilst the forum is a great source of information, I still struggle to find or understand what I need. As such I thought it best to open a topic for basic but specific questions about working with the EOS Editor.
My first question:
I want to fade audio in and out and found this topic:
viewtopic.php?t=24081
However I don't know how to download the necessary "1-minute-of-silence.mp3" file from the tease. How would I do this?
Thanks in advance!
It's a little of an intermediate-advanced topic, but all teases in milovana use the same pool of media, which are identified by their hash (I'll explain in a bit). There are potenitally easier ways to do this, but the explanation I'm going to provide can be used to acquire any media file from another eos tease to import in your own.
EOS tease pull from the poll of media by defining in the files/galleries section of the script identifiers to such files. In the topic you mentioned you can open the script (Under Demo JSON) with your browser or download it and open with with an advanced notepad software (such as notepad++) to format it. Once you format the script as a JSON file you will be able to find the following:
Code: Select all
"files": {
"congo-a.mp3": {
"id": 1357912,
"hash": "5915e22586cfe3ed5575064ad428672ef633d230",
"size": 8881,
"type": "audio/mpeg"
},
"1-minute-of-silence.mp3": {
"id": 1357916,
"hash": "1092af7de1d0a7b87c79797d0adb47c8bdf1f91a",
"size": 96246,
"type": "audio/mpeg"
}
},
You can find this also without formatting the text, but with the formatting it's easier to find the curly brackets where "files" end.
Now if you go into your own eos tease, you have the option to download the script of your tease from the backup function.
Once you downlaod your script you can edit it with the same notepad as before and add the 1-minute-of-silence.mp3 file to your script. You just have to locate where the files are defined in your script and add:
Code: Select all
"1-minute-of-silence.mp3": {
"id": 1357916,
"hash": "1092af7de1d0a7b87c79797d0adb47c8bdf1f91a",
"size": 96246,
"type": "audio/mpeg"
}
to the list of files (add a comma between this entry and any existing one, if there are).
Once you edited the script, you can re-upload it from the same backup tab of the editor. There could be errors identified in reuploading it, but that would be a topic for a different discussion.
In the same way, you can import any media from any tease, by simply going to the tease script (replacing "showtease" with "geteosscript" in the tease url), identifying the entries of the wanted files and adding them to your own script.
With pictures in galleries is a littel more difficult, because you don't have a name to quickly identify them.
Lastly, the entries you add to your script can have a different name that they originally had. You might add this file as simply
silence by changing the name between the quotes:
Code: Select all
"silence.mp3": {
"id": 1357916,
"hash": "1092af7de1d0a7b87c79797d0adb47c8bdf1f91a",
"size": 96246,
"type": "audio/mpeg"
}
The important hing is that you don't change the hash field.
I hope this is useful and understandable.
~Thamrill