Module system compiler error

Users who are viewing this thread

Orbit-

Knight at Arms
Hey all, i've been trying to add some custom features from other mods to gekokujo for personal use BUT it seems theres something wrong with the files, i tried to compile the untouched gekokujo to see if i made a mistake or not but clearly thats not the case even when i try to compile untouched version of the mod i get this error, i couldnt figure out what that means exactly. What should i do to make it work? Thanks for any help!

compiler.png
 
Try including the code that's giving the error.

If my memory serves me right you may have written ":trp_player" instead of "trp_player"(probably not this, nvm), but can't tell for sure without the referenced code.
 
this is the consume_food script in the scripts.txt

the code that the error refers to coloured in red
consume_food -1
16 23 2 1224979098644774912 1 1540 2 1224979098644774913 360287970189639680 6 3 1224979098644774914 0 1224979098644774913 1541 3 1224979098644774915 360287970189639680 1224979098644774914 33 3 1224979098644774915 288230376151711790 288230376151711805 1542 3 1224979098644774916 360287970189639680 1224979098644774914 2147483679 2 1224979098644774916 41 547 3 1224979098644774915 0 0 507 3 1224979098644774915 0 1 2106 2 1224979098644774912 1 2147483678 2 1224979098644774912 0 2133 2 1224979098644774913 0 1537 3 1224979098644774917 360287970189639680 1224979098644774914 2106 2 1224979098644774917 1 1534 3 360287970189639680 1224979098644774914 1224979098644774917 3 0

and module_scripts.txt

  # script_consume_food
  # Input: arg1: order of the food to be consumed
  # Output: none
  ("consume_food",
  [(store_script_param, ":selected_food", 1),
    (troop_get_inventory_capacity, ":capacity", "trp_player"),
    (try_for_range, ":cur_slot", 0, ":capacity"),
      (troop_get_inventory_slot, ":cur_item", "trp_player", ":cur_slot"),
      (is_between, ":cur_item", food_begin, food_end),
      (troop_get_inventory_slot_modifier, ":item_modifier", "trp_player", ":cur_slot"),
      (neq, ":item_modifier", imod_rotten),
      (item_slot_eq, ":cur_item", slot_item_is_checked, 0),
      (item_set_slot, ":cur_item", slot_item_is_checked, 1),
      (val_sub, ":selected_food", 1),
      (lt, ":selected_food", 0),
      (assign, ":capacity", 0),
      (troop_inventory_slot_get_item_amount, ":cur_amount", "trp_player", ":cur_slot"),
      (val_sub, ":cur_amount", 1),
      (troop_inventory_slot_set_item_amount, "trp_player", ":cur_slot", ":cur_amount"),
    (try_end),
    ]),

And i also checked the native module system, both scripts and module scripts are the same as those above. Have no idea what to change really  :???:
 
Back
Top Bottom