[superseded] Total clear of all temp triggers.

User avatar
tsuujin
Posts: 695
Joined: Fri Feb 26, 2010 12:59 am
Location: California
Contact:

[superseded] Total clear of all temp triggers.

Post by tsuujin »

It'd be great if you could click on a button and have it destroy all of your existing temp triggers.

status: resetProfile() covers this

User avatar
tsuujin
Posts: 695
Joined: Fri Feb 26, 2010 12:59 am
Location: California
Contact:

Re: Feature Request: Total clear of all temp triggers.

Post by tsuujin »

Or, even better, have a function to gain the IDs of all existing temp triggers to be used for whatever.

User avatar
Heiko
Site Admin
Posts: 1548
Joined: Wed Mar 11, 2009 6:26 pm

Re: Feature Request: Total clear of all temp triggers.

Post by Heiko »

Adding function clearTempTriggers(). As of version 1.2.0-pre3 (available on sourceforge) there's a new function resetProfile() that resets the current profile.

User avatar
Rakon
Posts: 350
Joined: Tue Feb 16, 2010 7:41 pm
Contact:

Re: Feature Request: Total clear of all temp triggers.

Post by Rakon »

Heiko:

I've downloaded the newest GIT source [http://mudlet.git.sourceforge.net/git/g ... EAD;sf=tgz] which was updated at Tue, 24 Aug 2010 22:41.

When trying to compile Mudlet (both via the cmake and 'failsafe' method) , the make fails.

System: Ubuntu Linux, X86_64 2.6.32-24-generic

When running build.sh :

Code: Select all

...
- Build files have been written to: /home/chris/Documents/projects/Mudlet/mudlet/src/build
make[2]: *** No rule to make target `../icons/applications-internet.png', needed by `qrc_mudlet_alpha.cxx'.  Stop.
make[1]: *** [CMakeFiles/mudlet.dir/all] Error 2
make: *** [all] Error 2
chris@penguinlaptop:~/Documents/projects/Mudlet/mudlet$
So, I just copied over the needed icon from my system, to Mudlet's icon directory below src.

After that, I tried the build.sh again and received a lot of errors. Here are the errors up to where it was generated at in the build:

Code: Select all

...
/home/chris/Documents/projects/Mudlet/mudlet/src/TSplitterHandle.h:0: Warning: No relevant classes found. No output generated.
[ 40%] Generating moc_dlgNotepad.cxx
[ 40%] Generating moc_THighlighter.cxx
[ 41%] Generating moc_dlgComposer.cxx
[ 41%] Generating moc_Tree.cxx
/home/chris/Documents/projects/Mudlet/mudlet/src/Tree.h:0: Warning: No relevant classes found. No output generated.
[ 41%] Building CXX object CMakeFiles/mudlet.dir/TConsole.cpp.o
[ 41%] Building CXX object CMakeFiles/mudlet.dir/ctelnet.cpp.o
In file included from /home/chris/Documents/projects/Mudlet/mudlet/src/TMap.h:34,
                 from /home/chris/Documents/projects/Mudlet/mudlet/src/Host.h:52,
                 from /home/chris/Documents/projects/Mudlet/mudlet/src/TCommandLine.h:32,
                 from /home/chris/Documents/projects/Mudlet/mudlet/src/TConsole.h:37,
                 from /home/chris/Documents/projects/Mudlet/mudlet/src/TConsole.cpp:24:
/home/chris/Documents/projects/Mudlet/mudlet/src/glwidget.h:24:21: error: QGLWidget: No such file or directory
In file included from /home/chris/Documents/projects/Mudlet/mudlet/src/TMap.h:34,
                 from /home/chris/Documents/projects/Mudlet/mudlet/src/Host.h:52,
                 from /home/chris/Documents/projects/Mudlet/mudlet/src/TCommandLine.h:32,
                 from /home/chris/Documents/projects/Mudlet/mudlet/src/TConsole.h:37,
                 from /home/chris/Documents/projects/Mudlet/mudlet/src/mudlet.h:29,
                 from /home/chris/Documents/projects/Mudlet/mudlet/src/ctelnet.cpp:26:
