OSP Code SP Perfect troop tree presentation

Currently viewing this thread:

Opavelin

Recruit
Best answers
0
I got some errors when I tried to add code to the Diplomacy source.

*** Warband Refined & Enhanced Compiler Kit (W.R.E.C.K.) version 1.0.0 ***


Loading module... DONE.
Loading plugins... DONE.
Checking module syntax... DONE.
Allocating identifiers... DONE.
Compiling module... FAILED.
MODULE game_menus AGGREGATOR ERROR:
failed to compile code for menu item action_view_troop_trees in menu reports (#4
)
  command [900, 1, 'prsnt_faction_troop_trees'] compilation fails in mnu.reports
(#4).mno_action_view_troop_trees.choice on line 1
    failed to parse operand 'prsnt_faction_troop_trees' for operation start_pres
entation in mnu.reports(#4).mno_action_view_troop_trees.choice on line 1
      illegal reference `prsnt.faction_troop_trees`



COMPILATION FAILED.

I tried to find an error, but my knowledge of MS is very small.
all I know is the problem in "illegal reference" between module_presentations and module_game_menus.

Forget about it. I forgot to extend module_presentations "]"
This is so stupid. :oops:
 
Best answers
0
Opavelin said:
I got some errors when I tried to add code to the Diplomacy source.

*** Warband Refined & Enhanced Compiler Kit (W.R.E.C.K.) version 1.0.0 ***


Loading module... DONE.
Loading plugins... DONE.
Checking module syntax... DONE.
Allocating identifiers... DONE.
Compiling module... FAILED.
MODULE game_menus AGGREGATOR ERROR:
failed to compile code for menu item action_view_troop_trees in menu reports (#4
)
  command [900, 1, 'prsnt_faction_troop_trees'] compilation fails in mnu.reports
(#4).mno_action_view_troop_trees.choice on line 1
    failed to parse operand 'prsnt_faction_troop_trees' for operation start_pres
entation in mnu.reports(#4).mno_action_view_troop_trees.choice on line 1
      illegal reference `prsnt.faction_troop_trees`



COMPILATION FAILED.

I tried to find an error, but my knowledge of MS is very small.
all I know is the problem in "illegal reference" between module_presentations and module_game_menus.

Forget about it. I forgot to extend module_presentations "]"
This is so stupid. :oops:
Errr... Do you mind explaining what exactly you did to me? I seem to be having the same issue.
 

MadGuarang

Sergeant
M&BWBNWVC
Best answers
0
Dear @rubik! This piece of code is one of the most beautiful things I had pleasure implement into them mod. When I read that this version of troop-tree will do with even most complicated army compositions I was very sceptical about it. Not that I don't believe your coding skills, but because I have around 1300 different troops on the counter. Divided into over 20 different factions. Different races... and so on.

Then I implemented this into my mod, Paradigm Worlds, and it works perfectly. More, thanks to that Tree View I was able to locate few mistakes. But most important, first time in life of that mod I could see all troops, not as a numbers in module file, but as very nice visualisations, linked one to another.

Thank You very much man, you made a great thing that improves a lot of mods, mine too. I will give it to players with version 1.05. They asked me to make that work for many days and thanks to you it happened. Cheers!




link to the mod if anyone interested:
 

DtheHun

Sergeant Knight
M&BWB
Best answers
0
Great feature and easy installation.

For me, only one additional call was missing:
Code:
from header_skills import *
from the header of "module_presentations.py"

Thanks!!! :grin: