Search found 49 matches

by pauls313
Wed Nov 13, 2019 7:56 pm
Forum: Support and Development
Topic: Why won't this very simple UDP networking work?
Replies: 1
Views: 904

Why won't this very simple UDP networking work?

This is a very very simple attempt at networking with unconnected UDP objects, but I don't understand why it won't work.

Client = sends information
Server = receives information

Press t to change type
by pauls313
Mon Nov 04, 2019 7:08 pm
Forum: Support and Development
Topic: Objects should collide only with one category
Replies: 3
Views: 930

Re: Objects should collide only with one category

You don't need separate bodies, you can set the category and mask PER fixture. Also, you can solve this without using "groups". You need at least 3 categories "head", "feet" and "ball", correspondingly: 0x1, 0x2 and 0x4. The trick would be setting the collision masks correctly. The masks should be:...
by pauls313
Mon Nov 04, 2019 4:26 pm
Forum: Support and Development
Topic: Objects should collide only with one category
Replies: 3
Views: 930

Objects should collide only with one category

I'm making a 2D soccer game, and the players are made of 2 objects: Head and feet. I managed to, using groups, stop the feet and head from colliding with each other. But after adding a second player, I realized that the feet should actually ONLY collide with the ball and nothing else. How can this b...
by pauls313
Sun Apr 14, 2019 6:56 am
Forum: Support and Development
Topic: Cannot create image (OpenGL error: invalid operation)
Replies: 2
Views: 10788

Cannot create image (OpenGL error: invalid operation)

On Android (no problem on Windows), I get this error every time I try to load the attached image file which was made using photoshop. It's quite a low resolution. Why am I getting this error?
by pauls313
Sat Apr 13, 2019 6:51 pm
Forum: Support and Development
Topic: Networking between devices on the same wifi connection
Replies: 7
Views: 6351

Re: Networking between devices on the same wifi connection

Try changing your server code to this: local socket = require "socket" local udp = socket.udp() udp:settimeout(0) udp:setsockname('0.0.0.0', 12345) local data, ip, port function love.update(dt) local msg msg, ip, port = udp:receivefrom() if msg then data = msg end end function love.draw() if data t...
by pauls313
Fri Apr 12, 2019 2:20 am
Forum: Support and Development
Topic: Networking between devices on the same wifi connection
Replies: 7
Views: 6351

Re: Networking between devices on the same wifi connection

Server: local socket = require "socket" local udp = socket.udp() udp:settimeout(0) udp:setsockname('*', 12345) local data, ip, port function love.update(dt) data, ip, port = udp:receivefrom() end function love.draw() if data then love.graphics.print(data, 300, 300) end end Client: local socket = req...
by pauls313
Thu Apr 11, 2019 8:59 pm
Forum: Support and Development
Topic: Networking between devices on the same wifi connection
Replies: 7
Views: 6351

Re: Networking between devices on the same wifi connection

You either need to make a note of your phone and laptop's IP addresses or use the broadcast address "255.255.255.255". "localhost" and "127.0.0.1" both refer to the local machine (your phone in this example). Neither of these work. I've opened the 8090 port on my router but I still can't receive me...
by pauls313
Thu Apr 11, 2019 7:26 pm
Forum: Support and Development
Topic: Networking between devices on the same wifi connection
Replies: 7
Views: 6351

Networking between devices on the same wifi connection

Using LuaSocket Tutorial:Networking_with_UDP, how can I send packets from, say, my phone to my laptop? I've tried using 'localhost', ''127.0.0.1", "192.168.1.0" as addresses but none of these seem to work.
by pauls313
Thu Apr 11, 2019 5:52 pm
Forum: Support and Development
Topic: Löve for Android runs on a different resolution than the native one
Replies: 3
Views: 4183

Re: Löve for Android runs on a different resolution than the native one

I'm not sure if I understand? Using getPixelDimensions I got the actual resolution of my display, but from the looks of it I'm still limited to only 731x411 pixels on the screen (I see some pixel rounding errors). I'm used to making my games adaptive to all screen sizes so making it DPI scalable doe...
by pauls313
Thu Apr 11, 2019 3:39 am
Forum: Support and Development
Topic: Löve for Android runs on a different resolution than the native one
Replies: 3
Views: 4183

Löve for Android runs on a different resolution than the native one

The phone I'm using is a Galaxy A9 Pro 2016 with a display of 1920x1080, but the Löve app is running on a 731x411 resolution I've tried using the love.window.setMode and love.conf to no avail, even though setMode returns true. I have no idea why this is happening, considering it used to run just fin...