Search found 18 matches

by NemoVonFish
Fri Nov 01, 2013 1:05 am
Forum: Support and Development
Topic: Problems with spawning enemies on a grid. [SOLVED]
Replies: 4
Views: 1781

Re: Problems with spawning enemies on a grid.

Thank you so much for your help, I think I understand tables now, and i've replaced most for i=1 loops with ipairs() . I've solved the problems with spawning enemies on top of each other, as well as in walls and the black as well. (It was checking if the coordinate was a floor, then checking if ther...
by NemoVonFish
Thu Oct 31, 2013 11:52 am
Forum: Support and Development
Topic: Problems with spawning enemies on a grid. [SOLVED]
Replies: 4
Views: 1781

Re: Problems with spawning enemies on a grid.

Alright, that [ 1 ] instead of [ i ] was basically ruining everything, so thanks for pointing that out. The problems i'm having now are, I think, entirely because of my for loops. I don't quite understand how they work, and i've never seen that ipairs() command. I've looked it up , but my eyes start...
by NemoVonFish
Thu Oct 31, 2013 4:45 am
Forum: Support and Development
Topic: Problems with spawning enemies on a grid. [SOLVED]
Replies: 4
Views: 1781

Problems with spawning enemies on a grid. [SOLVED]

Essentially, (if I understand it) my problem lies within my spawnEnemy and spawnTest functions. What's supposed to happen: You hit + on the numpad, it generates x and y coordinates, checks if they're a floor tile, then checks if there's already an enemy there. If it's not a floor tile, it generates ...
by NemoVonFish
Sat Mar 02, 2013 11:12 am
Forum: Support and Development
Topic: Save Game/Load Game
Replies: 10
Views: 15492

Re: Save Game/Load Game

Oop, found it, strangely enough exactly where the Wiki said it would be: Windows Vista and 7: C:\Users\user\AppData\Roaming\LOVE or %appdata%\LOVE\ Is there any way to get it to save in a different location? Like create a folder in its directory called save, and plonk it in there? Or are we venturin...
by NemoVonFish
Sat Mar 02, 2013 10:54 am
Forum: Support and Development
Topic: Save Game/Load Game
Replies: 10
Views: 15492

Re: Save Game/Load Game

I have that classic problem: It works, but I have no idea why. You can save your game, but I can't find where it saves it. For example; one of my test save games is called "Butts" (don't judge me) I can't find a file called Butts, I can't find any files that contain the word Butts, even th...
by NemoVonFish
Mon Feb 25, 2013 11:46 am
Forum: Support and Development
Topic: Save Game/Load Game
Replies: 10
Views: 15492

Re: Save Game/Load Game

local savename = hero.name .. ".sav" -- save hero table to file love.filesystem.write( savename, Tserial.pack(hero) ) -- load hero table from file hero = Tserial.unpack( love.filesystem.read( savename ) ) Works perfectly! However (there's always a problem ;_;) It bluescreens if you try to...
by NemoVonFish
Sun Feb 24, 2013 12:43 pm
Forum: Support and Development
Topic: Save Game/Load Game
Replies: 10
Views: 15492

Re: Save Game/Load Game

Would changing love.filesystem.write("test.lua", to love.filesystem.write(hero.name..".lua", name the file after hero.name? Or is that just going to confuse the crap out of the function? Also, if we change table.show(hero, "loadedhero")) to table.show(hero, "hero&q...
by NemoVonFish
Sun Feb 24, 2013 8:04 am
Forum: Support and Development
Topic: Save Game/Load Game
Replies: 10
Views: 15492

Save Game/Load Game

First time posting ever, as you may be able to guess from the number over there --> I am having trouble understanding the whole filesystem thing, the sheer number of file and fileData and newFile and newFileData has me all confused and I don't know which is relevant for what I want to do :?. Alright...