Jump to content

Plant/State bits for cactus?


computor

Recommended Posts

True. Are they that much different from other configs?

They are completely different. They don't use normal values in each config, instead they use bytes/bits to determine the state of the plant, the location of the plant, and a few other things (depending on what plant you are looking at). This is all stored into one config. Here's an example:

## Allotment

format: sspp pppp

- plant types and growth states (p bits):

-- 0x00 - 0x03: layers of weeds removed (0x00 meaning no weeds removed, 0x03 meaning all weeds removed), iff both state bits are 0

-- 0x06 - 0x0c: potato

-- 0x0d - 0x13: onion

-- 0x14 - 0x1a: cabbage

-- 0x1b - 0x21: tomato

-- 0x22 - 0x2a: sweetcorn

-- 0x2b - 0x33: strawberry

-- 0x34 - 0x3e: watermelon

- states (s bits):

-- 0x00: growing

-- 0x01: watered

-- 0x02: diseased

-- 0x03: dead



locations:

- falador, bits 0-15 of 504

- catherby, bits 16-31 of 504

- ardougne, bits 0-15 of 505

- port phasmatys, bits 16-31 of 505



## Flower

format: sspp ppp

- plant types and growth states (p bits):

-- 0x00 - 0x03: layers of weeds removed (0x00 meaning no weeds removed, 0x03 meaning all weeds removed), iff both state bits are 0

-- 0x08 - 0x0c: marigold

-- 0x0d - 0x11: rosemary

-- 0x12 - 0x16: nasturtium

-- 0x17 - 0x1b: woad plant

-- 0x1c - 0x20: limpwurt plant

-- 0x21 - 0x24: scarecrow

-- 0x25 - 0x29: lily

- states (s bits):

-- 0x00: growing

-- 0x01: watered

-- 0x02: diseased

-- 0x03: dead



locations:

- falador, bits 0-7 of 508

- catherby, bits 8-15 of 508

- ardougne, bits 16-23 of 508

- port phasmatys, bits 24-31 of 508



## Herb

(needs testing and refining)

format: sppp pppp

- plant types and growth states (p bits):

-- 0x00 - 0x03: layers of weeds removed (0x00 meaning no weeds removed, 0x03 meaning all weeds removed), iff both state bits are 0

-- 0x04 - 0x0a: guam

-- 0x0b - 0x11: marrentill

-- 0x12 - 0x18: tarromin

-- 0x19 - 0x1f: harralander

-- 0x20 - 0x26: ranarr

-- 0x27 - 0x2d: toadflax

-- 0x2e - 0x34: irit

-- 0x35 - 0x3b: avantoe

-- 0x3c - 0x42: wergali

-- 0x44 - 0x4a: kwuarm

-- 0x4b - 0x51: snapdragon

-- 0x52 - 0x58: cadantine

-- 0x59 - 0x5f: lantadyme

-- 0x60 - 0x66: dwarf weed

-- 0x67 - 0x6d: torstol

-- 0xc0 - 0xcb: goutweed (0xc4/c5 fully grown, 0xc6 - 0xc8 diseased, 0xc9 - 0xcb dead)

-- 0xaa - 0xac: dead herb (depending on growth stage)

- states (s bit):

-- 0x00: growing

-- 0x01: diseased



locations:

- falador, bits 0-7 of 515

- catherby, bits 8-15 of 515

- ardougne, bits 16-23 of 515

- port phasmatys, bits 24-31 of 515

- trollheim, bits 0-7 of 830



## Bushes

format: sspp pppp

- plant types and growth states (p bits):

-- 0x00 - 0x03: layers of weeds removed (0x00 meaning no weeds removed, 0x03 meaning all weeds removed), iff both state bits are 0

-- 0x05 - 0x0e: redberry (0x05 - 0x09 growing, 0x0a - 0x0e has berries (0 - 4), 0x3a fully grown)

