Search found 25 matches

by soytak111
Tue Jan 16, 2024 11:35 pm
Forum: Support and Development
Topic: remove file
Replies: 5
Views: 6076

Re: remove file

when I create the file, it automatically put it in appdata, so remove doesn't go there automatically?
by soytak111
Tue Jan 16, 2024 9:10 pm
Forum: Support and Development
Topic: remove file
Replies: 5
Views: 6076

Re: remove file

darkfrei wrote: Tue Jan 16, 2024 9:06 pm
soytak111 wrote: Tue Jan 16, 2024 5:21 pm 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
https://love2d.org/wiki/love.filesystem.remove

Be sure that the file is closed.
closed? Does the file have to be opened first?
by soytak111
Tue Jan 16, 2024 5:21 pm
Forum: Support and Development
Topic: remove file
Replies: 5
Views: 6076

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
by soytak111
Thu Oct 19, 2023 12:10 pm
Forum: Support and Development
Topic: Table insert name
Replies: 7
Views: 8051

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 ...
by soytak111
Wed Oct 18, 2023 6:45 pm
Forum: Support and Development
Topic: Table insert name
Replies: 7
Views: 8051

Re: Table insert name

dusoft 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)
Doesn't seem to quite work
When i try to print,it give me an error(nil value)like it actually don't put any value in the table
by soytak111
Wed Oct 18, 2023 2:39 pm
Forum: Support and Development
Topic: Table insert name
Replies: 7
Views: 8051

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
by soytak111
Tue Oct 17, 2023 8:16 pm
Forum: Support and Development
Topic: How to store file text into array
Replies: 4
Views: 4441

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...
by soytak111
Tue Oct 17, 2023 12:44 am
Forum: Support and Development
Topic: How to store file text into array
Replies: 4
Views: 4441

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...
by soytak111
Wed Mar 15, 2023 9:40 pm
Forum: Support and Development
Topic: screen rotation
Replies: 19
Views: 2534

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 :)
by soytak111
Wed Mar 15, 2023 6:36 pm
Forum: Support and Development
Topic: screen rotation
Replies: 19
Views: 2534

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