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






Post Reply 
 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Crafting Skills in last Builds.
Author Message
XuN
Sphere Developer
*****

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



Post: #1
Crafting Skills in last Builds.
I have commited a build recently related to http://tracker.sphere.torfo.org/bugs/view.php?id=2273 that fixed some behaviour related to SKF_CRAFT skills, wich leaded to some confussion with crafting delays... i'll explain here what is happening now with crafting:

First, this is how crafting is now working:

Code:
Added: Extra local arguments to @SkillStart and @Start (skill section) triggers for crafting
  skills:
  LOCAL.CRAFTITEMDEF - the UID of defname of the item we are currently crafting. Readable/Writable.
  Accepts ONLY UIDs of ITEMDEFs, for example:
    if (<LOCAL.CRAFTITEMDEF> == <DEF.i_katana>)
        LOCAL.CRAFTITEMDEF = <DEF.i_sword_long>
    endif
  LOCAL.CRAFTSTROKECNT - amount of strokes character makes while creating the item. Each stroke
  has DELAY specified in SKILL section. Readable/Writable.
  LOCAL.CRAFTAMOUNT - amount of items that will be created. Only usable for REPLICATable items,
  otherwise will make no effect. Readable/Writable.

What does that mean? for each stroke made, the character must wait the delay asigned to that skill in its [skill ] section, so if one item needs 5 strokes and skill's delay is 2, that means it will spend 10 seconds crafting it instead of the old 2 seconds.

How to make it work like it worked 'always'? Easy, just to to each [skill ] section related to a crafting skill, or to the crafting skill you want to revert back and place this:

Code:
ON=@Start
local.CraftStrokeCnt=1

Problem solved!


Note: As result of this change an unexpected sound bug related to crafting skills showed up, i'm fixing it.
02-21-2014 08:48 AM
Find all posts by this user Like Post Quote this message in a reply
[+] 2 users Like XuN's post
Extreme
Grandmaster Poster
***

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

SphereCommunity

Post: #2
RE: Crafting Skills in last Builds.
I had some ideas, tomorrow I write them if I remember lol

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.
02-21-2014 01:07 PM
Find all posts by this user Like Post Quote this message in a reply
darksun84
Sir Spamalot
****

Posts: 1,687
Likes Given: 245
Likes Received: 162 in 151 posts
Joined: Mar 2012
Reputation: 35



Post: #3
RE: Crafting Skills in last Builds.
what about the same for gathering skills Blush
02-21-2014 01:17 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: #4
RE: Crafting Skills in last Builds.
Yes, the SKF_Gathering is in my TODO list, wich will be easy to add when I fix this.
02-21-2014 05:50 PM
Find all posts by this user Like Post Quote this message in a reply
amonvangrell
Banned

Posts: 337
Likes Given: 17
Likes Received: 32 in 20 posts
Joined: Aug 2012

britannia shard

Post: #5
RE: Crafting Skills in last Builds.
I am confused.... Confused
02-22-2014 06:09 AM
Visit this user's website 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: #6
RE: Crafting Skills in last Builds.
XuN, do I need set the craftstrokecnt in all crafting skills?
If I dont, its assume 1, right?
Need something to change de stroke delay, for custom crafting stuff, like viking sword do more strokes faster, and a pickaxe less stroke but slower...

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.
02-22-2014 08:52 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: #7
RE: Crafting Skills in last Builds.
You have to set the CraftStrokeCnt in all the skills you want a different stroke amount, since each skill seems to have a random time and not a resource-based delay. If you don't, it can be up to 6 at the higher, but i'm changing it and this is what i'm doing with them:

Code:
Fixed amount of strokes to each crafting/gathering skill, they were random, now they have by default:
    -the amount of different resources needed to make the item for crafting.
    -Resource's needed skill / 120 (8 for an item with 100.0) - gatherer's skill / 333 (3 with 100 skill) - str / 50 ( 2 points with 100 str), with a result of 3 strokes for the hardest resouces to gather to a GM in the current skill with 100 str, and less for easier resources (or more advanced skill/stat).

For the Stroke's delay ... you can double the strokes amount and remove the sound in 1/2 strokes. Maybe I can take a look and add a local for this, won't be a bad addition.
02-22-2014 09:24 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: #8
RE: Crafting Skills in last Builds.
Updated:

Each skill have 2 base strokes, except alchemy that have as much strokes as resources the crafted item needs.

There's no animation for more crafting skills than bowcraft and blacksmithing (were they not using any anim before?), but I added these 2 to work as always and also Local.Anim to the trigger.
(This post was last modified: 03-04-2014 04:40 AM by XuN.)
03-04-2014 04:30 AM
Find all posts by this user Like Post Quote this message in a reply
Coruja
Sphere Developer
*****

Posts: 987
Likes Given: 5
Likes Received: 226 in 187 posts
Joined: Jul 2012
Reputation: 7

Dimension Shard

Post: #9
RE: Crafting Skills in last Builds.
If someone want, here it is the "new" (probably changed on ML or SA) strokes/delays from OSI:
1 stroke with 1.25s for all crafting skills

I prefer these "old" values:
Alchemy: 1 stroke / 3.1s each
(sound 0242 / success: 0240) (no anim)

Blacksmith: 1~2 strokes (rand) / 1.7s each
(sound 02a) (anim 9)

Bowcraft: 1~2 strokes (rand) / 1.7s each
(sound 055) (anim 33 - wtf)

Carpentry: 1 stroke / 3.0s each
(sound 023d) (anim 9)

Cartography: 1 stroke / 3.0s each
(sound 0249) (no anim)

Cooking: 1 stroke / 1.5s each
(no sound) (no anim)

Inscription: 1 stroke / 3.0s each
(sound 0249) (no anim)

Tailoring: 1 stroke / 4.5s each
(sound 0248) (no anim)

Tinkering: 1 stroke / 3.0s each
(no sound) (no anim)

although I dont like both, the second one seems to be better
(This post was last modified: 03-04-2014 09:06 AM by Coruja.)
03-04-2014 07:45 AM
Find all posts by this user Like Post Quote this message in a reply
Post Reply 


Forum Jump:


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