-- 0x0f - 0x19: cadavaberry (0x0f - 0x14 growing, 0x15 - 0x19 has berries (0 - 4), 0x3b fully grown)

-- 0x1a - 0x25: dwellberry (0x1a - 0x20 growing, 0x21 - 0x25 has berries (0 - 4), 0x3c fully grown)

-- 0x26 - 0x32: jangerberry (0x26 - 0x2d growing, 0x2e - 0x32 has berries (0 - 4), 0x3d fully grown)

-- 0x33 - 0x3f: whiteberry (0x33 - 0x3a growing, 0x3b - 0x3f has berries (0 - 4), 0x3e fully grown)

-- 0xc5 - 0xd1: whiteberry (0xc5 - 0xcc growing, 0xcd - 0xd1 has berries (0 - 4), 0x3f fully grown)

-state (s bits):

-- 0x00: growing

-- 0x01: diseased

-- 0x02: dead

-- 0x03: check health



locations:

- champions guild, bits 0-7 of 509

- rimmington, bits 8-15 of 509

- etceteria, bits 16-23 of 509

- kandarin monastery 24-31 of 509



## Hops

format: sspp pppp

- plant types and growth states (p bits):

-- 0x00 - 0x03: layers of weeds removed (0x00 meaning no weeds removed, 0x03 meaning all weeds removed), iff both state bits are 0

-- 0x31 - 0x35: barley

-- 0x04 - 0x08: hammerstone

-- 0x0b - 0x10: asgarnian

-- 0x38 - 0x3d: jute

-- 0x13 - 0x19: yanillian

-- 0x1c - 0x23: krandorian

-- 0x26 - 0x2e: wildblood

- states (s bits):

-- 0x00: growing

-- 0x01: watered

-- 0x02: diseased

-- 0x03: dead



locations:

- lumbridge, bits 0-7 of 506

- seers village, bits 8-15 of 506

- yanille, bits 16-23 of 506

- entrana, bits 24-31 of 506

- missing keldagrim



## Tree

format: sspp pppp

- plant types and growth states (p bits):

-- 0x00 - 0x03: layers of weeds removed (0x00 meaning no weeds removed, 0x03 meaning all weeds removed), iff both state bits are 0

-- 0x08 - 0x0e: oak tree (0x0c is ready to check-health, 0x0d is ready to chop down, 0x0e is oak tree stump)

-- 0x0f - 0x17: willow tree (0x15 is ready to check-health, 0x16 is ready to chop down, 0x17 is willow tree stump)

-- 0x18 - 0x22: maple tree (0x20 is ready to check-health, 0x21 is ready to chop down, 0x22 is maple tree stump)

-- 0x23 - 0x2f: yew tree (0x2d is ready to check-health, 0x2e is ready to chop down, 0x2f is yew tree stump)

-- 0x30 - 0x3e: magic tree (0x3c is ready to check-health, 0x3d is ready to chop down, 0x3e is magic tree stump)

- states (s bits):

- 0x00: growing

- 0x01: diseased

- 0x02: dead

- 0x03: has branches (willow tree only), low nibble contains number of branches already taken or remaining (in-game testing is needed)



locations:

- varrock, bits 0-7 of 502

- lumbridge, bits 8-15 of 502

- taverly, bits 16- 23 of 502

- falador, bits 24-31 of 502

- tree gnome stronghold, bits 11-18 of 830



## Fruit Tree

format: pppp pppp

- plant types and growth states (p bits):

-- 0x00 - 0x03: layers of weeds removed (0x00 meaning no weeds removed, 0x03 meaning all weeds removed), iff both state bits are 0

-- 0x08 - 0x22: apple tree (0x08 - 0x14 is growing, 0x15 - 0x1a is diseased, 0x1b - 0x20 is dead, 0x21 is apple tree stump, 0x22 is ready to check-health)

