Author Topic: [LSP] Map Icons Pack  (Read 19589 times)

0 Members and 1 Guest are viewing this topic.

ᚱᛟᛒᛟ

  • Regular
  • *
    • Steam - https://steamcommunity.com/profiles/76561198284004884/
    • View Profile
  • Faction: Nord
  • WB
Re: [LSP] Map Icons Pack
« Reply #60 on: September 23, 2019, 02:58:19 PM »
By their own, "variables not used" warning isn't anything to worry about. In some of my mods I have a lot of those lying around, mostly of experiments half-implemented or failed. It is a bit of lazy programming not to erase them and I know kalarhan would frown at this shoddy work.  :P
But it just means that you assign a variable and you don't really use it anywhere.

Now, as for the "Error: Unable to find object:pt_battlefield", that means that you forgot to add a party template named battlefield or miss-typed something. Check what you edited in party templates. As for the other errors, again probably a miss-type, you seem to reference the wrong type of variable.

Still i havent changed anything from what the tutorial is giving, this error is from something thats already in the module system.
(click to show/hide)

And nothing is to be added in module_party_templates, and i don´t know how i would add it.
(click to show/hide)
« Last Edit: September 23, 2019, 03:16:04 PM by ᚱᛟᛒᛟ »

Janycz

  • Knight
  • *
  • IT-Shaman
    • View Profile
  • Faction: Swadian
  • WB
Re: [LSP] Map Icons Pack
« Reply #61 on: September 24, 2019, 08:22:40 AM »
@ᚱᛟᛒᛟ, oh, I forgot to write about party template 'battlefield'. Just create in module_party_templates.py party template 'battlefield'.
1 + 2 + 3 + 4 + ... = ζ(-1) = -0.08(3)
1 - 1 + 1 - 1 + 1 - ... = 0.5
1 - 2 + 3 - 4 + 5 - ... = 0.25

ᚱᛟᛒᛟ

  • Regular
  • *
    • Steam - https://steamcommunity.com/profiles/76561198284004884/
    • View Profile
  • Faction: Nord
  • WB
Re: [LSP] Map Icons Pack
« Reply #62 on: September 24, 2019, 09:15:47 AM »
@ᚱᛟᛒᛟ, oh, I forgot to write about party template 'battlefield'. Just create in module_party_templates.py party template 'battlefield'.

like this? if not what specifics dose it need.
(click to show/hide)

Janycz

  • Knight
  • *
  • IT-Shaman
    • View Profile
  • Faction: Swadian
  • WB
Re: [LSP] Map Icons Pack
« Reply #63 on: September 24, 2019, 04:21:11 PM »
Yes, like this.
1 + 2 + 3 + 4 + ... = ζ(-1) = -0.08(3)
1 - 1 + 1 - 1 + 1 - ... = 0.5
1 - 2 + 3 - 4 + 5 - ... = 0.25

ᚱᛟᛒᛟ

  • Regular
  • *
    • Steam - https://steamcommunity.com/profiles/76561198284004884/
    • View Profile
  • Faction: Nord
  • WB
Re: [LSP] Map Icons Pack
« Reply #64 on: September 24, 2019, 10:46:09 PM »
i get this error for the pt_battlefield, same with the other osp but with the simple_trigger and when i try to launch the game i get an error that tell me that the module in question could't be read.
(click to show/hide)

ᚱᛟᛒᛟ

  • Regular
  • *
    • Steam - https://steamcommunity.com/profiles/76561198284004884/
    • View Profile
  • Faction: Nord
  • WB
Re: [LSP] Map Icons Pack
« Reply #65 on: September 24, 2019, 11:44:05 PM »
have no idea what i really did but i got it working barely.... the lords and kings spawn with the same icon but seperate depending on the faction and i tried entering a battle and the battleground did not appear after the battle

Dj_FRedy

  • Count
  • *
  • "game_start"
    • View Profile
  • Faction: Swadian
  • M&BWBNWVCWF&S
Re: [LSP] Map Icons Pack
« Reply #66 on: September 25, 2019, 09:58:58 AM »
Read carefully the header of each file you want to modify, there are the fields for each module. In this case you forgot to add a field to the tuple, the number 6). The game is waiting for a number 'located in header_parties', instead it gets a list [].
Don't forget to stop by the 'Documentation & Tutorials' section for more information.

(click to show/hide)
"Lately I have had little time to play. That is the downside of modding. And once you get behind the scenes (no pun intended) some of the magic disappears. You start contemplating ways to change the game instead of just playing and having fun. Suddenly it is more fun modding than actually playing".
Adorno

ᚱᛟᛒᛟ

  • Regular
  • *
    • Steam - https://steamcommunity.com/profiles/76561198284004884/
    • View Profile
  • Faction: Nord
  • WB
Re: [LSP] Map Icons Pack
« Reply #67 on: September 25, 2019, 08:38:35 PM »
I dont think its something wrong with the module cus everything works except for the kings, they dont want to "equip" the kings icon but they equip the lord icon but i will read into that!

(the battlefield works but i could't see it cus for some reason it was tiny as hell)

The Bowman

  • Count
  • *
    • Steam - thebowmantw
    • View Profile
  • Faction: Khergit
  • MP nick: The_Bowman
  • WBM&BVCNWWF&S
Re: [LSP] Map Icons Pack
« Reply #68 on: November 14, 2019, 08:24:40 PM »
Hey, Janycz
I have managed to install your scripts successfully with the Diplomacy mod. Everything works, but the game gives me these errors whenever I end a battle (it does not happen with the AI battles, as far as I have noticed).

Do you have any idea on where the problem may lay, based on this screenshot?
(click to show/hide)

Thanks.
Coming soon since 2012. Click on the picture below to expand your expectations.


Native Scene Replacement Pack.
New release (30.12.2018).

Janycz

  • Knight
  • *
  • IT-Shaman
    • View Profile
  • Faction: Swadian
  • WB
Re: [LSP] Map Icons Pack
« Reply #69 on: November 15, 2019, 07:08:54 AM »
@The Bowman, I see that battle_political_consequences does not work good. Invalid party appears there too.
I think, that it is needed draw icon, using alive party from set { root_attacker_party, root_defender_party }
e. g.
Code: [Select]
(assign, ":party_to_draw", ":root_attacker_party"),
(try_begin),
(neg|party_is_active, ":root_attacker_party"),
#maybe, I should insert extra conditions here...
(assign, ":party_to_draw", ":root_defender_party"),
(try_end),
(call_script, "script_draw_battle_icon", ":party_to_draw"),

instead of
Code: [Select]
(call_script, "script_draw_battle_icon", ":root_attacker_party"),
Note: snippet is untested.
1 + 2 + 3 + 4 + ... = ζ(-1) = -0.08(3)
1 - 1 + 1 - 1 + 1 - ... = 0.5
1 - 2 + 3 - 4 + 5 - ... = 0.25

The Bowman

  • Count
  • *
    • Steam - thebowmantw
    • View Profile
  • Faction: Khergit
  • MP nick: The_Bowman
  • WBM&BVCNWWF&S
Re: [LSP] Map Icons Pack
« Reply #70 on: November 15, 2019, 07:51:11 PM »
I have tested the code snippet, and I can confirm that everything works. No more error messages.

Cheers.

Bonus screenshot:
(click to show/hide)
Coming soon since 2012. Click on the picture below to expand your expectations.


Native Scene Replacement Pack.
New release (30.12.2018).