A8 shooter template

Posted By: emo10001

A8 shooter template - 06/18/11 15:20

I'm hoping that I'm just missing something simple...but it really seems like using the templates is way too difficult for something that it supposed to make it "easier".

I create a simple level of terrain and guard model. Then I attach a "Template_Project" script in map properties. Then I go to project manager and add CLASS "Shooter", "Customizable Shooter Player Parameters" and leave it at the default settings. Then I attach "t_shooter_player" behavior to my guard model.

I compile...run...and get "t_shooter_player: Action not found"...and of course....I can't move my guard model at all with any key.

In looking at the splash screen, I see the error "error in 't_shooter_player.h' line 24: Include file t_shooter_player.c not found"

And, the error is correct...there is no t_shooter_player.c file in my project folder. And I can't find a t_shooter_player.c anywhere in/with the templates...only t_shooter_player.h...which is in the templates...and then copied to my project folder when I added the "Shooter", "Customizable Shooter Player Parameters" in the Project manager.

Any help?

Thanks! laugh
Posted By: Spirit

Re: A8 shooter template - 06/18/11 16:55

You are right, this is clearly a bug in the t_shooter_player.h.

In line 24 there is written: #include "t_shooter_player.c"

This is wrong, it must be: #include <t_shooter_player.c>

For including files from the include folder, they must be in <> and not in "".

You should report this bug, it is a clear bug in my opinion, report it to George on the AUM forum. The shooter template is from George's AUM.
Posted By: Spirit

Re: A8 shooter template - 06/18/11 17:01

By the way, all the other shooter templates seem to have the same bug, in all templates the "" must be replaced by <>, but the car templates and the rest of the templates are ok. Also, some weapon files are missing that are referenced by the shooter templates, but that should be less of a problem.
© 2024 lite-C Forums