-- 0x23 - 0x3d: banana tree (0x23 - 0x2f is growing, 0x30 - 0x35 is diseased, 0x36 - 0x3b is dead, 0x3c is banana tree stump, 0x3d is ready to check-health)

-- 0x48 - 0x62: orange tree (0x48 - 0x54 is growing, 0x55 - 0x5a is diseased, 0x5b - 0x60 is dead, 0x61 is orange tree stump, 0x52 is ready to check-health)

-- 0x63 - 0x7d: curry tree (0x63 - 0x6f is growing, 0x70 - 0x75 is diseased, 0x76 - 0x7b is dead, 0x7c is curry tree stump, 0x7d is ready to check-health)

-- 0x88 - 0xa2: pineapple plant (0x88 - 0x94 is growing, 0x95 - 0x9a is diseased, 0x9b - 0xa0 is dead, 0xa1 is pineapple plant stump, 0xa2 is ready to check-health)

-- 0xa3 - 0xbd: papaya tree (0xa3 - 0xaf is growing, 0xb0 - 0xb5 is diseased, 0xb6 - 0xbb is dead, 0xbc is papaya tree stump, 0xbd is ready to check-health)

-- 0xc8 - 0xe2: palm tree (0xc8 - 0xd4 is growing, 0xd5 - 0xda is diseased, 0xdb - 0xe0 is dead, 0xe1 is palm tree stump, 0xe2 is ready to check-health)



locations:

- brimhaven, bits 0-7 of 503

- catherby, bits 8-15 of 503

- tree gnome stronghold, bits 16-23 of 503

- tree gnome maze, bits 24-31 of 503

- lletya, bits 23-30 of setting 830

- herblore habitat, bits 18-25 of setting 1931



## Calquat

format: ..pp pppp

-- 0x00 - 0x03: layers of weeds removed (0x00 meaning no weeds removed, 0x03 meaning all weeds removed), iff both state bits are 0

-- 0x04 - 0x12: growing

-- 0x13 - 0x19: diseased

-- 0x1a - 0x21: dead

-- 0x22: fully-grown



locations:

- karamja, bits 24-29 of setting 507



## Belladonna

format: ..pp pppp

-- 0x00 - 0x03: layers of weeds removed (0x00 meaning no weeds removed, 0x03 meaning all weeds removed), iff both state bits are 0

-- 0x04 - 0x07: growing

-- 0x08: fully-grown

-- 0x09 - 0x0c: diseased

-- 0x0d - 0x10: dead



locations:

- draynor manor, bits 0-7 of 512



## Mushrooms

format: ..pp pppp

-- 0x00 - 0x03: layers of weeds removed (0x00 meaning no weeds removed, 0x03 meaning all weeds removed), iff both state bits are 0

-- 0x04 - 0x15: bittercap (0x04 - 0x09 growing, 0x0a - 0x0f has mushrooms (0 - 6), 0x10 - 0x14 diseased, 0x15 - 0x19 dead)

-- 0x1a - 0x28: morchella (0x1a - 0x1f growing, 0x20 - 0x28 has mushrooms (0 - 9), 0x29 - 0x2d diseased, 0x2e - 0x32 dead)



locations:

- canafis, bits 24-31 of 512 

 

Those are all the values for plants, EXCEPT for cactus. I could gather the values on my own for cactus, but of course it's easier to ask if someone has the values or not.

Edited by computor
  • Like 1
Link to comment
Share on other sites

They are completely different. They don't use normal values in each config, instead they use bytes/bits to determine the state of the plant, the location of the plant, and a few other things (depending on what plant you are looking at). This is all stored into one config. Here's an example:

## Allotment

format: sspp pppp

- plant types and growth states (p bits):

-- 0x00 - 0x03: layers of weeds removed (0x00 meaning no weeds removed, 0x03 meaning all weeds removed), iff both state bits are 0

-- 0x06 - 0x0c: potato

-- 0x0d - 0x13: onion

