Discussion:
[hlcoders] Metamod Link Entity to Class
SK G
2017-02-27 15:42:05 UTC
Permalink
Hi everyone.

I need help with MonsterMod for Metamod I'm trying link the entities with
them and I got this error

error C2065: 'monster_barney' : undeclared identifier
error C2275: 'CMTalkMonster' : illegal use of this type as an expression

I'm using this LINK_ENTITY_TO_CLASS( monster_barney, CMBarney );

Thanks a lot!
_______________________________________________
To unsubscribe, edit your list preferences, or view the list archives, please visit:
https://list.valvesoftware.com/cgi-bin/mailman/listinfo/h
SK G
2017-02-27 16:20:59 UTC
Permalink
Hi everyone.

I need help with MonsterMod for Metamod I'm trying link the entities with
them and I got this error

error C2065: 'monster_barney' : undeclared identifier
error C2275: 'CMTalkMonster' : illegal use of this type as an expression

I'm using this LINK_ENTITY_TO_CLASS( monster_barney, CMBarney );

Thanks a lot!
_______________________________________________
To unsubscribe, edit your list preferences, or view the list archives, please visit:
https://list.valvesoftware.com/cgi-bin/mailman/listinfo/h
Sam Vanheer
2017-02-27 16:29:34 UTC
Permalink
Could you post the entire compile log, it looks like there are errors
elsewhere that are cascading to cause this problem.
Post by SK G
Hi everyone.
I need help with MonsterMod for Metamod I'm trying link the entities with
them and I got this error
error C2065: 'monster_barney' : undeclared identifier
error C2275: 'CMTalkMonster' : illegal use of this type as an expression
I'm using this LINK_ENTITY_TO_CLASS( monster_barney, CMBarney );
Thanks a lot!
_______________________________________________
https://list.valvesoftware.com/cgi-bin/mailman/listinfo/hlcoders
_______________________________________________
To unsubscribe, edit your list preferences, or view the list archives, please visit:
https://list.valvesoftware.com/cgi-bin/mailman/l
Sam Vanheer
2017-02-27 16:48:57 UTC
Permalink
Also to the mailing list managers, this list is being watched by spambots.
Post by Sam Vanheer
Could you post the entire compile log, it looks like there are errors
elsewhere that are cascading to cause this problem.
Post by SK G
Hi everyone.
I need help with MonsterMod for Metamod I'm trying link the entities with
them and I got this error
error C2065: 'monster_barney' : undeclared identifier
error C2275: 'CMTalkMonster' : illegal use of this type as an expression
I'm using this LINK_ENTITY_TO_CLASS( monster_barney, CMBarney );
Thanks a lot!
_______________________________________________
https://list.valvesoftware.com/cgi-bin/mailman/listinfo/hlcoders
_______________________________________________
https://list.valvesoftware.com/cgi-bin/mailman/listinfo/hlcoders
_______________________________________________
To unsubscribe, edit your list preferences, or view the list archives, please visit:
https://list.valvesoftware.com/cg
SK G
2017-02-27 16:50:05 UTC
Permalink
Compiling...
barney.cpp
\monster mod 2017\dlls\barney.cpp(42) : error C2065: 'monster_barney' :
undeclared identifier
\monster mod 2017\dlls\barney.cpp(42) : error C2275: 'CMBarney' : illegal
use of this type as an expression
\monster mod 2017\dlls\cmbasemonster.h(653) : see declaration of 'CMBarney'
\monster mod 2017\dlls\barney.cpp(42) : error C2501: 'LINK_ENTITY_TO_CLASS'
: missing storage-class or type specifiers
\monster mod 2017\dlls\barney.cpp(42) : error C2078: too many initializers
\monster mod 2017\dlls\barney.cpp(42) : error C2275: 'CMBarney' : illegal
use of this type as an expression
\monster mod 2017\dlls\cmbasemonster.h(653) : see declaration of 'CMBarney'
Error executing cl.exe.

monster_mm.dll - 5 error(s), 0 warning(s)
Post by Sam Vanheer
Could you post the entire compile log, it looks like there are errors
elsewhere that are cascading to cause this problem.
Post by SK G
Hi everyone.
I need help with MonsterMod for Metamod I'm trying link the entities with
them and I got this error
error C2065: 'monster_barney' : undeclared identifier
error C2275: 'CMTalkMonster' : illegal use of this type as an expression
I'm using this LINK_ENTITY_TO_CLASS( monster_barney, CMBarney );
Thanks a lot!
_______________________________________________
To unsubscribe, edit your list preferences, or view the list archives,
https://list.valvesoftware.com/cgi-bin/mailman/listinfo/hlcoders
_______________________________________________
https://list.valvesoftware.com/cgi-bin/mailman/listinfo/hlcoders
_______________________________________________
To unsubscribe, edit your list preferences, or view the list archives, please visit:
https://list.valvesoftware.com/cgi-
Sam Vanheer
2017-02-27 17:02:56 UTC
Permalink
I'm assuming you're using the source code from this site:
http://hpb-bot.bots-united.com/monster.html


It doesn't appear to make use of the LINK_ENTITY_TO_CLASS macro at all.
Instead it uses a hardcoded list in dllapi.cpp.

If you're using a different version, can you provide a download link?
Post by SK G
Compiling...
barney.cpp
undeclared identifier
\monster mod 2017\dlls\barney.cpp(42) : error C2275: 'CMBarney' : illegal
use of this type as an expression
\monster mod 2017\dlls\cmbasemonster.h(653) : see declaration of 'CMBarney'
\monster mod 2017\dlls\barney.cpp(42) : error C2501: 'LINK_ENTITY_TO_CLASS'
: missing storage-class or type specifiers
\monster mod 2017\dlls\barney.cpp(42) : error C2078: too many initializers
\monster mod 2017\dlls\barney.cpp(42) : error C2275: 'CMBarney' : illegal
use of this type as an expression
\monster mod 2017\dlls\cmbasemonster.h(653) : see declaration of 'CMBarney'
Error executing cl.exe.
monster_mm.dll - 5 error(s), 0 warning(s)
Post by Sam Vanheer
Could you post the entire compile log, it looks like there are errors
elsewhere that are cascading to cause this problem.
Post by SK G
Hi everyone.
I need help with MonsterMod for Metamod I'm trying link the entities with
them and I got this error
error C2065: 'monster_barney' : undeclared identifier
error C2275: 'CMTalkMonster' : illegal use of this type as an expression
I'm using this LINK_ENTITY_TO_CLASS( monster_barney, CMBarney );
Thanks a lot!
_______________________________________________
To unsubscribe, edit your list preferences, or view the list archives,
https://list.valvesoftware.com/cgi-bin/mailman/listinfo/hlcoders
_______________________________________________
https://list.valvesoftware.com/cgi-bin/mailman/listinfo/hlcoders
_______________________________________________
https://list.valvesoftware.com/cgi-bin/mailman/listinfo/hlcoders
_______________________________________________
To unsubscribe, edit your list preferences, or view the list archives, please visit:
https://list
SK G
2017-02-27 17:09:18 UTC
Permalink
Exactly It's the same bro if you can help me i appreciate very much

if you need the source pack i send you via private mail
Post by Sam Vanheer
Could you post the entire compile log, it looks like there are errors
elsewhere that are cascading to cause this problem.
Post by SK G
Hi everyone.
I need help with MonsterMod for Metamod I'm trying link the entities with
them and I got this error
error C2065: 'monster_barney' : undeclared identifier
error C2275: 'CMTalkMonster' : illegal use of this type as an expression
I'm using this LINK_ENTITY_TO_CLASS( monster_barney, CMBarney );
Thanks a lot!
_______________________________________________
To unsubscribe, edit your list preferences, or view the list archives,
https://list.valvesoftware.com/cgi-bin/mailman/listinfo/hlcoders
_______________________________________________
https://list.valvesoftware.com/cgi-bin/mailman/listinfo/hlcoders
_______________________________________________
To unsubscribe, edit your list preferences, or view the list archives, please visit:
https://list.valvesoftware.com
Sam Vanheer
2017-02-27 17:25:48 UTC
Permalink
You'll need to add your monsters in the monster_types list, and add an
entry in the spawn_monster function's switch statement that matches the
index in the list.

For example, the last entry is the Zombie, with a name of "zombie", at
index 13.


There is already a barney monster defined in this list so you can use
that. If you need to add your own, add the name before the last entry
(the "", FALSE part), then add your monster to the switch with a
matching index.

This is the previous index + 1, so adding a new monster would have index 14.

Don't forget to include the header that declares the monster class as
well, if it isn't declared in cmbasemonster.h.


This plugin seems to be rather inefficient in design, so if you can you
should redesign this. If you don't understand why then there's no need
to worry; this does work, albeit poorly.
Post by SK G
Exactly It's the same bro if you can help me i appreciate very much
if you need the source pack i send you via private mail
Post by Sam Vanheer
Could you post the entire compile log, it looks like there are errors
elsewhere that are cascading to cause this problem.
Post by SK G
Hi everyone.
I need help with MonsterMod for Metamod I'm trying link the entities with
them and I got this error
error C2065: 'monster_barney' : undeclared identifier
error C2275: 'CMTalkMonster' : illegal use of this type as an expression
I'm using this LINK_ENTITY_TO_CLASS( monster_barney, CMBarney );
Thanks a lot!
_______________________________________________
To unsubscribe, edit your list preferences, or view the list archives,
https://list.valvesoftware.com/cgi-bin/mailman/listinfo/hlcoders
_______________________________________________
https://list.valvesoftware.com/cgi-bin/mailman/listinfo/hlcoders
_______________________________________________
https://list.valvesoftware.com/cgi-bin/mailman/listinfo/hlcoders
_______________________________________________
To unsubscribe, edit your list preferences, or view the list archives, please visit:
https://list.valvesoftware.com/cgi-bin/ma
SK G
2017-02-27 17:34:21 UTC
Permalink
Thank you for the answer but i need link the entities for place monsters
via map and don't for text/cfg how is done.

I don't know what is the method more efficient for this.

Sorry for my bad english haha

Thanks a lot!
Post by Sam Vanheer
You'll need to add your monsters in the monster_types list, and add an
entry in the spawn_monster function's switch statement that matches the
index in the list.
For example, the last entry is the Zombie, with a name of "zombie", at
index 13.
There is already a barney monster defined in this list so you can use
that. If you need to add your own, add the name before the last entry
(the "", FALSE part), then add your monster to the switch with a
matching index.
This is the previous index + 1, so adding a new monster would have index 14.
Don't forget to include the header that declares the monster class as
well, if it isn't declared in cmbasemonster.h.
This plugin seems to be rather inefficient in design, so if you can you
should redesign this. If you don't understand why then there's no need
to worry; this does work, albeit poorly.
Post by SK G
Exactly It's the same bro if you can help me i appreciate very much
if you need the source pack i send you via private mail
Post by Sam Vanheer
Could you post the entire compile log, it looks like there are errors
elsewhere that are cascading to cause this problem.
Post by SK G
Hi everyone.
I need help with MonsterMod for Metamod I'm trying link the entities
with
Post by SK G
Post by Sam Vanheer
Post by SK G
them and I got this error
error C2065: 'monster_barney' : undeclared identifier
error C2275: 'CMTalkMonster' : illegal use of this type as an
expression
Post by SK G
Post by Sam Vanheer
Post by SK G
I'm using this LINK_ENTITY_TO_CLASS( monster_barney, CMBarney );
Thanks a lot!
_______________________________________________
To unsubscribe, edit your list preferences, or view the list archives,
https://list.valvesoftware.com/cgi-bin/mailman/listinfo/hlcoders
_______________________________________________
https://list.valvesoftware.com/cgi-bin/mailman/listinfo/hlcoders
_______________________________________________
To unsubscribe, edit your list preferences, or view the list archives,
https://list.valvesoftware.com/cgi-bin/mailman/listinfo/hlcoders
_______________________________________________
https://list.valvesoftware.com/cgi-bin/mailman/listinfo/hlcoders
_______________________________________________
To unsubscribe, edit your list preferences, or view the list archives, please visit:
https://list.valvesoftware.com/cgi-bin/mailman/listinfo/hlcoders
Sam Vanheer
2017-02-27 17:39:33 UTC
Permalink
I don't know if it's possible to spawn monsters by placing them in a map
when using this mod. For that it will probably need to be updated to
export the functions the way other plugins do. You'll need to find
somebody that can help you with that.
Post by SK G
Thank you for the answer but i need link the entities for place monsters
via map and don't for text/cfg how is done.
I don't know what is the method more efficient for this.
Sorry for my bad english haha
Thanks a lot!
Post by Sam Vanheer
You'll need to add your monsters in the monster_types list, and add an
entry in the spawn_monster function's switch statement that matches the
index in the list.
For example, the last entry is the Zombie, with a name of "zombie", at
index 13.
There is already a barney monster defined in this list so you can use
that. If you need to add your own, add the name before the last entry
(the "", FALSE part), then add your monster to the switch with a
matching index.
This is the previous index + 1, so adding a new monster would have index 14.
Don't forget to include the header that declares the monster class as
well, if it isn't declared in cmbasemonster.h.
This plugin seems to be rather inefficient in design, so if you can you
should redesign this. If you don't understand why then there's no need
to worry; this does work, albeit poorly.
Post by SK G
Exactly It's the same bro if you can help me i appreciate very much
if you need the source pack i send you via private mail
Post by Sam Vanheer
Could you post the entire compile log, it looks like there are errors
elsewhere that are cascading to cause this problem.
Post by SK G
Hi everyone.
I need help with MonsterMod for Metamod I'm trying link the entities
with
Post by SK G
Post by Sam Vanheer
Post by SK G
them and I got this error
error C2065: 'monster_barney' : undeclared identifier
error C2275: 'CMTalkMonster' : illegal use of this type as an
expression
Post by SK G
Post by Sam Vanheer
Post by SK G
I'm using this LINK_ENTITY_TO_CLASS( monster_barney, CMBarney );
Thanks a lot!
_______________________________________________
To unsubscribe, edit your list preferences, or view the list archives,
https://list.valvesoftware.com/cgi-bin/mailman/listinfo/hlcoders
_______________________________________________
https://list.valvesoftware.com/cgi-bin/mailman/listinfo/hlcoders
_______________________________________________
To unsubscribe, edit your list preferences, or view the list archives,
https://list.valvesoftware.com/cgi-bin/mailman/listinfo/hlcoders
_______________________________________________
https://list.valvesoftware.com/cgi-bin/mailman/listinfo/hlcoders
_______________________________________________
https://list.valvesoftware.com/cgi-bin/mailman/listinfo/hlcoders
_______________________________________________
To unsubscribe, edit your list preferences, or view the list archives, please visit:
https://list.valvesoftware.com/cgi-bin/mailman/listinfo/hl
SK G
2017-02-27 17:45:48 UTC
Permalink
Yes it's possible exist one mod with this called [EU] CS 1.6 Monster Co-op.
I opened the maps (bsp) and have the entities created including info_nodes
for the AI navigate etc
Post by Sam Vanheer
I don't know if it's possible to spawn monsters by placing them in a map
when using this mod. For that it will probably need to be updated to
export the functions the way other plugins do. You'll need to find
somebody that can help you with that.
Post by SK G
Thank you for the answer but i need link the entities for place monsters
via map and don't for text/cfg how is done.
I don't know what is the method more efficient for this.
Sorry for my bad english haha
Thanks a lot!
Post by Sam Vanheer
You'll need to add your monsters in the monster_types list, and add an
entry in the spawn_monster function's switch statement that matches the
index in the list.
For example, the last entry is the Zombie, with a name of "zombie", at
index 13.
There is already a barney monster defined in this list so you can use
that. If you need to add your own, add the name before the last entry
(the "", FALSE part), then add your monster to the switch with a
matching index.
This is the previous index + 1, so adding a new monster would have index 14.
Don't forget to include the header that declares the monster class as
well, if it isn't declared in cmbasemonster.h.
This plugin seems to be rather inefficient in design, so if you can you
should redesign this. If you don't understand why then there's no need
to worry; this does work, albeit poorly.
Post by SK G
Exactly It's the same bro if you can help me i appreciate very much
if you need the source pack i send you via private mail
Post by Sam Vanheer
Could you post the entire compile log, it looks like there are errors
elsewhere that are cascading to cause this problem.
Post by SK G
Hi everyone.
I need help with MonsterMod for Metamod I'm trying link the entities
with
Post by SK G
Post by Sam Vanheer
Post by SK G
them and I got this error
error C2065: 'monster_barney' : undeclared identifier
error C2275: 'CMTalkMonster' : illegal use of this type as an
expression
Post by SK G
Post by Sam Vanheer
Post by SK G
I'm using this LINK_ENTITY_TO_CLASS( monster_barney, CMBarney );
Thanks a lot!
_______________________________________________
To unsubscribe, edit your list preferences, or view the list
archives,
Post by SK G
Post by Sam Vanheer
Post by SK G
Post by Sam Vanheer
Post by SK G
https://list.valvesoftware.com/cgi-bin/mailman/listinfo/hlcoders
_______________________________________________
To unsubscribe, edit your list preferences, or view the list archives,
https://list.valvesoftware.com/cgi-bin/mailman/listinfo/hlcoders
_______________________________________________
To unsubscribe, edit your list preferences, or view the list archives,
https://list.valvesoftware.com/cgi-bin/mailman/listinfo/hlcoders
_______________________________________________
https://list.valvesoftware.com/cgi-bin/mailman/listinfo/hlcoders
_______________________________________________
To unsubscribe, edit your list preferences, or view the list archives,
https://list.valvesoftware.com/cgi-bin/mailman/listinfo/hlcoders
_______________________________________________
https://list.valvesoftware.com/cgi-bin/mailman/listinfo/hlcoders
_______________________________________________
To unsubscribe, edit your list preferences, or view the list archives, please visit:
https://list.valvesoftware.com/

Loading...