Cant load game bootstrap script

3 views
Skip to first unread message

miskovac

unread,
May 2, 2011, 10:27:38 PM5/2/11
to The Render Engine
Hi guys,
I'm playing with Render engine for 2 days, but I went to some issue I
cannot solve by myself. Here is problem:

My project structure is :

/website/
/website/Scripts/ <---- all javascript files are here, and for render
engine I stored it in renderengine subfloder, like below
/website/Scripts/renderengine/ <- renderengine downloaded from
internet (as is)

The rest folders are irrelevant for this question, since I'm using
asp.net MVC for this website. The point is that urls of my pages are
generated by mvc engine, so they are usually like /website/controller/
action/{id} which is out of renderengine lib folder.

In case when I use static page, in /website/Scripts/renderengine/
folder, and make game bootstrap script in same folder, everything
works like a charm, but, If I try to load game in one of asp.net mvc
views I end up with plenty errors (probably dependency issues) and my
bootstrap javascript file never loads, since

Those two lines in renderengine/engine/runtime/engine.js are place on
what I mean Engine.gameLoadTimer's statement (condition)

if (Engine.optionsLoaded && window["DocumentContext"] != null)

is never true.

Anyone?
Thanks,
MJ

miskovac

unread,
May 3, 2011, 2:01:54 PM5/3/11
to The Render Engine
Looks like after 8 hours of debugging in google chrome and sleepover i
finally realized what was causing the problem.

I'm using for this website my old javascript library which contained
extensions to some native prototypes, like array, number .... also it
contained inheritence extension for Function. After which I removed
its reference everything worked. Anyway, thank you for your time :)

MJ
Reply all
Reply to author
Forward
0 new messages