-- 0x14 - 0x1a: cabbage

-- 0x1b - 0x21: tomato

-- 0x22 - 0x2a: sweetcorn

-- 0x2b - 0x33: strawberry

-- 0x34 - 0x3e: watermelon

- states (s bits):

-- 0x00: growing

-- 0x01: watered

-- 0x02: diseased

-- 0x03: dead



locations:

- falador, bits 0-15 of 504

- catherby, bits 16-31 of 504

- ardougne, bits 0-15 of 505

- port phasmatys, bits 16-31 of 505



## Flower

format: sspp ppp

- plant types and growth states (p bits):

-- 0x00 - 0x03: layers of weeds removed (0x00 meaning no weeds removed, 0x03 meaning all weeds removed), iff both state bits are 0

-- 0x08 - 0x0c: marigold

-- 0x0d - 0x11: rosemary

-- 0x12 - 0x16: nasturtium

-- 0x17 - 0x1b: woad plant

-- 0x1c - 0x20: limpwurt plant

-- 0x21 - 0x24: scarecrow

-- 0x25 - 0x29: lily

- states (s bits):

-- 0x00: growing

-- 0x01: watered

-- 0x02: diseased

-- 0x03: dead



locations:

- falador, bits 0-7 of 508

- catherby, bits 8-15 of 508

- ardougne, bits 16-23 of 508

- port phasmatys, bits 24-31 of 508



## Herb

(needs testing and refining)

format: sppp pppp

- plant types and growth states (p bits):

-- 0x00 - 0x03: layers of weeds removed (0x00 meaning no weeds removed, 0x03 meaning all weeds removed), iff both state bits are 0

-- 0x04 - 0x0a: guam

-- 0x0b - 0x11: marrentill

-- 0x12 - 0x18: tarromin

-- 0x19 - 0x1f: harralander

-- 0x20 - 0x26: ranarr

-- 0x27 - 0x2d: toadflax

-- 0x2e - 0x34: irit

-- 0x35 - 0x3b: avantoe

-- 0x3c - 0x42: wergali

-- 0x44 - 0x4a: kwuarm

-- 0x4b - 0x51: snapdragon

-- 0x52 - 0x58: cadantine

-- 0x59 - 0x5f: lantadyme

-- 0x60 - 0x66: dwarf weed

-- 0x67 - 0x6d: torstol

-- 0xc0 - 0xcb: goutweed (0xc4/c5 fully grown, 0xc6 - 0xc8 diseased, 0xc9 - 0xcb dead)

-- 0xaa - 0xac: dead herb (depending on growth stage)

- states (s bit):

-- 0x00: growing

-- 0x01: diseased



locations:

- falador, bits 0-7 of 515

- catherby, bits 8-15 of 515

- ardougne, bits 16-23 of 515

- port phasmatys, bits 24-31 of 515

- trollheim, bits 0-7 of 830



## Bushes

format: sspp pppp

- plant types and growth states (p bits):

-- 0x00 - 0x03: layers of weeds removed (0x00 meaning no weeds removed, 0x03 meaning all weeds removed), iff both state bits are 0

-- 0x05 - 0x0e: redberry (0x05 - 0x09 growing, 0x0a - 0x0e has berries (0 - 4), 0x3a fully grown)

-- 0x0f - 0x19: cadavaberry (0x0f - 0x14 growing, 0x15 - 0x19 has berries (0 - 4), 0x3b fully grown)

-- 0x1a - 0x25: dwellberry (0x1a - 0x20 growing, 0x21 - 0x25 has berries (0 - 4), 0x3c fully grown)

-- 0x26 - 0x32: jangerberry (0x26 - 0x2d growing, 0x2e - 0x32 has berries (0 - 4), 0x3d fully grown)

-- 0x33 - 0x3f: whiteberry (0x33 - 0x3a growing, 0x3b - 0x3f has berries (0 - 4), 0x3e fully grown)

