Search found 20 matches

by FlashFire
Wed Jul 08, 2015 6:15 pm
Forum: Support and Development
Topic: Get Screen size is incorrect?
Replies: 4
Views: 3070

Re: Get Screen size is incorrect?

Fullscreen Desktop mode still uses window's scaling. The only change is I can't set the screen resolution, it is constantly 2133 by 1200. On the bright side though, love.graphics.getWidth and getHeight both work correctly. I guess I could probably get away with love.graphics.scale(), was hoping for ...
by FlashFire
Wed Jul 08, 2015 4:15 pm
Forum: Support and Development
Topic: Get Screen size is incorrect?
Replies: 4
Views: 3070

Re: Get Screen size is incorrect?

Ah, I found the reason, I have the scaling(Size of text and other elements) level on my PC to be 150%. So Love2d apparently uses that when it draws the screen. So the screen maybe 1920x1080, but with scaling a 150% 1280x720 are all that would show on the screen. Would there be a way to check the tru...
by FlashFire
Wed Jul 08, 2015 11:06 am
Forum: Support and Development
Topic: Get Screen size is incorrect?
Replies: 4
Views: 3070

Get Screen size is incorrect?

For A game I'm making, I am forcing it to be lower resolution than the max resolution(for high resolution systems), so the max resolution is 1920x1080p. My laptop runs at 3200x1800, so in conf.lua I changed the settings for fullscreen = true, width = 1920, height = 1080. So this should make the scre...
by FlashFire
Mon Jun 01, 2015 2:00 pm
Forum: Support and Development
Topic: Same indexes in table?
Replies: 9
Views: 5136

Re: Same indexes in table?

From what I could tell, if you have any zeroes or negative numbers as keys in your table they will get converted to strings and added to table, that later on creates the JSON object. However if there are any duplicate number keys you'll get the error. However I have no idea why it fails on 26 when ...
by FlashFire
Mon Jun 01, 2015 1:46 pm
Forum: Support and Development
Topic: Same indexes in table?
Replies: 9
Views: 5136

Re: Same indexes in table?

But how is any of the keys a string? I run the table I give it through the function: function map:getIndexMap() local map = map:getMap() local new = {} for xIndex,xValue in pairs(map) do for yIndex,yValue in pairs(xValue) do if not new[tonumber(xIndex)] then new[tonumber(xIndex)] = {} end print( typ...
by FlashFire
Sun May 31, 2015 5:19 pm
Forum: Support and Development
Topic: Same indexes in table?
Replies: 9
Views: 5136

Re: Same indexes in table?

print("40") and print(40) show the same output. This is the symptom, but the problem is somewhere else. Again, give us a .love and it will be much easier to help you. That's why I did print(type(value),value), I know there is no difference visually when outputted. And no, it didn't ever p...
by FlashFire
Sun May 31, 2015 5:12 pm
Forum: Support and Development
Topic: Same indexes in table?
Replies: 9
Views: 5136

Re: Same indexes in table?

https://www.dropbox.com/s/76it2pddqsoza ... .love?dl=0

To simulate the problem dig down 10 blocks, and then exit the game, it should error.
by FlashFire
Sun May 31, 2015 3:59 pm
Forum: Support and Development
Topic: Same indexes in table?
Replies: 9
Views: 5136

Re: Same indexes in table?

I am willing to post a LOVE file if needed, but what I want to know is how that is possible? As far as I know, the printing function should never have that output. I would like to locate the error before trying to fix it. Here are some major code parts function save.getData() --table containing all ...
by FlashFire
Sun May 31, 2015 2:30 pm
Forum: Support and Development
Topic: Same indexes in table?
Replies: 9
Views: 5136

Same indexes in table?

So I've been running into an error in my code, I've been calling json to convert a table into a string. The error I get is key 26 is both a number and string. So I look through the table that I supply json with and can't find any strings in it. Lua's type() function will return every index is a numb...
by FlashFire
Wed Apr 22, 2015 10:16 pm
Forum: Support and Development
Topic: [Solved]Poor Map Drawing Performance
Replies: 2
Views: 1540

Re: Poor Map Drawing Performance

Thanks, I changed the code to that, and the FPS went from an unstable 15, to a very stable 65(Without vsync)