matt-lowe / profanityfe Goto Github PK
View Code? Open in Web Editor NEWA terminal frontend for Simutronics games based on Ruby and Ncurses.
License: GNU General Public License v2.0
A terminal frontend for Simutronics games based on Ruby and Ncurses.
License: GNU General Public License v2.0
I'm using the current master
branch, and am seeing that certain highlight values don't respect what is present in the default configuration. For instance, the speech
ID chooses a different highlight color, other than the one specified in the default configuration, periodically. It appears to be changing whenever the FE is started, and not during play, but it can choose colors that are unreadable relative to the other settings.
It seems that profanity only allows explicitly settings a color value for the background, but terminals have a default color that may differ from the ansi black color setting, which appears to be the default.
--default-background-color-id only allows to change the color. It doesn't appear to allow one to unset the background to the default.
Here is the result in urxvt terminal where I've defined black to render as grayish color. Instead of using the default terminal colors (which I've set to transparent and white), everything is black (configured to grayish color).
Would it be possible to respect the XDG specification for configuration files by locating them in ${XDG_CONFIG_HOME}/profanity
rather than in $HOME
for macOS / linux users?
, having issues running profanity on win10 with cmder. I have the headless lich set up and working, it logs my character into the game but when i run my .bat file for profanity it loads up the FE but doesnt show any scroll and does not respond to the first command input, and upon hitting any key after such the window closes immediately.
this is the error in the profanity log:
string contains null byte
C:/Profanity/profanity.rb:74:in addstr' C:/Profanity/profanity.rb:74:in
block in add_line'
C:/Profanity/profanity.rb:70:in each' C:/Profanity/profanity.rb:70:in
add_line'
please help i've checked my firewall/ports/admin rights/fonts/colors not sure what else to look at.
Are you still actively developing this? Is this the latest version of the code?
I have been using Profanity as my primary frontend since about the beginning of the year and it works pretty well for me in general and fits my workflow much better than the Wizard or Stormfront. There are a few things I would like to help improve (e.g. add some more macro features, fixing puts/print output going to the terminal instead of the frontend), but I wanted to make sure this repo is a good starting point before I started any major rocket surgery.
I'm getting this error when trying to run profanityFE on ubuntu 16.04, is this an issue you can immediately identify? I don't know how to squash it:
user@computer-desktop:/lich$ sudo ruby profanity.rb --port=8001
/usr/lib/ruby/2.2.0/rubygems/core_ext/kernel_require.rb:54:in require': cannot load such file -- curses (LoadError) from /usr/lib/ruby/2.2.0/rubygems/core_ext/kernel_require.rb:54:in
require'
from profanity.rb:32:in `
To parse vitals from the game feed, Profanity requires a value for the text
field with a space prior the actual value of the vital. Specifically, the line parsing progress bar updates is:
xml =~ /^<progressBar id='(.*?)' value='[0-9]+' text='.*?\s+(\-?[0-9]+)\/([0-9]+)'/
This is a typical example of a line that Profanity works fine with, where text='mana 158/159'
:
controls='mana' left='25%' top='0%' width='25%' height='100%'/><progressBar
id='mana' value='99' text='mana 158/159' left='25%' customText='t' top='0%'
width='25%' height='100%'/></dialogData>You release 1 mana into the surrounding
area.
But if the name of the progress bar has been customized in SF FE it may look different, such as text='221/223'
if the "mana" name was removed:
controls='mana' left='25%' top='0%' width='25%' height='100%'/><progressBar
id='mana' value='99' text='221/223' left='25%' customText='t' top='0%'
width='25%' height='100%'/></dialogData>You release 1 mana into the surrounding
area.
In the latter case, Profanity will silently fail to ever update the mana bar.
A workaround is to issue the following game commands to delete the customizations completely:
_progba health 0
_progba stamina 0
_progba spirit 0
_progba mana 0
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.