-- 0xc5 - 0xd1: whiteberry (0xc5 - 0xcc growing, 0xcd - 0xd1 has berries (0 - 4), 0x3f fully grown)

-state (s bits):

-- 0x00: growing

-- 0x01: diseased

-- 0x02: dead

-- 0x03: check health



locations:

- champions guild, bits 0-7 of 509

- rimmington, bits 8-15 of 509

- etceteria, bits 16-23 of 509

- kandarin monastery 24-31 of 509



## Hops

format: sspp pppp

- plant types and growth states (p bits):

-- 0x00 - 0x03: layers of weeds removed (0x00 meaning no weeds removed, 0x03 meaning all weeds removed), iff both state bits are 0

-- 0x31 - 0x35: barley

-- 0x04 - 0x08: hammerstone

-- 0x0b - 0x10: asgarnian

-- 0x38 - 0x3d: jute

-- 0x13 - 0x19: yanillian

-- 0x1c - 0x23: krandorian

-- 0x26 - 0x2e: wildblood

- states (s bits):

-- 0x00: growing

-- 0x01: watered

-- 0x02: diseased

-- 0x03: dead



locations:

- lumbridge, bits 0-7 of 506

- seers village, bits 8-15 of 506

- yanille, bits 16-23 of 506

- entrana, bits 24-31 of 506

- missing keldagrim



## Tree

format: sspp pppp

- plant types and growth states (p bits):

-- 0x00 - 0x03: layers of weeds removed (0x00 meaning no weeds removed, 0x03 meaning all weeds removed), iff both state bits are 0

-- 0x08 - 0x0e: oak tree (0x0c is ready to check-health, 0x0d is ready to chop down, 0x0e is oak tree stump)

-- 0x0f - 0x17: willow tree (0x15 is ready to check-health, 0x16 is ready to chop down, 0x17 is willow tree stump)

-- 0x18 - 0x22: maple tree (0x20 is ready to check-health, 0x21 is ready to chop down, 0x22 is maple tree stump)

-- 0x23 - 0x2f: yew tree (0x2d is ready to check-health, 0x2e is ready to chop down, 0x2f is yew tree stump)

-- 0x30 - 0x3e: magic tree (0x3c is ready to check-health, 0x3d is ready to chop down, 0x3e is magic tree stump)

- states (s bits):

- 0x00: growing

- 0x01: diseased

- 0x02: dead

- 0x03: has branches (willow tree only), low nibble contains number of branches already taken or remaining (in-game testing is needed)



locations:

- varrock, bits 0-7 of 502

- lumbridge, bits 8-15 of 502

- taverly, bits 16- 23 of 502

- falador, bits 24-31 of 502

- tree gnome stronghold, bits 11-18 of 830



## Fruit Tree

format: pppp pppp

- plant types and growth states (p bits):

-- 0x00 - 0x03: layers of weeds removed (0x00 meaning no weeds removed, 0x03 meaning all weeds removed), iff both state bits are 0

-- 0x08 - 0x22: apple tree (0x08 - 0x14 is growing, 0x15 - 0x1a is diseased, 0x1b - 0x20 is dead, 0x21 is apple tree stump, 0x22 is ready to check-health)

-- 0x23 - 0x3d: banana tree (0x23 - 0x2f is growing, 0x30 - 0x35 is diseased, 0x36 - 0x3b is dead, 0x3c is banana tree stump, 0x3d is ready to check-health)

-- 0x48 - 0x62: orange tree (0x48 - 0x54 is growing, 0x55 - 0x5a is diseased, 0x5b - 0x60 is dead, 0x61 is orange tree stump, 0x52 is ready to check-health)

-- 0x63 - 0x7d: curry tree (0x63 - 0x6f is growing, 0x70 - 0x75 is diseased, 0x76 - 0x7b is dead, 0x7c is curry tree stump, 0x7d is ready to check-health)

