#1 03-07-2013 21:01

KnightBob
Registered: 24-06-2013
Posts: 5

Audiostream. function

Hello,

Since I have been coding SA I have used Audiostream. for all my audio needs, I have upgraded from SB 3.0.4 to 3.0.6, and when I open my scripts I used to be working on in 3.0.4, I can't compile them, and the Audiostream. is black liking on the normale text.

Has this function been replaced with something else? I can't find anything it the change log, ore I must be blind :$.

Thank you,

Bob

Offline

#2 04-07-2013 07:33

Bigbossbro08
Registered: 22-06-2013
Posts: 26

Re: Audiostream. function

What are you want to saying that I couldn't understand? What are you talking about? Did you want to say about opening custom audio files?

Last edited by Bigbossbro08 (04-07-2013 07:35)

Offline

#3 04-07-2013 07:49

Seemann
Registered: 07-08-2006
Posts: 2,155

Re: Audiostream. function

@KnightBob - All the scripting classes are defined in the file classes.db located in the SB\data\sa folder. The Audiostream class was made by Alien as a part of the CLEO 4 library. It was an unofficial update, so the original classes.db made by me does not contain it, thus making your script uncompilable.

For the backward compatibility with CLEO 4, I will include the Alien's classes in the Sanny Builder's next release coming tomorrow.

Offline

#4 04-07-2013 07:51

KnightBob
Registered: 24-06-2013
Posts: 5

Re: Audiostream. function

Thank you Seemann smile

So it was only working because I installed the SB files which came with CLEO 4?

Last edited by KnightBob (04-07-2013 07:55)

Offline

#5 04-07-2013 08:19

Seemann
Registered: 07-08-2006
Posts: 2,155

Re: Audiostream. function

@KnightBob - yes, the changed classes.db was among those files.

Offline

#6 04-07-2013 20:03

KnightBob
Registered: 24-06-2013
Posts: 5

Re: Audiostream. function

Thank you for the information Seemann!! Looking forward to the update smile

Offline

#7 05-07-2013 14:12

KnightBob
Registered: 24-06-2013
Posts: 5

Re: Audiostream. function

The Audiostream. function works now thanks Seemann. When I compile I get this error now:

Unkown Directive Object.Exists(0@). Had this also been replaced with something? Object in yellow/amber color. And Exists is black.

Offline

#8 05-07-2013 17:54

Seemann
Registered: 07-08-2006
Posts: 2,155

Re: Audiostream. function

@KnightBob - Object.Exists is not present in the classes.db of Sanny Builder 3.08. Everyone can modify this file adding new commands, or classes. I can't control it. Say, one can add command Object.MyCustomCheck for some opcode. And only this person is able to compile a code with this command in.

You should replace Object.Exists with opcode

03CA:   object 0@ exists

Offline

#9 05-07-2013 19:41

KnightBob
Registered: 24-06-2013
Posts: 5

Re: Audiostream. function

Thank you smile

Is there a guide on how to add such commands ore classes?

Bob

Offline

Board footer

Powered by FluxBB