Gamestudio Links
Zorro Links
Newest Posts
AlpacaZorroPlugin v1.3.0 Released
by kzhao. 05/22/24 13:41
Free Live Data for Zorro with Paper Trading?
by AbrahamR. 05/18/24 13:28
Change chart colours
by 7th_zorro. 05/11/24 09:25
Data from CSV not parsed correctly
by dr_panther. 05/06/24 18:50
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
4 registered members (AndrewAMD, Kingware, AemStones, RealSerious3D), 1,388 guests, and 1 spider.
Key: Admin, Global Mod, Mod
Newest Members
LucasJoshua, Baklazhan, Hanky27, firatv, wandaluciaia
19054 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Page 1 of 3 1 2 3
ENABLE_IMPACT doesn´t work #284540
08/13/09 20:00
08/13/09 20:00
Joined: Jun 2009
Posts: 44
NRW,Germany
MoRRoW Offline OP
Newbie
MoRRoW  Offline OP
Newbie

Joined: Jun 2009
Posts: 44
NRW,Germany
Hey Guys
I have a model with the following action attached:
action ziela()
{


my.ENABLE_IMPACT = ON;
my.emask |= ENABLE_IMPACT;
my.event = level_A();
my.lightrange = 700;
.......
But the Entity doesn´t react when the player hits her.
Further I get an "Unknown Parameter" Error for my.emask.
I´m new to Lite-C and my script is an old C-Script from 3 years ago so I don´t understand the half of what I wrote in the past.If someone has an idea please answer.


If you are unable to learn new stuff,you have to learn to learn new stuff!
A7 7.80 Commercial
Re: ENABLE_IMPACT doesn´t work [Re: MoRRoW] #284546
08/13/09 21:00
08/13/09 21:00
Joined: May 2009
Posts: 137
Ohio, U.S.A.
PigHunter Offline
Member
PigHunter  Offline
Member

Joined: May 2009
Posts: 137
Ohio, U.S.A.
my.ENABLE_IMPACT = ON;

Remove it.

my.event = level_A;

No parenthesis?

Make sure the function comes before the action in the script or define in the beginning of the script.

function level_A();

Last edited by PigHunter; 08/13/09 21:03.
Re: ENABLE_IMPACT doesn´t work [Re: PigHunter] #284548
08/13/09 21:09
08/13/09 21:09
Joined: Jun 2009
Posts: 44
NRW,Germany
MoRRoW Offline OP
Newbie
MoRRoW  Offline OP
Newbie

Joined: Jun 2009
Posts: 44
NRW,Germany
The function level_A() is defined inanother script what i included before, so it is not unknown to the engine.
But the other problem is with the my.emask parameter the whole crap won´t compile cause of Unknown Parameter.


If you are unable to learn new stuff,you have to learn to learn new stuff!
A7 7.80 Commercial
Re: ENABLE_IMPACT doesn´t work [Re: MoRRoW] #284563
08/13/09 22:37
08/13/09 22:37
Joined: May 2009
Posts: 137
Ohio, U.S.A.
PigHunter Offline
Member
PigHunter  Offline
Member

Joined: May 2009
Posts: 137
Ohio, U.S.A.
Try:

set(my,ENABLE_IMPACT);
my.emask |= ENABLE_IMPACT;

Last edited by PigHunter; 08/13/09 22:54.
Re: ENABLE_IMPACT doesn´t work [Re: PigHunter] #284566
08/13/09 22:55
08/13/09 22:55
Joined: Jun 2009
Posts: 44
NRW,Germany
MoRRoW Offline OP
Newbie
MoRRoW  Offline OP
Newbie

Joined: Jun 2009
Posts: 44
NRW,Germany
Sry didn´t work.
What do you think can it be that the error ocures because of
7.80 Beta?
New error ocured after i´ve test your edited method:
set(my,ENABLE_IMPACT); Bad or missing WDL Parameter unkown...
and further my.emask Parameter unknown.
I´m getting crazy!


Last edited by MoRRoW; 08/13/09 22:59.

If you are unable to learn new stuff,you have to learn to learn new stuff!
A7 7.80 Commercial
Re: ENABLE_IMPACT doesn´t work [Re: MoRRoW] #284569
08/14/09 00:01
08/14/09 00:01
Joined: May 2009
Posts: 137
Ohio, U.S.A.
PigHunter Offline
Member
PigHunter  Offline
Member

Joined: May 2009
Posts: 137
Ohio, U.S.A.
Converting c-script to lite-c can be a bit of a pain. The link below will help. BKReplaceEm will save you some time.

Migration to Lite-C

Re: ENABLE_IMPACT doesn´t work [Re: PigHunter] #284570
08/14/09 00:11
08/14/09 00:11
Joined: May 2009
Posts: 137
Ohio, U.S.A.
PigHunter Offline
Member
PigHunter  Offline
Member

Joined: May 2009
Posts: 137
Ohio, U.S.A.
Try changing:

my.emask |= ENABLE_IMPACT;

to:

my.emask = ENABLE_IMPACT | ENABLE_ENTITY;

and maybe remove:

set(my,ENABLE_IMPACT);

Re: ENABLE_IMPACT doesn´t work [Re: PigHunter] #284574
08/14/09 00:50
08/14/09 00:50
Joined: Jun 2009
Posts: 44
NRW,Germany
MoRRoW Offline OP
Newbie
MoRRoW  Offline OP
Newbie

Joined: Jun 2009
Posts: 44
NRW,Germany
Hey thanks for your help will try that tomorrow because here it is 03:00 o´clock in the middle of the night.
I will reply tomorrow if it has worked or if it doesn´t.
GN8
...
Tried but same error
Okay at least I follow your advice with the replacement of C-Script code with Lite-C.
But anyways thanks alot for your help.

Last edited by MoRRoW; 08/14/09 00:54.

If you are unable to learn new stuff,you have to learn to learn new stuff!
A7 7.80 Commercial
Re: ENABLE_IMPACT doesn´t work [Re: MoRRoW] #284584
08/14/09 03:47
08/14/09 03:47
Joined: Feb 2008
Posts: 3,232
Australia
EvilSOB Offline
Expert
EvilSOB  Offline
Expert

Joined: Feb 2008
Posts: 3,232
Australia
TRIPLE check to make sure ALL the source-files (or included files) that you are using are all Lite-C files. (saved as *.C or sometimes *.H).

Also make sure there are NO *.WDL files with the same name as your "main" script. (preferably no *.WDL files at all)

You CANNOT mix c-script files and lite-c files. You are only able to use one or the other.
This is an easy place to fall over when moving from c-script to lite-c.


Hope this helps.


"There is no fate but what WE make." - CEO Cyberdyne Systems Corp.
A8.30.5 Commercial
Re: ENABLE_IMPACT doesn´t work [Re: EvilSOB] #284660
08/14/09 13:19
08/14/09 13:19
Joined: Jun 2009
Posts: 44
NRW,Germany
MoRRoW Offline OP
Newbie
MoRRoW  Offline OP
Newbie

Joined: Jun 2009
Posts: 44
NRW,Germany
Hey Evil
The Case is that the script i´m talking about was working without any problem´s in A6 everything worked like i wanted.
I had to stop development because of my job and now i switched to A7 Engine and wanted to continue but the old code didn´t work anymore I fixed much of the code except of that enable_impact thing.When i touch the entity with my player it just does nothing.Oh by the way I have a scan function on SPACE and when i hit SPACE at this position in the game the target function levelA starts.


If you are unable to learn new stuff,you have to learn to learn new stuff!
A7 7.80 Commercial
Page 1 of 3 1 2 3

Moderated by  HeelX, Lukas, rayp, Rei_Ayanami, Superku, Tobias, TWO, VeT 

Gamestudio download | chip programmers | Zorro platform | shop | Data Protection Policy

oP group Germany GmbH | Birkenstr. 25-27 | 63549 Ronneburg / Germany | info (at) opgroup.de

Powered by UBB.threads™ PHP Forum Software 7.7.1