I am Icy Manipulator, writer of diary of a newbie .In the begining chapters i started to work on a entity loader, which i hope to extend in a level editor of sorts one day.
I am proud to say i have completed a working stable version. I will updating my blog about my experiences during the creation of this application when i get back from my Magic Online draft (whenever that will be) I will also in the coming days write my first tutorial, once showing you too, can make a entity loader like mine. Here is the download to see the current WIP.
http://download.35mb.com/pdent/entity_loader.zip
My Entity Loader
-
Icy Manipulator
you can play around with it, and change entity_list.txt to contain
Note: the syntax to add a entity is as follows:
and you'll get four entites. You can load as many entities as your hardware can support.NPC
faerie.md2
-70
0
-30
EMAT_RUN
NULL
faerie2.bmp
NPC
faerie.md2
-60
0
-10
EMAT_RUN
NULL
faerie2.bmp
NPC
faerie.md2
-60
0
-40
EMAT_RUN
NULL
faerie2.bmp
NPC
faerie.md2
-60
0
-50
EMAT_RUN
NULL
faerie2.bmp
END_OF_FILE
Note: the syntax to add a entity is as follows:
NPC (referencing code for NPC's, leave that as default for now)
faerie.md2 // model (if you have a md2, you could load that one instead)
-60 // X position
0 // Y position
-50 // Z postion
EMAT_RUN // Animation (some animations don't work yet, so just this as default)
NULL // material flag (does'nt work yet)
faerie2.bmp // texture
<------------------- There must be a blank space after the texture
-
Icy Manipulator
updated the entity loader, it now supports particle systems (roughly...)
it comes with a demo of a box emitter.
its at the same link above. so if you downloaded it before do it again, it's a different file now.
the syntax for the particle system is below if you want to check it out.
---------------------------------------------------
Particle_System
X Position
Y Position
Z Position
X size
Y size
how much to scale X
how much to scale Y
how much to scale Z
Minimum starting alpha color
Minimum starting red color
Minimum starting green color
Minimum starting blue color
Maximum starting alpha color
Maximum starting red color
Maximum starting green color
Maximum starting blue color
<---------------------- you must have have empty line here or the app will crash
---------------------------------------------------------------------
Also if anyone can tell me why the textures in my level don't come up, that would greatly help. i did'nt touch any of that coding, i implementated a normal particle system node and emitter. strange thing is, if you push esc, they come back until you click cancel.....weird....
it comes with a demo of a box emitter.
its at the same link above. so if you downloaded it before do it again, it's a different file now.
the syntax for the particle system is below if you want to check it out.
---------------------------------------------------
Particle_System
X Position
Y Position
Z Position
X size
Y size
how much to scale X
how much to scale Y
how much to scale Z
Minimum starting alpha color
Minimum starting red color
Minimum starting green color
Minimum starting blue color
Maximum starting alpha color
Maximum starting red color
Maximum starting green color
Maximum starting blue color
<---------------------- you must have have empty line here or the app will crash
---------------------------------------------------------------------
Also if anyone can tell me why the textures in my level don't come up, that would greatly help. i did'nt touch any of that coding, i implementated a normal particle system node and emitter. strange thing is, if you push esc, they come back until you click cancel.....weird....
-
Icy Manipulator
Yeah it worked on the first one, but as soon as i implemented a particle emitter weird stuff started happening with the textures.
You might be happy to know, i am about 90% down making a water entity and i am currently testing it out now.
I am also working a templating system, where you would be able to define something like Env_Smoke, and derive it from Particle_System with different values and instead of typing it up again you could type Env_Smoke and just use 3 lines for the coordinates.
You might be happy to know, i am about 90% down making a water entity and i am currently testing it out now.
I am also working a templating system, where you would be able to define something like Env_Smoke, and derive it from Particle_System with different values and instead of typing it up again you could type Env_Smoke and just use 3 lines for the coordinates.
-
Icy Manipulator
Here is my list of things to implement in the coming versions
--------------------------------------
Entity Templating System
Spawn_Entity (you specify where, and how many, and this entity will spawn other entities automatically)
Attach_Physics (you will be able to attach physics coding to any entity)
Enable_Collision (the entity will use collision detection)
Env_Terrain (makes hills and stuff)
Env_Skybox (makes a skybox around the level)
Player_Person_3rd (automatically makes a 3rd person camera and sets the model)
Player_Person_1st (makes a 1st person view)
Info_Node (will be used for pathfinding)
Gui_Hud (can make a customizable HUD)
Player_Decrease_Health (you can use this as a invisible entity, or attach it to another entity and collision with it will hurt you if you have Gui_Hud or Player_Set_Health on)
Player_Set_Health (assign the player a health value, and mess with it)
Player_Set_Model (change player model)
FX_FadeOut (attach it to a entity and fade it out)
FX_FadeIn (attach it to a entity and fade it in)
Render_To_Texture (attach it to a few entitys and specify what texture to render to and where)
Env_Ice (can be used for a number of things, when colliding entity will slide as if on ice)
2D_Create_Sprite (makes a sprite)
Func_Trigger (when colliding with it, activate a another entity)
FX_ViewPort_RGB (change the color of any viewport, eg. the player camera, can be used to make nightvision goggles or something)
Exspansion of the NPC coding to enable AI and allow different types.
Exspansion of the particle class to create more emitters.
Visual point and click interface to add entities, and delete them.
----------------------------------------------------------------------------------
What i currently have
----------------------------------------------------------------------------------
Env_Water (kinda buggy, need to work on it more)
Particle_System (works good, i was able to make rain during one of my tests, small problem though, textures disappeared in my test when using it)
NPC (Basic NPC, does'nt do anything yet, need to add more features, perfect, no bugs)
----------------------------------------------------------------------------------
I would like feedback from the community. If you have any idea's on entities that should be implemented or expanded let me know.
Also, i will putting up a web page for the entity loader soon (as soon i found someone willing to host me)
I am trying to make this a viable tool for the irrlicht community and will actually look into requests and try to add them, but most of all i will give you acknowledgement that i have taken your words into consideration (i will not skip over your e-mails, replies, etc. without reading them)
If everyone thinks this would be a good tool to have, I will continue updating this as fast i can (i do nothing except program all day long)
Just like Irrlicht, i would like this tool to be general purpose.
As in, please nothing too specific like....
---------------------------------------------
Somedude: Can you add in something that shoots rockets and follows the player? maybe we should called it Enemy_RocketShip!
---------------------------------------------
However i will do something like....
---------------------------------------------------------
Somedude: I would like to see a Env_Timer implementated with the ability to attach it to entities and allow them to do stuff based on the timer count.
---------------------------------------------------------
Also it would be helpful if you mocked up a syntax, so i have a framework to work from.
P.S.: if anyone here plays Magic Online, i will gladly accept tickets, avatars, packs, or cards as a donation but not required.
OffTopic: Why is the forum so slow lately?
--------------------------------------
Entity Templating System
Spawn_Entity (you specify where, and how many, and this entity will spawn other entities automatically)
Attach_Physics (you will be able to attach physics coding to any entity)
Enable_Collision (the entity will use collision detection)
Env_Terrain (makes hills and stuff)
Env_Skybox (makes a skybox around the level)
Player_Person_3rd (automatically makes a 3rd person camera and sets the model)
Player_Person_1st (makes a 1st person view)
Info_Node (will be used for pathfinding)
Gui_Hud (can make a customizable HUD)
Player_Decrease_Health (you can use this as a invisible entity, or attach it to another entity and collision with it will hurt you if you have Gui_Hud or Player_Set_Health on)
Player_Set_Health (assign the player a health value, and mess with it)
Player_Set_Model (change player model)
FX_FadeOut (attach it to a entity and fade it out)
FX_FadeIn (attach it to a entity and fade it in)
Render_To_Texture (attach it to a few entitys and specify what texture to render to and where)
Env_Ice (can be used for a number of things, when colliding entity will slide as if on ice)
2D_Create_Sprite (makes a sprite)
Func_Trigger (when colliding with it, activate a another entity)
FX_ViewPort_RGB (change the color of any viewport, eg. the player camera, can be used to make nightvision goggles or something)
Exspansion of the NPC coding to enable AI and allow different types.
Exspansion of the particle class to create more emitters.
Visual point and click interface to add entities, and delete them.
----------------------------------------------------------------------------------
What i currently have
----------------------------------------------------------------------------------
Env_Water (kinda buggy, need to work on it more)
Particle_System (works good, i was able to make rain during one of my tests, small problem though, textures disappeared in my test when using it)
NPC (Basic NPC, does'nt do anything yet, need to add more features, perfect, no bugs)
----------------------------------------------------------------------------------
I would like feedback from the community. If you have any idea's on entities that should be implemented or expanded let me know.
Also, i will putting up a web page for the entity loader soon (as soon i found someone willing to host me)
I am trying to make this a viable tool for the irrlicht community and will actually look into requests and try to add them, but most of all i will give you acknowledgement that i have taken your words into consideration (i will not skip over your e-mails, replies, etc. without reading them)
If everyone thinks this would be a good tool to have, I will continue updating this as fast i can (i do nothing except program all day long)
Just like Irrlicht, i would like this tool to be general purpose.
As in, please nothing too specific like....
---------------------------------------------
Somedude: Can you add in something that shoots rockets and follows the player? maybe we should called it Enemy_RocketShip!
---------------------------------------------
However i will do something like....
---------------------------------------------------------
Somedude: I would like to see a Env_Timer implementated with the ability to attach it to entities and allow them to do stuff based on the timer count.
---------------------------------------------------------
Also it would be helpful if you mocked up a syntax, so i have a framework to work from.
P.S.: if anyone here plays Magic Online, i will gladly accept tickets, avatars, packs, or cards as a donation but not required.
OffTopic: Why is the forum so slow lately?