Results 1 to 13 of 13

Thread: Question to Shogun or Mike regarding -ai parameter

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Bug Hunter Senior Member player1's Avatar
    Join Date
    Feb 2005
    Location
    Belgrade, Serbia
    Posts
    1,405

    Default Re: Question to Shogun or Mike regarding -ai parameter

    Here is a replay from Shogun at TWC:
    @Player 1
    Just asked around and the two console commands you need are halt_ai and run_ai, which do exactly what the names suggest on the campaign map screen. You open the console by hitting the ~ key during play. Hope that helps!
    Unfortunately, it seems that this command is disabled in console, at least in 1.2
    Not like it is first time, since some other commands can only be accessed by scripts and not console.

    So, I'm again stucked...
    BUG-FIXER, an unofficial patch for both Rome: Total War and its expansion pack

  2. #2

    Default Re: Question to Shogun or Mike regarding -ai parameter

    The halt_ai command certainly works through a script because Myrddraal uses it in his Hot Seat mod. Don't know about the run_ai one though.
    Epistolary Richard's modding Rules of Cool
    Cool modders make their mods with the :mod command line switch
    If they don't, then Cool mod-users use the Mod Enabler (JSGME)
    Cool modders use show_err
    Cool modders use the tutorials database Cool modders check out the Welcome to the Modding Forums! thread Cool modders keep backups Cool modders help each other out

  3. #3
    Bug Hunter Senior Member player1's Avatar
    Join Date
    Feb 2005
    Location
    Belgrade, Serbia
    Posts
    1,405

    Default Re: Question to Shogun or Mike regarding -ai parameter

    Unfortunately I can't seem to run any script (nor starting nor, "show me") when -ai is turned on.
    BUG-FIXER, an unofficial patch for both Rome: Total War and its expansion pack

  4. #4

    Default Re: Question to Shogun or Mike regarding -ai parameter

    Hmmm... that's strange, not even a campaign script huh? They should be referenced automatically.
    Epistolary Richard's modding Rules of Cool
    Cool modders make their mods with the :mod command line switch
    If they don't, then Cool mod-users use the Mod Enabler (JSGME)
    Cool modders use show_err
    Cool modders use the tutorials database Cool modders check out the Welcome to the Modding Forums! thread Cool modders keep backups Cool modders help each other out

  5. #5
    Bug Hunter Senior Member player1's Avatar
    Join Date
    Feb 2005
    Location
    Belgrade, Serbia
    Posts
    1,405

    Default Re: Question to Shogun or Mike regarding -ai parameter

    I was wrong.
    Campaign starting script works.
    I just tested it with simple toggle_fow script.

    And later I tried one with halt_ai at start and it didn't started autoai even with -ai enabled.


    EDIT:
    Although I'm not sure would script that lasts more then 1 turn would work. I think I had some problems with that.
    My plan was to make script that would stop autorun after 10-20 turns and start it again after pressing end of turn.

    If it could work, it could be great tool for moders.
    Last edited by player1; 07-28-2005 at 16:52.
    BUG-FIXER, an unofficial patch for both Rome: Total War and its expansion pack

  6. #6
    Bug Hunter Senior Member player1's Avatar
    Join Date
    Feb 2005
    Location
    Belgrade, Serbia
    Posts
    1,405

    Default Re: Question to Shogun or Mike regarding -ai parameter

    I succeeded in making small script to run AI for X turns (2 years in this case). After that game is stoped and can't be continued (since AI is disabled).

    Code:
    script 
    	suspend_during_battle on
    	while I_TurnNumber < 4
    	end_while					
    	console_command halt_ai
    end_script
    BUG-FIXER, an unofficial patch for both Rome: Total War and its expansion pack

  7. #7
    Spindly Killer Fish Member ShellShock's Avatar
    Join Date
    Aug 2004
    Location
    UK
    Posts
    189

    Default Re: Question to Shogun or Mike regarding -ai parameter

    Does anyone still want me to try and add support to RomeSage for toggling the ai switch? I don't want to put in the effort if no one is going to use it
    He does sit in gold, his eye red as 'twould burn Rome.

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Single Sign On provided by vBSSO