Search found 218 matches

by ZombieKnight
Yesterday, 3:23 pm
Forum: WML Workshop
Topic: [solved] Starting Wesnoth 1.18 console output
Replies: 5
Views: 165

Re: Starting Wesnoth 1.18 console output

Yup you're right... I'm just dumb.
Thanks!
by ZombieKnight
Yesterday, 2:54 pm
Forum: WML Workshop
Topic: [solved] Starting Wesnoth 1.18 console output
Replies: 5
Views: 165

Re: Starting Wesnoth 1.18 console output

white_haired_uncle wrote: May 8th, 2024, 6:30 pm wesnoth --no-log-to-file

(or look in ~/.local/share/wesnoth/1.18/logs)
Weird...
Screenshot_20240509_165308.png
Screenshot_20240509_165308.png (9.62 KiB) Viewed 67 times
by ZombieKnight
May 8th, 2024, 7:01 pm
Forum: WML Workshop
Topic: [solved] Starting Wesnoth 1.18 console output
Replies: 5
Views: 165

Re: Starting Wesnoth 1.18 console output

Thanks, I'll try!
by ZombieKnight
May 8th, 2024, 5:54 pm
Forum: WML Workshop
Topic: [solved] Starting Wesnoth 1.18 console output
Replies: 5
Views: 165

[solved] Starting Wesnoth 1.18 console output

Hi, I'm not sure where to ask... How to (do you) start Wesnoth-1.18 through console, so it writes things like errors in the console? I'm using Ubuntu. Command /usr/bin/flatpak run --branch=stable --arch=x86_64 --command=sh org.wesnoth.Wesnoth -c 'wesnoth' Which worked for 1.16 starts Wesnoth 1.18, b...
by ZombieKnight
May 7th, 2024, 11:55 am
Forum: Scenario & Campaign Development
Topic: WML Guide: feedback requested
Replies: 42
Views: 10255

Re: WML Guide: feedback requested

Oh, You're right, my bad.
Thanks!
by ZombieKnight
May 7th, 2024, 10:53 am
Forum: Lua Labs
Topic: Access event content
Replies: 1
Views: 129

Access event content

Hi,
How to access event content via Lua?
by ZombieKnight
May 7th, 2024, 10:15 am
Forum: Lua Labs
Topic: [solved] How to move WML table
Replies: 12
Views: 309

Re: How to move WML table

I have no idea how I made this ... Ladies and gentlemen, I present you wml.variables replacer: wesnoth.wml_actions.get_global_variable( { namespace="Bandits_from_Brown_Hills", to_local="save_data", from_global="save_file", side=1, } ) for key, value in pairs(wml.variabl...
by ZombieKnight
May 7th, 2024, 9:33 am
Forum: Scenario & Campaign Development
Topic: WML Guide: feedback requested
Replies: 42
Views: 10255

Re: WML Guide: feedback requested

Hi I'm porting this to 1.18 ... not sure if I can I can put it back if you want (idk), it was for some two new people interested in mdding Wesnoth. Could you please give me the icon from yours _server.pbl, because icon="story/landscape-bridge.jpg~CROP(0, 0, 72, 72)~BLIT(portraits/humans/mage-a...
by ZombieKnight
May 7th, 2024, 8:39 am
Forum: Lua Labs
Topic: [solved] How to move WML table
Replies: 12
Views: 309

Re: How to move WML table

...And I really think your code is really wrong...

Code: Select all

for index, elem in ipairs(wml.variables["save_data"]) do
	std_print(index, elem)
end
returns

Code: Select all

1       table: 0x5596a93b5720
2       table: 0x5596b4cc6200
by ZombieKnight
May 7th, 2024, 8:31 am
Forum: Lua Labs
Topic: [solved] How to move WML table
Replies: 12
Views: 309

Re: How to move WML table

There might be a more efficient way (as each assignment here is probably looping over all of save_data again), but I think that approach should do the job. Not sure... you meant wml.variables.save_data ? I extract the data from global using this: wesnoth.wml_actions.get_global_variable( { namespace...
by ZombieKnight
May 7th, 2024, 5:27 am
Forum: Lua Labs
Topic: [solved] How to move WML table
Replies: 12
Views: 309

Re: How to move WML table

Ok, I'll try it but... have you seen the code t
for erasing all the container variables?

Code: Select all

for index, elem in ipairs(wml.all_variables) do
wml.variables[""..elem[1].."[0]"] = nil end
by ZombieKnight
May 6th, 2024, 7:01 pm
Forum: Lua Labs
Topic: [solved] How to move WML table
Replies: 12
Views: 309

Re: How to move WML table

Oh...
So where to put them so I can acces them later using
wml.variables[my_var]?
by ZombieKnight
May 6th, 2024, 6:58 pm
Forum: Lua Labs
Topic: [solved] How to move WML table
Replies: 12
Views: 309

Re: How to move WML table

Okay,
So I've got a table of tables... how to put these tables into wml.variables then?
What are you thinking about?
...
Or the first table is on the right place... so can't I just remove those [save_data] tags from it and leave it there?
by ZombieKnight
May 6th, 2024, 6:46 pm
Forum: Lua Labs
Topic: [solved] How to move WML table
Replies: 12
Views: 309

Re: How to move WML table

Sorry? I've found the wiki page (https://wiki.wesnoth.org/LuaAPI/wml#wml.array_access.get) and I have no idea how to use it for moving wml table right into wml.variables. Could you explain it a bit more? It's a function that just returns a value or does it do even something else? What is this suppos...
by ZombieKnight
May 6th, 2024, 4:58 pm
Forum: Lua Labs
Topic: [solved] How to move WML table
Replies: 12
Views: 309

[solved] How to move WML table

Hi
I've got this saved in
Screenshot_20240506_185619.png

Code: Select all

wml.variables["save_data"]
How to move all of its content into wml.variables?
Any ideas?