Impact

This forum is read only and just serves as an archive. If you have any questions, please post them on github.com/phoboslab/impact

1 decade ago by CACUser

I have a game that was developed using impactjs . I have copied the files under entities and levels folders. When I launch Weltmeister I get the screen untitled.js. When I click load I get an error "impact/lib/game/levels/?nocache=0.6800337862223387 403 (Forbidden)". I am not running this from the localhost but from the staging server hosted by the ISP - they have Apache and php. Any idea how I can open the game in Weltmeister?

Thanks.

1 decade ago by BlackDolphinMedia

no file permissions for that folder ?

1 decade ago by CACUser

How do I set the correct file permissions when Apache and php is used. As I said I am using the staging server and do not have as much control as I would have if I had a local server setup. Maybe I should go the local server route...

1 decade ago by dominic

Usually you can set file permissions through your FTP Client. Google has more info: http://www.google.com/search?q=chmod+ftp :)

PHP needs write (to save) and execute (to load directory contents) permissions on the level directory.

1 decade ago by CACUser

Thanks. I am unable to set permissions at the hosting server (its against their policy to have write permission),so I am now running it on a localserver. I am trying to use the code from the Pong game. Now I get an error "Uncaught syntax error unexpected token > in the jquery file. any ieda how this can be resolved?

1 decade ago by dominic

Does your development server run PHP? Try creating a file called info.php in your webserver's htdocs/ with the following contents:

<?php phpinfo(); ?>

When you navigate your browser to this file ( http://localhost/info.php ) it should give you detailed information of you PHP version.

If it doesn't, install PHP. See Getting Started for some help with that.

Edit: Just saw your answer in this thread :F If you error message is really the same, it's likely a problem with PHP. Are you sure PHP is working correctly? Which PHP version does your info.php report?

1 decade ago by CACUser

It is PHP Version 5.3.0. The exact error message is "Uncaught Syntax Error: Unexpected Token <" in jquery min at 248. On expanding this is the error:
jquery-1.4.2.min.js:248Uncaught SyntaxError: Unexpected token <
$.parseJSONjquery-1.4.2.min.js:248
wm.Weltmeister.ig.Class.extend.loadResponseweltmeister.js:248
(anonymous function)impact.js:54
bjquery-1.4.2.min.js:124
c.extend.ajax.g.x.onreadystatechangejquery-1.4.2.min.js:129
c.extend.ajaxjquery-1.4.2.min.js:130
wm.Weltmeister.ig.Class.extend.loadweltmeister.js:235
wm.Weltmeister.ig.Class.extend.initweltmeister.js:120
Classimpact.js:423
wm.Loader.ig.Loader.extend.endweltmeister.js:814
(anonymous function)

Thanks for looking into this.
Page 1 of 1
« first « previous next › last »