Product Chat / PNG vs HTML/CSS

Author
Message
Honkeyboy
3D Media Maker
9
Years of Service
User Offline
Joined: 16th Sep 2015
Location: Doesnt know half the time ;)
Posted: 12th Jun 2016 00:08
Just a thought if we could have instead of PNG's for the titles how about HTML or CSS that way we could make 1 page with the title screen and embed sounds = music in the tiles. This a possibility?
Intel i5 4950 3.3ghz
8gb Ram
Intel HD 4600
synchromesh
Forum Support
10
Years of Service
User Offline
Joined: 24th Jan 2014
Location:
Posted: 12th Jun 2016 00:20
Hmm ... Lee may have plans like this for the editor once its high enough on the voting list ...
You can have music on the main title now if you want ..
The only person ever to get all his work done by "Friday" was Robinson Crusoe..
PM
Sanguis
GameGuru TGC Backer
13
Years of Service
User Offline
Joined: 10th Jan 2011
Location: Deutschland
Posted: 12th Jun 2016 01:58
Hmmm..... would be great with HTML5 and Jquery support. Endless possibilitys .
But... this would mean that there are Lua, HTML (and perhaps JS). That could be a little bit complicated for non coders.
Great Idea... there just have to be a good balance.
Alienware 17R3 Laptop - Win10 - 16GB Ram - NVIDIA® GeForce® GTX 980M - Intel® Core™ i7-6820HK
PartTimeCoder
9
Years of Service
User Offline
Joined: 9th Mar 2015
Location:
Posted: 13th Jun 2016 13:37
well menu editing is next on the list (how that happen!??) so get your suggestions in, I quite like the idea of a html+css menu but it already exists in Lua so just a small editor that generates the required lua script would be sufficient and hopefully bot's navigating heights can stay in 2nd place and not get bumped by something menial again!!

PM
Honkeyboy
3D Media Maker
9
Years of Service
User Offline
Joined: 16th Sep 2015
Location: Doesnt know half the time ;)
Posted: 13th Jun 2016 22:45 Edited at: 13th Jun 2016 22:45
@synchromesh can we m8 any posts on this? The reason i thought of the HTML thing is when im doing websites its pretty easy for me to embed pretty much any type of media that i want and the standalones sometimes especially on longer loads get a bit dull lol ( bit like status bar watching when doing o/s installs) so fancied adding some tunes to liven it up
Intel i5 4950 3.3ghz
8gb Ram
Intel HD 4600
Belidos
3D Media Maker
9
Years of Service
User Offline
Joined: 23rd Nov 2015
Playing: The Game
Posted: 14th Jun 2016 08:01
All the menu screens etc have their own LUA in the titlesbank folder, you just need to edit them and add the new sound commands that allow you to run sound without it being attached to an entity, i'm not sure how to do it right now, but here's the list of new sound commands:

LoadGlobalSound
DeleteGlobalSound
PlayGlobalSound
LoopGlobalSound
StopGlobalSound

SetGlobalSoundSpeed
SetGlobalSoundVolume
GetGlobalSoundExist
GetGlobalSoundPlaying
GetGlobalSoundLooping

Check the bottom of your global.lua file in the scriptbank to see how the're used.

i5, NV960 2GB, 16GB memory, 2x 2TB Hybrid, Win10.
i3 , Intel integrated graphics, 6GB memory, 512GB Generic SATAIII Win8.1.
Intel Celeron (duel Core), Radeon integrated graphics, 4GB memory, 180gB Generic SATAII, WinVista.
Q6600, Intel integrated graphics, 8GB memory, 512GB Generic SATAII, Win7.
synchromesh
Forum Support
10
Years of Service
User Offline
Joined: 24th Jan 2014
Location:
Posted: 14th Jun 2016 11:59
It used to be just add a " title.ogg " file ...named exactly that added to the titlebank ...
Unless this has changed since the Save / Load menu's have been reworked ?
The only person ever to get all his work done by "Friday" was Robinson Crusoe..
PM
Belidos
3D Media Maker
9
Years of Service
User Offline
Joined: 23rd Nov 2015
Playing: The Game
Posted: 14th Jun 2016 13:25 Edited at: 14th Jun 2016 13:26
ooh, I never knew that, I have asked a few times, but I've never gotten a response, so I assumed it couldn't be done until Lee changed it to LUA, good to know.

But saying that, that would only allow for one piece of music, so if you wanted a title music in the menu, then some other music in the loading screens, you would probably have to do it via LUA.

i5, NV960 2GB, 16GB memory, 2x 2TB Hybrid, Win10.
i3 , Intel integrated graphics, 6GB memory, 512GB Generic SATAIII Win8.1.
Intel Celeron (duel Core), Radeon integrated graphics, 4GB memory, 180gB Generic SATAII, WinVista.
Q6600, Intel integrated graphics, 8GB memory, 512GB Generic SATAII, Win7.
Honkeyboy
3D Media Maker
9
Years of Service
User Offline
Joined: 16th Sep 2015
Location: Doesnt know half the time ;)
Posted: 14th Jun 2016 15:17 Edited at: 14th Jun 2016 16:50
From what i can see there is a separate .lua for each screen m8 so maybe you could add a startmusic and stopmusic to each, i'll be grateful of getting just 1 to work lol just choose decent music i'll try that synchromesh cheers Edit: named a music file title.ogg placed it in the folder and no go so i presume its editing the .lua?
Intel i5 4950 3.3ghz
8gb Ram
Intel HD 4600
Belidos
3D Media Maker
9
Years of Service
User Offline
Joined: 23rd Nov 2015
Playing: The Game
Posted: 14th Jun 2016 17:25
Was this in test or standalone? I don't think it runs the menus etc for text, you would have to run a standalone to see if the sound file works.

i5, NV960 2GB, 16GB memory, 2x 2TB Hybrid, Win10.
i3 , Intel integrated graphics, 6GB memory, 512GB Generic SATAIII Win8.1.
Intel Celeron (duel Core), Radeon integrated graphics, 4GB memory, 180gB Generic SATAII, WinVista.
Q6600, Intel integrated graphics, 8GB memory, 512GB Generic SATAII, Win7.
Honkeyboy
3D Media Maker
9
Years of Service
User Offline
Joined: 16th Sep 2015
Location: Doesnt know half the time ;)
Posted: 14th Jun 2016 17:34
Put it both m8 didnt work in either
Intel i5 4950 3.3ghz
8gb Ram
Intel HD 4600
Belidos
3D Media Maker
9
Years of Service
User Offline
Joined: 23rd Nov 2015
Playing: The Game
Posted: 14th Jun 2016 17:37 Edited at: 14th Jun 2016 17:39
I don't think just putting it in a standalone will work either, I think you have to make a standalone while you have it in your gameguru already.

If i'm right the process should be...

1. put title.ogg in your titlesbank/default (or whichever you use if you have a custom one)
2. load gameguru
3. load your map
4. test your map
5. save map as standalone

then the standalone should play the music

that's how It looks like it used to be, if it's changed with the new menu lua I don't know

i5, NV960 2GB, 16GB memory, 2x 2TB Hybrid, Win10.
i3 , Intel integrated graphics, 6GB memory, 512GB Generic SATAIII Win8.1.
Intel Celeron (duel Core), Radeon integrated graphics, 4GB memory, 180gB Generic SATAII, WinVista.
Q6600, Intel integrated graphics, 8GB memory, 512GB Generic SATAII, Win7.
Honkeyboy
3D Media Maker
9
Years of Service
User Offline
Joined: 16th Sep 2015
Location: Doesnt know half the time ;)
Posted: 14th Jun 2016 17:59 Edited at: 14th Jun 2016 18:19
K will do a quick build and test Edit just did a build, it copies the title.ogg to the standalone but music doesn't play :/
Intel i5 4950 3.3ghz
8gb Ram
Intel HD 4600
Belidos
3D Media Maker
9
Years of Service
User Offline
Joined: 23rd Nov 2015
Playing: The Game
Posted: 15th Jun 2016 08:15
OK, then it doesn't work any more, you'll need to add it to the LUA scripts using the new global sound commands, which is what I thought to start with

i5, NV960 2GB, 16GB memory, 2x 2TB Hybrid, Win10.
i3 , Intel integrated graphics, 6GB memory, 512GB Generic SATAIII Win8.1.
Intel Celeron (duel Core), Radeon integrated graphics, 4GB memory, 180gB Generic SATAII, WinVista.
Q6600, Intel integrated graphics, 8GB memory, 512GB Generic SATAII, Win7.

Login to post a reply

Server time is: 2024-11-25 02:02:35
Your offset time is: 2024-11-25 02:02:35