Search found 547 matches

by enclave
April 12th, 2018, 6:35 pm
Forum: Lua Labs
Topic: wesnoth.get_viewing_side()
Replies: 1
Views: 102

wesnoth.get_viewing_side()

Hi, could anyone enlighten how wesnoth.get_viewing_side() could be used? (wesnoth 1.12) it always says that im trying to call nil value or something similar.. I tried ipairs, array, and many many more... nothing seem to work, just error all the time. Tiny example of how to extract side from it?? Tha...
by enclave
April 12th, 2018, 12:16 am
Forum: Coder’s Corner
Topic: Optimisation Discussions Advises Experiences Ideas Etc
Replies: 48
Views: 3488

Re: Optimisation Discussions Advises Experiences Ideas Etc

5k times {REPEAT} testing some basic filters for speed (being said that [filter_wml] is slowest filter so I decided to test if it's true..) wesnoth 1.12 ------- 1) local units_with_upkeep = #wesnoth.get_units { side = 1, canrecruit="no", {"not",{ability="hc_build_new_city"}} } 854 868 880 877 876 2...
by enclave
April 3rd, 2018, 1:34 am
Forum: WML Workshop
Topic: More filter examples
Replies: 19
Views: 1505

Re: More filter examples

8) [store_locations] examples with radius.. stores king if he is on keep and then checks if there are any empty castles in his radius [store_unit] [filter] canrecruit=true side=$side_number [filter_location] terrain=Kh* [/filter_location] [/filter] variable=king [/store_unit] Stores the king into k...
by enclave
April 2nd, 2018, 5:42 pm
Forum: WML Workshop
Topic: Some examples of some codes that I could not find examples
Replies: 3
Views: 435

Re: Some examples of some codes that I could not find examples

Sometimes you may come across the problem when you are trying to load your saved add-on and the save file will be marked "invalid" in red color . Happened to me at least twice.. Quite a mysterious thing.. Because the code works, no problems whatsoever.. You didn't even notice when it happened to you...
by enclave
March 21st, 2018, 6:29 pm
Forum: WML Workshop
Topic: AI questions (possibly mattsc could help?)
Replies: 6
Views: 225

Re: AI questions (possibly mattsc could help?)

Wow Thank You So Much Everyone for all your replies, especially Celtic_Minstrel, I can only guess how long it took you to write it all down, thanks so much! Now I more or less see the whole picture and possibilities with AI. Straight away I tried to set caution to 100, the adjacent unit to enemy sti...
by enclave
March 20th, 2018, 11:43 pm
Forum: WML Workshop
Topic: AI questions (possibly mattsc could help?)
Replies: 6
Views: 225

Re: AI questions (possibly mattsc could help?)

Samonella wrote:
March 20th, 2018, 10:57 pm
Have you tried messing around with [micro_ai]s? I think something close to this would do the trick:
Ill try, thanks very much for idea. More ideas also welcome!
by enclave
March 20th, 2018, 9:33 pm
Forum: WML Workshop
Topic: 1.12 modify side team name
Replies: 1
Views: 75

1.12 modify side team name

Before 1.14 is released I'd like to mention that im quite very sure that if you [modify_side] team_name to make another player become your ally, the team chat will not work and will just show errors when trying to chat (something like: removing illegal command from side x to side x), like if there w...
by enclave
March 20th, 2018, 9:27 pm
Forum: WML Workshop
Topic: AI questions (possibly mattsc could help?)
Replies: 6
Views: 225

AI questions (possibly mattsc could help?)

Hi, I'm on wesnoth 1.12 Trying many many things to make AI retreat, but it doesn't care much... Important information: map has NO VILLAGES (imagine creep wars map or similar) but it has a castle 1) I tried to [modify side] aggression to -100, caution to 1, grouping to defensive (not tried none), eve...
by enclave
February 16th, 2018, 1:54 am
Forum: Scenario & Campaign Development
Topic: Sandbox Map Picker by enclave
Replies: 2
Views: 320

Sandbox Map Picker by enclave

Please comment here your ideas of features, report bugs or if you want to include your map sets etc.. As long as I'm still in wesnoth, I'll be happy to assist. This version currently has following differences from original Sandbox: 1) You can pick any color you like and it will work. 2) Team sides w...
by enclave
February 15th, 2018, 4:20 pm
Forum: Multiplayer Development
Topic: timer carryover to the next level/scenario
Replies: 2
Views: 330

Re: timer carryover to the next level/scenario

the campaign was a sandbox (random map picker) :D and that's why I was asking about it, because somebody finally mentioned the sandbox problems :D
I have not tried it myself in detail yet, but according to others the timer disappears for either both or only for one of the players :)
by enclave
February 15th, 2018, 12:38 am
Forum: Multiplayer Development
Topic: timer carryover to the next level/scenario
Replies: 2
Views: 330

timer carryover to the next level/scenario

Hi, we are using version 1.12 of wesnoth and there is a multiplayer campaign which removes the timer on the next scenario ([endlevel]), is it normal behaviour? If yes then maybe is there any plan to improve things for 1.13? Or maybe there is a way to restore timer to initial settings (via WML or lua...
by enclave
January 18th, 2018, 5:32 pm
Forum: WML Workshop
Topic: Ephraim's WML questions
Replies: 20
Views: 811

Re: Ephraim's WML questions

Hi, I would also not recommend using unit.variables.hp.upgrades it would be not lua-friendly (at least to the best of my abilities..), when I tried to code something with array inside variables in LUA, i couldn't.. so I had to change my path into something like unit.variables.hp_upgrades It's not im...
by enclave
January 12th, 2018, 11:39 pm
Forum: WML Workshop
Topic: [BfW 1.13] Removing all advancements & experience
Replies: 8
Views: 770

Re: [BfW 1.13] Removing all advancements & experience

Answer to my questions: 1) To get rid of xp bar you can do the following: [store_unit] [filter] x=10 y=20 [/filter] variable=hc_recruited_unit [/store_unit] {VARIABLE hc_recruited_unit.advances_to null} [unstore_unit] variable=hc_recruited_unit [/unstore_unit] This way xp bar does NOT show at all. U...
by enclave
December 21st, 2017, 10:58 pm
Forum: Scenario & Campaign Development
Topic: Mini Isar add-on map pack
Replies: 0
Views: 633

Mini Isar add-on map pack

Here anyone could write if you want your map to become part of this map pack or if you are an author of one of these maps and want to change something. Thanks! PS. many people make nice maps in map editor, but most of them don't know what to do to upload them to server.. 1.13 possibly does it automa...
by enclave
December 21st, 2017, 10:53 pm
Forum: Multiplayer Development
Topic: Why is the Drake Burner so powerful
Replies: 24
Views: 1502

Re: Why is the Drake Burner so powerful

On the other hand ladder organizers could create a statistics for match ups when you report win and this way we could see the numbers instead of 1000 different opinions. So there are likely a number of improvements that could be clearly evidenced by the community if there was someone, with the prop...