script minifier Message ?

Discussion and feedback on Construct 2

Post » Sun Aug 28, 2011 5:44 pm

If I want to export I get this error message

Java is installed extra from the link in this message
...
and how I do the Game now embed in my web site ? I had explored the index, but I have no idea.

btw, the Forum preview function here, don't work for me, too
B
21
S
5
G
5
Posts: 163
Reputation: 5,028

Post » Sun Aug 28, 2011 5:49 pm

Are you sure Java is installed? Open a command prompt and type
java -version
What does it say?

If you don't have a website to host your game on, you can try uploading your game to DropBox.
Scirra Founder
B
359
S
214
G
72
Posts: 22,952
Reputation: 178,600

Post » Sun Aug 28, 2011 6:24 pm

"Are you sure Java is installed?"

I installed it on two computers and get the same message every time. The Java webside has checked my system and says yes I have Java installed.

"Die Java-Version wurde berprft
Herzlichen Glckwunsch!
Sie haben die empfohlene Java-Version installiert (Version 6 Update 27)."


"If you don't have a website to host your game on, you can try"

I ask for embed in my website, not for hosting
B
21
S
5
G
5
Posts: 163
Reputation: 5,028

Post » Sun Aug 28, 2011 6:32 pm

errr DropBox isn't hosting. It's a free site for sharing files, that also allows you to upload the full C2 exported files for you and others to try out.
If your vision so exceeds your ability, then look to something closer.
Moderator
B
120
S
28
G
68
Posts: 4,845
Reputation: 48,291

Post » Sun Aug 28, 2011 6:44 pm

[QUOTE=vidi]I ask for embed in my website, not for hosting [/QUOTE]

It depends on the structure of your website.

If it is a CMS or some sort of software of the like you should check its documentation and see how to add html pages.

When you export your C2 project, it creates:
  • index.html
  • c2runtime.js
  • folder images (if you chose so)
  • folder medias (if you chose so)


Anyway, all the files should be copied to your website (put them all in a specific folder. "Spielen" for example).
index.html acts as an entry point to the game. either make a link from your site to this page or modify some of your pages so that:

[code]
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.6.2/jquery.min.js"></script>
<script type="text/javascript" src="c2runtime.js"></script>

<script type="text/javascript">
      // Start the Construct 2 project running on window load.
      jQuery(document).ready(function ()
      {
            // Create new runtime based on the preview canvas element
            var project = new cr.runtime(document.getElementById("c2canvas"));

            // Load and start running
            project.load();
            project.go();
      });
</script>[/code]
appears in the header (between <head></head>).

In the <body></body> part of your page add:
[code]<canvas id="c2canvas" width="X" height="Y" oncontextmenu="return false;">[/code]
where X and Y are the width and height of your application.
This canvas will be the "body" of your game, the frame in which it will be displayed.
New to Construct ? Where to start

Image Image
Image Image

Please attach a capx to any help request or bug report !
Moderator
B
247
S
85
G
40
Posts: 7,000
Reputation: 57,795

Post » Sun Aug 28, 2011 6:59 pm

kyatric,

if this info is generic, as far as placing a c2 element into a web page, then it might make a good tutorial. yes?
B
52
S
17
G
15
Posts: 1,029
Reputation: 26,339

Post » Sun Aug 28, 2011 7:07 pm

"errr DropBox ist nicht Hosting. Es ist eine kostenlose Website fr den Austausch von Dateien, die knnen Sie auch die vollstndige C2 exportierten Dateien fr Sie und andere laden zum Ausprobieren."

Thank you zenox98,but I think it was not my question!

Thank you Kyatric for your help ! :)
B
21
S
5
G
5
Posts: 163
Reputation: 5,028

Post » Sun Aug 28, 2011 7:56 pm

[QUOTE=harrio] kyatric,

if this info is generic, as far as placing a c2 element into a web page, then it might make a good tutorial. yes?[/QUOTE]

Pretty much.
Honestly, I just copied 3 lines from the html file of the exported project.

But yes, I could make a tutorial/explanation later during this week. That could be useful.
New to Construct ? Where to start

Image Image
Image Image

Please attach a capx to any help request or bug report !
Moderator
B
247
S
85
G
40
Posts: 7,000
Reputation: 57,795

Post » Sun Aug 28, 2011 11:59 pm

[QUOTE=Kyatric] [QUOTE=harrio] kyatric,

if this info is generic, as far as placing a c2 element into a web page, then it might make a good tutorial. yes?[/QUOTE]

Pretty much.
Honestly, I just copied 3 lines from the html file of the exported project.

But yes, I could make a tutorial/explanation later during this week. That could be useful.[/QUOTE]

thank you sir...i see 1k rep in your future...lol.
B
52
S
17
G
15
Posts: 1,029
Reputation: 26,339

Post » Mon Aug 29, 2011 8:30 am

"Open a command prompt and type
java -version"

I have search with google,what you mean, but I don't know.

Sorry, I'm an Designer and not a techhead

B
21
S
5
G
5
Posts: 163
Reputation: 5,028

Next

Return to Construct 2 General

Who is online

Users browsing this forum: No registered users and 6 guests