Search found 2247 matches

by zorg
Sat May 19, 2018 8:09 pm
Forum: General
Topic: Status of Multiplayer Mobile Networking
Replies: 17
Views: 355

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: 17
Views: 355

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: 17
Views: 355

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: 4
Views: 121

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: 73

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: 157

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: 9
Views: 239

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: 159

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.
by zorg
Thu May 17, 2018 7:20 am
Forum: Support and Development
Topic: getting : boot.lua:481: Cannot load game at path in windows
Replies: 9
Views: 157

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

Just like with C and a lot of other languages, might i add; main is usually the entrypoint.
by zorg
Thu May 17, 2018 7:19 am
Forum: Support and Development
Topic: Android development and its real world apps
Replies: 20
Views: 2290

Re: Android development and its real world apps

Another successful first necropost, go you! :3 Since 2016, the Android port of löve was made official, so most things will work, without the need to "port" anything.