Announcement

Collapse
No announcement yet.

Guess what I'm playing?

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • #16
    Ok, modswapper and pictures are posted. If you got the pics previously, they will work, but I just found out that some of them are a different size than they should be, and will stick out of their box in the units tab.

    That just leaves the texts.
    Dale, I have a feeling that you are right about the trigger. The code is so simple for it, something like a non-working variable would seem to be the most likely cause for the error.
    One thing I noticed is that the error messages kept popping up for each line in the trigger. Don't know if this means anything.

    Right now, I need to go to bed. When I get up, I will tackle the problem of how best to deal with the absence of the trigger. Once I get that figured out, and make some other miscellaneous changes, I will post the texts and we will be on our way. This will probably be tonight, Apolyton time.

    If it makes any of you feel any better, I am still finding glitches in the files, so if I had posted the mod sooner, you would have had to go right back and get the texts again. Once it is up, expect FREQUENT updates, espcially in the first few days. This mod is just so enormous. I have gone over most everything at least once, but I am sure there are little things out there I missed.

    The Great Library will largely not work, at least not right now. I have not done anything to it yet except make sure all the items are present in it. The info on those items is not correct, unless it is something that has not been changed in the mod from the original settings.
    I am hoping that Paul will take on the task of getting this huge file in shape for the public release.
    Until then, you will have to refer to the Med charts, which have been expanded so that they should give you most everything you need to know, when coupled with the readmes. And be sure to read all the readmes thoroughly. There is nothing in them that is unnecessary.

    Comment


    • #17
      Wes,

      I didn't have time to look into this until right now (and even now I should be doing something else), so that's why you didn't hear from me before. When I gave you that trigger I told you it was completely untested and quite possible that it wouldn't work at all, I never intended it for you to include in your mod as if it was fully tested and functioning. As Dale suggests and as I feared when I warned you about the code not working, the leaderpersonality thing doesn't return what I assumed it would (i.e. a number representing the location of the personality in the strategy files). Too bad since there's a similar variable for goverment type and that does seem to work that way. Anyway, you can still get the code to work, only it will be slightly more complex. It involves testing if a player is of a certain nation and changing the personalitytype to that nation's personalitytype (assuming every nation can only have 1 personality, so no random stuff allowed/possible, at least not in this version).

      I think that once you completed the code for all nations (and corrected it, I just made this example below up as as went without checking the files) it should work, though I'd still test it a little before releasing it if I were you: maybe the whole principle of changing strategies is flawed altogether in the first place. As I said, I haven't tested this code at all. If you test this you might want to (temporarily) make the start-strategies radically different from the regular ones so you can easily see if the AIs actually change strategy (e.g. don't allow the AIs to build units in the start strategies and make them build nothing but units in the regular strategies).

      The code:

      Code:
      // at turn 125, turn off start strategies
      HandleEvent(BeginTurn) 'MM2_TurnOffStartStrategies' post {
      	if (g.year == 125) {
      		if (PlayerCivilization(g.player) == CivilizationIndex("AMERICANS")) {
      			SetStrategicState(player[0], StrategyDB(STRATEGY_SCIENIST_DEFAULT));
      		} elseif (PlayerCivilization(g.player) == CivilizationIndex("GERMAN")) {
      			SetStrategicState(player[0], StrategyDB(STRATEGY_MILITARIST_DEFAULT));
      		} elseif (PlayerCivilization(g.player) == CivilizationIndex("DUTCH")) {
      			SetStrategicState(player[0], StrategyDB(STRATEGY_ECONOMIC_DEFAULT));
      		}
      	}
      }
      Administrator of WePlayCiv -- Civ5 Info Centre | Forum | Gallery

      Comment


      • #18
        Wes, right now I don't have time for the Great Library. I don't know when I will have more time; it could be in two weeks, but it could also be two months. Let me know if that's a problem.

        Comment


        • #19
          Sorry Wes, I meant to e-mail Locutus about this last week but never got around to it. There are several problems with that event handler. For one thing, according to the documentation, player[0].leaderpersonality will give you a string like 'Caesar' (presumably, from the personality database) whereas what he seemed to be after was the corresponding strategy Strategy_Militarist_Default (from the strategy database). I think that's why Paul got the error message: player[0].leaderpersonality doesn't exist in the strategy database.

          But, and this is the more important point, a strategy like Strategy_Militarist_Default is the strategy that's loaded by default anyway: it's not going to over-ride your modified start strategies. The thing is that although you can change a personality strategy using SetStrategicState, I can't see how to do the same thing with the other base strategies: the start, defense, etc. strategies. Can anyone? (This might be trivial.)

          Locutus, I've just read your latest post. It's still not gonna work: the strategies you're loading won't over-ride Wes's new start strategies. But here's a possibility. Maybe he could rename his new start strategies and we could have them 'considered' up to turn 125 and then ignored.

          Comment


          • #20
            The reason I need to disable the start strategies is that the computer seems to build all its special attack units before anything else. This was not much of a problem in the original game because you didn't get any special units for many turns. However, the AIs usually start out with Nobles and/or Slavers, and if you have to use the default strategies, then they will spend their first 20 to 40 turns building 4 or 5 of these units, and not anything else. If this was Ctp1, you could set the special units' priority lower than the regular units', and the problem is solved. But....

            Also, I wanted the AIs to keep a war setting for the start of the game because of Barbarians, then go to alert status when at peace for the default strategy.

            You know, it was Richard who said that the start strategies stay active for the entire game. Looking at the original strategies.txt, the settings there don't make sense if they over-ride the default strategies for the entire game.
            I wonder if Richard gave the worng impression with his statement, or if the strategies only remain active under certain conditions.

            I am going to leave the settings as they are. It will be easy to tell if they stay in effect the entire game, since the AIs will stay at the war readiness level at all times, and will only build one special attack unit.

            I guess this takes care of the last problem, which means that I will be uploading the beta shortly.

            Comment


            • #21
              The following from the nuclear snc may help,then again it may not, very
              difficult to confirm if and when the ai changes its strategic just by
              watching via cheat.

              // when strategies are first computed, change to our scenario strategy
              HandleEvent(InitStrategicState) 'ND_InitStrategicState' post {
              int_t strategyindex;
              strategyindex = StrategyDB(STRATEGY_ND_SCENARIO_DEFAULT);

              if(IsPlayerAlive(player[0])) {
              ConsiderStrategicState(player[0], 9999, strategyindex,-1,-1,-1);
              ComputeCurrentStrategy(player[0]);
              }
              }

              // every time strategies are computed, consider our scenario strategy
              HandleEvent(NextStrategicState) 'ND_NextStrategicState' pre {
              int_t strategyindex;
              strategyindex = StrategyDB(STRATEGY_ND_SCENARIO_DEFAULT);

              if(IsPlayerAlive(player[0])) {
              ConsiderStrategicState(player[0], 9999, strategyindex,-1,-1,-1);
              }
              }

              hannibal

              Comment


              • #22
                Re-establishing embassies trigger created. Wes, I'll email it to you when our email is fixed. What other triggers do you want me to look at?

                ------------------
                Rommell to a sub-commander outside Tobruk: "Those Australians are in there somewhere. But where? Let's advance and wait till they shoot, then shoot back."

                Comment


                • #23
                  Wes,

                  I have bug to report. I attempted to email this to you but, it was returned with an "undeliverable" message. So here goes: When I established my first city, set my building cue, and clicked the "turn over" button I got the following error: "In object DIP_MainRoutine, function_ConsiderNewProposal: Wrong type of arguement".

                  I noticed a 3/8/01 diplomatic update but got an error404, no file found error. I assume you are working on the problem. Just wanted to give you a heads up.
                  Don't hate me because I'm beautiful, hate me because I'm a rat-bastard.

                  Comment


                  • #24
                    quote:

                    Originally posted by ssoszka on 03-08-2001 03:23 AM
                    Wes,

                    I have bug to report. I attempted to email this to you but, it was returned with an "undeliverable" message. So here goes: When I established my first city, set my building cue, and clicked the "turn over" button I got the following error: "In object DIP_MainRoutine, function_ConsiderNewProposal: Wrong type of arguement".

                    I noticed a 3/8/01 diplomatic update but got an error404, no file found error. I assume you are working on the problem. Just wanted to give you a heads up.


                    All please note: this error discussion has been taken to the "Diplomacy Mod" thread.

                    ------------------
                    Rommell to a sub-commander outside Tobruk: "Those Australians are in there somewhere. But where? Let's advance and wait till they shoot, then shoot back."

                    Comment

                    Working...
                    X