Product Chat / This is for people wanting a load sound command!

Author
Message
DVader
20
Years of Service
User Offline
Joined: 28th Jan 2004
Location:
Posted: 6th May 2016 16:55 Edited at: 6th May 2016 16:56
Simple if you want one vote here. Lee always says if he sees demand for it he will add the command. I think it's a no brainer, it's a useful command and helps keep things tidier than having to mess around with multiple entities for their sound slots.

I have a few scripts now that would really benefit from having their own unique sounds on top of the objects defaults Alien Invasion for instance uses 3 or 4 objects for it's sound effects, not ideal.

I'm sure if we get enough people saying they would like it, it will get added


SPECS: Q6600 CPU. Nvidia 660GTX. 8 Gig Memory. Win 7.
Bored of the Rings
GameGuru Master
19
Years of Service
User Offline
Joined: 25th Feb 2005
Location: Middle Earth
Posted: 6th May 2016 17:02
yes definitely, a must !
Professional Programmer: Languages- SAS (Statistical Analysis Software) , C++, SQL, PL-SQL, JavaScript, HTML, Darkbasic Pro (still love this language), Purebasic, others
Hardware: Dell Precision 490; AMD Radeon HD 7570; LG TFT monitor (widescreen). Wanting a new PC at some point.
Interests: Drumming, Saxophone, Art, Theatre, Music.
Jerry Tremble
GameGuru TGC Backer
12
Years of Service
User Offline
Joined: 5th Nov 2012
Location: Sonoran Desert
Posted: 6th May 2016 17:03
You got my vote!
MAME Cab PC: i7 4770@3.4Ghz (passmark 9945), 12GB RAM, Win 10/64, GeForce GTX645 (passmark 1898); Shiny new laptop: i7 4800MQ@2.7Ghz (passmark 8586), 16GB RAM, Win 10/64, GeForce GTX870M (passmark 3598); Old laptop: i5@2.3Ghz, 8GB RAM, Win 7/64, Intel 3000 graphics
PM
Belidos
3D Media Maker
9
Years of Service
User Offline
Joined: 23rd Nov 2015
Playing: The Game
Posted: 6th May 2016 17:09
Better still, send an email to Lee, if he gets enough emails he'll do it :p

i7, NV960 4GB, 16GB memory, 2x 4TB Hybrid, Win10.
i5 , AMD 6770 1GB, 8GB memory, 512GB Generic SATAIII + 2TB Seagate Baracuda SATAIII, Win7.
i3, Radeon integrated graphics, 4GB memory, 512gB Generic SATAII, Win8.1.
Q6600, Intel integrated graphics, 2GB memory, 180GB Generic SATAII, WinXP.
smallg
Community Leader
18
Years of Service
User Offline
Joined: 8th Dec 2005
Location:
Posted: 6th May 2016 18:24
would be nice, +1
lua guide for GG
https://steamcommunity.com/sharedfiles/filedetails/?id=398177770
windows 10
i5 @4ghz, 8gb ram, AMD R9 200 series , directx 11
PartTimeCoder
9
Years of Service
User Offline
Joined: 9th Mar 2015
Location:
Posted: 6th May 2016 22:16
+ 3, myself, my 11yo daughter and my brother all agree that sound commands are very much needed.

btw Lee, (if you read this) has to be said, that ambient occlusion shader you was working on looked superb and really sticks it to those bad reviews, add sound commands into the mix and we have one heck of an unscheduled update and the EBE is still yet to come

if you do decide to add the lua commands for sound is there any chance you can revisit the sprite functions and add a SetSpriteVisible or SetSpriteAlpha so we can hide a sprite without having to move it and log positions, its cumbersome and a pain, and you did hint in a earlier twitch video (on huds I think) that there should be a way to hide the sprite and if enough people ask you'll add one ....... seems the right place to mention it
PM
brco900033
GameGuru TGC Backer
10
Years of Service
User Offline
Joined: 22nd Jul 2014
Location: Belgium
Posted: 6th May 2016 22:29
PartTimeCoder: You can easily hide a sprite using SetSpriteColor(sprite,255,255,255,0). To make it visible again: SetSpriteColor(sprite,255,255,255,255).