/home/chris/Documents/projects/Mudlet/mudlet/src/glwidget.h:24:21: error: QGLWidget: No such file or directory
In file included from /usr/include/c++/4.4/backward/hash_set:60,
                 from /usr/include/boost/graph/adjacency_list.hpp:25,
                 from /home/chris/Documents/projects/Mudlet/mudlet/src/TAstar.h:4,
                 from /home/chris/Documents/projects/Mudlet/mudlet/src/TMap.h:36,
                 from /home/chris/Documents/projects/Mudlet/mudlet/src/Host.h:52,
                 from /home/chris/Documents/projects/Mudlet/mudlet/src/TCommandLine.h:32,
                 from /home/chris/Documents/projects/Mudlet/mudlet/src/TConsole.h:37,
                 from /home/chris/Documents/projects/Mudlet/mudlet/src/TConsole.cpp:24:
/usr/include/c++/4.4/backward/backward_warning.h:28:2: warning: #warning This file includes at least one deprecated or antiquated header which may be removed without further notice at a future date. Please use a non-deprecated interface with equivalent functionality instead. For a listing of replacement headers and interfaces, consult the file backward_warning.h. To disable this warning use -Wno-deprecated.
In file included from /usr/include/c++/4.4/backward/hash_set:60,
                 from /usr/include/boost/graph/adjacency_list.hpp:25,
                 from /home/chris/Documents/projects/Mudlet/mudlet/src/TAstar.h:4,
                 from /home/chris/Documents/projects/Mudlet/mudlet/src/TMap.h:36,
                 from /home/chris/Documents/projects/Mudlet/mudlet/src/Host.h:52,
                 from /home/chris/Documents/projects/Mudlet/mudlet/src/TCommandLine.h:32,
                 from /home/chris/Documents/projects/Mudlet/mudlet/src/TConsole.h:37,
                 from /home/chris/Documents/projects/Mudlet/mudlet/src/mudlet.h:29,
                 from /home/chris/Documents/projects/Mudlet/mudlet/src/ctelnet.cpp:26:
/usr/include/c++/4.4/backward/backward_warning.h:28:2: warning: #warning This file includes at least one deprecated or antiquated header which may be removed without further notice at a future date. Please use a non-deprecated interface with equivalent functionality instead. For a listing of replacement headers and interfaces, consult the file backward_warning.h. To disable this warning use -Wno-deprecated.
In file included from /home/chris/Documents/projects/Mudlet/mudlet/src/TMap.h:34,
                 from /home/chris/Documents/projects/Mudlet/mudlet/src/Host.h:52,
                 from /home/chris/Documents/projects/Mudlet/mudlet/src/TCommandLine.h:32,
                 from /home/chris/Documents/projects/Mudlet/mudlet/src/TConsole.h:37,
                 from /home/chris/Documents/projects/Mudlet/mudlet/src/TConsole.cpp:24:
