Gamestudio Links
Zorro Links
Newest Posts
Zorro version 3.0 prerelease!
by Grant. 02/24/26 22:21
WFO Training with parallel cores Zorro64
by Martin_HH. 02/24/26 19:51
ZorroGPT
by TipmyPip. 02/23/26 21:52
Camera always moves upwards?
by clonman. 02/21/26 09:29
Sam Foster Sound | Experienced Game Composer for Hire
by titanicpiano14. 02/19/26 13:22
AUM Magazine
Latest Screens
Dorifto samurai
Shadow 2
Rocker`s Revenge
Stug 3 Stormartillery
Who's Online Now
5 registered members (TipmyPip, clint000, Grant, chsmac85, Martin_HH), 5,858 guests, and 5 spiders.
Key: Admin, Global Mod, Mod
Newest Members
alx, ApprenticeInMuc, PatrickH90, USER0328, Sfrdragon
19199 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Page 2 of 2 1 2
Re: TreeCreator - Easy to use wood-generator & exporter [Re: Felixsg] #287502
09/01/09 04:50
09/01/09 04:50
Joined: Nov 2007
Posts: 1,143
United Kingdom
DJBMASTER Offline
Serious User
DJBMASTER  Offline
Serious User

Joined: Nov 2007
Posts: 1,143
United Kingdom
Originally Posted By: Felixsg
make a .txt file (a external data file)
where you put the data of the tree
and load by the main code
then are a external file

sorry by my english. I hope you understand
whats I mind.


How can you execute code from a text file at runtime?

I would put it in a DLL if i was you.

Re: TreeCreator - Easy to use wood-generator & exporter [Re: DJBMASTER] #287513
09/01/09 07:03
09/01/09 07:03
Joined: Oct 2007
Posts: 306
Austria
A
Alan Offline OP
Senior Member
Alan  Offline OP
Senior Member
A

Joined: Oct 2007
Posts: 306
Austria
Hi,

sorry I don't have *any* experience with dll's whatsoever... what does a .dll have to look like? How is it included and how do I call the function it holds? I'm still a beginner, after all... ^^'

Re: TreeCreator - Easy to use wood-generator & exporter [Re: Alan] #288563
09/07/09 12:29
09/07/09 12:29
Joined: Oct 2007
Posts: 306
Austria
A
Alan Offline OP
Senior Member
Alan  Offline OP
Senior Member
A

Joined: Oct 2007
Posts: 306
Austria
Hi there,

I took a closer look at dlls - and I don't think that they are the right solution for our performance problem here. TreeCreator's "exporter" basically does nothing else than writing the lines which define a tree in a lite-c-file. A dll, however, has to be built & compiled as far as I know - so using a dll is impossible after all because it needs to be compiled before being used. Plus, even if an uncompiled dll can be used, anybody who wants to use TreeCreator has to download and install a SDK before he's able to use TreeCreator which I would like to avoid. TreeCreator should be as simple in use as possible. However, apart from dlls, I don't see any solution which would make sense - using lite-c-files slows the compilation process down a lot... Any suggestions?

Re: TreeCreator - Easy to use wood-generator & exporter [Re: Alan] #288610
09/07/09 15:46
09/07/09 15:46
Joined: Dec 2008
Posts: 271
Saturnus Offline
Member
Saturnus  Offline
Member

Joined: Dec 2008
Posts: 271
Hello!

I would do it like Felixsg suggested and write all the data into a text file.

For example:
Code:
modelname.mdl x_coord y_coord z_coord action_name
...


Or something like this.

Re: TreeCreator - Easy to use wood-generator & exporter [Re: Saturnus] #288707
09/08/09 09:17
09/08/09 09:17
Joined: Oct 2007
Posts: 306
Austria
A
Alan Offline OP
Senior Member
Alan  Offline OP
Senior Member
A

Joined: Oct 2007
Posts: 306
Austria
Okay... I think I know what you're up to - you want to write that .txt file and simply read its contents during runtime and then evaluate it via lite-C-Code, is that right? I remember that I've seen some string-manipulation-functions which are capable of reading lines out of a .txt-file... I like the idea a LOT! I'll see what I can do.

Thank you!

Re: TreeCreator - Easy to use wood-generator & exporter [Re: Felixsg] #289042
09/10/09 06:52
09/10/09 06:52
Joined: Mar 2009
Posts: 146
USA
P
paracharlie Offline
Member
paracharlie  Offline
Member
P

Joined: Mar 2009
Posts: 146
USA
Alan this is a very nice contribution. You just saved me a whole lot of time, thank you my friend.
I was thinking that this doesnt need to be just for trees? Could you also place rocks, debris, sticks, logs, beer cans, whatever you want? Im looking through it and I was thinking that this may just be a very nice environmental object placement .... thing.


A8 Commercial
Re: TreeCreator - Easy to use wood-generator & exporter [Re: paracharlie] #289058
09/10/09 09:38
09/10/09 09:38
Joined: Oct 2007
Posts: 306
Austria
A
Alan Offline OP
Senior Member
Alan  Offline OP
Senior Member
A

Joined: Oct 2007
Posts: 306
Austria
Hi,

of course it is not just for trees. You can place *any* object you want (even houses for a town *g*), just copy the desired model into the "your files" folder and place it's file name in line 32:

STRING* tree1_file_name = "tree1.mdl";

Just exchange "tree1.mdl" with your model name.

Greets,


Alan



PS: I'm currently working on an enhanced export function which exports to a .txt file instead of a .c file. The importer is able to read the .txt file, so compilation time won't increase as significantly as it does now when using multiple, large vegsets.

Last edited by Alan; 09/10/09 09:38.
Re: TreeCreator - Easy to use wood-generator & exporter [Re: Alan] #289145
09/10/09 19:26
09/10/09 19:26
Joined: Mar 2009
Posts: 146
USA
P
paracharlie Offline
Member
paracharlie  Offline
Member
P

Joined: Mar 2009
Posts: 146
USA
Thanks Alan.


A8 Commercial
Re: TreeCreator - Easy to use wood-generator & exporter [Re: paracharlie] #289473
09/13/09 11:38
09/13/09 11:38
Joined: Feb 2005
Posts: 3,687
Hessen, Germany
T
Tempelbauer Offline
Expert
Tempelbauer  Offline
Expert
T

Joined: Feb 2005
Posts: 3,687
Hessen, Germany
i´ll have a try. thanks

Page 2 of 2 1 2

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

Gamestudio download | 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