That works for me, I hope it can be of any use.
PM
Corno_1
GameGuru Tool Maker
14
Years of Service
User Offline
Joined: 3rd Nov 2010
Location:
Posted: 6th May 2016 22:42
@Parttimecoder like brco said: SetSpriteColor: SetSpriteColor ( mySprite , red , green, blue, alpha )

+1 for load sounds
My dream is to develope games, which makes fun when I create it and fun when other people play it.
PM
PartTimeCoder
9
Years of Service
User Offline
Joined: 9th Mar 2015
Location:
Posted: 6th May 2016 22:56
omg I been setting up arrays to store sprite locations for hiding sprites for months off the back of Lee's twitch video and the function I needed was already there, shame on Lee for misleading us (ok, maybe just me) and double shame on me for not figuring this out afterwards! lol
PM
Pirate Myke
Forum Support
14
Years of Service
User Offline
Joined: 31st May 2010
Location: El Dorado, California
Posted: 7th May 2016 12:38
Load sound commands +1
Intel(R) Core(TM)2 Quad CPU Q6600 @ 2.40GHz, 2400 Mhz, 4 Core(s), 4 Logical Processor(s), 8gb RAM, Nvidia gtx660, Windows 7 Pro 64bit, Screen resolution 1680 x 1050.

Johno 15
GameGuru TGC Backer
10
Years of Service
User Offline
Joined: 25th Aug 2014
Location: Cork, Ireland
Posted: 7th May 2016 12:42
Without a doubt they're very much needed +1 from me!!!!
'Judge a man not by his answers. But by his questions.'
Teabone
Forum Support
18
Years of Service
User Offline
Joined: 8th Jun 2006
Location: Earth
Posted: 7th May 2016 20:59
Oh man.. I cannot express how much I would love this. I really want to start creating more story driven projects and its very hard to do that with the sound limitations. Especially for dialogue. This is the actually only one major part of GG that is missing that makes me a bit discouraged from going full force on any game project.

So you have my vote +1
Twitter - Teabone3 | Youtube - Teabone3 | Twitch - Teabone3

i7 -2600 CPU @ 3.40GHz - Windows 7 - 8GB RAM - Nivida GeForce GT 740
OldFlak
GameGuru TGC Backer
9
Years of Service
User Offline
Joined: 27th Jan 2015
Location: Tasmania Australia
Posted: 7th May 2016 23:24
Load sound - well - definitely a no-brainer

Also a command for fade-in, and fade-out, based on distance to an object - and also a marker for the same thing.

Reliquia....
Intel(R) Core(TM) i3-4160 @ 3,60GHz. 8GB Ram. NVidia GeForce GTX 750. Acer 24" Monitors x 2 @ 1920 x 1080. Windows 10 Pro 64-bit.
PM
Shadow man
15
Years of Service
User Offline
Joined: 21st May 2009
Location: In the shadows
Posted: 8th May 2016 00:04
Yep,.........I,m fed up with the voting board, so +1 for the most important things.
And fingers crossed,.........lights next,........so come on Lee, never mind the "Democratic"
way, do it the right way,..........you know it makes sense.
Win 7 Ultimate 64-bit SP1, Intel CPU G530 @ 2,40GHz, 8GB RAM, Nvidia GT730 2GB GDDR5,
Patriot Blast SSD, DX11.
PM
HarryWever
3D Media Maker
14
Years of Service
User Offline
Joined: 14th Jan 2010
Location: below Sea level
Posted: 8th May 2016 12:31
+1

harry
Harry
When nothing goes right, go left
PM
Anubis
12
Years of Service
User Offline
Joined: 6th Nov 2012
Location: 010011100110010101110100011010000110010101110010011011000110
Posted: 8th May 2016 12:34
yes, please. bring the noise
-+- There are only 10 types of people in the world. Those who understand binary, and those who don't -+-
[Chipset:X58 CPU:i7.950.64 GPU:HD7950 RAM:12GB DDR3 WIN:7.x64 PRO]
PM
3com
10
Years of Service
User Offline
Joined: 18th May 2014
Location: Catalonia
Posted: 8th May 2016 13:45
LoadSound++

3com
Laptop: Lenovo - Intel(R) Celeron(R) CPU 1005M @ 1.90GHz

OS: Windows 10 (64) - Ram: 4 gb - Hd: 283 gb - Video card: Intel(R) HD Graphics

PM
Tarkus1971
Audio Media Maker
9
Years of Service
User Offline
Joined: 24th Feb 2015
Location: England, UK
Posted: 9th May 2016 12:43
yes to loadsound +1
Aftershock Quad Core AMD FM2+ 3.5 GHz 8GB Motherboard and Processor, A7700k apu, AMD HD7870 gfx card.
King Korg Synth, Alesis SR18 Drum Machine, Akai MPX8 sample player, Roland Fantom XA Synth, Axus Digital AXK2 Digital Drum Kit.
Belidos
3D Media Maker
9
Years of Service
User Offline
Joined: 23rd Nov 2015
Playing: The Game
Posted: 9th May 2016 16:16 Edited at: 9th May 2016 16:23
I'd definitely support the implementation of this for sure.

But what I personally would rather see would be some kind of script "slots" built into the level editor, so you can add scripts that effect the whole level without using the resources of having to add it to an object.

e.g. HUD scripts, background music scripts, inventory scripts and so on.

Each slot could have a set of entity properties, including sound, video, image etc. and you could have + button to add more slots.

i7, NV960 4GB, 16GB memory, 2x 4TB Hybrid, Win10.
i5 , AMD 6770 1GB, 8GB memory, 512GB Generic SATAIII + 2TB Seagate Baracuda SATAIII, Win7.
i3, Radeon integrated graphics, 4GB memory, 512gB Generic SATAII, Win8.1.
Q6600, Intel integrated graphics, 2GB memory, 180GB Generic SATAII, WinXP.
3com
10
Years of Service
User Offline
Joined: 18th May 2014
Location: Catalonia
Posted: 9th May 2016 17:21
Perhaps there should be some sort of "GlobalCallFunc[ ]" in global.lua, so we could do something like:

If playerDist>100 then
GlobalCallFunc["myscript.lua" ]
end

GlobalCallFunc[ ] will run the script, and these script do their job, anyway when done, it has to back to the caller script.

Each item being like standalone object, with their own properties/events and so on, would be nice, but ignore if possible here.

myItem.size = 100
myItem.color = rgb(0,0,0)
myItem.visible = true

and so on.

3com
Laptop: Lenovo - Intel(R) Celeron(R) CPU 1005M @ 1.90GHz

OS: Windows 10 (64) - Ram: 4 gb - Hd: 283 gb - Video card: Intel(R) HD Graphics

PM
LeeBamber
TGC Lead Developer
24
Years of Service
User Offline
Joined: 21st Jan 2000
Location: England
Posted: 9th May 2016 21:19
Now that's what I call community response In BETA 4 you will find some new sound commands, here is a working script I will include with that build (up shortly):

-- LUA Script - globalsoundtests used to try out all Global Sound commands

function globalsoundtests_init(e)
LoadGlobalSound ( "audiobank\\misc\\ammo.wav", 1 )
LoadGlobalSound ( "audiobank\\misc\\bite.wav", 2 )
LoadGlobalSound ( "audiobank\\misc\\checkpoint.wav", 3 )
LoadGlobalSound ( "audiobank\\misc\\explode.wav", 4 )
LoadGlobalSound ( "audiobank\\misc\\weapon.wav", 5 )
LoadGlobalSound ( "audiobank\\misc\\health.wav", 6 )
DeleteGlobalSound ( 6 )
LoadGlobalSound ( "audiobank\\misc\\steam.wav", 6 )
end

function globalsoundtests_main(e)
PlayerDist = GetPlayerDistance(e)
if PlayerDist < 200 and g_PlayerHealth > 0 then
Prompt ( "Press Keys 1-6 to play global sounds. 7 to stop all" )
if g_Scancode == 2 then PlayGlobalSound ( 1 ) end
if g_Scancode == 3 then PlayGlobalSound ( 2 ) end
if g_Scancode == 4 then PlayGlobalSound ( 3 ) end
if g_Scancode == 5 then
if GetGlobalSoundExist ( 4 ) == 1 then
PlayGlobalSound ( 4 )
SetGlobalSoundSpeed ( 4, 66000 )
end
end
if g_Scancode == 6 then
if GetGlobalSoundPlaying ( 5 ) == 0 then
PlayGlobalSound ( 5 )
SetGlobalSoundVolume ( 5, 90 )
end
end
if g_Scancode == 7 then
if GetGlobalSoundLooping ( 6 ) == 0 then
LoopGlobalSound ( 6 )
end
end
if g_Scancode == 8 then
StopGlobalSound ( 1 )
StopGlobalSound ( 2 )
StopGlobalSound ( 3 )
StopGlobalSound ( 4 )
StopGlobalSound ( 5 )
StopGlobalSound ( 6 )
end
end
end
PC SPECS: Windows 8.1 Pro 64-bit, Intel Core i7-5930K (PASSMARK:13645), NVIDIA Geforce GTX 980 GPU (PASSMARK:9762) , 32GB RAM

synchromesh
Forum Support
10
Years of Service
User Offline
Joined: 24th Jan 2014
Location:
Posted: 9th May 2016 21:57 Edited at: 9th May 2016 23:14
Congratulations !! Dvader and everyone else .... you got it well done



...3rd person..... 3rd person..... 3rd person
The only person ever to get all his work done by "Friday" was Robinson Crusoe..
PM
3com
10
Years of Service
User Offline
Joined: 18th May 2014
Location: Catalonia
Posted: 9th May 2016 23:25
Thanks a lot Lee + team, for listen us and a great job.
This open a new world around th quest style, amoung others.

3com
Laptop: Lenovo - Intel(R) Celeron(R) CPU 1005M @ 1.90GHz

OS: Windows 10 (64) - Ram: 4 gb - Hd: 283 gb - Video card: Intel(R) HD Graphics

PM
Teabone
Forum Support
18
Years of Service
User Offline
Joined: 8th Jun 2006
Location: Earth
Posted: 10th May 2016 03:26
:o

I'm in shock. Lee your the greatest wow... looks like I got a lot playing around to do in the Game Guru sandbox
Twitter - Teabone3 | Youtube - Teabone3 | Twitch - Teabone3

i7 -2600 CPU @ 3.40GHz - Windows 7 - 8GB RAM - Nivida GeForce GT 740
PartTimeCoder
9
Years of Service
User Offline
Joined: 9th Mar 2015
Location:
Posted: 10th May 2016 09:34
Awesome, Thanks Lee

Quote: "But what I personally would rather see would be some kind of script "slots" built into the level editor"


That would be good to have in the editor for sure

Quote: "Perhaps there should be some sort of "GlobalCallFunc[ ]" "


you can load a script with loadfile/dofile and call its functions directly from anywhere in Lua, the only problem is you need to edit a default script to load your custom scripts and the default scripts get overwritten when validating or updating or load them from another custom script which kind of defeats the point, not only that, included scripts do not get carried over to standalone so the IDE needs a way to know about all the game scripts, being able to declare them in the IDE use them in code and copy them to standalone ... no more barrels, no more missing scripts lol

Quote: "Each item being like standalone object, with their own properties/events and so on"


you can structure your own Lua scripts to achieve this with functions tables, almost full OOP can be achieved in Lua but it starts to get a little complex, but take the below example, the object (or table) myTable contains all the function and script variables in one tidy package



Quote: "...3rd person..... 3rd person..... 3rd person"


HaHaHa! +1
PM
DVader
20
Years of Service
User Offline
Joined: 28th Jan 2004
Location:
Posted: 10th May 2016 16:47
That's awesome! I should have put this thread up months ago I'd start a third person one, except Lee never agreed to do anything in that area so far (beyond a few extra camera options at some point)


SPECS: Q6600 CPU. Nvidia 660GTX. 8 Gig Memory. Win 7.
synchromesh
Forum Support
10
Years of Service
User Offline
Joined: 24th Jan 2014
Location:
Posted: 10th May 2016 16:50
Quote: "I'd start a third person one, except Lee never agreed to do anything in that area so far (beyond a few extra camera options at some point)"


LOL ...No I don't think it will happen quite yet no matter what
The only person ever to get all his work done by "Friday" was Robinson Crusoe..
PM
0x7f
8
Years of Service
User Offline
Joined: 31st Mar 2016
Location:
Posted: 10th May 2016 17:13
thanks lee!
by the way, is the beta private or any way to get access ?
PM
Tarkus1971
Audio Media Maker
9
Years of Service
User Offline
Joined: 24th Feb 2015
Location: England, UK
Posted: 11th May 2016 12:21 Edited at: 11th May 2016 12:23
what a fantastic set of commands Lee, thank you. One idea though LoopGlobalSound(), is it possible.

This would be good for switching on generators etc
Aftershock Quad Core AMD FM2+ 3.5 GHz 8GB Motherboard and Processor, A7700k apu, AMD HD7870 gfx card.
King Korg Synth, Alesis SR18 Drum Machine, Akai MPX8 sample player, Roland Fantom XA Synth, Axus Digital AXK2 Digital Drum Kit.
DVader
20
Years of Service
User Offline
Joined: 28th Jan 2004
Location:
Posted: 11th May 2016 16:07
@Tarkus1971. Isn't that already there? You must have missed it.


SPECS: Q6600 CPU. Nvidia 660GTX. 8 Gig Memory. Win 7.
3com
10
Years of Service
User Offline
Joined: 18th May 2014
Location: Catalonia
Posted: 12th May 2016 15:47
Quote: "no more barrels"

Ya! that's the idea.

Quote: "almost full OOP can be achieved in Lua but it starts to get a little complex"

Yes I know, and most of these fuction should be added to the GG engine, or simply engine ignore them.
Recently I've dealing with 2 fuctions to get the "last screenshot path", to use it in save option, but engine simply ignore them.

Fortunatelly Lee solve it, adding new/useful Lua commands, Thanks Lee!!!!

3com
Laptop: Lenovo - Intel(R) Celeron(R) CPU 1005M @ 1.90GHz

OS: Windows 10 (64) - Ram: 4 gb - Hd: 283 gb - Video card: Intel(R) HD Graphics

PM
OldFlak
GameGuru TGC Backer
9
Years of Service
User Offline
Joined: 27th Jan 2015
Location: Tasmania Australia
Posted: 14th May 2016 12:28
@DVader - good call!

@LeeBamber - now that is the right response - you the man!!

Reliquia
Intel(R) Core(TM) i3-4160 @ 3,60GHz. 8GB Ram. NVidia GeForce GTX 750. Acer 24" Monitors x 2 @ 1920 x 1080. Windows 10 Pro 64-bit.
PM
LeeBamber
TGC Lead Developer
24
Years of Service
User Offline
Joined: 21st Jan 2000
Location: England
Posted: 24th May 2016 15:58
And that's the power of a community driven development - glad you like the commands, plenty more on the way (of course)
PC SPECS: Windows 8.1 Pro 64-bit, Intel Core i7-5930K (PASSMARK:13645), NVIDIA Geforce GTX 980 GPU (PASSMARK:9762) , 32GB RAM

Login to post a reply

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