vghetto port project

Discussion and development of scenarios and campaigns for the game.

Moderator: Forum Moderators

Post Reply
vghetto
Posts: 755
Joined: November 2nd, 2019, 5:12 pm

Re: vghetto port project

Post by vghetto »

Thank you, I updated the list.
I'm still not sure how the hidden kingdom ended up in my to-port folder, might have copied it by mistake.
User avatar
Tarcil
Posts: 97
Joined: October 31st, 2014, 11:46 am

Re: vghetto port project

Post by Tarcil »

Played Northern Forces and really enjoyed it, esp. with the high quality german translation, but in one of the scenarios this occured:
https://ibb.co/gjb40nn
https://ibb.co/279k9T1

Skipped this scenario and the rest worked well.
Creator of "In Defense of Kharos" viewtopic.php?t=56628
vghetto
Posts: 755
Joined: November 2nd, 2019, 5:12 pm

Re: vghetto port project

Post by vghetto »

Tarcil wrote: January 11th, 2022, 1:22 pm Played Northern Forces and really enjoyed it, esp. with the high quality german translation, but in one of the scenarios this occured:
https://ibb.co/gjb40nn
https://ibb.co/279k9T1

Skipped this scenario and the rest worked well.
Please send me the save file for both if you have them. The ones without a turn number in them.
I'm not sure about the first image, maybe the translation has something to do with it. It looks weird.
The second image, I thought I already fixed that, but apparently I missed something else. I need to see which unit still had the relic micro_ai variable from prior scenarios and clear them.
vghetto
Posts: 755
Joined: November 2nd, 2019, 5:12 pm

Re: vghetto port project

Post by vghetto »

Roar of the Woses uploaded to 1.14 and 1.16.
I got lazy, I didn't change the engine=fai to engine=lua. It worked fine as is on 1.14. Please, let me know if it doesn't work on 1.16.
I did have to change the map generation for one of the scenarios from scenario_generation=cave to map_generation=lua. Hopefully I did that part right.
User avatar
Tarcil
Posts: 97
Joined: October 31st, 2014, 11:46 am

Re: vghetto port project

Post by Tarcil »

vghetto wrote: January 11th, 2022, 2:11 pm
Please send me the save file for both if you have them. The ones without a turn number in them.
I'm not sure about the first image, maybe the translation has something to do with it. It looks weird.
The second image, I thought I already fixed that, but apparently I missed something else. I need to see which unit still had the relic micro_ai variable from prior scenarios and clear them.
Was at scenario 14, don´t know how its named in english. Directly at the first turn, when team blue is at the move. How do I upload a save correctly?
Creator of "In Defense of Kharos" viewtopic.php?t=56628
vghetto
Posts: 755
Joined: November 2nd, 2019, 5:12 pm

Re: vghetto port project

Post by vghetto »

Tarcil wrote: January 12th, 2022, 12:28 pm Was at scenario 14, don´t know how its named in english. Directly at the first turn, when team blue is at the move. How do I upload a save correctly?
Yes, it is scenario 14. The save file for me says NF-The Coalition.gz
To upload it, click on Attachments when you do the post.
User avatar
Argesilao2
Posts: 113
Joined: February 18th, 2020, 9:28 pm
Location: Piciule Patrie

Re: vghetto port project

Post by Argesilao2 »

Fate of a Princess has been updated and ported to BfW 1.16 :D

The campaign has been tested from start to finish, is playable from start to finish, and is 99% operational. :eng:

Ehi! Wait a moment! Why not at 100%? :annoyed:

Well, because there are three scenarios where is used this tag

Code: Select all

        [micro_ai_FoaP]
            side=2
            ai_type=messenger_escort
            action=add
            id=Melinde
            [filter_second]
                id=Protector_1,Protector_2,Protector_3[i] #this line changes in the three scenarios[/i]
            [/filter_second]
            waypoint_x=23,23 [i]#this line changes in the three scenarios[/i]
            waypoint_y=25,25 [i] #this line changes in the three scenarios[/i]
        [/micro_ai_FoaP]
And when this tag is used it generates a lua error message;

20220112 15:25:16 error scripting/lua: ai/micro_ais/cas/ca_messenger_f_next_waypoint.lua:12: Expected a table or wml object but got unit
stack traceback:
C: in function '.error'
lua/core/wml.lua:11: in upvalue 'ensure_config'
lua/core/wml.lua:23: in function 'wml.get_child'
ai/micro_ais/cas/ca_messenger_f_next_waypoint.lua:12: in upvalue 'messenger_next_waypoint'
~add-ons/Fate_of_a_Princess/ai/ca_messenger_attack.lua:144: in function <~add-ons/Fate_of_a_Princess/ai/ca_messenger_attack.lua:136>
(...tail calls...)

The error does not appear to affect the playability of the scenarios and the campaign, but it fills the screen.
Since my knowledge of the lua language is comparable to my knowledge of ancient Aramaic, I have solved the problem by adding a slew of # to the lines of the aforementioned code, and everything works. :mrgreen:

If anyone has a viable alternative to the slew of #s let me know and I'll fix it. ;)
In the meantime, I'm going to study ancient Aramaic. :geek:
vghetto
Posts: 755
Joined: November 2nd, 2019, 5:12 pm

Re: vghetto port project

Post by vghetto »

Argesilao2 wrote: January 12th, 2022, 2:51 pm Fate of a Princess has been updated and ported to BfW 1.16 :D

The campaign has been tested from start to finish, is playable from start to finish, and is 99% operational. :eng:

Ehi! Wait a moment! Why not at 100%? :annoyed:

Well, because there are three scenarios where is used this tag

Code: Select all

        [micro_ai_FoaP]
            side=2
            ai_type=messenger_escort
            action=add
            id=Melinde
            [filter_second]
                id=Protector_1,Protector_2,Protector_3[i] #this line changes in the three scenarios[/i]
            [/filter_second]
            waypoint_x=23,23 [i]#this line changes in the three scenarios[/i]
            waypoint_y=25,25 [i] #this line changes in the three scenarios[/i]
        [/micro_ai_FoaP]
And when this tag is used it generates a lua error message;

20220112 15:25:16 error scripting/lua: ai/micro_ais/cas/ca_messenger_f_next_waypoint.lua:12: Expected a table or wml object but got unit
stack traceback:
C: in function '.error'
lua/core/wml.lua:11: in upvalue 'ensure_config'
lua/core/wml.lua:23: in function 'wml.get_child'
ai/micro_ais/cas/ca_messenger_f_next_waypoint.lua:12: in upvalue 'messenger_next_waypoint'
~add-ons/Fate_of_a_Princess/ai/ca_messenger_attack.lua:144: in function <~add-ons/Fate_of_a_Princess/ai/ca_messenger_attack.lua:136>
(...tail calls...)

The error does not appear to affect the playability of the scenarios and the campaign, but it fills the screen.
Since my knowledge of the lua language is comparable to my knowledge of ancient Aramaic, I have solved the problem by adding a slew of # to the lines of the aforementioned code, and everything works. :mrgreen:

If anyone has a viable alternative to the slew of #s let me know and I'll fix it. ;)
In the meantime, I'm going to study ancient Aramaic. :geek:
Don't use micro_ai micro_ai_FoaP. Disable it completely. Call mainline messenger_escort instead.
I think that custom micro_ai was added just for the [filter_second] tag which apparently 1.12 did not support at the time. In 1.14/1.16 [filter_second] is supported in mainline.
Also make sure to clear the units variables.micro_ai value or call [micro_ai] action=delete after the unit reaches its destination. That should get rid of the lua error.
User avatar
Argesilao2
Posts: 113
Joined: February 18th, 2020, 9:28 pm
Location: Piciule Patrie

Re: vghetto port project

Post by Argesilao2 »

vghetto wrote: January 12th, 2022, 3:04 pm Don't use micro_ai micro_ai_FoaP. Disable it completely. Call mainline messenger_escort instead.
I think that custom micro_ai was added just for the [filter_second] tag which apparently 1.12 did not support at the time. In 1.14/1.16 [filter_second] is supported in mainline.
Also make sure to clear the units variables.micro_ai value or call [micro_ai] action=delete after the unit reaches its destination. That should get rid of the lua error.
Fixed; now the campaign it's fully operational :D or at least I hope so ...

I can go back to focusing on ancient Aramaic. :geek:
User avatar
Tarcil
Posts: 97
Joined: October 31st, 2014, 11:46 am

Re: vghetto port project

Post by Tarcil »

vghetto wrote: January 12th, 2022, 12:47 pm
Tarcil wrote: January 12th, 2022, 12:28 pm Was at scenario 14, don´t know how its named in english. Directly at the first turn, when team blue is at the move. How do I upload a save correctly?
Yes, it is scenario 14. The save file for me says NF-The Coalition.gz
To upload it, click on Attachments when you do the post.
NW-Bund der Nordmänner-Autospeichern2.gz
(108.81 KiB) Downloaded 39 times
Creator of "In Defense of Kharos" viewtopic.php?t=56628
vghetto
Posts: 755
Joined: November 2nd, 2019, 5:12 pm

Re: vghetto port project

Post by vghetto »

Tarcil wrote: January 12th, 2022, 6:06 pm
vghetto wrote: January 12th, 2022, 12:47 pm
Tarcil wrote: January 12th, 2022, 12:28 pm Was at scenario 14, don´t know how its named in english. Directly at the first turn, when team blue is at the move. How do I upload a save correctly?
Yes, it is scenario 14. The save file for me says NF-The Coalition.gz
To upload it, click on Attachments when you do the post.
NW-Bund der Nordmänner-Autospeichern2.gz
Thank you for the upload. If you could attach the save file without the -Autospeichern part, that would be super helpful. I'm guessing the file is called NW-Bund der Nordmänner.gz.

Edit:
I think I got what the problem is. I cleared {CLEAR_VARIABLE rhygumyr_stored.variables.micro_ai} instead of {CLEAR_VARIABLE rhygumyr_stored.variables.micro_ai_mai_messenger}
User avatar
Lord-Knightmare
Discord Moderator
Posts: 2337
Joined: May 24th, 2010, 5:26 pm
Location: Somewhere in the depths of Irdya, gathering my army to eventually destroy the known world.
Contact:

Re: vghetto port project

Post by Lord-Knightmare »

Ported the "Forgotten Kingdom" to 1.16.x server under the project.
Creator of "War of Legends"
Creator of the Isle of Mists survival scenario.
Maintainer of Forward They Cried
User:Knyghtmare | My Medium
vghetto
Posts: 755
Joined: November 2nd, 2019, 5:12 pm

Re: vghetto port project

Post by vghetto »

Lord-Knightmare wrote: January 13th, 2022, 7:27 pm Ported the "Forgotten Kingdom" to 1.16.x server under the project.
Thanks! I updated the list. Feel free to pick something else if you like.
User avatar
Lord-Knightmare
Discord Moderator
Posts: 2337
Joined: May 24th, 2010, 5:26 pm
Location: Somewhere in the depths of Irdya, gathering my army to eventually destroy the known world.
Contact:

Re: vghetto port project

Post by Lord-Knightmare »

vghetto wrote: January 14th, 2022, 5:54 am
Lord-Knightmare wrote: January 13th, 2022, 7:27 pm Ported the "Forgotten Kingdom" to 1.16.x server under the project.
Thanks! I updated the list. Feel free to pick something else if you like.
Red_Winter (Sire)
I see that the author of this is still active. Maybe this should be dropped as the author might be secretly working on it and would probably release it on the latest? Or, contacted to know if it's actually abandoned or not?
Creator of "War of Legends"
Creator of the Isle of Mists survival scenario.
Maintainer of Forward They Cried
User:Knyghtmare | My Medium
Post Reply