Real Ranged Attacks (Modification for 1.18.x)

Discussion and development of scenarios and campaigns for the game.

Moderator: Forum Moderators

User avatar
ZombieKnight
Posts: 332
Joined: June 27th, 2022, 2:26 pm
Location: Czech Republic

Real Ranged Attacks (Modification for 1.18.x)

Post by ZombieKnight »

Real Ranged Attacks is a modification that has been created and maintained by me.

This modification introduces attacks over multiple hexes, replacing basic ranged attack.
!Without need for right-click menu.
Some functions are still in progress, or current engine doesn't support them.
(especially some graphic-related)

Any constructive criticism, bug reports and/or advice on the AI, UI, or balance options would be greatly appreciated. :D
User avatar
Straff
Posts: 102
Joined: September 27th, 2020, 2:53 pm

Re: Real Ranged Attacks (Modification for 1.18.x)

Post by Straff »

Does not work for me.
Maybe because I don't have your add-on Bandits from Brown Hills installed?
Log file
Battle for Wesnoth v1.18.0 x86_64
Started on Thu Aug 15 20:37:27 2024


Data directory: /app/share/wesnoth
User configuration directory: /home/USER/.var/app/org.wesnoth.Wesnoth/config/wesnoth
User data directory: /home/USER/.var/app/org.wesnoth.Wesnoth/data/wesnoth/1.18
Cache directory: /home/USER/.var/app/org.wesnoth.Wesnoth/cache/wesnoth


Setting mode to 1920x1080
Checking lua scripts... ok
20240815 20:38:01 error deprecation: helper.lua has been deprecated and will be removed in version 1.19.0.; Everything in this module has been moved into the core modules
20240815 20:38:24 error wml: Failed to load required package: ~add-ons/Bandits_from_Brown_Hills/ai/lua/ai_helper.lua
20240815 20:38:24 error wml: Failed to load required package: ~add-ons/Bandits_from_Brown_Hills/ai/lua/battle_calcs.lua
20240815 20:38:24 error scripting/lua: ~add-ons/Real_Ranged_Attacks/ai/lua/real_ranged_attack.lua:61: attempt to index a nil value (upvalue 'AH')
stack traceback:
~add-ons/Real_Ranged_Attacks/ai/lua/real_ranged_attack.lua:61: in function <~add-ons/Real_Ranged_Attacks/ai/lua/real_ranged_attack.lua:60>
(...tail calls...)
20240815 20:38:24 error scripting/lua: ~add-ons/Real_Ranged_Attacks/ai/lua/real_ranged_attack.lua:61: attempt to index a nil value (upvalue 'AH')
stack traceback:
~add-ons/Real_Ranged_Attacks/ai/lua/real_ranged_attack.lua:61: in function <~add-ons/Real_Ranged_Attacks/ai/lua/real_ranged_attack.lua:60>
(...tail calls...)
20240815 20:38:24 error scripting/lua: ~add-ons/Real_Ranged_Attacks/ai/lua/real_ranged_attack.lua:61: attempt to index a nil value (upvalue 'AH')
stack traceback:
~add-ons/Real_Ranged_Attacks/ai/lua/real_ranged_attack.lua:61: in function <~add-ons/Real_Ranged_Attacks/ai/lua/real_ranged_attack.lua:60>
(...tail calls...)
20240815 20:38:24 error scripting/lua: ~add-ons/Real_Ranged_Attacks/ai/lua/real_ranged_attack.lua:61: attempt to index a nil value (upvalue 'AH')
stack traceback:
~add-ons/Real_Ranged_Attacks/ai/lua/real_ranged_attack.lua:61: in function <~add-ons/Real_Ranged_Attacks/ai/lua/real_ranged_attack.lua:60>
(...tail calls...)
20240815 20:38:27 error scripting/lua: ~add-ons/Real_Ranged_Attacks/ai/lua/real_ranged_attack.lua:61: attempt to index a nil value (upvalue 'AH')
stack traceback:
~add-ons/Real_Ranged_Attacks/ai/lua/real_ranged_attack.lua:61: in function <~add-ons/Real_Ranged_Attacks/ai/lua/real_ranged_attack.lua:60>
(...tail calls...)
20240815 20:38:27 error scripting/lua: ~add-ons/Real_Ranged_Attacks/ai/lua/real_ranged_attack.lua:61: attempt to index a nil value (upvalue 'AH')
stack traceback:
~add-ons/Real_Ranged_Attacks/ai/lua/real_ranged_attack.lua:61: in function <~add-ons/Real_Ranged_Attacks/ai/lua/real_ranged_attack.lua:60>
(...tail calls...)
20240815 20:38:27 error scripting/lua: ~add-ons/Real_Ranged_Attacks/ai/lua/real_ranged_attack.lua:61: attempt to index a nil value (upvalue 'AH')
stack traceback:
~add-ons/Real_Ranged_Attacks/ai/lua/real_ranged_attack.lua:61: in function <~add-ons/Real_Ranged_Attacks/ai/lua/real_ranged_attack.lua:60>
(...tail calls...)
20240815 20:38:27 error scripting/lua: ~add-ons/Real_Ranged_Attacks/ai/lua/real_ranged_attack.lua:61: attempt to index a nil value (upvalue 'AH')
stack traceback:
~add-ons/Real_Ranged_Attacks/ai/lua/real_ranged_attack.lua:61: in function <~add-ons/Real_Ranged_Attacks/ai/lua/real_ranged_attack.lua:60>
(...tail calls...)
20240815 20:38:29 error scripting/lua: ~add-ons/Real_Ranged_Attacks/ai/lua/real_ranged_attack.lua:61: attempt to index a nil value (upvalue 'AH')
stack traceback:
~add-ons/Real_Ranged_Attacks/ai/lua/real_ranged_attack.lua:61: in function <~add-ons/Real_Ranged_Attacks/ai/lua/real_ranged_attack.lua:60>
(...tail calls...)
20240815 20:38:29 error scripting/lua: ~add-ons/Real_Ranged_Attacks/ai/lua/real_ranged_attack.lua:61: attempt to index a nil value (upvalue 'AH')
stack traceback:
~add-ons/Real_Ranged_Attacks/ai/lua/real_ranged_attack.lua:61: in function <~add-ons/Real_Ranged_Attacks/ai/lua/real_ranged_attack.lua:60>
(...tail calls...)
20240815 20:38:29 error scripting/lua: ~add-ons/Real_Ranged_Attacks/ai/lua/real_ranged_attack.lua:61: attempt to index a nil value (upvalue 'AH')
stack traceback:
~add-ons/Real_Ranged_Attacks/ai/lua/real_ranged_attack.lua:61: in function <~add-ons/Real_Ranged_Attacks/ai/lua/real_ranged_attack.lua:60>
(...tail calls...)
20240815 20:38:29 error scripting/lua: ~add-ons/Real_Ranged_Attacks/ai/lua/real_ranged_attack.lua:61: attempt to index a nil value (upvalue 'AH')
stack traceback:
~add-ons/Real_Ranged_Attacks/ai/lua/real_ranged_attack.lua:61: in function <~add-ons/Real_Ranged_Attacks/ai/lua/real_ranged_attack.lua:60>
(...tail calls...)
20240815 20:38:31 error scripting/lua: ~add-ons/Real_Ranged_Attacks/ai/lua/real_ranged_attack.lua:61: attempt to index a nil value (upvalue 'AH')
stack traceback:
~add-ons/Real_Ranged_Attacks/ai/lua/real_ranged_attack.lua:61: in function <~add-ons/Real_Ranged_Attacks/ai/lua/real_ranged_attack.lua:60>
(...tail calls...)
20240815 20:38:31 error scripting/lua: ~add-ons/Real_Ranged_Attacks/ai/lua/real_ranged_attack.lua:61: attempt to index a nil value (upvalue 'AH')
stack traceback:
~add-ons/Real_Ranged_Attacks/ai/lua/real_ranged_attack.lua:61: in function <~add-ons/Real_Ranged_Attacks/ai/lua/real_ranged_attack.lua:60>
(...tail calls...)
20240815 20:38:31 error scripting/lua: ~add-ons/Real_Ranged_Attacks/ai/lua/real_ranged_attack.lua:61: attempt to index a nil value (upvalue 'AH')
stack traceback:
~add-ons/Real_Ranged_Attacks/ai/lua/real_ranged_attack.lua:61: in function <~add-ons/Real_Ranged_Attacks/ai/lua/real_ranged_attack.lua:60>
(...tail calls...)
20240815 20:38:31 error scripting/lua: ~add-ons/Real_Ranged_Attacks/ai/lua/real_ranged_attack.lua:61: attempt to index a nil value (upvalue 'AH')
stack traceback:
~add-ons/Real_Ranged_Attacks/ai/lua/real_ranged_attack.lua:61: in function <~add-ons/Real_Ranged_Attacks/ai/lua/real_ranged_attack.lua:60>
(...tail calls...)
20240815 20:38:33 error scripting/lua: ~add-ons/Real_Ranged_Attacks/ai/lua/real_ranged_attack.lua:61: attempt to index a nil value (upvalue 'AH')
stack traceback:
~add-ons/Real_Ranged_Attacks/ai/lua/real_ranged_attack.lua:61: in function <~add-ons/Real_Ranged_Attacks/ai/lua/real_ranged_attack.lua:60>
(...tail calls...)
20240815 20:38:33 error scripting/lua: ~add-ons/Real_Ranged_Attacks/ai/lua/real_ranged_attack.lua:61: attempt to index a nil value (upvalue 'AH')
stack traceback:
~add-ons/Real_Ranged_Attacks/ai/lua/real_ranged_attack.lua:61: in function <~add-ons/Real_Ranged_Attacks/ai/lua/real_ranged_attack.lua:60>
(...tail calls...)
20240815 20:38:33 error scripting/lua: ~add-ons/Real_Ranged_Attacks/ai/lua/real_ranged_attack.lua:61: attempt to index a nil value (upvalue 'AH')
stack traceback:
~add-ons/Real_Ranged_Attacks/ai/lua/real_ranged_attack.lua:61: in function <~add-ons/Real_Ranged_Attacks/ai/lua/real_ranged_attack.lua:60>
(...tail calls...)
20240815 20:38:45 error scripting/lua: ~add-ons/Real_Ranged_Attacks/ai/lua/real_ranged_attack.lua:61: attempt to index a nil value (upvalue 'AH')
stack traceback:
~add-ons/Real_Ranged_Attacks/ai/lua/real_ranged_attack.lua:61: in function <~add-ons/Real_Ranged_Attacks/ai/lua/real_ranged_attack.lua:60>
(...tail calls...)
20240815 20:38:45 error scripting/lua: ~add-ons/Real_Ranged_Attacks/ai/lua/real_ranged_attack.lua:61: attempt to index a nil value (upvalue 'AH')
stack traceback:
~add-ons/Real_Ranged_Attacks/ai/lua/real_ranged_attack.lua:61: in function <~add-ons/Real_Ranged_Attacks/ai/lua/real_ranged_attack.lua:60>
(...tail calls...)
20240815 20:38:49 error scripting/lua: ~add-ons/Real_Ranged_Attacks/ai/lua/real_ranged_attack.lua:61: attempt to index a nil value (upvalue 'AH')
stack traceback:
~add-ons/Real_Ranged_Attacks/ai/lua/real_ranged_attack.lua:61: in function <~add-ons/Real_Ranged_Attacks/ai/lua/real_ranged_attack.lua:60>
(...tail calls...)
20240815 20:38:49 error scripting/lua: ~add-ons/Real_Ranged_Attacks/ai/lua/real_ranged_attack.lua:61: attempt to index a nil value (upvalue 'AH')
stack traceback:
~add-ons/Real_Ranged_Attacks/ai/lua/real_ranged_attack.lua:61: in function <~add-ons/Real_Ranged_Attacks/ai/lua/real_ranged_attack.lua:60>
(...tail calls...)
20240815 20:38:49 error scripting/lua: ~add-ons/Real_Ranged_Attacks/ai/lua/real_ranged_attack.lua:61: attempt to index a nil value (upvalue 'AH')
stack traceback:
~add-ons/Real_Ranged_Attacks/ai/lua/real_ranged_attack.lua:61: in function <~add-ons/Real_Ranged_Attacks/ai/lua/real_ranged_attack.lua:60>
(...tail calls...)
20240815 20:38:50 error scripting/lua: ~add-ons/Real_Ranged_Attacks/ai/lua/real_ranged_attack.lua:61: attempt to index a nil value (upvalue 'AH')
stack traceback:
~add-ons/Real_Ranged_Attacks/ai/lua/real_ranged_attack.lua:61: in function <~add-ons/Real_Ranged_Attacks/ai/lua/real_ranged_attack.lua:60>
(...tail calls...)
20240815 20:38:50 error scripting/lua: ~add-ons/Real_Ranged_Attacks/ai/lua/real_ranged_attack.lua:61: attempt to index a nil value (upvalue 'AH')
stack traceback:
~add-ons/Real_Ranged_Attacks/ai/lua/real_ranged_attack.lua:61: in function <~add-ons/Real_Ranged_Attacks/ai/lua/real_ranged_attack.lua:60>
(...tail calls...)
20240815 20:38:54 error scripting/lua: ~add-ons/Real_Ranged_Attacks/ai/lua/real_ranged_attack.lua:61: attempt to index a nil value (upvalue 'AH')
stack traceback:
~add-ons/Real_Ranged_Attacks/ai/lua/real_ranged_attack.lua:61: in function <~add-ons/Real_Ranged_Attacks/ai/lua/real_ranged_attack.lua:60>
(...tail calls...)
20240815 20:38:54 error scripting/lua: ~add-ons/Real_Ranged_Attacks/ai/lua/real_ranged_attack.lua:61: attempt to index a nil value (upvalue 'AH')
stack traceback:
~add-ons/Real_Ranged_Attacks/ai/lua/real_ranged_attack.lua:61: in function <~add-ons/Real_Ranged_Attacks/ai/lua/real_ranged_attack.lua:60>
(...tail calls...)
20240815 20:38:54 error scripting/lua: ~add-ons/Real_Ranged_Attacks/ai/lua/real_ranged_attack.lua:61: attempt to index a nil value (upvalue 'AH')
stack traceback:
~add-ons/Real_Ranged_Attacks/ai/lua/real_ranged_attack.lua:61: in function <~add-ons/Real_Ranged_Attacks/ai/lua/real_ranged_attack.lua:60>
(...tail calls...)
20240815 20:38:54 error scripting/lua: ~add-ons/Real_Ranged_Attacks/ai/lua/real_ranged_attack.lua:61: attempt to index a nil value (upvalue 'AH')
stack traceback:
~add-ons/Real_Ranged_Attacks/ai/lua/real_ranged_attack.lua:61: in function <~add-ons/Real_Ranged_Attacks/ai/lua/real_ranged_attack.lua:60>
(...tail calls...)
20240815 20:38:54 error scripting/lua: ~add-ons/Real_Ranged_Attacks/ai/lua/real_ranged_attack.lua:61: attempt to index a nil value (upvalue 'AH')
stack traceback:
~add-ons/Real_Ranged_Attacks/ai/lua/real_ranged_attack.lua:61: in function <~add-ons/Real_Ranged_Attacks/ai/lua/real_ranged_attack.lua:60>
(...tail calls...)
20240815 20:38:59 error scripting/lua: ~add-ons/Real_Ranged_Attacks/ai/lua/real_ranged_attack.lua:61: attempt to index a nil value (upvalue 'AH')
stack traceback:
~add-ons/Real_Ranged_Attacks/ai/lua/real_ranged_attack.lua:61: in function <~add-ons/Real_Ranged_Attacks/ai/lua/real_ranged_attack.lua:60>
(...tail calls...)
20240815 20:38:59 error scripting/lua: ~add-ons/Real_Ranged_Attacks/ai/lua/real_ranged_attack.lua:61: attempt to index a nil value (upvalue 'AH')
stack traceback:
~add-ons/Real_Ranged_Attacks/ai/lua/real_ranged_attack.lua:61: in function <~add-ons/Real_Ranged_Attacks/ai/lua/real_ranged_attack.lua:60>
(...tail calls...)
20240815 20:38:59 error scripting/lua: ~add-ons/Real_Ranged_Attacks/ai/lua/real_ranged_attack.lua:61: attempt to index a nil value (upvalue 'AH')
stack traceback:
~add-ons/Real_Ranged_Attacks/ai/lua/real_ranged_attack.lua:61: in function <~add-ons/Real_Ranged_Attacks/ai/lua/real_ranged_attack.lua:60>
(...tail calls...)
20240815 20:38:59 error scripting/lua: ~add-ons/Real_Ranged_Attacks/ai/lua/real_ranged_attack.lua:61: attempt to index a nil value (upvalue 'AH')
stack traceback:
~add-ons/Real_Ranged_Attacks/ai/lua/real_ranged_attack.lua:61: in function <~add-ons/Real_Ranged_Attacks/ai/lua/real_ranged_attack.lua:60>
(...tail calls...)
20240815 20:38:59 error scripting/lua: ~add-ons/Real_Ranged_Attacks/ai/lua/real_ranged_attack.lua:61: attempt to index a nil value (upvalue 'AH')
stack traceback:
~add-ons/Real_Ranged_Attacks/ai/lua/real_ranged_attack.lua:61: in function <~add-ons/Real_Ranged_Attacks/ai/lua/real_ranged_attack.lua:60>
(...tail calls...)
20240815 20:39:06 error scripting/lua: ~add-ons/Real_Ranged_Attacks/ai/lua/real_ranged_attack.lua:61: attempt to index a nil value (upvalue 'AH')
stack traceback:
~add-ons/Real_Ranged_Attacks/ai/lua/real_ranged_attack.lua:61: in function <~add-ons/Real_Ranged_Attacks/ai/lua/real_ranged_attack.lua:60>
(...tail calls...)
20240815 20:39:06 error scripting/lua: ~add-ons/Real_Ranged_Attacks/ai/lua/real_ranged_attack.lua:61: attempt to index a nil value (upvalue 'AH')
stack traceback:
~add-ons/Real_Ranged_Attacks/ai/lua/real_ranged_attack.lua:61: in function <~add-ons/Real_Ranged_Attacks/ai/lua/real_ranged_attack.lua:60>
(...tail calls...)
20240815 20:39:06 error scripting/lua: ~add-ons/Real_Ranged_Attacks/ai/lua/real_ranged_attack.lua:61: attempt to index a nil value (upvalue 'AH')
stack traceback:
~add-ons/Real_Ranged_Attacks/ai/lua/real_ranged_attack.lua:61: in function <~add-ons/Real_Ranged_Attacks/ai/lua/real_ranged_attack.lua:60>
(...tail calls...)
20240815 20:39:06 error scripting/lua: ~add-ons/Real_Ranged_Attacks/ai/lua/real_ranged_attack.lua:61: attempt to index a nil value (upvalue 'AH')
stack traceback:
~add-ons/Real_Ranged_Attacks/ai/lua/real_ranged_attack.lua:61: in function <~add-ons/Real_Ranged_Attacks/ai/lua/real_ranged_attack.lua:60>
(...tail calls...)
20240815 20:39:11 error scripting/lua: ~add-ons/Real_Ranged_Attacks/ai/lua/real_ranged_attack.lua:61: attempt to index a nil value (upvalue 'AH')
stack traceback:
~add-ons/Real_Ranged_Attacks/ai/lua/real_ranged_attack.lua:61: in function <~add-ons/Real_Ranged_Attacks/ai/lua/real_ranged_attack.lua:60>
(...tail calls...)
20240815 20:39:11 error scripting/lua: ~add-ons/Real_Ranged_Attacks/ai/lua/real_ranged_attack.lua:61: attempt to index a nil value (upvalue 'AH')
stack traceback:
~add-ons/Real_Ranged_Attacks/ai/lua/real_ranged_attack.lua:61: in function <~add-ons/Real_Ranged_Attacks/ai/lua/real_ranged_attack.lua:60>
(...tail calls...)
20240815 20:39:11 error scripting/lua: ~add-ons/Real_Ranged_Attacks/ai/lua/real_ranged_attack.lua:61: attempt to index a nil value (upvalue 'AH')
stack traceback:
~add-ons/Real_Ranged_Attacks/ai/lua/real_ranged_attack.lua:61: in function <~add-ons/Real_Ranged_Attacks/ai/lua/real_ranged_attack.lua:60>
(...tail calls...)
20240815 20:39:39 error scripting/lua: ~add-ons/Real_Ranged_Attacks/ai/lua/real_ranged_attack.lua:61: attempt to index a nil value (upvalue 'AH')
stack traceback:
~add-ons/Real_Ranged_Attacks/ai/lua/real_ranged_attack.lua:61: in function <~add-ons/Real_Ranged_Attacks/ai/lua/real_ranged_attack.lua:60>
(...tail calls...)
20240815 20:39:41 error scripting/lua: ~add-ons/Real_Ranged_Attacks/ai/lua/real_ranged_attack.lua:61: attempt to index a nil value (upvalue 'AH')
stack traceback:
~add-ons/Real_Ranged_Attacks/ai/lua/real_ranged_attack.lua:61: in function <~add-ons/Real_Ranged_Attacks/ai/lua/real_ranged_attack.lua:60>
(...tail calls...)
20240815 20:39:41 error scripting/lua: ~add-ons/Real_Ranged_Attacks/ai/lua/real_ranged_attack.lua:61: attempt to index a nil value (upvalue 'AH')
stack traceback:
~add-ons/Real_Ranged_Attacks/ai/lua/real_ranged_attack.lua:61: in function <~add-ons/Real_Ranged_Attacks/ai/lua/real_ranged_attack.lua:60>
(...tail calls...)
20240815 20:39:43 error scripting/lua: ~add-ons/Real_Ranged_Attacks/ai/lua/real_ranged_attack.lua:61: attempt to index a nil value (upvalue 'AH')
stack traceback:
~add-ons/Real_Ranged_Attacks/ai/lua/real_ranged_attack.lua:61: in function <~add-ons/Real_Ranged_Attacks/ai/lua/real_ranged_attack.lua:60>
(...tail calls...)
20240815 20:39:43 error scripting/lua: ~add-ons/Real_Ranged_Attacks/ai/lua/real_ranged_attack.lua:61: attempt to index a nil value (upvalue 'AH')
stack traceback:
~add-ons/Real_Ranged_Attacks/ai/lua/real_ranged_attack.lua:61: in function <~add-ons/Real_Ranged_Attacks/ai/lua/real_ranged_attack.lua:60>
(...tail calls...)
20240815 20:39:43 error scripting/lua: ~add-ons/Real_Ranged_Attacks/ai/lua/real_ranged_attack.lua:61: attempt to index a nil value (upvalue 'AH')
stack traceback:
~add-ons/Real_Ranged_Attacks/ai/lua/real_ranged_attack.lua:61: in function <~add-ons/Real_Ranged_Attacks/ai/lua/real_ranged_attack.lua:60>
(...tail calls...)
20240815 20:39:44 error scripting/lua: ~add-ons/Real_Ranged_Attacks/ai/lua/real_ranged_attack.lua:61: attempt to index a nil value (upvalue 'AH')
stack traceback:
~add-ons/Real_Ranged_Attacks/ai/lua/real_ranged_attack.lua:61: in function <~add-ons/Real_Ranged_Attacks/ai/lua/real_ranged_attack.lua:60>
(...tail calls...)
20240815 20:39:45 error scripting/lua: ~add-ons/Real_Ranged_Attacks/ai/lua/real_ranged_attack.lua:61: attempt to index a nil value (upvalue 'AH')
stack traceback:
~add-ons/Real_Ranged_Attacks/ai/lua/real_ranged_attack.lua:61: in function <~add-ons/Real_Ranged_Attacks/ai/lua/real_ranged_attack.lua:60>
(...tail calls...)
20240815 20:39:45 error scripting/lua: ~add-ons/Real_Ranged_Attacks/ai/lua/real_ranged_attack.lua:61: attempt to index a nil value (upvalue 'AH')
stack traceback:
~add-ons/Real_Ranged_Attacks/ai/lua/real_ranged_attack.lua:61: in function <~add-ons/Real_Ranged_Attacks/ai/lua/real_ranged_attack.lua:60>
(...tail calls...)
20240815 20:39:47 error scripting/lua: ~add-ons/Real_Ranged_Attacks/ai/lua/real_ranged_attack.lua:61: attempt to index a nil value (upvalue 'AH')
stack traceback:
~add-ons/Real_Ranged_Attacks/ai/lua/real_ranged_attack.lua:61: in function <~add-ons/Real_Ranged_Attacks/ai/lua/real_ranged_attack.lua:60>
(...tail calls...)
20240815 20:39:47 error scripting/lua: ~add-ons/Real_Ranged_Attacks/ai/lua/real_ranged_attack.lua:61: attempt to index a nil value (upvalue 'AH')
stack traceback:
~add-ons/Real_Ranged_Attacks/ai/lua/real_ranged_attack.lua:61: in function <~add-ons/Real_Ranged_Attacks/ai/lua/real_ranged_attack.lua:60>
(...tail calls...)
20240815 20:39:47 error scripting/lua: ~add-ons/Real_Ranged_Attacks/ai/lua/real_ranged_attack.lua:61: attempt to index a nil value (upvalue 'AH')
stack traceback:
~add-ons/Real_Ranged_Attacks/ai/lua/real_ranged_attack.lua:61: in function <~add-ons/Real_Ranged_Attacks/ai/lua/real_ranged_attack.lua:60>
(...tail calls...)
20240815 20:39:48 error scripting/lua: ~add-ons/Real_Ranged_Attacks/ai/lua/real_ranged_attack.lua:61: attempt to index a nil value (upvalue 'AH')
stack traceback:
~add-ons/Real_Ranged_Attacks/ai/lua/real_ranged_attack.lua:61: in function <~add-ons/Real_Ranged_Attacks/ai/lua/real_ranged_attack.lua:60>
(...tail calls...)
20240815 20:39:49 error scripting/lua: ~add-ons/Real_Ranged_Attacks/ai/lua/real_ranged_attack.lua:61: attempt to index a nil value (upvalue 'AH')
stack traceback:
~add-ons/Real_Ranged_Attacks/ai/lua/real_ranged_attack.lua:61: in function <~add-ons/Real_Ranged_Attacks/ai/lua/real_ranged_attack.lua:60>
(...tail calls...)
20240815 20:39:49 error scripting/lua: ~add-ons/Real_Ranged_Attacks/ai/lua/real_ranged_attack.lua:61: attempt to index a nil value (upvalue 'AH')
stack traceback:
~add-ons/Real_Ranged_Attacks/ai/lua/real_ranged_attack.lua:61: in function <~add-ons/Real_Ranged_Attacks/ai/lua/real_ranged_attack.lua:60>
(...tail calls...)
20240815 20:39:54 error scripting/lua: ~add-ons/Real_Ranged_Attacks/ai/lua/real_ranged_attack.lua:61: attempt to index a nil value (upvalue 'AH')
stack traceback:
~add-ons/Real_Ranged_Attacks/ai/lua/real_ranged_attack.lua:61: in function <~add-ons/Real_Ranged_Attacks/ai/lua/real_ranged_attack.lua:60>
(...tail calls...)
20240815 20:39:54 error scripting/lua: ~add-ons/Real_Ranged_Attacks/ai/lua/real_ranged_attack.lua:61: attempt to index a nil value (upvalue 'AH')
stack traceback:
~add-ons/Real_Ranged_Attacks/ai/lua/real_ranged_attack.lua:61: in function <~add-ons/Real_Ranged_Attacks/ai/lua/real_ranged_attack.lua:60>
(...tail calls...)
20240815 20:39:54 error scripting/lua: ~add-ons/Real_Ranged_Attacks/ai/lua/real_ranged_attack.lua:61: attempt to index a nil value (upvalue 'AH')
stack traceback:
~add-ons/Real_Ranged_Attacks/ai/lua/real_ranged_attack.lua:61: in function <~add-ons/Real_Ranged_Attacks/ai/lua/real_ranged_attack.lua:60>
(...tail calls...)
20240815 20:39:54 error scripting/lua: ~add-ons/Real_Ranged_Attacks/ai/lua/real_ranged_attack.lua:61: attempt to index a nil value (upvalue 'AH')
stack traceback:
~add-ons/Real_Ranged_Attacks/ai/lua/real_ranged_attack.lua:61: in function <~add-ons/Real_Ranged_Attacks/ai/lua/real_ranged_attack.lua:60>
(...tail calls...)
20240815 20:39:54 error scripting/lua: ~add-ons/Real_Ranged_Attacks/ai/lua/real_ranged_attack.lua:61: attempt to index a nil value (upvalue 'AH')
stack traceback:
~add-ons/Real_Ranged_Attacks/ai/lua/real_ranged_attack.lua:61: in function <~add-ons/Real_Ranged_Attacks/ai/lua/real_ranged_attack.lua:60>
(...tail calls...)
20240815 20:40:02 error scripting/lua: ~add-ons/Real_Ranged_Attacks/ai/lua/real_ranged_attack.lua:61: attempt to index a nil value (upvalue 'AH')
stack traceback:
~add-ons/Real_Ranged_Attacks/ai/lua/real_ranged_attack.lua:61: in function <~add-ons/Real_Ranged_Attacks/ai/lua/real_ranged_attack.lua:60>
(...tail calls...)
20240815 20:40:02 error scripting/lua: ~add-ons/Real_Ranged_Attacks/ai/lua/real_ranged_attack.lua:61: attempt to index a nil value (upvalue 'AH')
stack traceback:
~add-ons/Real_Ranged_Attacks/ai/lua/real_ranged_attack.lua:61: in function <~add-ons/Real_Ranged_Attacks/ai/lua/real_ranged_attack.lua:60>
(...tail calls...)
20240815 20:40:02 error scripting/lua: ~add-ons/Real_Ranged_Attacks/ai/lua/real_ranged_attack.lua:61: attempt to index a nil value (upvalue 'AH')
stack traceback:
~add-ons/Real_Ranged_Attacks/ai/lua/real_ranged_attack.lua:61: in function <~add-ons/Real_Ranged_Attacks/ai/lua/real_ranged_attack.lua:60>
(...tail calls...)
20240815 20:40:02 error scripting/lua: ~add-ons/Real_Ranged_Attacks/ai/lua/real_ranged_attack.lua:61: attempt to index a nil value (upvalue 'AH')
stack traceback:
~add-ons/Real_Ranged_Attacks/ai/lua/real_ranged_attack.lua:61: in function <~add-ons/Real_Ranged_Attacks/ai/lua/real_ranged_attack.lua:60>
(...tail calls...)
20240815 20:40:10 error scripting/lua: ~add-ons/Real_Ranged_Attacks/ai/lua/real_ranged_attack.lua:61: attempt to index a nil value (upvalue 'AH')
stack traceback:
~add-ons/Real_Ranged_Attacks/ai/lua/real_ranged_attack.lua:61: in function <~add-ons/Real_Ranged_Attacks/ai/lua/real_ranged_attack.lua:60>
(...tail calls...)
20240815 20:40:10 error scripting/lua: ~add-ons/Real_Ranged_Attacks/ai/lua/real_ranged_attack.lua:61: attempt to index a nil value (upvalue 'AH')
stack traceback:
~add-ons/Real_Ranged_Attacks/ai/lua/real_ranged_attack.lua:61: in function <~add-ons/Real_Ranged_Attacks/ai/lua/real_ranged_attack.lua:60>
(...tail calls...)
20240815 20:40:10 error scripting/lua: ~add-ons/Real_Ranged_Attacks/ai/lua/real_ranged_attack.lua:61: attempt to index a nil value (upvalue 'AH')
stack traceback:
~add-ons/Real_Ranged_Attacks/ai/lua/real_ranged_attack.lua:61: in function <~add-ons/Real_Ranged_Attacks/ai/lua/real_ranged_attack.lua:60>
(...tail calls...)
20240815 20:40:21 error filesystem: Trying to open file with empty name.
20240815 20:40:21 error preprocessor: Could not open file
20240815 20:40:21 error filesystem: Trying to open file with empty name.
20240815 20:40:21 error preprocessor: Could not open file
20240815 20:40:21 error general: An error due to possibly invalid WML occurred
The error message is :
In section '[[window][resolution][tooltip]]' the mandatory key 'id' isn't set.

When reporting the bug please include the following error message :
Condition '!id.empty()' failed at src/gui/core/window_builder.cpp:188 in function 'tooltip_info'.
User avatar
ZombieKnight
Posts: 332
Joined: June 27th, 2022, 2:26 pm
Location: Czech Republic

Re: Real Ranged Attacks (Modification for 1.18.x)

Post by ZombieKnight »

Hell, I forgot to change the data directory.
Thanks, repaired now. `:D
User avatar
Straff
Posts: 102
Joined: September 27th, 2020, 2:53 pm

Re: Real Ranged Attacks (Modification for 1.18.x)

Post by Straff »

It works now, and it’s really fun.I don’t know how much it changes the balance yet, but it’s really fun.

Just a thought:
I don’t know if it’s possible, and not how complicated it is, but it would be cool if bows had a bigger range than thrown knives, And longbows should have the biggest range. That would be brilliant.
User avatar
Ravana
Forum Moderator
Posts: 3169
Joined: January 29th, 2012, 12:49 am
Location: Estonia
Contact:

Re: Real Ranged Attacks (Modification for 1.18.x)

Post by Ravana »

This is quite impressive. Would be useful if you added list of planned changes, and list of aspects that are desired but not possible in engine.
User avatar
ZombieKnight
Posts: 332
Joined: June 27th, 2022, 2:26 pm
Location: Czech Republic

Re: Real Ranged Attacks (Modification for 1.18.x)

Post by ZombieKnight »

Straff wrote: August 15th, 2024, 8:23 pm I don’t know if it’s possible, and not how complicated it is, but it would be cool if bows had a bigger range than thrown knives, And longbows should have the biggest range. That would be brilliant.
With this, I would have to balance damage or hitpoints if high-range units and also if the enemy outranges your archers... you cannot retaliate.
So it would have to get really balanced, which seems really hard.
User avatar
ZombieKnight
Posts: 332
Joined: June 27th, 2022, 2:26 pm
Location: Czech Republic

Re: Real Ranged Attacks (Modification for 1.18.x)

Post by ZombieKnight »

Ravana wrote: August 15th, 2024, 8:25 pm This is quite impressive. Would be useful if you added list of planned changes, and list of aspects that are desired but not possible in engine.
I have this list:
1. [Engine change required] don't select enemy unit after attack, no black stripes while the attack.
2. [working on the cpp ...] Move and ranged attack preshow
3. [made a PR] Orbs orange, if visible enemy in range.
4. [made an issue] AI need to filter specials active (+Graphic can't show active abilities in attack menu)
5. [doable, working on it] attack cauculations missing some multiplier tags.

6. (final) [Engine change required] Call the Lua dialog, instead of the current cpp one. (would be neat if it could be hooked in add-ons)

Is it helpful for you?
Is something misding there?
Last edited by ZombieKnight on August 26th, 2024, 7:12 pm, edited 3 times in total.
User avatar
Ravana
Forum Moderator
Posts: 3169
Joined: January 29th, 2012, 12:49 am
Location: Estonia
Contact:

Re: Real Ranged Attacks (Modification for 1.18.x)

Post by Ravana »

Move+attack would be nicest to have out of these. I would try implement it as [teleport] next to target unit, while cancel the movement in exit_hex. That would not be +attack yet, but would move to max_range distance so you wouldnt have to count for move.
white_haired_uncle
Posts: 1431
Joined: August 26th, 2018, 11:46 pm
Location: A country place, far outside the Wire

Re: Real Ranged Attacks (Modification for 1.18.x)

Post by white_haired_uncle »

ZombieKnight wrote: August 16th, 2024, 1:20 pm
3. [I think I could edit some cpp logic, seems simple] Orbs orange, if visible enemy in range.
You might look at an ability with no name and an overlay_image_self along with a filter to only set the ability active when an enemy is in range. I haven't tried it, but I'm pretty sure you could do this all from wml/lua/wfl

https://wiki.wesnoth.org/AbilitiesWML
Speak softly, and carry Doombringer.
User avatar
ZombieKnight
Posts: 332
Joined: June 27th, 2022, 2:26 pm
Location: Czech Republic

Re: Real Ranged Attacks (Modification for 1.18.x)

Post by ZombieKnight »

Ravana wrote: August 16th, 2024, 10:04 pm Move+attack would be nicest to have out of these. I would try implement it as [teleport] next to target unit, while cancel the movement in exit_hex. That would not be +attack yet, but would move to max_range distance so you wouldnt have to count for move.
Yeah, using the same system as now, only with a pathfind to closest hex in X radius
User avatar
ZombieKnight
Posts: 332
Joined: June 27th, 2022, 2:26 pm
Location: Czech Republic

Re: Real Ranged Attacks (Modification for 1.18.x)

Post by ZombieKnight »

white_haired_uncle wrote: August 16th, 2024, 11:23 pm You might look at an ability with no name and an overlay_image_self along with a filter to only set the ability active when an enemy is in range. I haven't tried it, but I'm pretty sure you could do this all from wml/lua/wfl

https://wiki.wesnoth.org/AbilitiesWML
Not a bad idea, throught I'd at leasy try it in cpp too.
Or is there a reason to not do that in cpp?
white_haired_uncle
Posts: 1431
Joined: August 26th, 2018, 11:46 pm
Location: A country place, far outside the Wire

Re: Real Ranged Attacks (Modification for 1.18.x)

Post by white_haired_uncle »

ZombieKnight wrote: August 17th, 2024, 5:34 am
white_haired_uncle wrote: August 16th, 2024, 11:23 pm You might look at an ability with no name and an overlay_image_self along with a filter to only set the ability active when an enemy is in range. I haven't tried it, but I'm pretty sure you could do this all from wml/lua/wfl

https://wiki.wesnoth.org/AbilitiesWML
Not a bad idea, throught I'd at leasy try it in cpp too.
Or is there a reason to not do that in cpp?
Since the change would pretty much only apply to your mod, I'd be kind of surprised if it was accepted, especially if it can be done with existing UMC tools anyway. I suppose it's possible, and it might be fun to try, but I doubt it would go anywhere.
Speak softly, and carry Doombringer.
User avatar
Spannerbag
Posts: 658
Joined: December 18th, 2016, 6:14 pm
Location: Yes

Re: Real Ranged Attacks (Modification for 1.18.x)

Post by Spannerbag »

Just wanted to say that this is a slick piece of work!
Good job. :D
ZombieKnight wrote: August 16th, 2024, 4:51 am
Straff wrote: August 15th, 2024, 8:23 pm I don’t know if it’s possible, and not how complicated it is, but it would be cool if bows had a bigger range than thrown knives, And longbows should have the biggest range. That would be brilliant.
With this, I would have to balance damage or hitpoints if high-range units and also if the enemy outranges your archers... you cannot retaliate.
So it would have to get really balanced, which seems really hard.
Heh, I came up with loads of complicated ideas, all of which are probably unworkable/not worth the effort of implementing.
E.g. not only variable ranges but damage reduction as range increases (at variable rates of decay with distance for different attacks, of course :) ).


IMHO it does significantly change the game and some mechanism might be desirable to maybe balance the added advantage enjoyed by ranged attacks.
In particular, ranged poisoning is greatly enhanced (as I discovered when I tried out your mod in LoW1:The Uprooting... I'd forgotted slayers could now throw knives over the water north of the eastern keep :doh: ).

Haven't had time to properly explore your mod yet but did stumble across an animation issue on my very first use.
I played a few turns of DM1:This Valley Belongs to Me and found that Methor's attack animation was played over a friendly unity rather than the target.
Didn't see this with other attacks - but testing was hardly comprehensive as I was short on time.
Difficult to catch the effect but managed to get the last gasp via a screen grab.
RRA.png
RRA.png (277.79 KiB) Viewed 698 times
As you can see the attack animation is over the friendly mage not the actual target.

Anyway, thanks for the mod, most enjoyable!

Cheers!
-- Spannerbag
SP Campaigns: After EI (v1.14) Leafsea Burning (v1.18, v1.16)
I suspect the universe is simpler than we think and stranger than we can know.
Also, I fear that beyond a certain point more intelligence does not necessarily benefit a species...
User avatar
ZombieKnight
Posts: 332
Joined: June 27th, 2022, 2:26 pm
Location: Czech Republic

Re: Real Ranged Attacks (Modification for 1.18.x)

Post by ZombieKnight »

Spannerbag wrote: August 17th, 2024, 11:46 am
Heh, I came up with loads of complicated ideas, all of which are probably unworkable/not worth the effort of implementing.
E.g. not only variable ranges but damage reduction as range increases (at variable rates of decay with distance for different attacks, of course :) ).
You can do this actually using specials and formulas that count distance and -5% damage per tile, for example. Or any other function. :)
I will include an example in the next update.
IMHO, it does significantly change the game, and some mechanism might be desirable to maybe balance the added advantage enjoyed by ranged attacks.
In particular, ranged poisoning is greatly enhanced (as I discovered when I tried out your mod in LoW1:The Uprooting... I'd forgotten slayers could now throw knives over the water north of the eastern keep :doh: ).
I tried to add the close lock to make it weaker, if you have any ideas on how to balance it, I'd like to hear them ^^.
Haven't had time to properly explore your mod yet but did stumble across an animation issue on my very first use.
I played a few turns of DM1:This Valley Belongs to Me and found that Methor's attack animation was played over a friendly unity rather than the target.
Didn't see this with other attacks - but testing was hardly comprehensive as I was short on time.
Difficult to catch the effect but managed to get the last gasp via a screen grab.
RRA.png

As you can see the attack animation is over the friendly mage not the actual target.
This is really complicated, currently all animations are played relative to the main unit, not defender.
This would need whole new system, including lots of animations data :/.
Anyway, thanks for the mod, most enjoyable!
Thanks :D
User avatar
Atreides
Posts: 1135
Joined: March 30th, 2019, 10:38 pm
Location: On the 2nd story of the centre village of Merwuerdigliebe turning the lights on and off

Re: Real Ranged Attacks (Modification for 1.18.x)

Post by Atreides »

As Spock would say: fascinating. : )

So if I got it right it teleports next to the target does the ranged attack then ports back? Hehehe. One thing though... what happens if the target has no free hex next to it?
Post Reply