Search found 25 matches

by cohadar
Sun May 24, 2015 7:02 pm
Forum: General
Topic: Server and security
Replies: 26
Views: 2866

Re: Server and security

Not all problems with software should be solved with software.
by cohadar
Sun May 24, 2015 6:58 pm
Forum: General
Topic: love.filesystem is a MUST in threads
Replies: 6
Views: 812

Re: love.filesystem is a MUST in threads

What I don't understand is why user require paths in threads don't work if love.filesystem is not included.
I "see" how it can be related, but still, it is extremely non-intuitive.

I updated the thread wiki with a new notice.
by cohadar
Sun May 24, 2015 8:23 am
Forum: General
Topic: love.filesystem is a MUST in threads
Replies: 6
Views: 812

love.filesystem is a MUST in threads

If you do not require "love.filesystem" in threads than user require calls do not work! Does NOT work require "enet" require "love.timer" local tank = require "tank" -- fails with module not found Works!!!? require "enet" require "love.timer" require "love.filesystem" local tank = require "tank" -- ...
by cohadar
Mon May 11, 2015 4:22 am
Forum: General
Topic: A Color Replacing Shader?
Replies: 8
Views: 1832

Re: A Color Replacing Shader?

What I was wondering is if it was possible to set some kind of sentinel rgb value color that I could then replace with the player's corresponding color, significantly cutting down on my art workflow. Yes, Blizzard did exactly this in warcraft 2 for example. They had 4 different shades of grey that ...
by cohadar
Sun May 10, 2015 5:06 am
Forum: General
Topic: Hi, i don't really know how to solve my problem
Replies: 9
Views: 1029

Re: Hi, i don't really know how to solve my problem

tile types in your map: [0]walls that are inside/invisible [1]walls visible by player (adjecent to floor tiles) [2]floor tiles To "see" what I mean, turn on alg_3 than instead of this: function tile_alg_3(tile,objects,x_index,y_index) if tile == 1 then do this: function tile_alg_3(tile,objects,x_ind...
by cohadar
Sat May 09, 2015 10:13 pm
Forum: Support and Development
Topic: Font properties are not working properly
Replies: 7
Views: 1025

Font properties are not working properly

I am getting bad values for fontHeight, fontAscent and fontDescent (on multiple fonts)
by cohadar
Sat May 09, 2015 9:27 pm
Forum: General
Topic: xkcd colors
Replies: 0
Views: 517

xkcd colors

https://github.com/cohadar/xkcd-color-lua/blob/master/rgb.lua In combination with for example this: ------------------------------------------------------------------------------- function setColor( name ) local color = rgb[ name ] if color then love.graphics.setColor( color.r, color.g, color.b ) el...
by cohadar
Sat May 09, 2015 6:08 pm
Forum: General
Topic: Hi, i don't really know how to solve my problem
Replies: 9
Views: 1029

Re: Hi, i don't really know how to solve my problem

I donwloaded the code and took a serious look. ALL your algorithms are correct. Your error is in iteration: for y_index,value in ipairs(map) do for x_index,tile in ipairs(value) do EDIT: to be more precise your tile data is not correct. previous algorithm for detecting which walls are invisible (til...
by cohadar
Sat May 09, 2015 10:25 am
Forum: General
Topic: Server and security
Replies: 26
Views: 2866

Re: Server and security

You can't, and it has nothing to do with open-source. Basically you have untrusted clients and encryption does not provide trust, just communication safety. Even Blizzard cannot do this, and they have waaay more resources than you. Unless of course you want to force your users to install "monitoring...
by cohadar
Sat May 09, 2015 10:08 am
Forum: General
Topic: Hi, i don't really know how to solve my problem
Replies: 9
Views: 1029

Re: Hi, i don't really know how to solve my problem

I recommend you make an "overkill" algorithm for this.
You add 4 edge shapes on every wall tile (even inside walls)
And after that a prune algorithm that removes unnecessary edges inside walls.

Sometimes it does not pay to be too smart with algorithms.