[Plugin] Mouse Lock (v0.5)(UPDATED)

Post your completed addons to share with the community

Post » Thu Jun 12, 2014 1:39 am

@TiAm the mouse lock is not working after I export, It works great in testing but after exporting nothing. Any suggestions?
B
20
S
3
Posts: 67
Reputation: 1,074

Post » Thu Jun 12, 2014 2:30 am

I got to work! You need to uncheck "Minify script" on export. - C2 r172

This plugin helped a lot, Thank You!

My Game: 2030 Robot Invasion
http://www.newgrounds.com/portal/view/640878
B
20
S
3
Posts: 67
Reputation: 1,074

Post » Thu Jun 12, 2014 6:58 pm

@Knight05

Thanks for the heads-up; I must have some code in there that isn't minify compliant. I'll try to get that sorted out.

BTW, left a review/rating on newgrounds.
Don't lose your work. Backup your game with Dropbox.
B
44
S
10
G
10
Posts: 1,106
Reputation: 9,202

Post » Sat Nov 29, 2014 12:25 am

Im having some exportation issues when using this mod(HTML5 and Node Webkit).
When I run my .exe, or try tu run it on my personal server via web, it crashes, and gets me this error:

Uncaught node.js Error

TypeError: undefined is not a function
at h.$l (file:///C:/Users/******/AppData/Local/Temp/nw8976_6686/c2runtime.js:330:428)
at HTMLDocument.<anonymous> (file:///C:/Users/****/AppData/Local/Temp/nw8976_6686/c2runtime.js:328:374)
at HTMLDocument.n.event.dispatch (file:///C:/Users/*****/AppData/Local/Temp/nw8976_6686/jquery-2.1.1.min.js:3:6404)
at HTMLDocument.r.handle (file:///C:/Users/*****/AppData/Local/Temp/nw8976_6686/jquery-2.1.1.min.js:3:3179)

I guess the problem is that there are some temporal files associated to this plugins, and they are not created when I launch the game.
I have also tried to export it without the mouselock plugin, and it works correctly, so It seems the problem is mouselock related.

Could you tell me why is this happening, or in sort of way, tell me how to resolve it?

Much Thanks :D
B
4
Posts: 9
Reputation: 218

Post » Sat Nov 29, 2014 9:35 am

@Karapan

Sorry, but I cannot reproduce on my end.

What version of C2 are you running? What version of windows? Is this error only on export? Have you tried exporting without minification?
Don't lose your work. Backup your game with Dropbox.
B
44
S
10
G
10
Posts: 1,106
Reputation: 9,202

Post » Sat Nov 29, 2014 10:52 am

Okay, it's already solved.
When I got the error I was using Windows 8, with the r90 version of C2.
Just had to uncheck the minification option and now it works correctly.

Thanks again for the help.
B
4
Posts: 9
Reputation: 218

Post » Sat Nov 29, 2014 7:52 pm

@Karapan

Glad it's working for you. However, it should work after minification. I had an issue with this before, but I thought I'd fixed it.

Here's a slightly more recent version of mouse lock. I've exported w/ minification using this version before, it seems to work.

https://www.dropbox.com/s/mici7sws7j0n3 ... .5.7z?dl=0
Don't lose your work. Backup your game with Dropbox.
B
44
S
10
G
10
Posts: 1,106
Reputation: 9,202

Post » Mon Mar 30, 2015 5:35 am

great work !!! ,, that plugin,,,, helped me a lot
thank you !

also I am gonna help u to fix one thing to get v0.6

just change in

document.pointerLockElement

----- > document.pointerLockElement =
document["pointerLockElement"] ||
document["mozPointerLockElement"] ||
document["webkitPointerLockElement"];

..... now it will be working for chrome to detect if pointer is unlocked or not

try it at my forum,,,,, counterstrikestylefps-multiplayergame-join-now-ragdollfun_t126360

its multiplayer game i am working on
B
14
S
2
Posts: 82
Reputation: 1,059

Post » Mon Dec 28, 2015 10:14 am

Great plugin for NW.js games.
But I'm experiencing problems on latest Chrome:
Image
B
55
S
14
G
10
Posts: 287
Reputation: 7,677

Post » Mon Dec 28, 2015 10:28 am

When I updated NW'js to v0.13.0 alpha 7 (Chromium 47), when I'm testing on NW.js my game gives this error:
Image
B
55
S
14
G
10
Posts: 287
Reputation: 7,677

PreviousNext

Return to Completed Addons

Who is online

Users browsing this forum: No registered users and 4 guests