-- 0x88 - 0xa2: pineapple plant (0x88 - 0x94 is growing, 0x95 - 0x9a is diseased, 0x9b - 0xa0 is dead, 0xa1 is pineapple plant stump, 0xa2 is ready to check-health)

-- 0xa3 - 0xbd: papaya tree (0xa3 - 0xaf is growing, 0xb0 - 0xb5 is diseased, 0xb6 - 0xbb is dead, 0xbc is papaya tree stump, 0xbd is ready to check-health)

-- 0xc8 - 0xe2: palm tree (0xc8 - 0xd4 is growing, 0xd5 - 0xda is diseased, 0xdb - 0xe0 is dead, 0xe1 is palm tree stump, 0xe2 is ready to check-health)



locations:

- brimhaven, bits 0-7 of 503

- catherby, bits 8-15 of 503

- tree gnome stronghold, bits 16-23 of 503

- tree gnome maze, bits 24-31 of 503

- lletya, bits 23-30 of setting 830

- herblore habitat, bits 18-25 of setting 1931



## Calquat

format: ..pp pppp

-- 0x00 - 0x03: layers of weeds removed (0x00 meaning no weeds removed, 0x03 meaning all weeds removed), iff both state bits are 0

-- 0x04 - 0x12: growing

-- 0x13 - 0x19: diseased

-- 0x1a - 0x21: dead

-- 0x22: fully-grown



locations:

- karamja, bits 24-29 of setting 507



## Belladonna

format: ..pp pppp

-- 0x00 - 0x03: layers of weeds removed (0x00 meaning no weeds removed, 0x03 meaning all weeds removed), iff both state bits are 0

-- 0x04 - 0x07: growing

-- 0x08: fully-grown

-- 0x09 - 0x0c: diseased

-- 0x0d - 0x10: dead



locations:

- draynor manor, bits 0-7 of 512



## Mushrooms

format: ..pp pppp

-- 0x00 - 0x03: layers of weeds removed (0x00 meaning no weeds removed, 0x03 meaning all weeds removed), iff both state bits are 0

-- 0x04 - 0x15: bittercap (0x04 - 0x09 growing, 0x0a - 0x0f has mushrooms (0 - 6), 0x10 - 0x14 diseased, 0x15 - 0x19 dead)

-- 0x1a - 0x28: morchella (0x1a - 0x1f growing, 0x20 - 0x28 has mushrooms (0 - 9), 0x29 - 0x2d diseased, 0x2e - 0x32 dead)



locations:

- canafis, bits 24-31 of 512 

 

Those are all the values for plants, EXCEPT for cactus. I could gather the values on my own for cactus, but of course it's easier to ask if someone has the values or not.

 

Hmm.. That's pretty similar to other configs. Most configs use bit values rather than decimal/hexadecimal values. But I see the problem yeah. The question is in which register those 15 bits are located eh?

If anybody knows, it would be @Xerion or @Krulvis as they have worked with farming.

 

  • Like 1
Link to comment
Share on other sites

Hmm.. That's pretty similar to other configs. Most configs use bit values rather than decimal/hexadecimal values. But I see the problem yeah. The question is in which register those 15 bits are located eh?

If anybody knows, it would be @Xerion or @Krulvis as they have worked with farming.

 

 

You are right,

They are almost the same as other configs in runescape ...

 

I've debugged a lot of these myself... basicly everything in runescape works this way.

You only need to know how to work with them ...

 

Farming has a shitload of settings though sleep.png

the devs who made it their brain must have hurt xD

 

Khaleesi

Edited by Khaleesi
Link to comment
Share on other sites

You are right,

They are almost the same as other configs in runescape ...

 

I've debugged a lot of these myself... basicly everything in runescape works this way.

You only need to know how to work with them ...

 

Farming has a shitload of settings though sleep.png

the devs who made it their brain must have hurt xD

 

Khaleesi

Something like that...

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...