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 quidmonkey

Hey all-

Impact n00bie here. Been having trouble getting Weitmeister to load for the projects I create. I can load Weitmeister for the included samples (BioLab, physics, pong), but when I clone the impact directory to create my own project and test loading Weitmeister, it never loads (I get the buttons & blank loading bar). I'm guessing I need to configure Weitmeister in some way?

Thanks.

1 decade ago by Alex

What does it say in javascript console?

How to open one - http://impactjs.com/documentation/getting-started

No, you don't need to configure Weltmeister, should work without any extra configuration.

1 decade ago by quidmonkey

That's the kicker. The webserver is setup. The included Impact samples will load Weitmeister fine, but my own projects won't load despite being cloned from the Impact files.

I just tested the following: loaded Weitmeister from Impact (localhost/impact/weltmeister.html) - this loads fine. I copied the Weitmeister files from impact over to my project. I loaded my project - no dice; Weitmeister doesn't load. What am I missing?

1 decade ago by quidmonkey

Here's the error:

Event thread: error
Uncaught exception: Failed to load resource: media/paddle_player.png
Error thrown at line 91, column 3 in <anonymous function: _loadCallback>(path, status) in domain:
throw( 'Failed to load resource: ' + path );
called from line 52, column 2 in <anonymous function: Function.prototype.bind>() in domain:
return self.apply(bind || null, args);
called via Function.prototype.apply() from line 77, column 3 in <anonymous function: onerror>(event) in domain:
this.loadCallback( this.path, false );
called from line 52, column 2 in <anonymous function: Function.prototype.bind>() in domain:
return self.apply(bind || null, args);

I'm at a loss. I tried different images. I verified that for all intents and purposes, my code matches the code in the Pong sample.

1 decade ago by Alex

Well the first error is about paddle_player.png not being able to load, probably missing. Just copy the whole media folder from pong demo to your folder. Not sure about others, try see errors after you copy media folder.

1 decade ago by quidmonkey

I tried one last thing: I torpedoed my code and did a copy/paste from the Pong sample for my paddle, paddle-player and paddle-cpu classes. That resolved that error, but now when I run Weitmeister I get this (Weitmeister still does not load):


