ENABLE_BLOCK is unknown

Posted By: NovaTech2010

ENABLE_BLOCK is unknown - 07/05/15 10:38

Guten Tag ^^

I want to programming a collision between a Entity and Blocks in lite-C, but... i think he don't know what is ENABLE_BLOCK and this isn't very good for my project.




Code:
my.emask |= ENABLE_ENTITY;



ENABLE_ENTITY works, but BLOCKs not... any ideas? grin

Thanks!
- Marvin
Posted By: Wjbender

Re: ENABLE_BLOCK is unknown - 07/05/15 11:19

I do not have or had a7 ,so I do not know how it was different .

but in my a8 manual , under troubleshooting -- error messages , the error code you recieved is :

Error E355: Startup failure
The engine won't start this published project because the published project folder (.CD) contains wrong content - for instance, when a file was deleted or modified after publishing. Make sure that the project starts fine in development mode, that you have no duplicate files in your project folders and that the .CD folder contains the original content that was generated by the publish process. Also look for error messages during the publish process that indicate missing files.

other than that I dont really see anything wrong (not knowing a7)
Posted By: NovaTech2010

Re: ENABLE_BLOCK is unknown - 07/05/15 11:27

Thank you!

Means, maybe a systemfile is damaged?
Posted By: Superku

Re: ENABLE_BLOCK is unknown - 07/05/15 12:51

Did you
#include <acknex.h>
? Do you have any (not necessarily modified) files of the GStudio7/include folder copied to your working directory/ scripts folder?
Posted By: NovaTech2010

Re: ENABLE_BLOCK is unknown - 07/05/15 13:52

Ty^^
No, i never added or edited files of the 3Dgs systems, a reinstallation hasn't work to.
ENABLE_BLOCK work's with C-Skript, but don't, and i need it, in Lite-C...
Posted By: FBL

Re: ENABLE_BLOCK is unknown - 07/05/15 14:20

This should be defined in atypes.h (which is included via acknex.h)

#define EVENT_BLOCK 1

#define ENABLE_BLOCK (1<<EVENT_BLOCK)

Maybe there was a bug with the headers with exactly that one version you're using... check the contents of atypes.h in "include" folder.
Posted By: NovaTech2010

Re: ENABLE_BLOCK is unknown - 07/05/15 14:36

O___ô

Awesome, it work's!

Thank you very much, dankeschön grin

I have edited atypes.h, but now i have the nuber 1 two times:
Code:
//event definitions
#define EVENT_SURFACE	        1	// collision with level surface
#define EVENT_BLOCK 		1
#define EVENT_ENTITY		2	// collisions with entity
#define EVENT_STUCK		3	// stuck in a corner
#define EVENT_PUSH		4	
#define EVENT_IMPACT		5	// hit by another entity
#define EVENT_FRICTION	        6
#define EVENT_DETECT		7
#define EVENT_SCAN		8
#define EVENT_SHOOT		9
#define EVENT_TRIGGER	        10
#define EVENT_SONAR		11
#define EVENT_FRAME		12

Posted By: WretchedSid

Re: ENABLE_BLOCK is unknown - 07/05/15 19:14

Your A7 version is seriously outdated. Like, half a decade outdated.
© 2024 lite-C Forums