'content' undeclared identifier

Posted By: Ericmor

'content' undeclared identifier - 05/08/11 07:33

Hi folks;
I´m translating a large old .wdl code into Lite-C, but i´ve runned into a problem.
An action code used by the collision detection camera entity apparently doesn´t work in Lite-C - couldn´t find any working example of the new code, since i don´t know what the new syntax is.
This is the old code:
Code:
...
if(camera_mode==1)
      {
      vec_set (my.x,camera_1.x); 
      result = content(my.x);
      if (result == content_solid){camerainblock=1;}
      else{camerainblock=0;}
      }wait(1);
...


It gives the following error:

Error in ´actions.c´ line 113:
´content´ undeclared identifier
< result=content(my,x);
>

"content" was the .wdl syntax for determining content of an object... how is it handled in Lite-C?
Maybe now it´s some PhysiX code probably, but i´d like to first put this one to run again first, to optimize the code with a running version of the game.
Any help is appreciated... thanks in advance.
Posted By: DJBMASTER

Re: 'content' undeclared identifier - 05/08/11 07:53

I think you're looking for the 'c_content' function. Check the manual on how its syntax differs laugh.
Posted By: Ericmor

Re: 'content' undeclared identifier - 05/10/11 12:11

Thanks DJBMaster!
Also, content result now is expressed in NUMBERS (1,2 or 3), not in "content_solid", etc, as it was in the past.
Posted By: Rei_Ayanami

Re: 'content' undeclared identifier - 05/10/11 14:48

Please check the manual!

The last questions you asked could have been avoided...

However, you can still check the defines, but liteC is Case-Sensetive -> CONTENT_SOLID etc
Posted By: Ericmor

Re: 'content' undeclared identifier - 05/10/11 20:05

You´re right. Maybe they could, searching for hours for each syntax.
But most searches with the syntax error return bogus content, that´s whay this forum exists.
Usually, you must ALREADY KNOW the answer to be able to search for the right syntax, wich is a serious error in the manual.
I refrain from using the forum without doing a time-consuming search, wich will be huge because i´m translating 20.000 lines of code, from a large project. That´s not the last time i´ll be asking for help in the forums for content that can be found in the manual, easy to find... WHEN YOU ALREADY KNOW THE SYNTAX.
Thing that are also in the manual, as Conitek said, is they SUPPORT E-MAIL for everybody who purchased the PRO edition, for asking conitek support team DIRECTLY, without have to BUG the forum users, who obviously are annoyied from my dumb, simple questions.
Unfortunately, i´d never been able to found such e-mail, so i have to be a nuisance to the forum users.
For that, i´d like to sincerely apologize to EVERYONE in the Forums, since i´m a newby who DARES to ask questions that are in the manual in the "Starting with Gamestudio" section.
I´m only been using Acknetix since version A5 and never touched Lite-C, so i still have a lot to learn.
I´ve spent more than U$2000,00 in upgrades from the last years, betting in acknetix and BELIEVING that the forum would help fill the gap that syntax changes and the dreadfull development of a game that isn´t a simple puzzle would create.

I´m really gratefull for the people who took their time to answer my OBVIOUS DUMB LAZY QUESTIONS, since i barelly a scripter and more of a 3D artist.
Since i have to make ends meet in here, i also would like to thanks in advance anyone who´s willing to answer any future stupid questions, that i WILL surelly make, since that so far i only removed from the error syntax warning 8 from the 15 scripts used in this project, and still remains 10.500 lines of code to be corrected and optimized, by myself.
Once again, i´d like to apologize to the users i offended with my questions and thank the ones who spared time to answer them.
© 2024 lite-C Forums