[5/17/2011 12:57:47 PM] CSS - http://localhost/AirBreak/lib/weltmeister/weltmeister.css
Linked-in stylesheet
-webkit-font-smoothing is an unknown property
Line 9:
-webkit-font-smoothing: antialiased;
------------------------^
[5/17/2011 12:57:47 PM] CSS - http://localhost/AirBreak/lib/weltmeister/weltmeister.css
Linked-in stylesheet
-webkit-user-select is an unknown property
Line 10:
-webkit-user-select: none;
---------------------^
[5/17/2011 12:57:47 PM] CSS - http://localhost/AirBreak/lib/weltmeister/weltmeister.css
Linked-in stylesheet
xtext-transform is an unknown property
Line 19:
xtext-transform: uppercase;
-----------------^
[5/17/2011 12:57:47 PM] CSS - http://localhost/AirBreak/lib/weltmeister/weltmeister.css
Linked-in stylesheet
xborder-bottom is an unknown property
Line 20:
xborder-bottom: 1px solid #555;
----------------^
[5/17/2011 12:57:47 PM] CSS - http://localhost/AirBreak/lib/weltmeister/weltmeister.css
Linked-in stylesheet
-webkit-font-smoothing is an unknown property
Line 62:
-webkit-font-smoothing: antialiased;
------------------------^
[5/17/2011 12:57:47 PM] CSS - http://localhost/AirBreak/lib/weltmeister/weltmeister.css
Linked-in stylesheet
-webkit-transition is an unknown property
Line 96:
-webkit-transition: 0.1s linear;
--------------------^
[5/17/2011 12:57:47 PM] CSS - http://localhost/AirBreak/lib/weltmeister/weltmeister.css
Linked-in stylesheet
-webkit-interpolation-mode is an unknown property
Line 128:
-webkit-interpolation-mode: nearest-neighbor;
----------------------------^
[5/17/2011 12:57:47 PM] CSS - http://localhost/AirBreak/lib/weltmeister/weltmeister.css
Linked-in stylesheet
-webkit-transition is an unknown property
Line 161:
-webkit-transition: 0.1s linear;
--------------------^
[5/17/2011 12:57:47 PM] CSS - http://localhost/AirBreak/lib/weltmeister/weltmeister.css
Linked-in stylesheet
-webkit-font-smoothing is an unknown property
Line 162:
-webkit-font-smoothing: none;
------------------------^
[5/17/2011 12:57:47 PM] CSS - http://localhost/AirBreak/lib/weltmeister/weltmeister.css
Linked-in stylesheet
-webkit-transition is an unknown property
Line 171:
-webkit-transition: background-color 0.1s linear;
--------------------^
[5/17/2011 12:57:47 PM] CSS - http://localhost/AirBreak/lib/weltmeister/weltmeister.css
Linked-in stylesheet
-webkit-transition is an unknown property
Line 205:
-webkit-transition: 0.1s linear;
--------------------^
[5/17/2011 12:57:47 PM] CSS - http://localhost/AirBreak/lib/weltmeister/weltmeister.css
Linked-in stylesheet
-webkit-box-shadow is an unknown property
Line 296:
-webkit-box-shadow:0px 0px 10px rgba(0,0,0,1);
--------------------^
[5/17/2011 12:57:47 PM] CSS - http://localhost/AirBreak/lib/weltmeister/weltmeister.css
Linked-in stylesheet
-webkit-transition is an unknown property
Line 306:
-webkit-transition: 0.1s linear;
--------------------^
[5/17/2011 12:57:47 PM] CSS - http://localhost/AirBreak/lib/weltmeister/weltmeister.css
Linked-in stylesheet
-webkit-box-shadow is an unknown property
Line 324:
-webkit-box-shadow: 0px 0px 10px rgba(0,0,0,1);
--------------------^
[5/17/2011 12:57:47 PM] CSS - http://localhost/AirBreak/lib/weltmeister/weltmeister.css
Linked-in stylesheet
-webkit-box-shadow is an unknown property
Line 358:
-webkit-box-shadow: 0px 0px 10px rgba(0,0,0,1);
--------------------^
[5/17/2011 12:57:47 PM] CSS - http://localhost/AirBreak/lib/weltmeister/weltmeister.css
Linked-in stylesheet
Unrecognized function
Line 398:
ckground: -webkit-gradient(linear, left bottom, left top, color-stop(0,#000000),
--------------------------------------------------------------------------------^
[5/17/2011 12:57:47 PM] CSS - http://localhost/AirBreak/lib/weltmeister/weltmeister.css
Linked-in stylesheet
Unrecognized function
Line 398:
ent(linear, left bottom, left top, color-stop(0,#000000), color-stop(1,#2e3033))
--------------------------------------------------------------------------------^
[5/17/2011 12:57:47 PM] CSS - http://localhost/AirBreak/lib/weltmeister/weltmeister.css
Linked-in stylesheet
Unrecognized function
Line 398:
nt(linear, left bottom, left top, color-stop(0,#000000), color-stop(1,#2e3033));
--------------------------------------------------------------------------------^
[5/17/2011 12:57:47 PM] CSS - http://localhost/AirBreak/lib/weltmeister/weltmeister.css
Linked-in stylesheet
Invalid value for property: background
Line 398:
nt(linear, left bottom, left top, color-stop(0,#000000), color-stop(1,#2e3033));
--------------------------------------------------------------------------------^
[5/17/2011 12:57:47 PM] CSS - http://localhost/AirBreak/lib/weltmeister/weltmeister.css
Linked-in stylesheet
Unrecognized function
Line 399:
background: -moz-linear-gradient(center bottom, #000000 0%, #2e3033 100%);
---------------------------------------------------------------------------^
[5/17/2011 12:57:47 PM] CSS - http://localhost/AirBreak/lib/weltmeister/weltmeister.css
Linked-in stylesheet
Invalid value for property: background
Line 399:
background: -moz-linear-gradient(center bottom, #000000 0%, #2e3033 100%);
---------------------------------------------------------------------------^
[5/17/2011 12:57:47 PM] CSS - http://localhost/AirBreak/lib/weltmeister/weltmeister.css
Linked-in stylesheet
-webkit-transition is an unknown property
Line 431:
-webkit-transition: 0s linear;
--------------------^
[5/17/2011 12:57:47 PM] CSS - http://localhost/AirBreak/lib/weltmeister/weltmeister.css
Linked-in stylesheet
-webkit-appearance is an unknown property
Line 447:
-webkit-appearance: none;
--------------------^
[5/17/2011 12:57:47 PM] CSS - http://localhost/AirBreak/lib/weltmeister/weltmeister.css
Linked-in stylesheet
-webkit-transition is an unknown property
Line 448:
-webkit-transition: 0.1s linear;
--------------------^
[5/17/2011 12:57:47 PM] CSS - http://localhost/AirBreak/lib/weltmeister/weltmeister.css
Linked-in stylesheet
"::" not followed by known pseudo element
Line 460:
::-webkit-scrollbar { width: 2px; }
-------------------^
[5/17/2011 12:57:47 PM] CSS - http://localhost/AirBreak/lib/weltmeister/weltmeister.css
Linked-in stylesheet
"::" not followed by known pseudo element
Line 461:
::-webkit-scrollbar-button:start:decrement,
--------------------------^
[5/17/2011 12:57:47 PM] CSS - http://localhost/AirBreak/lib/weltmeister/weltmeister.css
Linked-in stylesheet
Unknown pseudo class
Line 461:
::-webkit-scrollbar-button:start:decrement,
--------------------------------^
[5/17/2011 12:57:47 PM] CSS - http://localhost/AirBreak/lib/weltmeister/weltmeister.css
Linked-in stylesheet
Unknown pseudo class
Line 461:
::-webkit-scrollbar-button:start:decrement,
------------------------------------------^
[5/17/2011 12:57:47 PM] CSS - http://localhost/AirBreak/lib/weltmeister/weltmeister.css
Linked-in stylesheet
"::" not followed by known pseudo element
Line 462:
::-webkit-scrollbar-button:end:increment { display: block; height: 2px; }
--------------------------^
[5/17/2011 12:57:47 PM] CSS - http://localhost/AirBreak/lib/weltmeister/weltmeister.css
Linked-in stylesheet
Unknown pseudo class
Line 462:
::-webkit-scrollbar-button:end:increment { display: block; height: 2px; }
------------------------------^
[5/17/2011 12:57:47 PM] CSS - http://localhost/AirBreak/lib/weltmeister/weltmeister.css
Linked-in stylesheet
Unknown pseudo class
Line 462:
::-webkit-scrollbar-button:end:increment { display: block; height: 2px; }
----------------------------------------^
[5/17/2011 12:57:47 PM] CSS - http://localhost/AirBreak/lib/weltmeister/weltmeister.css
Linked-in stylesheet
"::" not followed by known pseudo element
Line 463:
::-webkit-scrollbar-button:vertical:increment { background-color: transparent; }
--------------------------^
[5/17/2011 12:57:47 PM] CSS - http://localhost/AirBreak/lib/weltmeister/weltmeister.css
Linked-in stylesheet
Unknown pseudo class
Line 463:
::-webkit-scrollbar-button:vertical:increment { background-color: transparent; }
-----------------------------------^
[5/17/2011 12:57:47 PM] CSS - http://localhost/AirBreak/lib/weltmeister/weltmeister.css
Linked-in stylesheet
Unknown pseudo class
Line 463:
::-webkit-scrollbar-button:vertical:increment { background-color: transparent; }
---------------------------------------------^
[5/17/2011 12:57:47 PM] CSS - http://localhost/AirBreak/lib/weltmeister/weltmeister.css
Linked-in stylesheet
"::" not followed by known pseudo element
Line 464:
::-webkit-scrollbar-track-piece { background-color: rgba(0,0,0,0); }
-------------------------------^
[5/17/2011 12:57:47 PM] CSS - http://localhost/AirBreak/lib/weltmeister/weltmeister.css
Linked-in stylesheet
"::" not followed by known pseudo element
Line 465:
::-webkit-scrollbar-thumb:vertical { background-color: rgba(255,255,255,1); }
-------------------------^
[5/17/2011 12:57:47 PM] CSS - http://localhost/AirBreak/lib/weltmeister/weltmeister.css
Linked-in stylesheet
Unknown pseudo class
Line 465:
::-webkit-scrollbar-thumb:vertical { background-color: rgba(255,255,255,1); }
----------------------------------^
[5/17/2011 12:57:48 PM] JavaScript - http://jxyzzy1.com/abe/DEV/AirBreak/lib/game/entities/puck.js

Linked script not loaded
[5/17/2011 12:59:22 PM] CSS - http://localhost/AirBreak/lib/weltmeister/weltmeister.css
Linked-in stylesheet
-webkit-font-smoothing is an unknown property
Line 9:
-webkit-font-smoothing: antialiased;
------------------------^
[5/17/2011 12:59:22 PM] CSS - http://localhost/AirBreak/lib/weltmeister/weltmeister.css
Linked-in stylesheet
-webkit-user-select is an unknown property
Line 10:
-webkit-user-select: none;
---------------------^
[5/17/2011 12:59:22 PM] CSS - http://localhost/AirBreak/lib/weltmeister/weltmeister.css
Linked-in stylesheet
xtext-transform is an unknown property
Line 19:
xtext-transform: uppercase;
-----------------^
[5/17/2011 12:59:22 PM] CSS - http://localhost/AirBreak/lib/weltmeister/weltmeister.css
Linked-in stylesheet
xborder-bottom is an unknown property
Line 20:
xborder-bottom: 1px solid #555;
----------------^
[5/17/2011 12:59:22 PM] CSS - http://localhost/AirBreak/lib/weltmeister/weltmeister.css
Linked-in stylesheet
-webkit-font-smoothing is an unknown property
Line 62:
-webkit-font-smoothing: antialiased;
------------------------^
[5/17/2011 12:59:22 PM] CSS - http://localhost/AirBreak/lib/weltmeister/weltmeister.css
Linked-in stylesheet
-webkit-transition is an unknown property
Line 96:
-webkit-transition: 0.1s linear;
--------------------^
[5/17/2011 12:59:22 PM] CSS - http://localhost/AirBreak/lib/weltmeister/weltmeister.css
Linked-in stylesheet
-webkit-interpolation-mode is an unknown property
Line 128:
-webkit-interpolation-mode: nearest-neighbor;
----------------------------^
[5/17/2011 12:59:22 PM] CSS - http://localhost/AirBreak/lib/weltmeister/weltmeister.css
Linked-in stylesheet
-webkit-transition is an unknown property
Line 161:
-webkit-transition: 0.1s linear;
--------------------^
[5/17/2011 12:59:22 PM] CSS - http://localhost/AirBreak/lib/weltmeister/weltmeister.css
Linked-in stylesheet
-webkit-font-smoothing is an unknown property
Line 162:
-webkit-font-smoothing: none;
------------------------^
[5/17/2011 12:59:22 PM] CSS - http://localhost/AirBreak/lib/weltmeister/weltmeister.css
Linked-in stylesheet
-webkit-transition is an unknown property
Line 171:
-webkit-transition: background-color 0.1s linear;
--------------------^
[5/17/2011 12:59:22 PM] CSS - http://localhost/AirBreak/lib/weltmeister/weltmeister.css
Linked-in stylesheet
-webkit-transition is an unknown property
Line 205:
-webkit-transition: 0.1s linear;
--------------------^
[5/17/2011 12:59:22 PM] CSS - http://localhost/AirBreak/lib/weltmeister/weltmeister.css
Linked-in stylesheet
-webkit-box-shadow is an unknown property
Line 296:
-webkit-box-shadow:0px 0px 10px rgba(0,0,0,1);
--------------------^
[5/17/2011 12:59:22 PM] CSS - http://localhost/AirBreak/lib/weltmeister/weltmeister.css
Linked-in stylesheet
-webkit-transition is an unknown property
Line 306:
-webkit-transition: 0.1s linear;
--------------------^
[5/17/2011 12:59:22 PM] CSS - http://localhost/AirBreak/lib/weltmeister/weltmeister.css
Linked-in stylesheet
-webkit-box-shadow is an unknown property
Line 324:
-webkit-box-shadow: 0px 0px 10px rgba(0,0,0,1);
--------------------^
[5/17/2011 12:59:22 PM] CSS - http://localhost/AirBreak/lib/weltmeister/weltmeister.css
Linked-in stylesheet
-webkit-box-shadow is an unknown property
Line 358:
-webkit-box-shadow: 0px 0px 10px rgba(0,0,0,1);
--------------------^
[5/17/2011 12:59:22 PM] CSS - http://localhost/AirBreak/lib/weltmeister/weltmeister.css
Linked-in stylesheet
Unrecognized function
Line 398:
ckground: -webkit-gradient(linear, left bottom, left top, color-stop(0,#000000),
--------------------------------------------------------------------------------^
[5/17/2011 12:59:22 PM] CSS - http://localhost/AirBreak/lib/weltmeister/weltmeister.css
Linked-in stylesheet
Unrecognized function
Line 398:
ent(linear, left bottom, left top, color-stop(0,#000000), color-stop(1,#2e3033))
--------------------------------------------------------------------------------^
[5/17/2011 12:59:22 PM] CSS - http://localhost/AirBreak/lib/weltmeister/weltmeister.css
Linked-in stylesheet
Unrecognized function
Line 398:
nt(linear, left bottom, left top, color-stop(0,#000000), color-stop(1,#2e3033));
--------------------------------------------------------------------------------^
[5/17/2011 12:59:22 PM] CSS - http://localhost/AirBreak/lib/weltmeister/weltmeister.css
Linked-in stylesheet
Invalid value for property: background
Line 398:
nt(linear, left bottom, left top, color-stop(0,#000000), color-stop(1,#2e3033));
--------------------------------------------------------------------------------^
[5/17/2011 12:59:22 PM] CSS - http://localhost/AirBreak/lib/weltmeister/weltmeister.css
Linked-in stylesheet
Unrecognized function
Line 399:
background: -moz-linear-gradient(center bottom, #000000 0%, #2e3033 100%);
---------------------------------------------------------------------------^
[5/17/2011 12:59:22 PM] CSS - http://localhost/AirBreak/lib/weltmeister/weltmeister.css
Linked-in stylesheet
Invalid value for property: background
Line 399:
background: -moz-linear-gradient(center bottom, #000000 0%, #2e3033 100%);
---------------------------------------------------------------------------^
[5/17/2011 12:59:22 PM] CSS - http://localhost/AirBreak/lib/weltmeister/weltmeister.css
Linked-in stylesheet
-webkit-transition is an unknown property
Line 431:
-webkit-transition: 0s linear;
--------------------^
[5/17/2011 12:59:22 PM] CSS - http://localhost/AirBreak/lib/weltmeister/weltmeister.css
Linked-in stylesheet
-webkit-appearance is an unknown property
Line 447:
-webkit-appearance: none;
--------------------^
[5/17/2011 12:59:22 PM] CSS - http://localhost/AirBreak/lib/weltmeister/weltmeister.css
Linked-in stylesheet
-webkit-transition is an unknown property
Line 448:
-webkit-transition: 0.1s linear;
--------------------^
[5/17/2011 12:59:22 PM] CSS - http://localhost/AirBreak/lib/weltmeister/weltmeister.css
Linked-in stylesheet
"::" not followed by known pseudo element
Line 460:
::-webkit-scrollbar { width: 2px; }
-------------------^
[5/17/2011 12:59:22 PM] CSS - http://localhost/AirBreak/lib/weltmeister/weltmeister.css
Linked-in stylesheet
"::" not followed by known pseudo element
Line 461:
::-webkit-scrollbar-button:start:decrement,
--------------------------^
[5/17/2011 12:59:22 PM] CSS - http://localhost/AirBreak/lib/weltmeister/weltmeister.css
Linked-in stylesheet
Unknown pseudo class
Line 461:
::-webkit-scrollbar-button:start:decrement,
--------------------------------^
[5/17/2011 12:59:22 PM] CSS - http://localhost/AirBreak/lib/weltmeister/weltmeister.css
Linked-in stylesheet
Unknown pseudo class
Line 461:
::-webkit-scrollbar-button:start:decrement,
------------------------------------------^
[5/17/2011 12:59:22 PM] CSS - http://localhost/AirBreak/lib/weltmeister/weltmeister.css
Linked-in stylesheet
"::" not followed by known pseudo element
Line 462:
::-webkit-scrollbar-button:end:increment { display: block; height: 2px; }
--------------------------^
[5/17/2011 12:59:22 PM] CSS - http://localhost/AirBreak/lib/weltmeister/weltmeister.css
Linked-in stylesheet
Unknown pseudo class
Line 462:
::-webkit-scrollbar-button:end:increment { display: block; height: 2px; }
------------------------------^
[5/17/2011 12:59:22 PM] CSS - http://localhost/AirBreak/lib/weltmeister/weltmeister.css
Linked-in stylesheet
Unknown pseudo class
Line 462:
::-webkit-scrollbar-button:end:increment { display: block; height: 2px; }
----------------------------------------^
[5/17/2011 12:59:22 PM] CSS - http://localhost/AirBreak/lib/weltmeister/weltmeister.css
Linked-in stylesheet
"::" not followed by known pseudo element
Line 463:
::-webkit-scrollbar-button:vertical:increment { background-color: transparent; }
--------------------------^
[5/17/2011 12:59:22 PM] CSS - http://localhost/AirBreak/lib/weltmeister/weltmeister.css
Linked-in stylesheet
Unknown pseudo class
Line 463:
::-webkit-scrollbar-button:vertical:increment { background-color: transparent; }
-----------------------------------^
[5/17/2011 12:59:22 PM] CSS - http://localhost/AirBreak/lib/weltmeister/weltmeister.css
Linked-in stylesheet
Unknown pseudo class
Line 463:
::-webkit-scrollbar-button:vertical:increment { background-color: transparent; }
---------------------------------------------^
[5/17/2011 12:59:22 PM] CSS - http://localhost/AirBreak/lib/weltmeister/weltmeister.css
Linked-in stylesheet
"::" not followed by known pseudo element
Line 464:
::-webkit-scrollbar-track-piece { background-color: rgba(0,0,0,0); }
-------------------------------^
[5/17/2011 12:59:22 PM] CSS - http://localhost/AirBreak/lib/weltmeister/weltmeister.css
Linked-in stylesheet
"::" not followed by known pseudo element
Line 465:
::-webkit-scrollbar-thumb:vertical { background-color: rgba(255,255,255,1); }
-------------------------^
[5/17/2011 12:59:22 PM] CSS - http://localhost/AirBreak/lib/weltmeister/weltmeister.css
Linked-in stylesheet
Unknown pseudo class
Line 465:
::-webkit-scrollbar-thumb:vertical { background-color: rgba(255,255,255,1); }
----------------------------------^
[5/17/2011 12:59:23 PM] JavaScript - http://localhost/AirBreak/lib/game/entities/puck.js

Linked script not loaded

1 decade ago by Hareesun

Out of interest, browse and operating system? I wrote a good chunk of the CSS that is coming back in error.

1 decade ago by quidmonkey

I'm running WAMP on Windows 7 with Opera 11.10. Here's a pic of my dragonfly. I cloned the Pong game entirely, but using my media and tweaking paddle.js, paddle-player.js and game.js. I removed both puck.js and level/main.js. If somethings wrong, it's in there.

1 decade ago by Alex

I dont see a loading bar. Does 'Load' button work? Main.js is the most important file of the engine. It should not be removed, ever. Your game is working without it?!

1 decade ago by Hareesun

@quidmonkey Somewhere along the line something is missing or broken. If you can load the Weltmeister at all through the sample code, then that's not the problem.

Rather than just copying across the whole demo bit by bit, try building on it. Or you could just go watch the tutorial video's on the site here and here

1 decade ago by Hareesun

Quote from Alex
I dont see a loading bar. Does 'Load' button work? Main.js is the most important file of the engine. It should not be removed, ever. Your game is working without it?!

What do you mean you don't see a loading bar? Once again, browser and OS?

1 decade ago by Alex

Quote from Hareesun
What do you mean you don't see a loading bar? Once again, browser and OS?

He said "I get the buttons & blank loading bar". I don't see a loading bar at all, neither blank, half or full. Maybe Weltmeister did load, but just didn't load any levels. I don't know how well he knows how to use Weltmeister.

He said "I'm running WAMP on Windows 7 with Opera 11.10." :)

I still don't get it, why delete main.js and how can the game work? Game class is created there, draw, load level, etc...

1 decade ago by quidmonkey

Let's try a slightly different tack: I cloned Pong, deleted puck.png and puck.js. In game/main.js, I commented out the 'game.entities.puck' and 'game.levels.main'. I also commented out the Update() method in paddle-cpu.js (because of the puck.js reference). When I do this, Weitmeister doesn't load (no loading bar, clicking the buttons does nothing), and the Javascript console shows something similar to the pic I linked to above. Why?

1 decade ago by Alex

Please burn your Opera, use Chrome. www.google.com/chrome Or when viewing errors in Opera, make sure to click on JavaScript tab, not All or CSS.

Your error is:
Uncaught Failed to load module game.entities.puck at lib/game/entities/puck.js required from game.entities.paddle-cpu

Because in paddle-cpu.js on line 6 it requires puck entity, the one you deleted. Remove the whole line and a comma on line above.

Make sure you know how to use/view JavaScript error console. This is a very basic error that took us 2 days and 13 replies to resolve, should be done in <10 seconds.

1 decade ago by quidmonkey

Classy.

I deleted the the line you mentioned. Chrome's Javascript console gives me this:

Uncaught Failed to load resource: media/paddle-red.png
Uncaught Failed to load resource: media/paddle-blue.png

Both .png's exist in the media directory. Again, this was cloned from the Pong sample & I haven't touch the directory structure nor the Weltmeister config.js.

1 decade ago by Hareesun

Check and check again. If they're there there's no reason they shouldn't load (loads of alliteration!)

1 decade ago by MikeL

@quidmonkey. What Alex instructed should work. Are you sure you removed the comma at the end of line 5? Following exactly as above the code should appear as follows:
ig.module(
	'game.entities.paddle-cpu'
)
.requires(
	'game.entities.paddle'
	//'game.entities.puck'
)
.defines(function(){

EntityPaddleCpu = EntityPaddle.extend({
/*	
	update: function() {
		
		var puck = ig.game.getEntitiesByType( EntityPuck )[0];
		
		if( puck.pos.y + puck.size.y/2 > this.pos.y + this.size.y/2 ) {
			this.vel.y = 100;
		}
		else {
			this.vel.y = -100;
		}
		
		this.parent();
	}
  */
});

});

If all else fails, you may have to wait for the Wizard of Impact - otherwise known as Dominic - to return from his trip to help you out.
Page 1 of 1
« first « previous next › last »