Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

New CLEO codes crashing my game #53

Closed
Pledix opened this issue Feb 3, 2022 · 4 comments
Closed

New CLEO codes crashing my game #53

Pledix opened this issue Feb 3, 2022 · 4 comments
Labels

Comments

@Pledix
Copy link

Pledix commented Feb 3, 2022

I don't now why but new cleo codes crashing my game.
0AC1: $test = load_audio_stream_with_3d_support "cleo\sounds\test.mp3" (this code works perfectly)
AudioStream3D.Load("cleo\sounds\test.mp3", $test) (but this is crashing my game)

@x87
Copy link
Contributor

x87 commented Feb 3, 2022

if you just updated classes.db but did not update SASCM.ini then your parameters should be in the same order as in the opcode form. this should work

AudioStream3D.Load($test, "cleo\sounds\test.mp3")

alternatively you can open up SASCM.ini and change the opcode definition to

0AC1=2,load_3d_audio_stream %1d% store_to %2d%

then you can write

AudioStream3D.Load("cleo\sounds\test.mp3", $test)
0AC1: load_3d_audio_stream  "cleo\sounds\test.mp3" store_to $test

@x87 x87 added the question label Feb 3, 2022
@Pledix
Copy link
Author

Pledix commented Feb 3, 2022

I updated these files in Sanny Builder 3.8.0
image

Where can I find the latest version of the SASCM.ini file for these latest files (keywords, enums, classes)?
(I guess I need to edit my own)

@Pledix Pledix closed this as completed Feb 3, 2022
@x87
Copy link
Contributor

x87 commented Feb 3, 2022

You can use SASCM.ini from SA SCR mode, it will be the closest shot.

The library's classes are still experimental and there is no official support in Sanny Builder yet. You work with them at your own risk. Refer to this ticket for information on the progress of adding the support in SB: sannybuilder/dev#170

@Pledix
Copy link
Author

Pledix commented Feb 3, 2022

Thanks for the feedback, keep up the good work!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants