Search found 25 matches
- Tue Jan 16, 2024 11:35 pm
- Forum: Support and Development
- Topic: remove file
- Replies: 5
- Views: 6880
Re: remove file
when I create the file, it automatically put it in appdata, so remove doesn't go there automatically?
- Tue Jan 16, 2024 9:10 pm
- Forum: Support and Development
- Topic: remove file
- Replies: 5
- Views: 6880
Re: remove file
closed? Does the file have to be opened first?darkfrei wrote: ↑Tue Jan 16, 2024 9:06 pmhttps://love2d.org/wiki/love.filesystem.remove
Be sure that the file is closed.
- Tue Jan 16, 2024 5:21 pm
- Forum: Support and Development
- Topic: remove file
- Replies: 5
- Views: 6880
remove file
I made a file and want to remove it in löve2d. when I use the love.filesystem.remove("wow.lua") it doesn't delete the file
- Thu Oct 19, 2023 12:10 pm
- Forum: Support and Development
- Topic: Table insert name
- Replies: 7
- Views: 8790
Re: Table insert name
Let's make a function for it! local function insertKeyValue (tabl, key, value) tabl[key] = value end Now you can use it as tutorials={} basic = "search" n = 1 insertKeyValue (tutorials, basic, n) print(tutorials.search) -- prints 1 That work! Its weird that it don't work in code but that ...
- Wed Oct 18, 2023 6:45 pm
- Forum: Support and Development
- Topic: Table insert name
- Replies: 7
- Views: 8790
Re: Table insert name
Doesn't seem to quite workdusoft wrote: ↑Wed Oct 18, 2023 5:41 pm This is basic Lua. Did you search before posting?Code: Select all
basic="search" tutorials={} tutorials[basic]=1 print (tutorials.search)
When i try to print,it give me an error(nil value)like it actually don't put any value in the table
- Wed Oct 18, 2023 2:39 pm
- Forum: Support and Development
- Topic: Table insert name
- Replies: 7
- Views: 8790
Table insert name
Table = {}
Name = "some"
Table.? = "something"
My goal is that at Table.some store "something"
I tried that
Table.(Name) = "something"
But it still doesn't worked
Name = "some"
Table.? = "something"
My goal is that at Table.some store "something"
I tried that
Table.(Name) = "something"
But it still doesn't worked
- Tue Oct 17, 2023 8:16 pm
- Forum: Support and Development
- Topic: How to store file text into array
- Replies: 4
- Views: 5244
Re: How to store file text into array
Ok it work but it doesn't seem to left \n So my question now is... Exemple: for line in love.filesystem.lines( "test/wow.txt" ) do table.insert (data, line) end For i=1,#data[1]+1 do If string.sub(data[1],i,i) == ? Then Some code End End ...How would i detect when i is out of the string In...
- Tue Oct 17, 2023 12:44 am
- Forum: Support and Development
- Topic: How to store file text into array
- Replies: 4
- Views: 5244
How to store file text into array
I tried a mutliple of way to do it
My goal is to read a file and store line1 in a array at index 1,line2 at index 2 ect...
My goal is to read a file and store line1 in a array at index 1,line2 at index 2 ect...
- Wed Mar 15, 2023 9:40 pm
- Forum: Support and Development
- Topic: screen rotation
- Replies: 19
- Views: 3388
Re: screen rotation
in the gradle proprety file of love-android.I used Winrar but used .zip .I thought that when you said about compiling was to make my project to a .love file. Then what are you saying about compiling? And a step by step would help
- Wed Mar 15, 2023 6:36 pm
- Forum: Support and Development
- Topic: screen rotation
- Replies: 19
- Views: 3388
Re: screen rotation
So, I modify the android:screenOrientation to the parameter I want(i think it's landscape but there is also a locked mode?)Then i zip my project(with rar for me) and rename it .love, and finally, I use my file manager and I click on it and it would open the project with love-android
edit:doesnt work
edit:doesnt work