Search found 1208 matches

by Davidobot
Wed Feb 24, 2021 5:11 pm
Forum: General
Topic: Can a neural network learn to play hockey?
Replies: 6
Views: 333

Re: Can a neural network learn to play hockey?

There are plenty of implementations online. You can either follow the original paper: https://arxiv.org/pdf/1602.01783.pdf Or look at the many pytorch implementations: https://github.com/ikostrikov/pytorch-a3c You'll have to implement a lot of NN functions in Lua though, probably using something lik...
by Davidobot
Tue Feb 23, 2021 3:08 pm
Forum: General
Topic: Can a neural network learn to play hockey?
Replies: 6
Views: 333

Re: Can a neural network learn to play hockey?

Well, on your advice I took a deep dive into AC3 and I can see it is a perfect fit and the next few months will disappear into research, maths and trial and error. Thanks for removing me from my family and life in general. Lolz. :=) Let's see what comes of it. Oops, there was a typo. It is A3C, not...
by Davidobot
Mon Feb 22, 2021 11:31 am
Forum: General
Topic: Can a neural network learn to play hockey?
Replies: 6
Views: 333

Re: Can a neural network learn to play hockey?

Yes, this is doable. Look at reinforcement learning and specifically TD3 or AC3 - it's quite a simple actor-critic model that works on continuous action spaces. If you already have bots, you could task the agent (or a group of them) to play against your bots or against each other.
by Davidobot
Sat Feb 06, 2021 2:08 pm
Forum: Libraries and Tools
Topic: [Library] LövelyMoon v2
Replies: 26
Views: 28566

Re: [Library] LövelyMoon v2

Hi both! That's really cool to see this work live on after so many years :) I'll update the OP as soon as I can.

My github name is the same as my username here and I starred the repo :)
by Davidobot
Wed Feb 03, 2021 11:18 am
Forum: Ports
Topic: Love.js - A Direct Emscripten Port
Replies: 203
Views: 236770

Re: Love.js - A Direct Emscripten Port

The love file has to be in the same folder as the player until we figure this out. Happy Wednesday :) I attached a prototype thing I quickly whipped up that allows anyone to drag-and-drop a .love file into your player and it will run. It's incredibly ugly and I hacked together some code to make it ...
by Davidobot
Tue Feb 02, 2021 7:34 pm
Forum: Ports
Topic: Love.js - A Direct Emscripten Port
Replies: 203
Views: 236770

Re: Love.js - A Direct Emscripten Port

What's the useragent check do Checks if we are using a mobile browser in which case it goes into compatibility mode. Also discovered navigator.deviceMemory which could be used to define and clamp the allocated memory. Got it, thanks! Thanks for the nogame, but I can't get it to run. I get "pthread_...
by Davidobot
Tue Feb 02, 2021 6:49 pm
Forum: Ports
Topic: Love.js - A Direct Emscripten Port
Replies: 203
Views: 236770

Re: Love.js - A Direct Emscripten Port

PS. Yes, I managed to get the cache fixed. Basically I am getting the package size during the xmlrpc request and then storing it in the cache. My solution is hacky but I don't want to rewrite the entire game.js file. I have also added a proper useragent check and the &f=1 parameter which hides the ...
by Davidobot
Tue Feb 02, 2021 3:38 pm
Forum: Ports
Topic: Love.js - A Direct Emscripten Port
Replies: 203
Views: 236770

Re: Love.js - A Direct Emscripten Port

I get the security aspect, but I don't think it's such a necessary precaution here. For example, you can just change https://github.com/Davidobot/love.js/blob/master/src/game.js#L29 and load the "game.data" (which is just a .love file) from any hosted url. The majority of index.js can be cut out if ...
by Davidobot
Tue Feb 02, 2021 1:28 pm
Forum: Ports
Topic: Love.js - A Direct Emscripten Port
Replies: 203
Views: 236770

Re: Love.js - A Direct Emscripten Port

Hey, I decided to work a little bit on the love.js frontend. I think the way love.js game are built (using node.js) is way out of reach for most love2d users. Hi ivan! Thanks for your work on this! I didn't really consider node.js out-of-reach, but this definitely simplifies things for the better. ...
by Davidobot
Fri Jan 29, 2021 1:16 pm
Forum: Support and Development
Topic: question about Love.js security
Replies: 42
Views: 11612

Re: question about Love.js security

Just chiming in as the guy that's supposed to be maintaining love.js. You always risk people cloning your games. Plenty of Flash games have been ripped and hosted on unofficial sites - the general "workaround" was to include your logo/official cite in the game itself. The people ripping the games do...