Search found 8 matches

by Kavaline
Tue Apr 05, 2022 3:00 am
Forum: Support and Development
Topic: another problem with string pattern
Replies: 5
Views: 2753

Re: another problem with string pattern

But thanks to your direction, I did with them xD Also, I will check your solution too, I didn't realize that I could use the () to get a string position, I tried something like this, but walked on other way because I couldn't find how to get the right positions. The way was, break the string after e...
by Kavaline
Mon Apr 04, 2022 4:41 pm
Forum: Support and Development
Topic: another problem with string pattern
Replies: 5
Views: 2753

Re: another problem with string pattern

Ouch.. So, I'm thinking in something with another loop inside, counting the quotes to choose what pattern add to 'pat', I will scratch it later
by Kavaline
Mon Apr 04, 2022 8:00 am
Forum: Support and Development
Topic: another problem with string pattern
Replies: 5
Views: 2753

another problem with string pattern

Hi, I need help to find the pattern that have the wanted print output: str = "(1, 'test', none, 10, '', , 'hi, this is a default bio. change it (asap)!')" for inf = 1, 9 do pat = "%(" .. string.rep("%s?'?.-'?[,%)]+", inf - 1) .. "%s?'?(.-)'?[,%)]+" result = st...
by Kavaline
Tue Mar 15, 2022 2:16 am
Forum: Support and Development
Topic: Help with string pattern matching
Replies: 3
Views: 2143

Re: Help with string pattern matching

Well, @ is just @, is a special symbol (and the only symbol), it will trigger an event. Also, I found another solution, but your solution looks better, and your approach makes me thinks on an easy way for next time, separating the items instead of looking the ending indicator... And MrFariator's ide...
by Kavaline
Mon Mar 14, 2022 6:01 pm
Forum: Support and Development
Topic: Help with string pattern matching
Replies: 3
Views: 2143

Help with string pattern matching

Hi, I can't find the string pattern solution to make my code works on all situations: --main.lua function love.load(args) local lib = require "lib" local act = lib.connect() --act:read("action item to entity") act:read("sell apple to alpha") act:read("sell red_poti...
by Kavaline
Tue Jul 13, 2021 11:50 pm
Forum: Support and Development
Topic: [Solved] Lua constant
Replies: 6
Views: 7584

Re: Lua constant

No, I don't think it will be added in future. But you can use for example LuaPreprocess . This is really nice for other purposes! Whether Lua 5.4 style constants will be supported in LÖVE in the future depends on if the feature gets added to LuaJIT. There are some post-Lua 5.1 features that have be...
by Kavaline
Sun Jul 11, 2021 11:30 pm
Forum: Support and Development
Topic: [Solved] Lua constant
Replies: 6
Views: 7584

[Solved] Lua constant

Searching about constants in lua, I found this link:
https://stackoverflow.com/questions/123 ... ob-with-it
Here was told that in lua 5.4, we can use constants without tricks. Is possile to add this to LÖVE in future? :)
by Kavaline
Sun Jun 27, 2021 5:37 pm
Forum: General
Topic: Dark Mode/Theme
Replies: 1
Views: 5063

Dark Mode/Theme

Hi, how I can configure the wiki to a dark mode?
I found this: https://github.com/love2d-community/love-api/pull/83
But I don't know how or where I can activate