Graal Forums

Graal Forums (https://forums.graalonline.com/forums/index.php)
-   NPC Scripting (https://forums.graalonline.com/forums/forumdisplay.php?f=8)
-   -   Archetype folder (https://forums.graalonline.com/forums/showthread.php?t=65044)

Yen 03-29-2006 10:59 PM

Archetype folder
 
Remind me, what's the name of the folder used for archetypes?
It isn't placed in the 'levels' folder.

Yen 03-30-2006 01:20 AM

... Oh right, I always spell it with an 'e' after 'arch'. x-x

ApothiX 03-30-2006 03:58 PM

o_o What do you mean? I wasn't aware that the placement of your archetype folder mattered, unless you were using the Kingdoms Mudlib?

Yen 03-30-2006 08:39 PM

If you put 'archtypes/' (I think that's it) in the folder config, it will create an archtypes/ folder. It won't be a subfolder of 'levels'
Maybe it's archtype/.. :/

Skyld 03-30-2006 08:46 PM

The word "archetype" means "original model of character", so I guess it's reasonable to assume that you want that "e" there.

Question is, is why does it really matter whether your archetypes folders is inside levels/ or not?

Yen 03-30-2006 08:50 PM

Why does it really matter if you put your brackets on the same line as the function or on the next line?

I just think it looks nicer.

Skyld 03-30-2006 08:56 PM

Quote:

Originally Posted by Yen
Why does it really matter if you put your brackets on the same line as the function or on the next line?

I just think it looks nicer.

Well, if you're only using the archetype files on the serverside anyway, then there isn't any point in adding a folder configuration line, so it makes little difference.

Yen 03-30-2006 09:37 PM

When I go to look at the script and I see that ugly "levels/" I frown.

Skyld 03-30-2006 09:58 PM

Quote:

Originally Posted by Yen
When I go to look at the script and I see that ugly "levels/" I frown.

What I'm saying, is that you do not need a folder configuration line in order to use folders. In fact, being that folder configuration is relative to levels/ anyway, it would make even less sense to try.

ApothiX 03-30-2006 10:13 PM

My archetypes folder on Thamhic is just /archetypes/, there is no point in puting it in the folder config unless you are for some reason wanting to download it with update packages or such.

To just create folders, all you have to do is edit your folder rights and place something in the folder (placeholder.txt or so)

Warcaptain 03-30-2006 10:17 PM

Yes you do not need to have it in the folder configuration for it to be a folder and for it to be able to be accessed.

Actually, you dont even need it to be an actual folder to even use it.

Stefan says (and I havent tried it yet) that you can simply use a file saving function and if the folder doestn exist it will create it.. or so he says.


But this I havent tried..

Yen 03-30-2006 10:40 PM

ZzZzZz
I was thinking of it in a file manager sense, where the folder needs to have proper rights to be readable. I forgot that a file doesn't need to be downloadable to be loaded with loadvars.

napo_p2p 03-31-2006 01:23 AM

Quote:

Originally Posted by Warcaptain
Stefan says (and I havent tried it yet) that you can simply use a file saving function and if the folder doestn exist it will create it.. or so he says.

It does exactly that.


All times are GMT +2. The time now is 09:42 AM.

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.