/home/chris/Documents/projects/Mudlet/mudlet/src/glwidget.h:32: error: expected class-name before ‘{’ token
/home/chris/Documents/projects/Mudlet/mudlet/src/glwidget.h:41: error: ‘GLuint’ does not name a type
/home/chris/Documents/projects/Mudlet/mudlet/src/glwidget.h:42: error: ‘GLuint’ does not name a type
/home/chris/Documents/projects/Mudlet/mudlet/src/glwidget.h:95: error: ‘GLfloat’ does not name a type
In file included from /home/chris/Documents/projects/Mudlet/mudlet/src/TMap.h:34,
                 from /home/chris/Documents/projects/Mudlet/mudlet/src/Host.h:52,
                 from /home/chris/Documents/projects/Mudlet/mudlet/src/TCommandLine.h:32,
                 from /home/chris/Documents/projects/Mudlet/mudlet/src/TConsole.h:37,
                 from /home/chris/Documents/projects/Mudlet/mudlet/src/mudlet.h:29,
                 from /home/chris/Documents/projects/Mudlet/mudlet/src/ctelnet.cpp:26:
/home/chris/Documents/projects/Mudlet/mudlet/src/glwidget.h:32: error: expected class-name before ‘{’ token
/home/chris/Documents/projects/Mudlet/mudlet/src/glwidget.h:41: error: ‘GLuint’ does not name a type
/home/chris/Documents/projects/Mudlet/mudlet/src/glwidget.h:42: error: ‘GLuint’ does not name a type
/home/chris/Documents/projects/Mudlet/mudlet/src/glwidget.h:95: error: ‘GLfloat’ does not name a type
In file included from /home/chris/Documents/projects/Mudlet/mudlet/src/dlgMapper.h:25,
                 from /home/chris/Documents/projects/Mudlet/mudlet/src/TConsole.cpp:54:
/home/chris/Documents/projects/Mudlet/mudlet/src/ui_mapper.h: In member function ‘void Ui_mapper::setupUi(QWidget*)’:
/home/chris/Documents/projects/Mudlet/mudlet/src/ui_mapper.h:105: error: ‘class GLWidget’ has no member named ‘setObjectName’
/home/chris/Documents/projects/Mudlet/mudlet/src/ui_mapper.h:106: error: ‘class GLWidget’ has no member named ‘sizePolicy’
/home/chris/Documents/projects/Mudlet/mudlet/src/ui_mapper.h:107: error: ‘class GLWidget’ has no member named ‘setSizePolicy’
/home/chris/Documents/projects/Mudlet/mudlet/src/ui_mapper.h:109: error: no matching function for call to ‘QHBoxLayout::addWidget(GLWidget*&)’
/usr/include/qt4/QtGui/qboxlayout.h:85: note: candidates are: void QBoxLayout::addWidget(QWidget*, int, Qt::Alignment)
/home/chris/Documents/projects/Mudlet/mudlet/src/ctelnet.cpp: In member function ‘void cTelnet::setATCPVariables(QString&)’:
/home/chris/Documents/projects/Mudlet/mudlet/src/ctelnet.cpp:746: error: ‘class GLWidget’ has no member named ‘update’
make[2]: *** [CMakeFiles/mudlet.dir/ctelnet.cpp.o] Error 1
make[2]: *** Waiting for unfinished jobs....
make[2]: *** [CMakeFiles/mudlet.dir/TConsole.cpp.o] Error 1
make[1]: *** [CMakeFiles/mudlet.dir/all] Error 2
make: *** [all] Error 2
chris@penguinlaptop:~/Documents/projects/Mudlet/mudlet$ 

After this, I changed to the src directory and tried the failsafe method, which successfully built.

I look forward to seeing this release complete, and with Vadi's GMCP additions to it in the future as well.

User avatar
Vadi
Posts: 5042
Joined: Sat Mar 14, 2009 3:13 pm

Re: Feature Request: Total clear of all temp triggers.

Post by Vadi »

Need to use qmake + install a few system packages to get it to build

User avatar
Heiko
Site Admin
Posts: 1548
Joined: Wed Mar 11, 2009 6:26 pm

Re: Feature Request: Total clear of all temp triggers.

Post by Heiko »

cmake hasn't been updated -> unusable at the moment. You need to build Mudlet with:
cd src
qmake
make

make install doesn't work either at the moment. Mudlet needs to be run from the src directory:
cd mudlet/src
./mudlet

The reason is that Mudlet now expects to find the newly organized and improved LuaGlobal.lua loader in mudlet/src/mudlet-lua otherwise it will not load.

As new dependencies you now need to install the following packges on Debian:
nvidia-current-dev (or similar depending on your graphics card)
libboost1.40-dev
libqt4-opengl-dev

Added the missing icon to git, but haven't updated it yet. Until this is fixed you can simply copy some other icon and change the name accordingly to make qmake happy.

As for the GMCP patch: It's in the works.

User avatar
Vadi
Posts: 5042
Joined: Sat Mar 14, 2009 3:13 pm

Re: Feature Request: Total clear of all temp triggers.

Post by Vadi »

We have resetProfile now - I think it's a better overall solution than just a total clear of all temp triggers. With reset, everything gets reloaded, and 3rd party scripts can re-create their temp stuff again. With a clear of temp ones only, unless we make an event and emit it, and force people to hook to the event as well, 3rd party scripts won't get a chance to re-do their temp triggers and will be 'broken' after the clear.

User avatar
tsuujin
Posts: 695
Joined: Fri Feb 26, 2010 12:59 am
Location: California
Contact:

Re: Feature Request: Total clear of all temp triggers.

Post by tsuujin »

resetProfile has a fatal error:

it also clears things like the GMCP table, which will not automatically refresh all elements from the game on it's own.

after a resetProfile information that my system needs to load properly simply isn't there.

User avatar
Vadi
Posts: 5042
Joined: Sat Mar 14, 2009 3:13 pm

Re: Feature Request: Total clear of all temp triggers.

Post by Vadi »

Sort of the point of resetProfile tbh though. Perhaps gmcp and atcp tables could be re-added under an 'old' namespace or such for convenience.

User avatar
tsuujin
Posts: 695
Joined: Fri Feb 26, 2010 12:59 am
Location: California
Contact:

Re: [superseded] Total clear of all temp triggers.

Post by tsuujin »

I'd actually just prefer a clearTempTriggers() function, honestly.

Post Reply