View unanswered posts | View active topics It is currently Fri, November 16th, 2018, 02:09



Reply to topic  [ 7 posts ] 
Object is not a member of the 'AudioProfile' datablock class 
Author Message
Administrator
User avatar

Posts: 775
BL Name: Demian
BL ID: 10334
Post Object is not a member of the 'AudioProfile' datablock class
The exact error I get is this.
[quote]Object 'arrowExplosionSound' is not a member of the 'AudioProfile' data block class[/quote]
My weapon works and I can hear that sound just fine. So why do i get that error? It's probably something simple.

_________________
[size=120][b]~Weekly Poll~[/b][/size]
[i][url=http://blockland.dataorb.net/forum/viewtopic.php?f=2&t=100]None[/url][/i]

[size=120][b]~Building Competitions~[/b][/size]
[url=http://blockland.dataorb.net/forum/viewtopic.php?f=5&t=29]Pimp My Demo House![/url]
[url=http://blockland.dataorb.net/forum/viewtopic.php?f=5&t=150]Land Vehicle Competition[/url]


Sun, March 14th, 2010, 22:06
Profile WWW
User avatar

Posts: 1175
BL Name: TheToxicRadio
BL ID: 11076
Post Re: Object X is not a member of the 'AudioProfile' data block cl
Posteth thy code.


Sun, March 14th, 2010, 22:09
Profile
Administrator
User avatar

Posts: 775
BL Name: Demian
BL ID: 10334
Post Re: Object X is not a member of the 'AudioProfile' data block cl
[code]datablock ExplosionData(GrappleRopeExplosion)
{
soundProfile = arrowExplosionSound;

lifeTimeMS = 150;

faceViewer = true;
explosionScale = "1 1 1";

};[/code]

_________________
[size=120][b]~Weekly Poll~[/b][/size]
[i][url=http://blockland.dataorb.net/forum/viewtopic.php?f=2&t=100]None[/url][/i]

[size=120][b]~Building Competitions~[/b][/size]
[url=http://blockland.dataorb.net/forum/viewtopic.php?f=5&t=29]Pimp My Demo House![/url]
[url=http://blockland.dataorb.net/forum/viewtopic.php?f=5&t=150]Land Vehicle Competition[/url]


Sun, March 14th, 2010, 23:14
Profile WWW
User avatar

Posts: 1175
BL Name: TheToxicRadio
BL ID: 11076
Post Re: Object is not a member of the 'AudioProfile' datablock class
I'm pretty sure you're lacking a whole bunch of essential code there to begin with.


Mon, March 15th, 2010, 05:08
Profile
Administrator
User avatar

Posts: 775
BL Name: Demian
BL ID: 10334
Post Re: Object is not a member of the 'AudioProfile' datablock class
That happens to be the only part of the script that the sound is mentioned.

_________________
[size=120][b]~Weekly Poll~[/b][/size]
[i][url=http://blockland.dataorb.net/forum/viewtopic.php?f=2&t=100]None[/url][/i]

[size=120][b]~Building Competitions~[/b][/size]
[url=http://blockland.dataorb.net/forum/viewtopic.php?f=5&t=29]Pimp My Demo House![/url]
[url=http://blockland.dataorb.net/forum/viewtopic.php?f=5&t=150]Land Vehicle Competition[/url]


Mon, March 15th, 2010, 08:12
Profile WWW
Global Moderator
User avatar

Posts: 650
BL Name: McTwist
BL ID: 9845
Post Re: Object is not a member of the 'AudioProfile' datablock class
Try read an another add-on that equips a sound object.

_________________
[img]http://img115.imageshack.us/img115/2213/logoqn0zp3.png[/img]


Mon, March 15th, 2010, 10:29
Profile
Administrator
User avatar

Posts: 775
BL Name: Demian
BL ID: 10334
Post Re: Object is not a member of the 'AudioProfile' datablock class
No. I mean that is the only part of the script where audio is mentioned.

Edit: Solved. It was a simple matter of preloading the sound.
[code]datablock AudioProfile(grappleRopeFireSound)
{
filename = "Add-Ons/Weapon_Bow/arrowExplosionSound.wav";
description = AudioClosest3d;
preload = true;
};[/code]

_________________
[size=120][b]~Weekly Poll~[/b][/size]
[i][url=http://blockland.dataorb.net/forum/viewtopic.php?f=2&t=100]None[/url][/i]

[size=120][b]~Building Competitions~[/b][/size]
[url=http://blockland.dataorb.net/forum/viewtopic.php?f=5&t=29]Pimp My Demo House![/url]
[url=http://blockland.dataorb.net/forum/viewtopic.php?f=5&t=150]Land Vehicle Competition[/url]


Mon, March 15th, 2010, 16:11
Profile WWW
Display posts from previous:  Sort by  
Reply to topic   [ 7 posts ] 

Who is online

Users browsing this forum: No registered users and 2 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group.
Designed by ST Software for PTF.