outputting html for school project

Kareem
17 Mar 2013, 15:35
Hi,

for a current school project I have to make a prototype for an app for tablet. One of my ideas was to add a small text adventure game and I came across this software wich sounds awesome.

I'm pretty unfamiliar with software development and if this question is stupid forgive me (but please point me to where it is answerd :))

I wanted to create the prototype with HTML, CSS and some Javascript and I was wondering if it was possible to incorperate the textadventure game into a html website? (im aware that you can create apps already but the textadventure will only be one of the features). I will obviously need to style the elements ti fit in with the rest of the prototype?

jaynabonne
17 Mar 2013, 18:17
So basically, it sounds like you want to embed a Quest game in your prototype. You could always link directly to the online variant of your Quest game, but if you want to have your own look and feel *around* the game, then you'd have to somehow embed the Quest elements into your page. It seems like it could be possible in theory (the latter part), as long as CORS doesn't give you grief, but Alex would be more knowledgable about what's doable.

sgreig
17 Mar 2013, 19:17
Easiest solution is to load the game from the textadventures.co.uk website in an iFrame. It's also possible to have the game converted into JavaScript but you have to talk to Alex about that and I don't know how long the process would take.

Kareem
17 Mar 2013, 22:44
thanks for the replies guys.

1st, whats CORS?

2ndly I dedicated my time today to fiddling around with the options to style the game using css and javascript and I'm sure I can make it work visually within the prototype*. I was supposed to do other stuff but Quest has me sort of excited. Seems to be just what I need. So I think I'm just going to embed it in an iframe.

*I ran into a issue that seems like a mistake in the wiki but I could be wrong.

http://quest5.net/wiki/Modifying_the_UI_(Advanced)


I found no way of including a script that said Raise UI Request. I got it to work but by just putting the script directly in the code.

jaynabonne
17 Mar 2013, 22:50
Sorry, CORS is : cross-origin resource sharing and has to do with making XML HTTP requests across domains. It probably doesn't apply to Quest, but I've had it on my brain lately, so...

As far as Raise UI Request, you got it right. There is no way in the editor to add it in, but once you've added it directly in scripting code, it shows up in the editor, as the image shows.

cyberholic
11 Oct 2013, 23:33
can you tell me why i can not find the "insert from HTML" in my Quest script dropdown? Thanks in advance!

jaynabonne
12 Oct 2013, 00:10
It no longer exists. You can now simply embed HTML directly in your game by outputting it with "print message".

cyberholic
12 Oct 2013, 07:51
Thanks a lot Jay,
so if i want to add in example the NIVO slider javascript to the game, i need to put it in there too?
I read in a few threads that it is possible to use my own CSS styling but i was here also wondering if it is not possible
to "attach" an external CSS file and embed that instead.

Thanks again for your support and time!

jaynabonne
13 Oct 2013, 23:20
I tried to load an external style sheet using a function in Quest once and ran into problems (like Quest crashing). Some got it to work by renaming the css file, but that seems a bit flakey to me. I'm not sure if the next version of Quest will support it, but I'd say for now, it's not really supported.

cyberholic
14 Oct 2013, 07:44
Thanks a lot Jaynabonne.
That is sad to hear but absolutely understandable as we are talking about textadventures.
Unfortunately i tried the last 30 years to be a webdesigner and would love to style the whole
GUI a bit.
And i would like to add a jQuery class (nivo slider) to my game.
Do you think that this is possible? And if it is, do i add the class also through the message command?

thanks again for your time and support!

Pertex
14 Oct 2013, 11:22
jaynabonne wrote:I tried to load an external style sheet using a function in Quest once and ran into problems (like Quest crashing). Some got it to work by renaming the css file, but that seems a bit flakey to me. I'm not sure if the next version of Quest will support it, but I'd say for now, it's not really supported.


Jay, is there an issue for this problem in the tracker?

jaynabonne
14 Oct 2013, 11:38