Download
(3 Kb)
Download
Updated: 01/20/24 03:57 PM
Compatibility:
Endless Archive (9.2.5)
base-game patch (9.1.5)
Necrom (9.0.0)
Scribes of Fate (8.3.5)
Firesong (8.2.5)
Lost Depths (8.1.5)
High Isle (8.0.0)
Updated:01/20/24 03:57 PM
Created:08/01/23 04:16 PM
Monthly downloads:201
Total downloads:1,593
Favorites:3
MD5:
FishingStateMachine
Version: 1.2
by: Sem [More]
This is a state machine that provides fishing states for other addons.

This addon is needed by other addons and has no effect on it's own.

~~~
For Developers:

I made this addon so that I don't run the same state machine multiple times simultaneously for different addons.

Available states are:
Lua Code:
  1. FishingStateMachine.state     = {
  2.     idle      =  0, --Running around, neither looking at an interactable nor fighting
  3.     lookaway  =  1, --Looking at an interactable which is NOT a fishing hole
  4.     looking   =  2, --Looking at a fishing hole
  5.     depleted  =  3, --fishing hole just depleted
  6.  
  7.     nobait    =  5, --Looking at a fishing hole, with NO bait equipped
  8.     fishing   =  6, --Fishing
  9.     reelin    =  7, --Reel in!
  10.     loot      =  8, --Lootscreen open, only right after Reel in!
  11.     invfull   =  9, --No free inventory slots, only right after Reel in!
  12.  
  13.     fight     = 14, --Fighting / Enemys taunted
  14.     dead      = 15  --Dead
  15. }

You can register a callback on "FishingStateMachine_STATE_CHANGE" with
Lua Code:
  1. FishingStateMachine:registerOnStateChange(callback)
and unregister with
Lua Code:
  1. FishingStateMachine:unregisterOnStateChange(callback)
or read out FishingStateMachine.currentState by calling
Lua Code:
  1. FishingStateMachine:getState()
1.2
- updated API version to 101040
Optional Files (0)


Archived Files (1)
File Name
Version
Size
Uploader
Date
v1.1
3kB
Sem
08/01/23 04:16 PM


Post A Reply Comment Options
Unread 03/25/24, 05:04 PM  
XANTOS

Forum posts: 0
File comments: 19
Uploads: 0
Exclamation Re: FPS drops when looking at containers

Originally Posted by Aylish
This addon causes massive lag when my character looks at containers.
Even if they have nothing to do with fishing and even if they are in nearly non populated areas.
I have no FPS problems otherwise.
I agree with this, bookcases, bags, etc. reduce FPS to 7-11. Annoying
Report comment to moderator  
Reply With Quote
Unread 02/16/24, 08:16 AM  
Aylish

Forum posts: 0
File comments: 66
Uploads: 0
FPS drops when looking at containers

This addon causes massive lag when my character looks at containers.
Even if they have nothing to do with fishing and even if they are in nearly non populated areas.
I have no FPS problems otherwise.
Report comment to moderator  
Reply With Quote
Post A Reply



Category Jump: