Raised This Month: $ Target: $400
 0% 

new entity and new entity classname. ( totally new entity, created by valvehammer )


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Hyper Nova
BANNED
Join Date: May 2012
Old 05-18-2012 , 18:33   new entity and new entity classname. ( totally new entity, created by valvehammer )
Reply With Quote #1

Hello, i have created new entity in my map.
Entity classname was portal_door
the entity is in .bsp - testnewent.ent so the entity must be in game right?

Guess what?
I can not reach the entity somehow, like it dont exist but it must exist all things is right.
( I am entity lover so i know alot of things about entity )

but i still dont understand why i cant found this entity, can not touch or do something with this entity?
It is a map entity right?


The map entities can not reach if they are not spawn somehow in to the game.
Like the entity light in goldsource engine.



I did not found any cpp or h file in hlengine what show me how they do this things
i think i dont have full source of goldsource engine , this is bad.

i have ohters nice things like source games engine source so this is not very bad thing that some functions in goldsource are missing


Anyway is there somehow possible to do what i want?
( Create entity with new classname and new class pevs in valve hammer editor and then do something with that entity? )


I have plan to update goldsource engine with creating some new entities like npc-s or like new door like in css or even i dont know " a new trigger_teleport way like in portal2 ( the portal_door entity ) "
or that sound entity ( i dont remember his name ) but it allow to play mp3 files in map, again source engine thing

I really hope that you guys can give me some help.
( I'm very upset about this situation, i coded ~100kb code for new entities and now i get to know that way is not working like i plan. It is just so sad )

My apologies about my bad english, i am very sorry about this.
Hyper Nova is offline
dias
BANNED
Join Date: Jul 2009
Location: South Vietnam
Old 05-18-2012 , 20:11   Re: new entity and new entity classname. ( totally new entity, created by valvehammer
Reply With Quote #2

Hmm. I used to meet a problem like this... Create an entity by Valve Hammer and use in AMX... I still can't do it
dias is offline
Send a message via Yahoo to dias Send a message via Skype™ to dias
ConnorMcLeod
Veteran Member
Join Date: Jul 2006
Location: France (95)
Old 05-18-2012 , 21:20   Re: new entity and new entity classname. ( totally new entity, created by valvehammer
Reply With Quote #3

Game doesn't let unknown classname being created.
__________________
- tired and retired -

- my plugins -
ConnorMcLeod is offline
hornet
AMX Mod X Plugin Approver
Join Date: Mar 2010
Location: Australia
Old 05-18-2012 , 21:36   Re: new entity and new entity classname. ( totally new entity, created by valvehammer
Reply With Quote #4

Make it a known CS entity and set one of its key values to something unique so you can determine it.
__________________
Quote:
vBulletin Tip #42: Not much would be accomplished by merging this item with itself.
hornet is offline
Hyper Nova
BANNED
Join Date: May 2012
Old 05-19-2012 , 08:34   Re: new entity and new entity classname. ( totally new entity, created by valvehammer
Reply With Quote #5

Quote:
Originally Posted by hornet View Post
Make it a known CS entity and set one of its key values to something unique so you can determine it.
the question is right now how do i do it?

Edit: i got many ideas now.
I need to open bsp file and read the .ent file inside bsp.
Then i can do things ( i am also not good in reading things but it seems that now is the time to learn. )

Last edited by Hyper Nova; 05-19-2012 at 08:51.
Hyper Nova is offline
csoldjb
Member
Join Date: Dec 2010
Old 05-20-2012 , 21:33   Re: new entity and new entity classname. ( totally new entity, created by valvehammer
Reply With Quote #6

If you enable HL developer mode,you will be find that this entity was unrecognized and deleted.
But in metamod, there is a example about how to create a new entity,you can look it.
csoldjb is offline
Hyper Nova
BANNED
Join Date: May 2012
Old 05-24-2012 , 11:27   Re: new entity and new entity classname. ( totally new entity, created by valvehammer
Reply With Quote #7

pfn_spawn(entid)

this function get called when my costom classname entity is in game.
2 function "pfn_keyvalue" get called when entity is gone already.


Now i have function and i can get all entity data what i need but this is not enough.
I need to keep this entity in game somehow.


I tried to change class name to trigger_teleport ( so mayby engine think that is right entity and will keep it ) and then later change back to correct name..
no, it still delete this.

Seems like entity date of death is made yet earlier or mayby on this function (function when entity spawn is called) but the pfn_spawn(entid) will be too late.

I think there are variable for each entity, and if classname is wrong then variable will be true and then come funeral...

So, is there any hope to save my sweet entity?
mayby block this remove_entity thing or something?


Edit: i am so close to solve this entity problem, please someone share your knowledge i really need this.


Edit2: My bad, entity get never spawned and function never called for this entity just little mistake.
Now i lost all my hope.

Last edited by Hyper Nova; 05-24-2012 at 12:48.
Hyper Nova is offline
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 00:26.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode