The following warnings occurred:
Warning [2] Use of undefined constant SAPI_NAME - assumed 'SAPI_NAME' (this will throw an Error in a future version of PHP) - Line: 3388 - File: inc/functions.php PHP 7.4.33-nmm6 (Linux)
File Line Function
/inc/functions.php 3388 errorHandler->error
/showthread.php 116 build_archive_link
Warning [2] Use of undefined constant IN_ARCHIVE - assumed 'IN_ARCHIVE' (this will throw an Error in a future version of PHP) - Line: 3331 - File: inc/functions.php PHP 7.4.33-nmm6 (Linux)
File Line Function
/inc/functions.php 3331 errorHandler->error
/inc/functions.php 3324 build_forum_breadcrumb
/showthread.php 195 build_forum_breadcrumb
Warning [2] Use of undefined constant IN_ARCHIVE - assumed 'IN_ARCHIVE' (this will throw an Error in a future version of PHP) - Line: 3331 - File: inc/functions.php PHP 7.4.33-nmm6 (Linux)
File Line Function
/inc/functions.php 3331 errorHandler->error
/showthread.php 195 build_forum_breadcrumb






Poll: Which would you rather see for the Definition Naming in sphere base packs?
i_large_battle_axe
i_lg_battle_axe
i_axe_large_battle
i_axe_battle_lg
i_axe_battle_large
i_battle_axe_lg
i_battle_axe_large
[Show Results]
 
Post Reply 
 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
BASE PACK DEFINITION NAMING
Author Message
XuN
Sphere Developer
*****

Posts: 852
Likes Given: 102
Likes Received: 156 in 119 posts
Joined: Jul 2013
Reputation: 30



Post: #11
RE: BASE PACK DEFINITION NAMING
I think precise naming is better for memorizing, but not good for scripting purposes, imagine that you have a set of items in a def like this:

items_to_recolor=i_large_battle_axe,i_bardiche,i_paladin_sword,i_gargish_war_for​k

And you want to convert one of them to verite material so following this patron, it will be i_verite_whateverid... easy way of doing this without cuting up IDs? none. Using inheritance its so easy:
args=<def.items_to_recolor>
serv.newitem=<argv[x]>_verite

So while your way is better to understand at first... this other way is better for scripting and, always that this naming-way is strictly followed anyone will get up how call any item so quickly.
12-01-2013 08:02 PM
Find all posts by this user Like Post Quote this message in a reply
Khaos
Master
**

Posts: 595
Likes Given: 166
Likes Received: 83 in 51 posts
Joined: Mar 2012
Reputation: 11



Post: #12
RE: BASE PACK DEFINITION NAMING
Yes and no. The naming for stuff like that is fine to place _verite at the end; as it is not the BASE item. The BASE item should be strictly named. As I showed you before; I strict name and then do the addon's after. Again it comes into the way the polls setup right now. there is too many variants used. Then we get to cleaver... i_cleaver. Then i_cleaver_war? Yet what if I want i_cleaver to have a war version? Simply slapping i_sword in front of cleaver_war goes against the naming conventions. This is where I will never agree with you and others. war cleaver (war is not the descriptor). It is a War Cleaver. that is the BASEITEM name. What you add in the suffix to it in the definition is customized.

We don't have i_armor_leather in the basepacks since ever. We have always had i_leather_armor. So why is it you all make this exception with strict naming, but not with weapons, items, and NPCs? Armor is top of the class and get special privileges? I don't think so in my opinion.

Yet, with the above i_leather_armor example; this is all through sphere since pre 55i times. Some items get strict naming while others get what you all want. Mind you, only 5 of us think it should be STRICT (including me and another developer whom is a programmer as well). there is a reason for this. If I think I want a large battle axe... it is just as easy to add i_large_battle_axe. I know that is the name so the def should be the same. Now I want a war cleaver: i_war_cleaver Oh god it wont add. Lets try i_cleaver_war... darn it won't add. i_sword_war_cleaver?! But it is not called Sword War Cleaver or War Cleaver Sword.

This is what I am getting at. You all talk inheritance; but there isn't a single piece of logical inheritance with the war cleaver.. or elven machete... or any of those new weapons. STRICT naming makes more sense.

I will know in my custom scripts that i_war_cleaver that is verite will have verite suffixed. Because that is customary to suffix customization's to the baseitem. No matter how you slice; you aren't sticking true with what you are saying if you are slapping SWORD in front of war cleaver... or even adding MEAT to a normal cleaver... it is not called a meat clever.
(This post was last modified: 12-01-2013 08:47 PM by Khaos.)
12-01-2013 08:42 PM
Find all posts by this user Like Post Quote this message in a reply
Extreme
Grandmaster Poster
***

Posts: 1,141
Likes Given: 217
Likes Received: 90 in 77 posts
Joined: May 2012
Reputation: 20

SphereCommunity

Post: #13
RE: BASE PACK DEFINITION NAMING
Can't we have 2 defnames on the same item?? It would be nice.

In my opinion, I like I_SWORD_VIKING instead I_VIKING_SWORD because "sword" is the base item and "viking" is the variation.
So if I want to add I just type I_SWORD_X for viking, long, broad, paladin, etc.. or ever I_SWORD_X_RUIN instead of I_RUIN_X_SWORD

So variations come after the base item name.

But I would like to see DEFNAME2 that was removed back again Smile)

Sent from my GT-I9505 using Tapatalk

STEPS BEFORE CREATE A THREAD
- Check the revisions log;
- Use the search button and use the keywords of your problem;
- Check the WIKI;
- Create a thread.
12-01-2013 09:46 PM
Find all posts by this user Like Post Quote this message in a reply
XuN
Sphere Developer
*****

Posts: 852
Likes Given: 102
Likes Received: 156 in 119 posts
Joined: Jul 2013
Reputation: 30



Post: #14
RE: BASE PACK DEFINITION NAMING
Then we're back on what we talked on Skype, i_Strictname_Inheritance, so one custom made War Spear set would be i_war_spear_short and i_war_spear_long (And looking again over the poll options I see that I voted wrong) 'i_battle_axe_large' would be the choice if there is also a not 'large' battle axe wich will call on inheritance, if it's not then it should be i_large_battle_axe. Naming it is NOT important always that people has an easy and fast way of change over inheritance differences without problems.
12-02-2013 12:07 AM
Find all posts by this user Like Post Quote this message in a reply
Khaos
Master
**

Posts: 595
Likes Given: 166
Likes Received: 83 in 51 posts
Joined: Mar 2012
Reputation: 11



Post: #15
RE: BASE PACK DEFINITION NAMING
Switch your vote to the first one.

Extreme. You can have two defnames. Backwards list.
[DEFNAME new_to_old_defs]
i_sword_viking i_viking_sword


this is how you would do that, assuming the ID for viking sword is linking to defname=i_viking_sword
12-02-2013 12:30 AM
Find all posts by this user Like Post Quote this message in a reply
Extreme
Grandmaster Poster
***

Posts: 1,141
Likes Given: 217
Likes Received: 90 in 77 posts
Joined: May 2012
Reputation: 20

SphereCommunity

Post: #16
RE: BASE PACK DEFINITION NAMING
I forgot to vote, was on cellphone.
I voted I_AXE_BATTLE_LARGE.

Khaos, I don't want to create a list to make backwards compatibilities...
There is thousand stuff, really that the best way is create the list? I don't know, I wouldn't do it.

Get back the DEFNAME2 then Big Grin

STEPS BEFORE CREATE A THREAD
- Check the revisions log;
- Use the search button and use the keywords of your problem;
- Check the WIKI;
- Create a thread.
12-02-2013 06:26 AM
Find all posts by this user Like Post Quote this message in a reply
Khaos
Master
**

Posts: 595
Likes Given: 166
Likes Received: 83 in 51 posts
Joined: Mar 2012
Reputation: 11



Post: #17
RE: BASE PACK DEFINITION NAMING
Don't make me put Defname2 back in and make you all write it!
12-02-2013 07:11 AM
Find all posts by this user Like Post Quote this message in a reply
XuN
Sphere Developer
*****

Posts: 852
Likes Given: 102
Likes Received: 156 in 119 posts
Joined: Jul 2013
Reputation: 30



Post: #18
RE: BASE PACK DEFINITION NAMING
What's the difference about having DEFNAME2 and using defnames? you'll have to write them anyways Tongue
12-02-2013 07:32 AM
Find all posts by this user Like Post Quote this message in a reply
Extreme
Grandmaster Poster
***

Posts: 1,141
Likes Given: 217
Likes Received: 90 in 77 posts
Joined: May 2012
Reputation: 20

SphereCommunity

Post: #19
RE: BASE PACK DEFINITION NAMING
(12-02-2013 07:32 AM)XuN Wrote:  What's the difference about having DEFNAME2 and using defnames? you'll have to write them anyways Tongue
Keep the old default on standard DEFNAME.
Then add DEFNAME2 to make customs.

No, I'm sorry, but if YOU would change the 'syntax', YOU should use DEFNAME2.

Ahh, really? It don't make difference, but I like the old default preset.

STEPS BEFORE CREATE A THREAD
- Check the revisions log;
- Use the search button and use the keywords of your problem;
- Check the WIKI;
- Create a thread.
12-02-2013 08:51 AM
Find all posts by this user Like Post Quote this message in a reply
babazar
Journeyman
*

Posts: 189
Likes Given: 2
Likes Received: 10 in 9 posts
Joined: Jun 2013
Reputation: 0



Post: #20
RE: BASE PACK DEFINITION NAMING
it is a 'Large Battle Axe' its not a 'Axe Battle Large' or 'Battle Axe Large'
12-04-2013 10:59 PM
Find all posts by this user Like Post Quote this message in a reply
[+] 1 user Likes babazar's post
Post Reply 


Forum Jump:


User(s) browsing this thread: 1 Guest(s)