ACS Built-In Math functions mostly missing?
Moderator: GZDoom Developers
Forum rules
Before asking on how to use a ZDoom feature, read the ZDoom wiki first. If you still don't understand how to use a feature, then ask here.
Please bear in mind that the people helping you do not automatically know how much you know. You may be asked to upload your project file to look at. Don't be afraid to ask questions about what things mean, but also please be patient with the people trying to help you. (And helpers, please be patient with the person you're trying to help!)
Before asking on how to use a ZDoom feature, read the ZDoom wiki first. If you still don't understand how to use a feature, then ask here.
Please bear in mind that the people helping you do not automatically know how much you know. You may be asked to upload your project file to look at. Don't be afraid to ask questions about what things mean, but also please be patient with the people trying to help you. (And helpers, please be patient with the person you're trying to help!)
-
- Posts: 1321
- Joined: Tue Dec 06, 2016 11:25 am
ACS Built-In Math functions mostly missing?
I tried to use some of the ACS built-in Math function like Floor, Ceil and Round which are listed on the zDoom wiki. However, when editing scripts in GZDoomBuilder2 I get compiler error when trying to use these functions, and they are also not recognized in the auto-completion. These functions are supposed to be included with gzDoom since earlier this year and I'm using the latest version, so I'M not sure what's the problem here
-
- Posts: 5032
- Joined: Sun Nov 14, 2010 12:59 am
Re: ACS Built-In Math functions mostly missing?
Go here and download the newest ACC package. Extract its contents in: <editor's directory>/Compilers/ZDoom, replacing the existing files.
That will allow you to use those functions and compile your ACS code. The auto-completion and highlight is a different matter: go [wiki=Doom_Builder_ACS_configuration#The_Configuration]here[/wiki] and copy everything from the keywords block to the end. Then, open: <editor's directory>/Scripting/ZDoom_ACS.cfg. Replace everything from the keywords block to the end with the stuff you copied.
Alternatively, you can just use GZDoom Builder.
That will allow you to use those functions and compile your ACS code. The auto-completion and highlight is a different matter: go [wiki=Doom_Builder_ACS_configuration#The_Configuration]here[/wiki] and copy everything from the keywords block to the end. Then, open: <editor's directory>/Scripting/ZDoom_ACS.cfg. Replace everything from the keywords block to the end with the stuff you copied.
Alternatively, you can just use GZDoom Builder.
-
- Posts: 1321
- Joined: Tue Dec 06, 2016 11:25 am
Re: ACS Built-In Math functions mostly missing?
Mucas gracias. It works now. I actually managed to figure out the auto-completion by myself but your help is much appreciated! Now I can continue working on my scripts