Search found 2249 matches

by zorg
Mon May 21, 2018 10:16 pm
Forum: Support and Development
Topic: Saving/Loading big map table
Replies: 2
Views: 15

Re: Saving/Loading big map table

coroutines are fine, but you'll need to yield in love.update, since love.load only gets called once at startup.
otherwise you could use actual threads, but that's more complicated.

as for the bitser thing, it may or may not have a bug with large amounts of data...
by zorg
Mon May 21, 2018 7:58 pm
Forum: Support and Development
Topic: need help !
Replies: 11
Views: 285

Re: need help !

Löve is somewhat suitable for non-game applications; to be blunt about it, it's not the framework's fault you don't have the necessary knowledge to write something in it. You don't need to "slow down" love.update, you need to learn what dt is, and how to use it. dt is basically the amount of time pa...
by zorg
Sat May 19, 2018 8:09 pm
Forum: General
Topic: Status of Multiplayer Mobile Networking
Replies: 19
Views: 469

Re: Status of Multiplayer Mobile Networking

I don't know any sock.lua, but if it's using enet from before 0.11 nightlies, then it might still expect enet to set a global variable (called enet) and expects it to work like that; it doesn't anymore, that was bad coding style. You can check and just edit it so it'll be a file-local instead.
by zorg
Sat May 19, 2018 7:56 pm
Forum: General
Topic: Status of Multiplayer Mobile Networking
Replies: 19
Views: 469

Re: Status of Multiplayer Mobile Networking

yeah as far as I know Löve android is on a high level EXACTLY the same thing as the desktop version, so if he is just talking about multiplayer he would just have to code it the exact same way as on PC. Yes, the code should be similar. There are pre-built binaries for Enet on Windows, though, and I...
by zorg
Sat May 19, 2018 7:00 pm
Forum: General
Topic: Status of Multiplayer Mobile Networking
Replies: 19
Views: 469

Re: Status of Multiplayer Mobile Networking

Thanks for the reply. That's helpful information. No it's not, when it gets misinterpreted. Correct me if i'm wrong, since i don't do much android or ios development but, doesn't all officially supported löve platforms include all 3rd party libs? Enet and luasocket both should exist on the mobile p...
by zorg
Fri May 18, 2018 11:37 am
Forum: Support and Development
Topic: get set vs properties, whether they are a good idea
Replies: 9
Views: 246

Re: get set vs properties, whether they are a good idea

What do you mean by löve not using properities? I'm pretty sure both the Data and Object supertypes, and their subtypes both have tons of members, and getter and setter methods as well; case in point, SoundData has :getSample and :setSample, to name two. As for whether it makes sense to use getters ...
by zorg
Thu May 17, 2018 6:19 pm
Forum: Support and Development
Topic: love.getVersion returns wrong (?) values
Replies: 1
Views: 91

Re: love.getVersion returns wrong (?) values

Yes, the current löve version is 11.1(.0), not 0.11.1
by zorg
Thu May 17, 2018 8:55 am
Forum: Support and Development
Topic: getting : boot.lua:481: Cannot load game at path in windows
Replies: 9
Views: 163

Re: getting : boot.lua:481: Cannot load game at path in windows

i dont know lua , but in C / java / what ever you dont need your file named "main" the entry point only is "main" what if i want my game file called "myGame.lua"? Then you'd name your love file (which is a zip) myGame.love So, to sum up... the FOLDER is what Love2d sees as the "application" (whethe...
by zorg
Thu May 17, 2018 8:46 am
Forum: Support and Development
Topic: need help !
Replies: 11
Views: 285

Re: need help !

drunken_munki wrote:
Thu May 17, 2018 7:44 am
But his question is "why its equal to 1?" The tests I ran gave me -100 or 100, so I don't know why he is getting '1' unless he is modiying the var somewhere else.
He asked about the "math.random(2) == 1" part though, from what i could tell.
by zorg
Thu May 17, 2018 7:24 am
Forum: Libraries and Tools
Topic: a working setColor compatibilty multiplier
Replies: 4
Views: 198

Re: a working setColor compatibilty multiplier

I'm not sure why it would be either floored or rounded; 1/255 is 0.00392156862, and that should work. Löve uses luaJIT by default, so you don't even need to do bull like 1.0/255.0 for explicit non-integers either, like what the newer lua versions would assume you'd *want* to do.