I'm having trouble with Diplomacy

正在查看此主题的用户

Corbul

Sergeant at Arms
So I want to make my own mod with Diplomacy as base. I downloaded the module, and the source, but whenever I try compiling, I get this (note: I'm using WRECK - could that be a problem?):
*** Warband Refined & Enhanced Compiler Kit (W.R.E.C.K.) version 1.0.0 ***
Please report errors, problems and suggestions at http://lav.lomskih.net/wreck/

Loading module... DONE.
Loading plugins... DONE.
Checking module syntax... DONE.
Allocating identifiers... DONE.
Compiling module... FAILED.
MODULE scripts AGGREGATOR ERROR:
failed to compile script consume_food (#374)
  operation troop_inventory_slot_set_item_amount cannot assign to static identif
ier <trp.player[#360287970189639680]> in script.consume_food on line 15


COMPILATION FAILED.

The following errors were generated during compilation:
  try/end operations do not match in script.game_receive_network_message: 1 try_
end(s) missing

The following warnings were generated during compilation:
  duplicate entity found: itm.tutorial_sword
  duplicate entity found: itm.tutorial_axe
  duplicate entity found: itm.tutorial_spear
  duplicate entity found: itm.tutorial_club
  duplicate entity found: itm.tutorial_battle_axe
  duplicate entity found: itm.tutorial_arrows
  duplicate entity found: itm.tutorial_bolts
  duplicate entity found: itm.tutorial_short_bow
  duplicate entity found: itm.tutorial_crossbow
  duplicate entity found: itm.tutorial_throwing_daggers
  duplicate entity found: itm.tutorial_saddle_horse
  duplicate entity found: itm.tutorial_shield
  duplicate entity found: itm.tutorial_staff_no_attack
  duplicate entity found: itm.tutorial_staff
  duplicate entity found: itm.voulge
  duplicate entity found: script.dplmc_copy_upgrade_to_all_heroes
  duplicate entity found: s.npc2_kingsupport_2
  duplicate entity found: s.npc4_turn_against
  duplicate entity found: s.comment_you_were_defeated_allied_unfriendly
  duplicate entity found: s.comment_you_were_defeated_allied
  duplicate entity found: s.rebellion_agree_pitiless
  duplicate entity found: s.rebellion_agree_cunning
  duplicate entity found: s.rebellion_agree_sadistic
  duplicate entity found: s.rebellion_agree_goodnatured
  duplicate entity found: s.rebellion_agree_upstanding
  duplicate entity found: s.score
  duplicate entity found: s.routed
  duplicate entity found: s.wife
  duplicate entity found: s.husband
  duplicate entity found: s.father
  duplicate entity found: s.mother
  duplicate entity found: s.daughter
  duplicate entity found: s.son
  duplicate entity found: s.sister
  duplicate entity found: s.brother
  duplicate entity found: s.trade_explanation_dates
  duplicate entity found: s.s15
  duplicate entity found: s.he
  duplicate entity found: s.she
  duplicate entity found: s.s12
  duplicate entity found: s._family_
  duplicate entity found: s.whereabouts_unknown
  duplicate entity found: s.betrothed

The following notifications were generated during compilation:
  local l.unused declared but never used in script.game_get_troop_wage

Can anyone help me get to the bottom of this?
Thank you
 
Somebody 说:
Remove troop_inventory_slot_set_item_amount  from the list of lhs_operations.

Cool! Thanks!
But now I got this:
*** Warband Refined & Enhanced Compiler Kit (W.R.E.C.K.) version 1.0.0 ***
Please report errors, problems and suggestions at http://lav.lomskih.net/wreck/

Loading module... DONE.
Loading plugins... DONE.
Checking module syntax... DONE.
Allocating identifiers... DONE.
Compiling module... DONE.
Exporting module... DONE.

COMPILATION SUCCESSFUL.

The following errors were generated during compilation:
  try/end operations do not match in script.game_receive_network_message: 1 try_
end(s) missing
  unassigned local variable <l.final_price_for_secondary_input[@1224979098644774
926]> used by operation store_div in script.process_player_enterprise on line 48



The following warnings were generated during compilation:
  duplicate entity found: itm.tutorial_sword
  duplicate entity found: itm.tutorial_axe
  duplicate entity found: itm.tutorial_spear
  duplicate entity found: itm.tutorial_club
  duplicate entity found: itm.tutorial_battle_axe
  duplicate entity found: itm.tutorial_arrows
  duplicate entity found: itm.tutorial_bolts
  duplicate entity found: itm.tutorial_short_bow
  duplicate entity found: itm.tutorial_crossbow
  duplicate entity found: itm.tutorial_throwing_daggers
  duplicate entity found: itm.tutorial_saddle_horse
  duplicate entity found: itm.tutorial_shield
  duplicate entity found: itm.tutorial_staff_no_attack
  duplicate entity found: itm.tutorial_staff
  duplicate entity found: itm.voulge
  duplicate entity found: script.dplmc_copy_upgrade_to_all_heroes
  duplicate entity found: s.npc2_kingsupport_2
  duplicate entity found: s.npc4_turn_against
  duplicate entity found: s.comment_you_were_defeated_allied_unfriendly
  duplicate entity found: s.comment_you_were_defeated_allied
  duplicate entity found: s.rebellion_agree_pitiless
  duplicate entity found: s.rebellion_agree_cunning
  duplicate entity found: s.rebellion_agree_sadistic
  duplicate entity found: s.rebellion_agree_goodnatured
  duplicate entity found: s.rebellion_agree_upstanding
  duplicate entity found: s.score
  duplicate entity found: s.routed
  duplicate entity found: s.wife
  duplicate entity found: s.husband
  duplicate entity found: s.father
  duplicate entity found: s.mother
  duplicate entity found: s.daughter
  duplicate entity found: s.son
  duplicate entity found: s.sister
  duplicate entity found: s.brother
  duplicate entity found: s.trade_explanation_dates
  duplicate entity found: s.s15
  duplicate entity found: s.he
  duplicate entity found: s.she
  duplicate entity found: s.s12
  duplicate entity found: s._family_
  duplicate entity found: s.whereabouts_unknown
  duplicate entity found: s.betrothed

The following notifications were generated during compilation:
  local l.unused declared but never used in script.game_get_troop_wage
  local l.unused declared but never used in script.debug_variables
  local l.unused_2 declared but never used in script.debug_variables
  local l.unused declared but never used in script.party_inflict_attrition

will that cause any problems?
 
Probably, those are just warnings. The other compilation messages are self-explanatory, you can fix those easily or just download a more updated copy of Diplomacy.
 
Somebody 说:
Probably, those are just warnings. The other compilation messages are self-explanatory, you can fix those easily or just download a more updated copy of Diplomacy.

But I downloaded Dipl v.4.3, and the source is for v4.3 for Warband v 1.53-something

Anyway, I ended up having this:
*** Warband Refined & Enhanced Compiler Kit (W.R.E.C.K.) version 1.0.0 ***
Please report errors, problems and suggestions at http://lav.lomskih.net/wreck/

Loading module... DONE.
Loading plugins... DONE.
Checking module syntax... DONE.
Allocating identifiers... DONE.
Compiling module... DONE.
Exporting module... FAILED.
COMPILER INTERNAL ERROR WHILE WRECKING tableaus:
Traceback (most recent call last):
  File "compile.py", line 392, in <module>
    with open('%s/%s' % (folder, filename[1]), 'w+b') as f: f.write(contents)
IOError: [Errno 2] No such file or directory: './out/tableau_materials.txt'



COMPILATION FAILED.

What do I need to change in tableau_materials.txt or anywhere else?
Because I have tableau_materials.txt in the module folder.
 
Corbul 说:
But I downloaded Dipl v.4.3, and the source is for v4.3 for Warband v 1.53-something

check Diplomacy forum for the latest (1.172) download
 
kalarhan 说:
check Diplomacy forum for the latest (1.172) download

But it's not finished yet, is it? Besides, what good is diplomacy, if I ain't got the source for it, and I want to make my own mod?
 
Corbul 说:
But it's not finished yet, is it? Besides, what good is diplomacy, if I ain't got the source for it, and I want to make my own mod?

no mod is ever finished  :razz:. If one is dead, it just mean it was abandoned with all the good (and the bad) of the last version inside.

if you check the forum you will notice it includes the source  :mrgreen:
 
后退
顶部 底部