Hi all,
I was running the game when I got hit by the following :-
$ ./orange
using visual class 4, id 9c
QPixmap::handle(): Pixmap is not an X11
class pixmap
QScriptEngine(0x225ffa0)
Object: "Math"
Object: "NaN"
Object: "undefined"
Object: "Infinity"
Object: "JSON"
Object: "Object"
Object: "Function"
Object: "Array"
Object: "Boolean"
Object: "String"
Object: "Number"
Object: "Date"
Object: "RegExp"
Object: "Error"
Object: "EvalError"
Object: "RangeError"
Object: "ReferenceError"
Object: "SyntaxError"
Object: "TypeError"
Object: "URIError"
Object: "eval"
Object: "parseInt"
Object: "parseFloat"
Object: "isNaN"
Object: "isFinite"
Object: "escape"
Object: "unescape"
Object: "decodeURI"
Object: "decodeURIComponent"
Object: "encodeURI"
Object: "encodeURIComponent"
Object: "print"
Object: "gc"
Object: "Qt"
Object: "XMLHttpRequest"
Object: "DOMException"
Object: "openDatabaseSync"
Object: "SQLException"
Object: "console"
Object: "qsTranslate"
Object: "QT_TRANSLATE_NOOP"
Object: "qsTr"
Object: "QT_TR_NOOP"
Object: "qsTrId"
Object: "QT_TRID_NOOP"
scriptvalue rpgx true
connecting signal
init script engine
Scene resize to QRectF(0,0 1025x769)
shaders: 0
shaders: 1
BLURSHADER ADD: ""
"scripts/json2.js" : "1" :
"ReferenceError: Can't find variable: alert"
Loading sound effects...
"Loading sound 'sounds/spell1_0.ogg'"
"Loading sound 'sounds/menublip.ogg'"
"Loading sound 'sounds/jingle1.ogg'"
"Loading sound 'sounds/rpg_sound_pack/battle/swing.ogg'" COMPONENT ERROR: (file:///home/shirish/games/Orange-Engine/qrpg-build-desktop/interface/Ui.qml:102:3: Type Box unavailable
Box {
^, file:///home/shirish/games/Orange-Engine/qrpg-build-desktop/interface/Box.qml:2:1: module "Qt.labs.shaders" is not installed
import Qt.labs.shaders 1.0
^)
QDeclarativeComponent: Component is not ready "scripts/functions.js" : "3" : "TypeError: cannot call addItem(): argument 1 has unknown type `QGraphicsItem*' (register the type with qScriptRegisterMetaType())" "scripts/abilities.js" : "26" : "TypeError: Result of expression 'allAbilities' [undefined] is not an object." Loading items from data/items.json
loading item: Wooden Staff
undefined
New character Wooden Staff
"scripts/items.js" : "189" : "TypeError: Result of expression 'ui' [null] is not an object."
New character Lendrick
"scripts/characters.js" : "189" : "TypeError: Result of expression 'ui' [null] is not an object."
"RUNNING startup.js"
"scripts/startup.js" : "41" : "TypeError: Result of expression 'ui' [null] is not an object."
"Loading sound 'sounds/town.ogg'"
"Loading sound 'sounds/adventure.ogg'"
"Loading sound 'sounds/rnbg4.ogg'"
playBGM: townTheme
This is where it the game starts, now when I try to enter a room I get the following :-
MESSAGE: "TypeError: Result of expression 'ui' [null] is not an object." hijackWindow() context created for QMessageBox(0x7fffcbb1e3b0) 1 Created Window Surface FBO QSize(500, 122) with samples 1
I'm using a slightly older version of QT though, so that might be the problem ?
<code>
e$ qtcreator -version
Qt Creator 2.2.1 based on Qt 4.7.4
AnalyzerBase 2.2.1 Code Analyzer Base Plugin
Bazaar 2.2.1 Bazaar integration.
BinEditor 2.2.1 Binary editor component.
Bookmarks 2.2.1 Bookmarks in text editors.
CMakeProjectManager 2.2.1 CMake support
CVS 2.2.1 CVS integration.
ClassView 2.2.1 Class View component.
CodePaster 2.2.1 Codepaster plugin for pushing/fetching diff from server
Core 2.2.1 The core plugin for the Qt IDE.
CppEditor 2.2.1 C/C++ editor component.
CppTools 2.2.1 Tools for analyzing C/C++ code.
Debugger 2.2.1 Debugger integration.
Designer 2.2.1 Qt Designer integration.
FakeVim 2.2.1 VI-style keyboard navigation.
Find 2.2.1 Provides the find widget and the hooks for find implementations.
GLSLEditor 2.2.1 Editor for GLSL.
GenericProjectManager 2.2.1 Generic support
HelloWorld 2.2.1 Hello World sample plugin.
Help 2.2.1 Help system.
ImageViewer 2.2.1 Image Viewer component.
Locator 2.2.1 Provides the Locator widget and the hooks for Locator filter implementations.
Macros 2.2.1 Macros in text editors.
Memcheck 2.2.1 Valgrind Memcheck Tool Plugin
Mercurial 2.2.1 Mercurial integration.
Perforce 2.2.1 Perforce integration.
ProjectExplorer 2.2.1 ProjectExplorer framework that can be extended with different kind of project types.
QmlDesigner 2.2.1 Visual Designer for QML files.
QmlJSEditor 2.2.1 Editor for QML and JavaScript.
QmlJSInspector 2.2.1 Debugger for QML files
QmlJSTools 2.2.1 Tools for analyzing Qml/JS code.
QmlProjectManager 2.2.1 Qt Quick support
Qt4ProjectManager 2.2.1 Provides project type for Qt 4 pro files and tools.
ResourceEditor 2.2.1 Editor for qrc files.
ScmGit 2.2.1 Git integration.
Subversion 2.2.1 Subversion integration.
TaskList 2.2.1 Use .tasks-files to populate the build issues view.
TextEditor 2.2.1 Text editor framework and the implementation of the basic text editor.
VCSBase 2.2.1 Version Control System Base Plugin
ValgrindToolBase 2.2.1 Valgrind Tool Base Plugin
Welcome 2.2.1 Default Welcome Screen Plugin
(C) 2011 Nokia Corporation
<code>
Looking forward to know what you make of all of it.
Looks like it barfed becase you don't have the Qt.Labs.Shaders module installed. Try the latest git revision; I've commented that part out because it wasn't doing anything anyway.
bart, thank you. I would have installed QT.Labs.Shaders module only if it was written somewhere on the wiki as a requirement. I know this page and use it as a reference
https://github.com/lendrick/Orange-Engine/wiki
I synced up and am building it atm, would know in five minutes if it went good or not.
Is it this one :-
$ aptitude show libqt4-declarative-shaders
Package: libqt4-declarative-shaders
State: not installed
Version: 4:4.7.4-3
Priority: optional
Section: libs
Maintainer: Debian Qt/KDE Maintainers
Architecture: amd64
Uncompressed Size: 229 k
Depends: libc6 (>= 2.2.5), libgcc1 (>= 1:4.1.1), libgl1-mesa-glx|libgl1, libqt4-declarative (= 4:4.7.4-3), libqt4-opengl (= 4:4.7.4-3), libqtcore4 (= 4:4.7.4-3), libqtgui4 (= 4:4.7.4-3), libstdc++6 (>= 4.1.1)
Description: Qt 4 shaders QML plugin Qt is a cross-platform C++ application framework. Qt's primary feature is its rich set of widgets that provide standard GUI functionality.
This package contains the shaders QML plugin for QtDeclarative.
Homepage: http://qt.nokia.com/
Edit: It worked, hurray, now going to see how much game is there.
I removed the offending code. I probably won't use it again until qt5 comes out, and it's integrated into qt5 so there shouldn't be a dependency.