Page 27 of 33 FirstFirst ... 21718192021222324252627282930313233 LastLast
Results 521 to 540 of 654

Thread: General discussion (use of already implemented functions, etc.)

  1. #521
    Lord Baal's Avatar Praefectus
    Join Date
    Apr 2011
    Location
    Republica de Venezuela
    Posts
    6,704

    Default Re: General discussion (use of already implemented functions, etc.)

    Oh in this version those changes apply when you start the mod.
    PROUD TO BE A PESANT. And for the dimwitted, I know how to spell peasant. <== This blue things are links, you click them and magical things (like not ending up like a fool) happens.
    Visit my utterly wall of doom here.
    Do you wanna play SS 6.4 and take your time while at it? Play with my 12 turns per year here.
    Y también quieres jugar Stainless Steel 100% en español? Mira por aca.

  2. #522

    Default Re: General discussion (use of already implemented functions, etc.)

    Quote Originally Posted by franky317 View Post
    Hello! I will be a little absent these days, I downloaded the latest version but as you can see in the picture the button to apply the changes is missing, is there another way? am I wrong ???

    As far as I remember in the last test version I added a button to save all settings.
    People always have been the foolish victims of deception and self-deception in politics, and they always will be, until they have learned to seek out the interests of some class or other behind all moral, religious, political and social phrases, declarations and promises
    medieval 2 total war engine overhaul project

  3. #523

    Default Re: Stainless Steel compatibility?

    Cheers guys, the test version worked on Stainless Steel once I ran it as admin, it's amazing to see these features being implemented 14 years after release. Having all the old console commands back is a blast Good luck with the continuing development youneuoy

  4. #524

    Default Re: General discussion (use of already implemented functions, etc.)

    I don't have a lot of free time for development right now, so I'll probably just post the latest stable version of the program as the latest in the near future. I'll be back to actively updating the program in a couple of weeks.
    People always have been the foolish victims of deception and self-deception in politics, and they always will be, until they have learned to seek out the interests of some class or other behind all moral, religious, political and social phrases, declarations and promises
    medieval 2 total war engine overhaul project

  5. #525

    Default Re: General discussion (use of already implemented functions, etc.)

    Well, I decided to start building a plugin system for m2tweop. This means that for your modifications you can make your own .dll files based on the template that I will provide and you will not need to worry about compatibility of m2tweop versions, patching operations of the game code, etc. You can just write c ++ code.
    People always have been the foolish victims of deception and self-deception in politics, and they always will be, until they have learned to seek out the interests of some class or other behind all moral, religious, political and social phrases, declarations and promises
    medieval 2 total war engine overhaul project

  6. #526

    Default Re: General discussion (use of already implemented functions, etc.)

    So, I decided on how it would look:
    in the youneuoy_data modification there will be a plugins folder in which there will be .dll files (plugins). These .dlls will contain a number of pre-built functions. To create such a .dll you will need knowledge of c ++ (it is quite easy to learn if you can write scripts for m2tw, c++ is much more convenient) and visual studio 2019. With m2tweop a template for such a plugin will be distributed.


    M2TWEOP will load all these .dlls into the game's address space and call their functions at certain moments, for example, at the beginning of a faction's turn, it will call the onFactionTurnStart function, passing the faction number to it. Also from these .dlls it will be possible to call M2TWEOP functions to work with the game, for example createUnit, addUnitToStack, etc. With new versions of m2tweop, I will add new functions, I think if the project is interesting to someone, it will turn out very quickly to completely replace the scripts in this way.


    This method has many advantages over scripts - performance, great capabilities, step-by-step code debugging, etc.


    I will try to finish the test version this week.
    People always have been the foolish victims of deception and self-deception in politics, and they always will be, until they have learned to seek out the interests of some class or other behind all moral, religious, political and social phrases, declarations and promises
    medieval 2 total war engine overhaul project

  7. #527

    Default Re: General discussion (use of already implemented functions, etc.)

    But how do you "discover" new possibilities to unlock hardcoded things in the game? How can somebody for example try to unlock the 31-faction limit in M2TW?

  8. #528

    Default Re: General discussion (use of already implemented functions, etc.)

    Quote Originally Posted by Ocyalos View Post
    But how do you "discover" new possibilities to unlock hardcoded things in the game? How can somebody for example try to unlock the 31-faction limit in M2TW?
    Reversing, reversing and reversing again)
    As for the faction limit, I don’t think it’s worth setting this very goal. If I had chosen it for the project, I still would not have achieved anything.
    People always have been the foolish victims of deception and self-deception in politics, and they always will be, until they have learned to seek out the interests of some class or other behind all moral, religious, political and social phrases, declarations and promises
    medieval 2 total war engine overhaul project

  9. #529

    Default Re: General discussion (use of already implemented functions, etc.)

    Look what I did
    People who follow the project come from somewhere, but they often write little. If you are one of them, you can now support the project on patreon.
    I will not give any special things to the patrons, this is just a convenient way to support the project (as far as I understand, everyone can pay there, otherwise there will be huge problems with this).
    Write if you suddenly support the project financially.
    https://www.patreon.com/m2tweop
    People always have been the foolish victims of deception and self-deception in politics, and they always will be, until they have learned to seek out the interests of some class or other behind all moral, religious, political and social phrases, declarations and promises
    medieval 2 total war engine overhaul project

  10. #530

    Default Re: General discussion (use of already implemented functions, etc.)

    Here are the lists to try to give a priority to events that should be converted in c++. Since performances in campaign are the main interest of the thing, i have isolated the battle events. Events ordinary used in edtc have also been set aside (even if some of them could be ponctually used in scripts of course). I don't use myself all of them, so suggestions are welcome to better determine priorities.

    Strat:

    Frequently used:
    Spoiler Alert, click show to read: 

    PreFactionTurnStart
    FactionTurnStart
    FactionTurnEnd
    FactionNewCapital
    FactionWarDeclared
    FactionAllianceDeclared
    FactionTradeAgreementMade
    FactionBreakAlliance
    InterFactionMarriage
    GiveMoney
    HordeFormed
    Transgression
    DishonestTransgression
    UpdateAttitude
    Demeanour
    CharacterTurnStart
    CharacterTurnEnd
    CharacterSelected
    GeneralAssaultsResidence
    GeneralAssaultsGeneral
    GeneralCaptureResidence
    GeneralCaptureSettlement
    SiegeEquipmentCompleted
    PostBattle
    SettlementTurnStart
    SettlementTurnEnd
    SettlementSelected
    SettlementUpgraded
    SettlementConverted
    Insurrection
    CityRiots
    GiveSettlement
    CityRebels
    UngarrisonedSettlement
    OccupySettlement
    SackSettlement
    ExterminatePopulation
    CitySacked
    BuildingCompleted
    BuildingDestroyed
    AddedToBuildingQueue
    GuildUpgraded
    GuildDestroyed
    AgentCreated
    UnitTrained
    UnitDisbanded
    AddedToTrainingQueue
    EventCounter
    TileSeen
    ObjSeen
    CharacterPanelOpen
    SettlementPanelOpen
    FinancesPanelOpen
    FactionSummaryPanelOpen
    FamilyTreePanelOpen
    DiplomaticStandingPanelOpen
    DiplomacyPanelOpen
    PreBattlePanelOpen
    RecruitmentPanelOpen
    ConstructionPanelOpen
    TradePanelOpen
    HireMercenariesPanelOpen
    NavalAutoResolvePanelOpen
    IncomingMessage
    MessageOpen
    MessageClosed
    RequestBuildingAdvice
    RequestTrainingAdvice
    RequestMercenariesAdvice
    ButtonPressed
    ShortcutTriggered
    UIElementVisible
    ScrollOpened
    ScrollClosed
    AdviceSupressed
    ScrollAdviceRequested
    PreBattleScrollAdviceRequested
    NavalPreBattleScrollAdviceRequested
    SettlementScrollAdviceRequested
    AbandonShowMe
    ScriptedAdvice
    EscPressed
    GameReloaded
    DeclineAuatedSettlementManagement
    Disaster

    More ponctualy used (most of them being linked to the papal system and so not used by all mods):
    Spoiler Alert, click show to read: 

    PopeElected
    VotedForPope
    FactionExcommunicated
    CrusadeCalled
    CrusadeEnds
    PopeAcceptsCrusadeTarget
    PopeRejectsCrusadeTarget
    UnitsDesertCrusade
    ArmyTakesCrusadeTarget
    Forgiveness
    InquisitorAppointed
    AssassinCaughtAttackingPope
    CollegeOfCardinalsPanelOpen
    MultiTurnMove
    UngarrisonedFort
    EnemyCharacterSelected (unknow use)

    Ordinary used in edct rather than in scripts:
    Spoiler Alert, click show to read: 

    PreBattleWithdrawal
    HireMercenaries
    CharacterDamagedByDisaster
    OfferedForAdoption
    OfferedForMarriage
    BrotherAdopted
    BecomesFactionLeader
    BecomesFactionHeir
    Birth
    CharacterComesOfAge
    CharacterMarries
    CharacterMarriesPrincess
    MarriageAlliancePosssible
    MarriageAllianceOffered
    PriestBecomesHeretic
    CharacterNearHeretic
    CharacterNearWitch
    CardinalPromoted
    CardinalRemoved
    CharacterBecomesAFather
    CharacterTurnEndInSettlement
    GeneralDevastatesTile
    GeneralJoinCrusade
    GeneralAbandonCrusade
    GeneralArrivesCrusadeTargetRegion
    GeneralTakesCrusadeTarget
    FatherDiesNatural
    CharacterAttacksCrusadingGeneral
    GeneralPrisonersRansomedCaptor
    GeneralPrisonersRansomedCaptive
    FactionLeaderPrisonersRansomedCaptor
    FactionLeaderPrisonersRansomedCaptive
    CapturedCharacterRansomed
    CapturedCharacterReleased
    SpyMission
    ExecutesASpyOnAMission
    ExecutesASpyOnAMission
    AssassinationMission
    ExecutesAnAssassinOnAMission
    LeaderOrderedAssassination
    SufferAssassinationAttempt
    AcquisitionMission
    SufferAcquisitionAttempt
    MarriageMission
    SufferMarriageAttempt
    DenouncementMission
    SufferDenouncementAttempt
    SabotageMission
    LeaderOrderedSabotage
    BriberyMission
    LeaderOrderedBribery
    AcceptBribe
    RefuseBribe
    DiplomacyMission
    LeaderOrderedDiplomacy
    LeaderMissionSuccess
    LeaderMissionFailed
    NewAdmiralCreated
    GovernorUnitTrained
    GovernorBuildingCompleted
    GovernorAgentCreated
    GovernorCityRiots
    GovernorCityRebels
    GovernorThrowGames
    GovernorThrowRaces
    LeaderOrderedSpyingMission
    MissionFinished
    CeasedFactionLeader
    CeasedFactionHeir
    LesserGeneralOfferedForAdoption

    Battle:

    Frequently used:
    Spoiler Alert, click show to read: 

    BattleAiCommenced
    BattleDelayPhaseCommenced
    BattleDeploymentPhaseCommenced
    BattleConflictPhaseCommenced
    BattlePlayerUnitAttacksEnemyUnit
    BattleEnemyUnitAttacksPlayerUnit
    BattleUnitRouts
    BattlePlayerUnitRouts
    BattleEnemyUnitRouts
    BattleArmyRouted
    BattleGeneralKilled
    BattleGeneralRouted
    BattleReinforcementsArrive
    BattleSiegeEngineDestroyed
    BattlePlayerSiegeEngineDestroyed
    BattleEnemySiegeEngineDestroyed
    BattleSiegeEngineDocksWall
    BattleGatesAttackedByEngine
    BattleGatesAttackedByPlayerEngine
    BattleGatesAttackedByEnemyEngine
    BattleBattleGatesDestroyedByEngine
    BattleWallsBreachedByEngine
    BattleWallsCaptured
    BattleFinished
    BattleWinningPlaza
    BattleStopsWinningPlaza
    BattleDominatingPlaza
    BattlePlayerUnderAttackIdle
    BattleWinningCombat
    BattleTideofBattle

    More ponctually used:
    Spoiler Alert, click show to read: 

    BattlePlayerAttacksSettlementBuilding
    BattleEnemyAttacksSettlementBuilding
    BattleUnitGoesBerserk
    BattlePlayerUnitGoesBerserk
    BattnemyUnitGoesBerserk
    BattleSpySuccess
    BattleEngineUnmanned
    BattleArmyHalfDestroyed (delayed by other events so not really useful since it can fire at 51 or 74% for example)
    BattlePlayerArmyHalfDestroyed (same thing)
    BattleEnemyArmyHalfDestroyed (same thing)
    BattleArmyTired (not reliable and can aslo fire after battles)

  11. #531

    Default Re: General discussion (use of already implemented functions, etc.)

    So, I decided to make the following events in this version:
    Spoiler Alert, click show to read: 

    "PreFactionTurnStart",
    "FactionTurnStart",
    "FactionTurnEnd",
    "FactionNewCapital",
    "FactionWarDeclared",
    "FactionAllianceDeclared",
    "FactionTradeAgreementMade",
    "FactionBreakAlliance",
    "InterFactionMarriage",
    "GiveMoney",
    "HordeFormed",
    "Transgression",
    "DishonestTransgression",
    "UpdateAttitude",
    "Demeanour",
    "CharacterSelected",
    "GeneralAssaultsResidence",
    "GeneralAssaultsGeneral",
    "GeneralCaptureResidence",
    "GeneralCaptureSettlement",
    "SiegeEquipmentCompleted",
    "PostBattle",
    "SettlementSelected",
    "SettlementUpgraded",
    "SettlementConverted",
    "Insurrection",
    "CityRiots",
    "GiveSettlement",
    "CityRebels",
    "UngarrisonedSettlement",
    "OccupySettlement",
    "SackSettlement",
    "ExterminatePopulation",
    "CitySacked",
    "BuildingCompleted",
    "BuildingDestroyed",
    "AddedToBuildingQueue",
    "GuildUpgraded",
    "GuildDestroyed",
    "AgentCreated",
    "UnitTrained",
    "UnitDisbanded",
    "AddedToTrainingQueue",
    "EventCounter",
    "TileSeen",
    "ObjSeen",
    "CharacterPanelOpen",
    "SettlementPanelOpen",
    "FinancesPanelOpen",
    "FactionSummaryPanelOpen",
    "FamilyTreePanelOpen",
    "DiplomaticStandingPanelOpen",
    "DiplomacyPanelOpen",
    "PreBattlePanelOpen",
    "RecruitmentPanelOpen",
    "ConstructionPanelOpen",
    "TradePanelOpen",
    "HireMercenariesPanelOpen",
    "NavalAutoResolvePanelOpen",
    "IncomingMessage",
    "MessageOpen",
    "MessageClosed",
    "RequestBuildingAdvice",
    "RequestTrainingAdvice",
    "RequestMercenariesAdvice",
    "ButtonPressed",
    "UIElementVisible",
    "ScrollOpened",
    "ScrollClosed",
    "AdviceSupressed",
    "ScrollAdviceRequested",
    "PreBattleScrollAdviceRequested",
    "NavalPreBattleScrollAdviceRequested",
    "SettlementScrollAdviceRequested",
    "AbandonShowMe",
    "ScriptedAdvice",
    "GameReloaded",
    "DeclineAuatedSettlementManagement",
    "Disaster",
    "PopeElected",
    "VotedForPope",
    "FactionExcommunicated",
    "CrusadeCalled",
    "CrusadeEnds",
    "PopeAcceptsCrusadeTarget",
    "PopeRejectsCrusadeTarget",
    "UnitsDesertCrusade",
    "ArmyTakesCrusadeTarget",
    "Forgiveness",
    "InquisitorAppointed",
    "AssassinCaughtAttackingPope",
    "CollegeOfCardinalsPanelOpen",
    "MultiTurnMove",
    "UngarrisonedFort"
    People always have been the foolish victims of deception and self-deception in politics, and they always will be, until they have learned to seek out the interests of some class or other behind all moral, religious, political and social phrases, declarations and promises
    medieval 2 total war engine overhaul project

  12. #532

    Default Re: General discussion (use of already implemented functions, etc.)

    I need a tester for a plugin system.
    This should be a person who is not difficult to compile a project in visual studio (I will provide a template), and it is also easy to write a couple of lines of code (no need to invent anything, it is enough to be able to create a new string and output it to the messagebox).


    This is necessary to check the correctness of the added events.


    The tests are supposed to be regular, but they will not take much time (the main thing is to check all events, I will just send a new version of the template as new ones are added).


    I would be very grateful for your help)


    In principle, the tester can immediately make ready-made plugins, now it is already possible to do simple things, such as financial assistance to AI, etc:yum:
    True, templates do not yet import any m2tweop functions, except for the function that receives the current turn number, but the data that came to the function as parameters can already be changed.
    I also need saves in which I can easily get the necessary events, if they are rare enough (example - HordeFormed, I have no idea what it is). I can load your save, receive this event, define parameters for it, etc.

    it would be ideal if it was also in a small modification specially made for the test. If someone decides to help with this, they will go to developers of the M2TWEOP

    It seems to me that this project is worth taking part in its development.
    So far, I have implemented 7 events from the list, I will continue later. Next, unusual events begin and I will have to try to find them in the game



    that's something like this you need to be able to do for the test (no supernatural knowledge is needed)
    Last edited by youneuoy; September 22, 2020 at 05:02 PM.
    People always have been the foolish victims of deception and self-deception in politics, and they always will be, until they have learned to seek out the interests of some class or other behind all moral, religious, political and social phrases, declarations and promises
    medieval 2 total war engine overhaul project

  13. #533

    Default Re: General discussion (use of already implemented functions, etc.)

    I don’t see anyone willing to participate in the development Coding in c++ is not required, but the ability to create a minimod to find unusual events is necessary.
    Perhaps, after all, someone would like to help?
    People always have been the foolish victims of deception and self-deception in politics, and they always will be, until they have learned to seek out the interests of some class or other behind all moral, religious, political and social phrases, declarations and promises
    medieval 2 total war engine overhaul project

  14. #534
    Lord Baal's Avatar Praefectus
    Join Date
    Apr 2011
    Location
    Republica de Venezuela
    Posts
    6,704

    Default Re: General discussion (use of already implemented functions, etc.)

    Darn it, I would love for sure to help out but real life get in the freaking way too often!

    C'mon people youneuoy is giving us the keys of the kingdom here and no one is left to pick them up?! For real?!

    Edit: If no one else if up to do it, I will youneuoy, I'm a programmer and while have not done anything with C++ is a rather simple task and the language is not that hard, however it would probably be extremely slow (like perhaps half and hour, maybe an hour on rare instances every other day slow).
    Last edited by Lord Baal; September 23, 2020 at 07:27 PM.
    PROUD TO BE A PESANT. And for the dimwitted, I know how to spell peasant. <== This blue things are links, you click them and magical things (like not ending up like a fool) happens.
    Visit my utterly wall of doom here.
    Do you wanna play SS 6.4 and take your time while at it? Play with my 12 turns per year here.
    Y también quieres jugar Stainless Steel 100% en español? Mira por aca.

  15. #535

    Default Re: General discussion (use of already implemented functions, etc.)

    Lord Baal, I think it's not so bad. On the discord server, Erken(just now) wrote that he is ready to help with creating a minimod for receiving non-standard events. I think over time there will be a person who wants to test this in detail. My idea was to check and do everything at once, so as not to return later (it may be necessary to redo a certain amount of code, and it will not be very convenient to look for it later - the volume is planned to be rather big, even if take into account that for each event I need up to a couple tens of lines of code).
    Last edited by youneuoy; September 24, 2020 at 02:09 AM.
    People always have been the foolish victims of deception and self-deception in politics, and they always will be, until they have learned to seek out the interests of some class or other behind all moral, religious, political and social phrases, declarations and promises
    medieval 2 total war engine overhaul project

  16. #536

    Default Re: General discussion (use of already implemented functions, etc.)

    DinarMayor also agreed to help me with event testing (he can do some c ++ code for this).
    It's good that there were people ready to help. But in my opinion it's not very good that these people help every time
    Thanks a lot to DinarMayor and Erken anyway. I think that as a result they will be immortalized and future generations will remember them by m2tweop.
    People always have been the foolish victims of deception and self-deception in politics, and they always will be, until they have learned to seek out the interests of some class or other behind all moral, religious, political and social phrases, declarations and promises
    medieval 2 total war engine overhaul project

  17. #537
    z3n's Avatar State of Mind
    took an arrow to the knee

    Join Date
    Aug 2011
    Posts
    4,640

    Default Re: General discussion (use of already implemented functions, etc.)

    What c++ code do you refer to exactly? I'm a little confused about that. I could possibly help a bit, but I'm rather busy with university... So no promises if it's complex.

    I also need saves in which I can easily get the necessary events, if they are rare enough (example - HordeFormed, I have no idea what it is).
    HordeFormed is leftover from Barbarian Invasion (RTW), I'm not sure it is even used in M2TW but I recall the Mongol hordes spawning at one point. I'm not sure if the scripting event was involved with that however.
    The AI Workshop Creator
    Europa Barbaroum II AI/Game Mechanics Developer
    The Northern Crusades Lead Developer
    Classical Age Total War Retired Lead Developer
    Rome: Total Realism Animation Developer
    RTW Workshop Assistance MTW2 AI Tutorial & Assistance
    Broken Crescent Submod (M2TW)/IB VGR Submod (BI)/Animation (RTW/BI/ALX)/TATW PCP Submod (M2TW)/TATW DaC Submod (M2TW)/DeI Submod (TWR2)/SS6.4 Northern European UI Mod (M2TW)

  18. #538

    Default Re: General discussion (use of already implemented functions, etc.)

    Quote Originally Posted by z3n View Post
    What c++ code do you refer to exactly? I'm a little confused about that. I could possibly help a bit, but I'm rather busy with university... So no promises if it's complex.
    I think I wrote about this above - we are talking about testing the plugin system for m2tweop, or rather, testing plugin functions. Plugins are created in the c ++ programming language.
    Later, it is planned to completely replace the m2tw scripts.


    Quote Originally Posted by z3n View Post
    HordeFormed is leftover from Barbarian Invasion (RTW), I'm not sure it is even used in M2TW but I recall the Mongol hordes spawning at one point. I'm not sure if the scripting event was involved with that however.
    it seems there we are talking about the usual spawn_army.
    People always have been the foolish victims of deception and self-deception in politics, and they always will be, until they have learned to seek out the interests of some class or other behind all moral, religious, political and social phrases, declarations and promises
    medieval 2 total war engine overhaul project

  19. #539
    franky317's Avatar Libertus
    Join Date
    Jul 2011
    Location
    Rieti, (Ita)
    Posts
    99

    Default Re: General discussion (use of already implemented functions, etc.)

    Hello! soon I will be able to help too, in this period I had very little time for modding, as soon as I can I will be happy to help

  20. #540

    Default Re: General discussion (use of already implemented functions, etc.)

    a third of the selected events is ready (about 30 pieces)
    People always have been the foolish victims of deception and self-deception in politics, and they always will be, until they have learned to seek out the interests of some class or other behind all moral, religious, political and social phrases, declarations and promises
    medieval 2 total war engine overhaul project

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •