Skip to content

Conversation

@SwissalpS
Copy link
Contributor

Full re-write, details in CHANGES.txt

Catalan, German, Spanish and French
noticed when playing using Spanish that alrededor/surroundings is more
presice and less confusing with [areas] term "area". In German it
already sounds better and in Catalan I feel it's fine, at least until
[areas] also has Catalan translation and uses "zona". I didn't check how
[areas] defines it in French, so I just left it for now too.
i18n.py needs to be updated
there is still a little bit of weirdness, just doesn't seem to be easily
solved and isn't that important. Happens when placing partial stack onto
give/pay stack of other kind. (from list being 'main')
especially to handle injectors force-inputting items.
... and move load_statistics to bottom of page
@SwissalpS SwissalpS added bug Something isn't working enhancement New feature or request labels Dec 31, 2024
@SwissalpS
Copy link
Contributor Author

SwissalpS commented Dec 31, 2024

I tried it with the db from pandorabox and it doesn't crash.
But if we aren't using the db for anything anyway, I suggest we turn the statistics off.

@SwissalpS
Copy link
Contributor Author

This part is a bit ugly:

smartshop/mail.lua

Lines 4 to 16 in 33e034a

local wants_table = false
do
-- TODO: this is an ugly work-around to figure out which
-- mail mod is used. If somebody sees a cleaner way to
-- detect versions/forks, please change this.
local success, error = pcall(mail.send, nil, nil, nil, '')
if (not success) and error
and smartshop.string_contains_string(error,
"attempt to index local 'm' (a nil value)")
then
wants_table = true
end
end

An alternative I see is to add a server setting smartshop.mail_wants_tables or similar to have cleaner code.

@OgelGames
Copy link

The current version of the mail mod has mail.version = 3, and the old version (which fluxionary's fork is based on) has mail.apiversion = 1.1. The only other mod using the mail namespace is SmallJoker's old mod, which doesn't have any identifier.
https://github.com/mt-mods/mail/blob/master/init.lua#L3
https://github.com/fluxionary/minetest-mail/blob/master/init.lua#L3
https://github.com/SmallJoker/mail/blob/master/init.lua

@SwissalpS
Copy link
Contributor Author

The mt-mods one uses apiversion 1.1 long after it has added support for a table.
Only changes and jumps to version 3 here: mt-mods/mail@b3e0c15#diff-0fc5c43f6f1d7605fd7d16c088ba6b83f096eee8e2049517407bbaa27aa3a4f7
I hope that is good enough.

@SwissalpS
Copy link
Contributor Author

If there are no objections, I'll merge sometime this week.

@SwissalpS SwissalpS merged commit 51e6b5f into master Jan 8, 2025
3 checks passed
@SwissalpS SwissalpS deleted the reWrite branch January 8, 2025 10:32
@BuckarooBanzay
Copy link

If there are no objections, I'll merge sometime this week.

thanks for the work, hadn't time/headspace to take a look at this, sorry

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants