[Freeciv-tickets] [freeciv] #57670: 3.1: no LUA signals for some actions

Back to archive index
OSDN Ticket System norep****@osdn*****
Sun May 5 08:39:39 JST 2024


#57670: 3.1: no LUA signals for some actions

  Open Date: 2024-04-16 05:15
Last Update: 2024-05-05 08:39

URL for this Ticket:
    https://osdn.net//projects/freeciv/ticket/57670
RSS feed for this Ticket:
    https://osdn.net/ticket/ticket_rss.php?group_id=12505&tid=57670

---------------------------------------------------------------------

Last Changes/Comment on this Ticket:
2024-05-05 08:39 Updated by: bard

Comment:

Reply To cazfi
I could not reproduce this. Please open a new ticket if you still can reproduce it yourself.
Ok, I'll try to upload a savegame (+ruleset) to a new ticket.

---------------------------------------------------------------------
Ticket Status:

      Reporter: bard
         Owner: cazfi
          Type: Bugs
        Status: Open [Owner assigned]
      Priority: 5 - Medium
     MileStone: 3.1.2
     Component: Server
      Severity: 5 - Medium
    Resolution: Accepted
---------------------------------------------------------------------

Ticket details:

There are no LUA signals in 3.1 for the actions: Pillage, Fortify, and Convert Unit.
I don't know if this is intended, or a bug. I can't compile and test the trunk right now to see if they work there.
I mean that this LUA script will never be triggered: 
function action_started_callback(action, actor, target)
  if action:rule_name() == "Fortify" then
    --never triggered...
  elseif action:rule_name() == "Pillage" then
    --never triggered...
  end
end

signal.connect("action_started_unit_self", "action_started_callback")
signal.connect("action_started_unit_tile", "action_started_callback")


-- 
Ticket information of Freeciv project
Freeciv Project is hosted on OSDN

Project URL: https://osdn.net/projects/freeciv/
OSDN: https://osdn.net

URL for this Ticket:
    https://osdn.net/projects/freeciv/ticket/57670
RSS feed for this Ticket:
    https://osdn.net/ticket/ticket_rss.php?group_id=12505&tid=57670



More information about the Freeciv-tickets mailing list
Back to archive index