matoom/frostbite

Two option ideas.

DryIce41 opened this issue · 4 comments

If these are not feasible or easy, no big deal.

Would having an EXP MODs window much like the EXP window be possible. It would be interesting to see that.

Secondly, this may be my inability to use a mouse, but is it not currently possible to put a window BENEATH the game window in Frostbite? I can put them on top and to the side but the game window seems locked to the bottom of the screen, except for the toolbar. Would be nice to have free placement.

Unless they've added it recently i don't think exp mods is supported by the sf protocol? If it's an existing window in stormfront it should be possible if not then you probably want a manually updated window. That you can do using either lich or frostbite scripting api i believe.

In lich you can make something similar to moonwatch.
https://github.com/rpherbig/dr-scripts/blob/master/moonwatch.lic

In frostbite something like this:

mods.rb:

WINDOW_NAME = "EXP_MODS"
WINDOW_TITLE = "Experience mods"

def exp_mods
  put "exp mods"
  match = {:wait => [/\.\.\.wait|you may only type ahead/],
           :exp => [/^((?!>).)*$/], #this regexp takes everything that isn't a ">"
           :match_start => [/The following skills are currently/],
           :match_end => [/>/]}
  result = match_get_m match

  if result.has_key?(:wait)
    exp_mods
  else
    result[:exp]
  end
end

Client::window_add(WINDOW_NAME, WINDOW_TITLE)
Client::window_clear(WINDOW_NAME)

exp_mods.each do |exp|
  Client::window_write(WINDOW_NAME, exp)
end

image

Currently bottom anchor is disabled but can be added. Problem is that the main story window and command line are different type of windows and they're grouped together. So if i enable bottom anchor all the movable parts will go under the command line. Which to me didn't seem right and that's why i disabled it.

It would basically look like this:
image

Cool! No problem on the bottom anchor. I just thought it would be nice to have my chat windows under my game window as that's where my eyes are a lot.

Thanks for responding on exp mods window idea. That explanation was over my head but no big deal. I thought it would be neat as I saw they did something like that to genie.

I double checked and there's no exp mods window in stormfront. I don't know how it works in genie but it probably picks up from the commands that you run yourself (non automated).

The frostbite solution that i offered is a script that you can copy/paste into any *.rb file in your scripts folder and you can run it to update the exp mods window that it creates by itself (provided you have ruby installed on your computer).

There are some fundamental differences in frostbite and there's no easy way to integrate scripting back into the client the way it works on genie. The lich version would be more in that nature but you would have to talk to someone more experienced in lich scripting than i am. I can't really help you there.