Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Two option ideas. #59

Open
DryIce41 opened this issue Feb 15, 2020 · 4 comments
Open

Two option ideas. #59

DryIce41 opened this issue Feb 15, 2020 · 4 comments

Comments

@DryIce41
Copy link

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.

@matoom
Copy link
Owner

matoom commented Feb 15, 2020

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

@matoom
Copy link
Owner

matoom commented Feb 15, 2020

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

@DryIce41
Copy link
Author

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.

@matoom
Copy link
Owner

matoom commented Feb 24, 2020

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants