Gamestudio Links
Zorro Links
Newest Posts
Help with plotting multiple ZigZag
by degenerate_762. 04/30/24 23:23
M1 Oversampling
by 11honza11. 04/30/24 08:16
Trading Journey
by howardR. 04/28/24 09:55
Zorro Trader GPT
by TipmyPip. 04/27/24 13:50
Data from CSV not parsed correctly
by jcl. 04/26/24 11:18
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
2 registered members (7th_zorro, 1 invisible), 942 guests, and 7 spiders.
Key: Admin, Global Mod, Mod
Newest Members
firatv, wandaluciaia, Mega_Rod, EternallyCurious, howardR
19050 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Template7 Architecture Questions #189095
03/17/08 14:38
03/17/08 14:38
Joined: Oct 2006
Posts: 106
i_program_games Offline OP
Member
i_program_games  Offline OP
Member

Joined: Oct 2006
Posts: 106
After reading the documentation, building the tutorials, and looking at the scripts and xml files I have a few questions:

1. If I want to make my own GE (Game Entity) it appears that I need my new action name to match my new xml entity structure name. Is this true?

2. Are components individual functions with individual parameters. I see no implementation details to confirm this (I assume they are hidden in the dll).

3. If the answer to question 2 above is yes then how do I write my own component and please give an example.


Chaos is a paradox consistently inconsistent.
Re: Template7 Architecture Questions [Re: i_program_games] #189096
03/17/08 20:53
03/17/08 20:53
Joined: Jul 2000
Posts: 8,973
Bay Area
Doug Offline
Senior Expert
Doug  Offline
Senior Expert

Joined: Jul 2000
Posts: 8,973
Bay Area
1) If you want to be able to link the XML data to the GE, yes.
You can create GEs that don't use external data files but, if you do that, you will not be able to edit your GE in WED.

2) How much do you know about C++?
Components (CMPs) are classes (function+data) that share a single interface (get, set, act, update).

3) Download the dll source code and the documentation.

Once you get it to compile on your PC, add a new folder to the "Components" folder (e.g. "MyCmp"). Create a new class in this folder (e.g. "CCmpMy") that inherits from CCmp.

You will also need to add a new enum for this class (e.g. "kCmpMy") to cmpEnum.h and modify the following functions to include it:

eCmp string_to_eCmp(const char* str); // (in ack.cpp)
CCmp* CCmp::create_cmp(CGameEntity* pGE, eCmp type); // (in cmp.cpp)


Conitec's Free Resources:
User Magazine || Docs and Tutorials || WIKI
Re: Template7 Architecture Questions [Re: Doug] #189097
03/18/08 18:56
03/18/08 18:56
Joined: Oct 2006
Posts: 106
i_program_games Offline OP
Member
i_program_games  Offline OP
Member

Joined: Oct 2006
Posts: 106
Freggin sweet! I'm gonna play with this to try it out. This means that each Component may be ADDED to a GE's behavior thus making it's actions more or less complex. I was hoping this is what you guys were up to. This is indeed a very flexible and reusable approach. Good show.

P.S. Is this the source code you are referring to?

* t7.dll in the acknex_plugins folder.
* templates folder in the GStudio7 root folder.
* wdlv.dll in GStudio7 root folder (if you want to use WED).

Re: Template7 Architecture Questions [Re: i_program_games] #189098
03/18/08 20:40
03/18/08 20:40
Joined: Jul 2000
Posts: 8,973
Bay Area
Doug Offline
Senior Expert
Doug  Offline
Senior Expert

Joined: Jul 2000
Posts: 8,973
Bay Area
You got it.

Once you have the basics down, you can do almost anything with a component system.


Conitec's Free Resources:
User Magazine || Docs and Tutorials || WIKI
Re: Template7 Architecture Questions [Re: Doug] #202029
04/12/08 22:31
04/12/08 22:31
Joined: Oct 2006
Posts: 106
i_program_games Offline OP
Member
i_program_games  Offline OP
Member

Joined: Oct 2006
Posts: 106
 Originally Posted By: Doug
3) Download the dll source


The only link I have points to http://coniserver.net/t7/t7_source_rc4.zip and its broken and outdated.

Where is the latest source code?


Chaos is a paradox consistently inconsistent.
Re: Template7 Architecture Questions [Re: i_program_games] #203740
04/23/08 18:34
04/23/08 18:34
Joined: Oct 2006
Posts: 106
i_program_games Offline OP
Member
i_program_games  Offline OP
Member

Joined: Oct 2006
Posts: 106
Boooo. I need an answer to my above question ;\)


Chaos is a paradox consistently inconsistent.
Re: Template7 Architecture Questions [Re: i_program_games] #203866
04/24/08 16:53
04/24/08 16:53
Joined: Sep 2003
Posts: 929
Spirit Offline

Moderator
Spirit  Offline

Moderator

Joined: Sep 2003
Posts: 929
I think it will probably be released with the next update because its in beta test test at the moment.

Re: Template7 Architecture Questions [Re: Spirit] #204617
04/30/08 08:20
04/30/08 08:20
Joined: Feb 2007
Posts: 353
A
amy Offline
Senior Member
amy  Offline
Senior Member
A

Joined: Feb 2007
Posts: 353
Doug hasnīt been active on the forum the last 5 weeks or so. Is he on a long holiday?

Re: Template7 Architecture Questions [Re: amy] #209496
06/03/08 13:37
06/03/08 13:37
Joined: Feb 2007
Posts: 353
A
amy Offline
Senior Member
amy  Offline
Senior Member
A

Joined: Feb 2007
Posts: 353
Any news about the templates? Where is Doug? smile


Moderated by  HeelX, rvL_eXile 

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