Author Topic: lumberjacking  (Read 45127 times)

0 Members and 2 Guests are viewing this topic.

Offline Molly

  • Administrator
  • Hero Member
  • *****
  • Posts: 690
    • View Profile
Re: lumberjacking
« Reply #15 on: July 02, 2012, 12:29:35 pm »
Well, Thotter did write me a fancy little script to calculate the loading rates for various kinds of trees.
Thanks, Thotter!

The differences are much bigger than I realised, so now I am having  some problems with calculating the right price for the logs, since we can only work with full TPs.

As Zsijn pointed out. it makes sense that the more rare kinds would be more valuable, so I've set up a table to calculate the prices in TP. It isn't exact, as mentioned above, and it also doesn't take into cosideration the different reset cycles of the zones.

The result is that the most common logs, (pines and oaks), will pay a lot less than before, while the more rare ones (larch, ironwood, juniper and yew) will pay a lot more.
But a total clearout of all trees in the game will pay about twice as much per loading cycle as before.

No doubt there will be complaints about this change, since lumberjacking will need more consideration on the players side to be really worth the time.
So I thought I'd publish the table here, before I get on to changing the script. (See below)

-----------------------------------------------------------------------------------
-------------------------------------------------------------
VNUM   LOG TYPE   NUMBER   TP   TOTAL   EARLIER TOTAL
-------------------------------------------------------------
52750 pine log:        106      3      318     1060   
52751 oak log:           76      5      380      760
--------------------- ----------------------------------------
52759 beech log:        26      8       208      260
52755 fir log:              22     10      220      202
52768 alder log:         19     12      228      190
-------------------------------------------------------------
52769 birch log:         13     16      208       130
52760 chestnut log:   12     17      204      120
52756 maple log:       11     18      198      110
-------------------------------------------------------------
52757 elder log:         10     19      190      100
52758 elm log:            10     19      190      100
52752 willow log:        10     19      190      100
52762 ash log:             9     20      180        90
-------------------------------------------------------------
52761 spindleberry      7     23      161       70
52753 dogwood log:    6     24      144       60
52763 cypress log:       5     25      135       60
52767 aspen log:         5     25      125       50
-------------------------------------------------------------
52765 larch log:           3      30       90       30
52754 Ironwood log:   2      32       64       20
52764 juniper log:        2      32       64       20
52766 yew log:            1      35       35       10
-------------------------------------------------------------
11903 ebony log:         1      35      35       10
-------------------------------------------------------------
TOTAL NUMBER          356     -     3566    3560
-------------------------------------------------------------


The magic trees also yield logs from the vnum range 52750- 52758. (See table above)
« Last Edit: July 03, 2012, 12:15:49 pm by Molly »

Offline Zsijn

  • Jr. Member
  • **
  • Posts: 68
    • View Profile
Re: lumberjacking
« Reply #16 on: July 02, 2012, 08:46:06 pm »
i think im the only one that lumberjacks but YAY!...also can you remove the increase by 1 log everytime you turn in a batch?  kind of annoying at some point im going to hit more logs in a batch due than what i can carry

also the number of TPS should be multiplied by 10?  ie right now 10 oak logs = 10 tps....i assume this would still hold the same and not be 10 oak logs = 1 tp? 
« Last Edit: July 02, 2012, 09:18:16 pm by Zsijn »

Offline Molly

  • Administrator
  • Hero Member
  • *****
  • Posts: 690
    • View Profile
Re: lumberjacking
« Reply #17 on: July 04, 2012, 01:23:38 am »
I've changed the values of different logs a bit, so that the total amount of TP that you get from clearing out all trees in the game is now almost exactly the same as before. It will of course take some more work to get there, since the most common trees are worth a lot less than before, but you'll now also have the option to concentrate on the more rare kinds.

I might consider removing the 1 log/batch increase. But since that was put in to deal with spam lumberjacking, I'm not quite sure of that part.

If nobody has any input on this change, or is opposed to it, I'll go ahead and fix the script tomorrow.

Offline Zsijn

  • Jr. Member
  • **
  • Posts: 68
    • View Profile
Re: lumberjacking
« Reply #18 on: July 04, 2012, 08:35:19 am »
spam lumberjacking i dont think is really an issue...but if its a concern would it be possible to make it increase after every 5 batches instead of 1?

Offline Zsijn

  • Jr. Member
  • **
  • Posts: 68
    • View Profile
Re: lumberjacking
« Reply #19 on: July 04, 2012, 09:40:01 am »
not sure if this is intended?  but logs on the ground show as fir logs but are really different types.  might make it less confusing to change


A fir log rests heavily on the ground.

2583H 72943M 23979V (100) 42,631,358TNL>get log
You pick up a heavy maple log.



Offline Zsijn

  • Jr. Member
  • **
  • Posts: 68
    • View Profile
Re: lumberjacking
« Reply #20 on: July 04, 2012, 09:55:35 am »
sorry one more item can we remove this?  pretty much all the trees in pre-historic forest do this


There is a creaking sound from fibres splintering, as the tree leans slightly.

2717H 72943M 24437V (100) 39,268,504TNL>
You yell 'TIMBER!'

2717H 72943M 24437V (100) 39,268,504TNL>
The tree groans as the leaning increases rapidly.

2717H 72943M 24437V (100) 39,268,504TNL>
The tree disolves into sawdust.
« Last Edit: July 04, 2012, 09:57:43 am by Zsijn »

Offline Zsijn

  • Jr. Member
  • **
  • Posts: 68
    • View Profile
Re: lumberjacking
« Reply #21 on: July 04, 2012, 10:04:46 am »
one more...elm tree into beech log?!

An old elm tree grows here. ...it is glowing with an inner light
|A lesser galago travels through the trees in leaps and bounds, howling shrilly.

2216H 72943M 24371V (94) 41,775,639TNL>fell tree
You flex your muscles and swing your axe.

2219H 72943M 24371V (94) 41,775,639TNL>
You aim a stroke of the axe at the base of the tree trunk.

2219H 72943M 24374V (96) 41,775,639TNL>
White chips of wood fly in the air as the axe bites into the trunk.

2222H 72943M 24374V (96) 41,775,639TNL>
You keep chopping away at the trunk.

2225H 72943M 24377V (97) 41,775,639TNL>
A spotted leopard has arrived.

2228H 72943M 24377V (97) 41,775,639TNL>
The forest rings with the sound of the rhythmic strokes of the axe.

2231H 72943M 24380V (99) 41,775,639TNL>
You pause for a moment stretching your back.

2237H 72943M 24383V (100) 41,775,639TNL>
Chopping down huge trees is hard work!

2237H 72943M 24383V (100) 41,775,639TNL>
Wiping the sweat from your brow you resume your work with the axe.

2243H 72943M 24389V (100) 41,775,639TNL>
The trunk is almost hewn through now.

2249H 72943M 24389V (100) 41,775,639TNL>
There is a creaking sound from fibres splintering, as the tree leans slightly.

2252H 72943M 24392V (100) 41,775,639TNL>
You yell 'TIMBER!'

2252H 72943M 24395V (100) 41,775,639TNL>
The tree groans as the leaning increases rapidly.

2255H 72943M 24395V (100) 41,775,639TNL>
With a crackle of broken twigs and an earthshattering BOOM! The tree hits the ground.

2258H 72943M 24395V (100) 41,775,639TNL>l
In The Jungle
[ Exits: n e s w ]
The overwhelming jungle growth assaults your senses, the thick, entangling
growth prohibiting most free movement. Long, thick branches creak like old
men's joints as they stretch lazily towards the heavens, forming the abundant
canopy that covers your head. Brightly coloured birds dart in and out between
the trees, their sweet songs echoing all around you.
A beech log rests heavily on the ground.
|A great spotted leopard silently stalks among the undergrowth.

2273H 72943M 24404V (100) 41,775,639TNL>get log
You pick up a heavy beech log.


Offline Zsijn

  • Jr. Member
  • **
  • Posts: 68
    • View Profile
Re: lumberjacking
« Reply #22 on: July 04, 2012, 10:47:00 am »
and another...looks like willow logs are not set as takeable.  cant pick them up

Offline Zsijn

  • Jr. Member
  • **
  • Posts: 68
    • View Profile
Re: lumberjacking
« Reply #23 on: July 04, 2012, 03:23:58 pm »
and another...looks like willow logs are not set as takeable.  cant pick them up

someone fixed this for me thanks

Offline Molly

  • Administrator
  • Hero Member
  • *****
  • Posts: 690
    • View Profile
Re: lumberjacking
« Reply #24 on: July 04, 2012, 04:45:12 pm »
The trees in Prehistoric Forest are not set as trees in the code, and consequently don't yield any logs. Possibly because it's one if iur oldest zones, created long before we made the fellable trees.
I guess we could add some logs to them and add them to the script, is someone feels so inclined.

As for some trees yielding the wrong logs, I'm not sure if that is a building or code error, but I'll have a look at the object file tomorrow.

The anti-spam check was most likely caused by Graham, who used to lumberjasck a lot with some of his old chars, (he likes to do stuff in the most cost-effective way possible). Probably there is no need for the check after we enter the new pricing, so I might remove it - no promises though.

Offline Molly

  • Administrator
  • Hero Member
  • *****
  • Posts: 690
    • View Profile
A Question for the coders about trees
« Reply #25 on: July 06, 2012, 02:05:49 am »
As Zsijn reported, for some reason the elm tree yields a beech log.
However, none of the  trees have the vnum of the log specified in OLC, and all the rest of them still seem to yield the correct log.

I can only assume that when the trees where created, the logs were meant to be set automatically by the code.

So why is the elm tree different?

P.S.
When I check the elm tree, I find that it actually is possible to set the vnum of the log in OLC.
So I did that now, and hopefully it will fix the problem.

But of course it doesn't answer the question above. 
Why is the elm tree different?
 


Offline Prometheus

  • the bang your head against the wall coder.
  • Administrator
  • Sr. Member
  • *****
  • Posts: 365
    • View Profile
Re: lumberjacking
« Reply #26 on: July 06, 2012, 02:44:03 pm »
We will take a look at it and see what is going on. But I have a felling the code uses the vnum so it might have been mixed up with the wrong vnums.


Prometheus

Offline Prometheus

  • the bang your head against the wall coder.
  • Administrator
  • Sr. Member
  • *****
  • Posts: 365
    • View Profile
Re: lumberjacking
« Reply #27 on: July 06, 2012, 03:02:56 pm »
Okay here is what is in the code. Can Molly verify these match up? If not let me know the correct vnums.
Logs:
       16. [52750] a heavy pine log
       17. [52751] a heavy oak log
       18. [52752] a heavy willow log
       19. [52753] a dogwood log
       20. [52754] a heavy Ironwood log
       21. [52755] a heavy fir log
       22. [52756] a heavy maple log
       23. [52757] a heavy elder log
       24. [52758] a heavy elm log
       25. [52759] a heavy beech log
       26. [52760] a heavy chestnut log
       27. [52761] a heavy spindleberry log
       28. [52762] a heavy ash log
       29. [52763] a heavy cypress log
       30. [52764] a heavy juniper log
       31. [52765] a heavy larch log
       32. [52766] a heavy yew log
       33. [52767] a heavy aspen log
       34. [52768] a heavy alder log
       35. [52769] a heavy birch log
Trees:
       81. [52730] the pine tree
       82. [52731] the oak tree
       83. [52732] the willow tree
       84. [52733] the dogwood tree
       85. [52734] the ironwood tree
       86. [52735] the fir tree
       87. [52736] the maple tree
       88. [52737] the elder tree
       89. [52738] the elm tree
       90. [52739] the beech tree
       91. [52740] the chestnut tree
       92. [52741] the Spindleberry tree
       93. [52742] the Ash
       94. [52743] the cypress tree
       95. [52744] the juniper tree
       96. [52745] the larch tree
       97. [52746] the yew tree
       98. [52747] the Aspen tree
       99. [52748] the alder tree
      100. [52749] the birch tree
 
Prom

Offline Molly

  • Administrator
  • Hero Member
  • *****
  • Posts: 690
    • View Profile
Re: lumberjacking
« Reply #28 on: July 06, 2012, 03:43:16 pm »
Actually I have a few more than that set as trees and logs in OLC. (see lists below)

The ones in red are type container, not tree, so although they do have a log set in OLC, they don't yield it if chopped down.).
The blue ones are type trees that also have logs, but these were not on Thotters percentage list.
The green ones are the "seasonal" treas, that grow in the orchard south of Olde Yorke. These will load one of four types, based on the season (winter, spring, summer, autumn), and only the autumn ones that bear fruit are type containers. The  other three season types are type tree, and they all yield the same log.


Maybe some of the blue ones on the lists below aren't added to the code?
And I still don't see what makes the elm tree any different from the rest.

TREES
  1) [52700] the cherry tree                     [container](base-material)
   2) [52701] the apple tree                      [container](base-material)
   3) [52702] the pear tree                       [container](base-material)
   4) [52703] the plum tree                       [container](base-material)
   5) [52704] the orange tree                     [container](base-material)
   6) [52705] the apricot tree                    [container](base-material)
   7) [52706] the mulberry tree                   [container](base-material)
   8  [52707] the almond tree                     [container](base-material)
   9) [52708] the lemon tree                      [container](base-material)
  10) [52709] the laurel tree                     [container](base-material)
  11) [52710] the walnut tree                     [container](base-material)

 12) [52711] the Judas tree                      [tree](base-material)
- 13) [52712] the olive tree                      [container](base-material)
  14) [52713] the cypress tree                    [tree](base-material)
 15) [52714] the cedar tree                      [tree](base-material)
  16) [52715] the plane tree                      [tree](base-material)
  17) [52716] the carob tree                      [tree](base-material)
  18) [52717] the almond tree                     [tree](base-material)

 19) [52718] the cherry tree                     [tree](base-material)
  20) [52719] the cherry tree                     [tree](base-material)
  21) [52720] the cherry tree                     [tree](base-material)
  22) [52721] the apple tree                      [tree](base-material)
  23) [52722] the apple tree                      [tree](base-material)
  24) [52723] the apple tree                      [tree](base-material)
  25) [52724] the pear tree                       [tree](base-material)
  26) [52725] the pear tree                       [tree](base-material)
  27) [52726] the pear tree                       [tree](base-material)
  28) [52727] the plum tree                       [tree](base-material)
  29) [52728] the plum tree                       [tree](base-material)
  30) [52729] the plum tree                       [tree](base-material)

  31) [52730] the pine tree                       [tree](base-material)[/color]
  32) [52731] the oak tree                        [tree](base-material)
  33) [52732] the willow tree                     [tree](base-material)
  34) [52733] the dogwood tree                    [tree](base-material)
  35) [52734] the ironwood tree                   [tree](base-material)
  36) [52735] the fir tree                        [tree](base-material)
  37) [52736] the maple tree                      [tree](base-material)
  38) [52737] the elder tree                      [tree](base-material)
  39) [52738] the elm tree                        [tree](base-material)
  40) [52739] the beech tree                      [tree](base-material)
  41) [52740] the chestnut tree                   [tree](base-material)
  42) [52741] the Spindleberry tree               [tree](base-material)
  43) [52742] the Ash                             [tree](base-material)
  44) [52743] the cypress tree                    [tree](base-material)
  45) [52744] the juniper tree                    [tree](base-material)
  46) [52745] the larch tree                      [tree](base-material)
  47) [52746] the yew tree                        [tree](base-material)
  48) [52747] the Aspen tree                      [tree](base-material)
  49) [52748] the alder tree                      [tree](base-material)
  50) [52749] the birch tree                      [tree](base-material)

LOGS
  51) [52750] a heavy pine log                    [wood](base-material)
  52) [52751] a heavy oak log                     [wood](base-material)
  53) [52752] a heavy willow log                  [wood](base-material)
  54) [52753] a dogwood log                       [wood](base-material)
  55) [52754] a heavy Ironwood log                [wood](base-material)
  56) [52755] a heavy fir log                     [wood](base-material)
  57) [52756] a heavy maple log                   [wood](base-material)
  58) [52757] a heavy elder log                   [wood](base-material)
  59) [52758] a heavy elm log                     [wood](base-material)
  60) [52759] a heavy beech log                   [wood](base-material)
  61) [52760] a heavy chestnut log                [wood](base-material)
  62) [52761] a heavy spindleberry log            [wood](base-material)
  63) [52762] a heavy ash log                     [wood](base-material)
  64) [52763] a heavy cypress log                 [wood](base-material)
  65) [52764] a heavy juniper log                 [wood](base-material)
  66) [52765] a heavy larch log                   [wood](base-material)
  67) [52766] a heavy yew log                     [wood](base-material)
  68) [52767] a heavy aspen log                   [wood](base-material)
  69) [52768] a heavy alder log                   [wood](base-material)
  70) [52769] a heavy birch log                   [wood](base-material)
  71) [52770] a reserve log                       [wood](base-material)
  72) [52771] an olive log                        [wood](base-material)
   73) [52772] a heavy cypress log                 [wood](base-material)
  74) [52773] a heavy cedar log                   [wood](base-material)
  75) [52774] a heavy plane log                   [wood](base-material)
  76) [52775] a carob log                         [wood](base-material)
  77) [52776] an almond log                       [wood](base-material)

78) [52777] a cherry tree log                   [wood](base-material)
  79) [52778] a heavy apple tree log              [wood](base-material)
  80) [52779] a pear tree log                     [wood](base-material)
  81) [52780] a heavy plum tree log               [wood](base-material)

 82) [52781] an orange tree log                  [wood](base-material)
  83) [52782] an apricot tree log                 [wood](base-material)
  84) [52783] a mulberry tree log                 [wood](base-material)
« Last Edit: July 07, 2012, 04:50:05 am by Molly »

Offline Molly

  • Administrator
  • Hero Member
  • *****
  • Posts: 690
    • View Profile
Re: lumberjacking
« Reply #29 on: July 07, 2012, 06:29:41 am »
The script on the lumbermill mob has been changed, to correspond with the new pricing fpr the logs.

I have also added the blue and green logs from the lists on my former post to the script,

However, I am pretty sure that this last additions also need some addition to the code, for those logs to actually load.

So could some coder please look into this?

What I am talking about are the following vnums:

VNUM  TREE                     LOADS LOG
52711 the Judas tree      52770
52713 the cypress tree   52772
52714 the cedar tree      52773
52715 the plane tree      52774
52716 the carob tree      52775
52717 the almond tree    52776
----------------------------------------

VNUM  TREE                     LOADS LOG
52718 the cherry tree    52777
52719 the cherry tree    52777
52720 the cherry tree    52777
52721 the apple tree     52778
52722 the apple tree     52778
52723 the apple tree     52778
52724 the pear tree      52779
52725 the pear tree      52779
52726 the pear tree      52779
52727 the plum tree      52780
52728 the plum tree      52780
52729 the plum tree      52780